Cross Site Request Forgery (CSRF)

Cross Site Request Forgery (CSRF)

Knowledge Base>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

Identify Risky Actions via GETIdentify Key Actions via POSTAccess-Control-Allow-Credentials/HeadersMultipart/text/plain/x-www-formLook for CSRF TokenLook for CSRF TokenConvert POST to GETLook for CSRF TokenLook for CSRF TokenTamper with Content-TypeXSS to Get CSRF TokenToken Not Linked to SessionPredictable TokenRemove CSRF TokenWork on DeliveryWork on DeliveryMethod Override
Identified Functionalities
GET Functionalities
POST Functionalities
Missing CSRF Token
CSRF Token Exists
Bypassable CSRF
Delivery
POST Deliverable

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.

By using this site you agree to our Terms of Service and Privacy Policy.