Clickjacking
Clickjacking, or user-interface redressing, is an attack that tricks users into clicking a malicious button that has been made to look legitimate. Attackers achieve this by using HTML page-overlay techniques to hide one web page within another.
Hunt for Clickjacking
- Spot the state-changing actions on the website and keep a note of their URL locations. Mark the ones that require only mouse clicks to execute for further testing.
- Check these pages for the
X-Frame-Options,Content-Security-Policyheader, and aSameSitesession cookie. If you can't spot these protective features, the page might be vulnerable. - Craft an HTML page that frames the target page, and load that page in a browser to see if the page has been framed.
- Confirm the vulnerability by executing a simulated clickjacking attack on your own test account.
- Craft a sneaky way of delivering your payload to end users, and consider the larger impact of the vulnerability.