extra credit Search 85,062 technologies ⌘K Download for Mac

OWASP CSRF Prevention Cheat Sheet

Category
OWASP
Docs outline
9 sections

Official docs outline

cheatsheetseries.owasp.org
  1. Token-Based Mitigation

    Anti-CSRF tokens and where to transmit them.

  2. Synchronizer Token Pattern

    Server-side per-session or per-request token validation.

  3. Double Submit Cookie

    Signed double-submit cookies for stateless apps.

  4. Fetch Metadata Headers

    Sec-Fetch-Site and related headers for resource isolation.

  5. Disallowing Simple Requests

    Custom request headers and content-type restrictions for AJAX and APIs.

  6. Client-Side CSRF

    Client-side CSRF mitigation techniques.

  7. Defense in Depth

    SameSite attribute, Origin verification and user interaction defenses.

  8. Login CSRF

    CSRF in login forms and session fixation.

  9. JavaScript Token Inclusion

    Automatically attaching CSRF tokens to AJAX requests.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 33
↑↓ move ↵ open