Cross-Site Request Forgery
Also known as CSRF, exploits the trust a web application has in the userβs browser. Trick a website to perform unwanted actions on a web application where a user is authenticated. This allows to send requests from off the site that the server will consider valid.
We can find a typical example of this vulnerability as follows:
A site shows information about actions related to specific users, and whose data should remain confidential
Sometimes, it will not work directly, so we will need to check the source code to see the input conditions
Sometimes a validation could be done via request headers
Example source code
In this case, we can modify our petition to assign the corresponding headers and bypass the validation
Modified pettion
Last updated
Was this helpful?