HACKR.GG
Web Security

CSRF — Cross-Site Request Forgery

Trick a logged-in user's browser into making a request to another site without them knowing. The browser sends the session cookie automatically — and the server thinks it's a real request.

Intermediate45 min8 lessons2 hands-on
Start free →I have an account
First lesson free. The full module is part of Pro.

You'll be able to

  • ✓Understand why cross-origin requests are dangerous without CSRF tokens
  • ✓Build a CSRF PoC that performs state-changing actions as a victim
  • ✓Bypass SameSite=Lax, referer checks, and weak token validation
  • ✓Chain CSRF with stored XSS for no-click exploitation

Lessons

  1. 1The Forum Post That Transferred Money From Your Bank Account
  2. 2What is CSRF?
  3. 3CSRF Tokens and SameSite Cookies
  4. 4CSRF Token Bypass Techniques
  5. 5Your Turn: Build the Forged RequestHANDS-ON
  6. 6Module quiz
  7. 7SameSite Cookies — What It Actually Prevents
  8. 8Hands-on Lab: Exploit QuikbankHANDS-ON
Start free →