Cyber Risks · PortSwigger Research

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