Cross Site Request Forgery (CSRF)
Summary
CSRF describes a situation in which an attacker can trick authenticated users to send an authentication protected HTTP request to the application.
Testing methodology
Description
Cross Site Request Forgery (CSRF) or Session Riding is a vulnerability that allows an attacker, that had captured the attention of one or more of the application's users via social engineering methods (e.g. Phishing), to force the user to perform unwanted actions in the application on behalf of the user, such as changing their password transferring funds or other sensitive actions.
Remediations
- Implement Anti CSRF tokens to require each request to include a unique and unguessable token that is verified on the server-side to prevent CSRF attacks.
- Include a referrer header check to ensure that requests come from the same origin.
Usually follows
Affected components
- Client Side
- Session
- Sensitive Information