clickjacking
Clickjacking playbook. Use when testing whether target pages can be framed, whether X-Frame-Options or CSP frame-ancestors are properly configured, and whether UI redress attacks can trigger sensitive actions.
Security Assessment
About clickjacking
A security-testing playbook for assessing clickjacking, also called UI redress, vulnerabilities. It is used when checking whether target pages can be framed, whether X-Frame-Options or CSP frame-ancestors are properly configured, and whether a redress attack could trick a victim into triggering sensitive actions. The core technique loads a target page in a transparent iframe overlaid on an attacker page so the victim sees a decoy interface but actually clicks the invisible target.
Detection guidance explains how to read the X-Frame-Options header (DENY, SAMEORIGIN, or the deprecated ALLOW-FROM) and the CSP frame-ancestors directive, noting that frame-ancestors supersedes X-Frame-Options in modern browsers and that an absent directive means the page is frameable. A quick iframe proof of concept confirms whether a page loads when framed, and the document shows how to recognize JavaScript frame-busting code in a target page.
Proof-of-concept templates progress from a basic single-click attack to multi-step flows that reposition the iframe for confirmation dialogs, and to drag-and-drop attacks that move tokens or data between invisible frames. Bypass techniques include defeating JavaScript frame-busting with the iframe sandbox attribute, exploiting inconsistent ALLOW-FROM support across browsers, and double-framing through a same-origin intermediary page. The playbook lists high-impact targets such as account deletion, password and email changes, admin actions, payment confirmation, OAuth authorization, disabling two-factor authentication, and API key generation, and closes with a testing checklist. Use it to evaluate framing defenses and demonstrate the real impact of UI redress on sensitive workflows.
FAQ
When should I use this skill?
When testing whether pages can be framed and whether UI redress attacks can trigger sensitive actions on a target.
How do you tell if a page is frameable?
Check the X-Frame-Options header and the CSP frame-ancestors directive; if both are absent the page is frameable, and a quick iframe proof of concept confirms it.
Which takes precedence, X-Frame-Options or CSP frame-ancestors?
CSP frame-ancestors supersedes X-Frame-Options in modern browsers.
How can JavaScript frame-busting be bypassed?
With the iframe sandbox attribute, for example allowing forms and scripts but omitting allow-top-navigation so the frame-busting script cannot redirect the top window.
What are the high-impact targets?
Sensitive single-click actions such as account deletion, password or email change, admin actions, payment confirmation, the OAuth allow button, disabling two-factor, and API key generation.
Install clickjacking
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
yaklang/hack-skills