hunt-clickjacking
Что он делает
Этот скилл проверяет, можно ли встраивать чувствительные страницы на других сайтах, если у них нет защиты от фреймов в заголовках. Он предназначен для разрешённого тестирования страниц входа, оплаты и настроек аккаунта.
Когда использовать
- ✓Когда страница входа или оплаты может не иметь заголовков X-Frame-Options или frame-ancestors.
- ✓Когда вы хотите проверить, можно ли открыть страницу настроек аккаунта во фрейме.
- ✓Когда экран подтверждения OAuth входит в область теста безопасности.
Ссылка на скилл
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-clickjacking/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Можете проверить, можно ли встроить страницу настроек нашего аккаунта в другой сайт в рамках нашего разрешённого теста?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент проверяет заголовки ответа на защиту от фреймов, затем в браузере проверяет, можно ли всё ещё выполнить чувствительное действие внутри фрейма. Он сообщает о проблеме только тогда, когда действие работает.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
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.
Частые вопросы
Что такое кликджекинг?
Это когда скрытая страница накладывается поверх поддельной, и пользователь нажимает на настоящую страницу, не понимая этого.
Достаточно ли отсутствия заголовков для находки?
Нет. Скилл указывает, что отсутствие заголовков лишь отправная точка, а тест в браузере должен показать, что чувствительное действие работает.
Какие заголовки важны?
Скилл называет X-Frame-Options и настройку frame-ancestors в Content-Security-Policy.
Подробности
Оригинальное описание автора
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.
Популярность
- Звёзды на GitHub
- 5.4k
- Место в рейтинге
- #14900
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
apk-redteam-pipeline
5.4kПомогает агенту проверить Android-приложение на слабые места безопасности: от поиска APK-файла и декомпиляции до поиска открытых секретов.
bugcrowd-reporting
5.4kПомогает агенту писать лучшие отчёты об уязвимостях для Bugcrowd: выбирать правильную категорию и отвечать на возражения о выходе за рамки программы.
cloud-iam-deep
5.4kПомогает агенту проверить, к чему открывает доступ найденный облачный ключ в AWS, Azure или Google Cloud, в рамках санкционированного теста.
enterprise-vpn-attack
5.4kПомогает агенту проверить VPN- и удалённый доступ от Cisco, Fortinet, Citrix и других на известные слабые места в рамках санкционированного теста.
Похожие скиллы
reverse-engineer-anything
422kПомогает агенту изучить готовые приложения и пакеты, объяснить их функции, сравнить версии или помочь с пересборкой через REA.
1password
394kПомогает агенту настроить командную строку 1Password, войти в нее и читать или подставлять секреты, не выводя их значения в чат.
healthcheck
394kПомогает агенту проверить компьютер или сервер, на котором работает OpenClaw, на риски безопасности, такие как SSH, файрвол, обновления и резервные копии, а затем предложить безопасные исправления.