All Security Checks
Vulnerability DetectionA01:2021A05:2021

CSRF Protection Scanner

Check if your forms and API endpoints are protected against cross-site request forgery.

Cross-Site Request Forgery (CSRF) tricks authenticated users into performing unintended actions. Our scanner checks forms and state-changing endpoints for CSRF tokens, SameSite cookie attributes, and other anti-CSRF mechanisms.

What This Scanner Does

Analyzes forms for CSRF token presence, checks cookie SameSite attributes, tests state-changing endpoints (POST/PUT/DELETE) for anti-CSRF protection, and verifies that the Referer/Origin headers are validated.

Why It Matters

Without CSRF protection, an attacker can craft a malicious page that triggers actions on your site — transferring funds, changing passwords, or deleting data — while the victim is logged in. Modern frameworks have built-in CSRF protection, but it is often misconfigured.

Common Findings

  • Forms missing CSRF tokens
  • SameSite cookie attribute not set to Strict or Lax
  • State-changing GET requests (should be POST)
  • CSRF token not validated server-side

OWASP Top 10 Coverage

A01:2021Broken Access Control
A05:2021Security Misconfiguration

Run This Check on Your Site

Get a full security report with AI-powered fix suggestions in 30 seconds. No setup required.

Related Security Checks