Web clickjacking

From NoorQureshi/security-skills · View interactive version

Web clickjacking is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Clickjacking / UI redress — frame a target so a victim's clicks hit hidden actions. Load when a page allows framing (no X-Frame-Options / frame-ancestors), on state-changing one-click actions, or "clickjacking". Signals: missing framebusting headers, sensitive buttons, OAuth consent, account setting

How to use this skill

Skill file

Clickjacking (UI redress)

When it applies

A sensitive, state-changing page can be embedded in an <iframe> on an attacker site, and the

action needs only clicks (no CSRF token / re-auth). The attacker overlays their own UI so the

victim clicks the framed action unknowingly.

Why it works

Without X-Frame-Options: DENY/SAMEORIGIN or CSP frame-ancestors, the browser lets any site

frame the page. Making the frame transparent and positioning it under a decoy button turns the

victim's clicks into actions on the target in their authenticated session.

Method

  1. Check framability: load the target in <iframe src="https://target/…">; if it renders (no

framebusting), it's frameable. Inspect for missing X-Frame-Options / frame-ancestors.

  1. Find a worthwhile action: one-click state change — delete account, change email, authorize

OAuth, transfer, enable a setting.

  1. Build the PoC: transparent iframe (opacity:0) over a decoy ("Click to win"), aligned so

the victim's click lands on the target's button. Multi-step → chain frames/drag (classic UI redress).

  1. Assess impact honestly — clickjacking on a trivial action is low; on ATO/authorization it matters.

Gotchas

Verify success

A working PoC page where a normal-looking click performs the sensitive action on the target in the

victim's session (screen-record the overlay).

References

PortSwigger clickjacking labs; OWASP clickjacking defense cheat sheet.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.