Clear Byte

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

  1. 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.
  2. Check these pages for the X-Frame-Options, Content-Security-Policy header, and a SameSite session cookie. If you can't spot these protective features, the page might be vulnerable.
  3. Craft an HTML page that frames the target page, and load that page in a browser to see if the page has been framed.
  4. Confirm the vulnerability by executing a simulated clickjacking attack on your own test account.
  5. Craft a sneaky way of delivering your payload to end users, and consider the larger impact of the vulnerability.

On this page