This first post is related with one of my project : CSRFT. CSRFT is a Cross Site Request Forgery (CSRF) vulnerabilities Toolkit.
My toolkit allows you to exploit either GET and POST HTTP Requests. During some testings, I had issues with some specific forms.
Let’s take an example of such form :
1 2 3 4 5
The code injected on the page to submit the form was like that :
However, the form was not submitted.
After browsing the internet, I found that there was a conflict with the submit input.
Let’s try to debug wih FireBug :
And then :
As I said earlier, this is because there’s a conflict with the Submit input. When there’s such input, it’s then not possible to “force” the victim to send the payload.
How to force submitting it ?
To submit a form, you can use the native function.
Basic example :
With such example, the argument of the function is the selector of the form. Here, you submit the first form that you find in the DOM. Using this technique, I’ve been able to “overwrite” those (conflicts) inputs and submit the form even if it contains some.
Have fun !