OWASP Hunting

Browser & protocol

Clickjacking

Clickjacking tricks a user into clicking a control in a framed, transparent or disguised page. The user believes they are interacting with the attacker's page, while the click lands on a state-changing action in an authenticated application. Variants include cursor, drag-and-drop, keystroke and likejacking techniques. Defences are X-Frame-Options, the CSP frame-ancestors directive, and SameSite cookies.

Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.

These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.

Payload files

Folder on GitHub

Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.

clickjacking-payloads.txt

28 payloads · 5.5 KB
Source

Loading payloads for Clickjacking…

Common Attack Vectors#

  • Missing or weak X-Frame-Options and frame-ancestors
  • State-changing pages (delete account, change settings, approve, transfer) that can be framed
  • Pages whose framing protection applies only to some routes or only to GET
  • Frame-busting JavaScript that can be defeated with sandbox, 204 responses or double framing
  • Drag-and-drop and text-injection (prefilled forms and URL-fragment prefilling)
  • OAuth consent and authorisation screens
  • Mobile, browser extension and desktop-embedded web views

Testing Approach#

First check the response headers on the framed page for both X-Frame-Options and Content-Security-Policy: frame-ancestors. A page is only a finding if it is both frameable and contains a harmful single-click action for an authenticated user. Build a local fixture that frames the target with reduced opacity, click a harmless action using a test account, and confirm the state change. Test authenticated and unauthenticated pages separately and check cookies for SameSite, because modern browsers default to Lax, which stops credentialed cross-site framing in many cases.

References#

Responsible Use

All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.

  • Systems and applications you own
  • Authorized penetration testing engagements
  • Bug bounty programs with defined scope
  • Educational lab environments (DVWA, WebGoat, HackTheBox)