Vulnerability · CWE-352

medium severityA01:2021 Broken Access Control

Cross-Site Request Forgeryalso known as CSRF

CSRF tricks a logged-in user's browser into submitting an unwanted state-changing request to a site they're authenticated to.

Impact

Why it matters

Unauthorized actions performed as the victim (password/email change, transfers, etc.).

Detection

How vulnscanners finds it

vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports Cross-Site Request Forgery findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.

Remediation

How to fix it

  1. 01Use anti-CSRF tokens on state-changing requests.
  2. 02Set cookies SameSite=Lax/Strict.
  3. 03Require re-auth or confirmation for sensitive actions.

References

FAQ

What is Cross-Site Request Forgery?

CSRF tricks a logged-in user's browser into submitting an unwanted state-changing request to a site they're authenticated to.

How does vulnscanners detect Cross-Site Request Forgery?

vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports Cross-Site Request Forgery findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.

How do I fix Cross-Site Request Forgery?

Use anti-CSRF tokens on state-changing requests. Set cookies SameSite=Lax/Strict. Require re-auth or confirmation for sensitive actions.

How serious is Cross-Site Request Forgery?

Unauthorized actions performed as the victim (password/email change, transfers, etc.).

Related

Scan your target for real.

Point vulnscanners at an authorized domain or IP range and get a severity-ranked report of what's actually exploitable — including Cross-Site Request Forgery. Credits never expire.