hunt-clickjacking
Skill này làm gì
Skill này kiểm tra xem các trang nhạy cảm có thể bị trang khác nhúng vào vì thiếu header bảo vệ khung hay không. Nó dành cho kiểm thử được ủy quyền các trang đăng nhập, thanh toán và cài đặt tài khoản.
Khi nào nên dùng
- ✓Khi một trang đăng nhập hoặc thanh toán có thể thiếu bảo vệ X-Frame-Options hoặc frame-ancestors.
- ✓Khi bạn muốn kiểm tra xem trang cài đặt tài khoản có thể bị nhúng vào khung hay không.
- ✓Khi màn hình chấp thuận OAuth nằm trong phạm vi kiểm thử bảo mật.
Liên kết skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-clickjacking/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra xem trang cài đặt tài khoản của chúng tôi có thể được nhúng trong một trang khác trong kiểm thử được ủy quyền không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra header phản hồi xem có bảo vệ khung hay không, rồi thử trong trình duyệt xem một hành động nhạy cảm có còn hoàn thành được trong khung không. Nó chỉ báo cáo phát hiện khi hành động đó thực sự hoạt động.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
What is Clickjacking
Clickjacking (UI Redressing) lets an attacker load a target page inside a transparent iframe on a malicious site. The victim sees the attacker's decoy UI but clicks the hidden target UI beneath it. No JavaScript on the target is required.
Highest-value targets:
- Login / authentication pages — force login with attacker credentials
- Money transfer / checkout / "confirm payment" buttons
- Account settings (email change, password change, 2FA disable)
- OAuth / social-login "Authorize app" confirmation dialogs
- Admin actions (delete, promote user, change role)
Protection Headers
Two mechanisms prevent framing:
X-Frame-Options: DENY # strongest — blocks all framing
X-Frame-Options: SAMEORIGIN # allows same-origin frames only
Content-Security-Policy: frame-ancestors 'none' # CSP equivalent of DENY
Content-Security-Policy: frame-ancestors 'self' # CSP equivalent of SAMEORIGIN
If NEITHER is present, the page is frameable from any origin.
How to Test
Header-absence is the trigger for investigation, not the finding. Two steps:
Step 1 — Header check (screening). Fetch the target page and inspect the response headers:
curl -sI https://target.example/account/transfer | grep -iE 'x-frame-options|content-security-policy'
If BOTH X-Frame-Options and CSP frame-ancestors are absent, the page is a candidate. If either is present and restrictive (DENY/SAMEORIGIN/frame-ancestors 'none'|'self'), stop — it's protected.
Step 2 — Prove it actually frames and clicks (required for a real finding). Build a minimal PoC and load it in a real browser:
<!doctype html>
<h1>Win a prize — click below</h1>
<iframe src="https://target.example/account/transfer"
style="opacity:0.1;position:absolute;top:0;left:0;width:1000px;height:800px"></iframe>
Confirm ALL of the following, or it is not exploitable:
- The page actually renders inside the iframe (no framebusting JS that blanks/redirects it — e.g.
if(top!==self)breakout, or aSec-Fetch-Dest/JS frame check). - The sensitive action still works while framed — critically, the action must succeed cross-site. If it relies on a session cookie set
SameSite=LaxorSameSite=Strict(the modern default), the cookie is not sent on the cross-site framed request, and the clickjack fails. Verify the victim's authenticated state carries into the frame. - The target is a state-changing action (transfer, settings/email/password change, 2FA disable, OAuth authorize, admin action), not a read-only page.
Strategy: target the most sensitive action pages first — severity scales directly with what the victim is tricked into doing.
False Positives
- Public, read-only pages (home/marketing) lacking frame protection are low/informational — no sensitive action to redress.
- APIs and non-HTML endpoints (JSON, images) are not clickjacking targets.
- Header-absence alone is NOT a finding. SameSite cookies, framebusting JS, or the lack of any sensitive framed action can each fully defeat it — which is why Step 2 is mandatory.
Proof Requirements
A valid clickjacking report shows: (1) the target page rendered inside an attacker-controlled iframe in a real browser, (2) a sensitive state-changing action reachable by a framed click while the victim is authenticated (cookies survive the cross-site context), and (3) a screenshot/recording of the overlay. Reporting missing headers with no working frame PoC is a documentation-quality issue, not a vulnerability.
Câu hỏi thường gặp
Clickjacking là gì?
Đó là khi một trang ẩn được đặt lên trên một trang giả, để người dùng nhấn vào trang thật mà không biết.
Chỉ header bị thiếu có đủ để báo cáo không?
Không. Skill ghi rằng header bị thiếu chỉ là điểm khởi đầu, và phải có kiểm tra trên trình duyệt cho thấy hành động nhạy cảm hoạt động.
Những header nào quan trọng?
Skill nêu X-Frame-Options và thiết lập frame-ancestors trong Content-Security-Policy.
Chi tiết
Mô tả gốc của tác giả
Hunt Clickjacking — missing X-Frame-Options / CSP frame-ancestors lets an attacker embed the target page in an invisible iframe and trick victims into clicking buttons they cannot see (UI redressing). Targets: login flows, money transfers, account settings, OAuth confirmation pages. Confirm by fetching the page, then PROVE it frames in a real browser and a sensitive state-changing action survives the cross-site context (SameSite cookies / framebusting JS can defeat it) — header-absence alone is not a finding.
Độ phổ biến
- Sao GitHub
- 5.4k
- Vị trí xếp hạng
- #14900
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
apk-redteam-pipeline
5.4kGiúp agent của bạn kiểm thử một ứng dụng Android về các điểm yếu bảo mật, từ việc tìm file APK và giải mã đến kiểm tra bí mật bị lộ.
bugcrowd-reporting
5.4kGiúp agent của bạn viết báo cáo lỗ hổng Bugcrowd tốt hơn, chọn đúng danh mục và trả lời các phản đối về việc nằm ngoài phạm vi.
cloud-iam-deep
5.4kGiúp agent của bạn kiểm tra thông tin xác thực đám mây tìm được có thể truy cập những gì trên AWS, Azure hoặc Google Cloud, trong một kiểm thử bảo mật được ủy quyền.
enterprise-vpn-attack
5.4kGiúp agent của bạn kiểm tra các thiết bị VPN và truy cập từ xa của Cisco, Fortinet, Citrix và các hãng khác về những điểm yếu đã biết, trong một kiểm thử được ủy quyền.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.