CSRF (Cross-site requests forgery)
Last updated
Last updated
Requests are not validated at the server side
server does not check if the user generated the request
Requests can be forged and sent to users to make them do things that they don't want to do.
We see that the Changing password form is not verifying if the user wants to do the following action.
To start exploiting this we need to copy the "new password form" to paste it on our machine and start playing with it.
Above we can see that we are executing successfully CSRF file, now if we change the first action parameter to the URL of the web page where is this exact same form the data that the user inputs will be redirected to the site, and the password will be changed.
Here we can see that making some changes to the form and start an Apache web server to load the csrf.html, we can make a user to click on it and its password will be changed.
Code example: csrf.html