Lab: Basic clickjacking with CSRF token protection
Summary: PortSwigger's lab presents a web application with login functionality and a delete account button protected by a CSRF token, where a victim on Chrome will click elements displaying the word "click" on a decoy website. The exercise asks the tester to craft HTML that frames the account page and tricks the user into deleting their account, with the lab marked solved once the account is deleted.
What's compelling: The CSRF token on the delete button does not stop the attack, because the framed page carries the token itself and the user's click supplies the consent - a reminder that token-based defenses assume the request originates from your own page.
Read the original at PortSwigger Research ↗
- Topics
- Vulnerabilities & Patching
- Related
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026