Web Security · Authorization
Cross-Site Request Forgery
Also known as: CSRF, XSRF
A malicious site induces an unwanted request using credentials the victim’s browser supplies automatically. The attacker may not need to read the response. Protect state-changing actions with suitable request verification and cookie policy.
Where you practice it
- Classic CSRF: Forging State-Changing RequestsWeb Security · Cross-Site Request ForgeryPractice this lesson →
- CSRF in JSON APIs, CORS & Preflight GapsWeb Security · Cross-Site Request ForgeryPractice this lesson →
- HTTP Transport, CSRF, and Upload PreflightsWeb Security · GraphQL SecurityPractice this lesson →