🛡️ CSRF Attack & Defense Simulator
Interactive diagram of a Cross-Site Request Forgery attack: watch evil.com fire a hidden POST at bank.com using the victim's ambient session cookie, then toggle CSRF tokens and SameSite cookies to see the request get blocked.
⚙ Under the hood
Interactive diagram of a Cross-Site Request Forgery attack across three nodes: the victim's browser, a malicious evil.com tab and bank.com. Fire a forged POST from evil.com and watch the browser attach the ambient session cookie automatically; toggle a CSRF token check and a SameSite cookie policy independently to see the request get blocked with a 403 or withheld cookie instead.
CSRFcybersecurityweb securityCSRF tokenSameSite cookieSVG animation
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install