hunt-clickjacking — скилл для Claude Code: проверка clickjacking
Скилл hunt-clickjacking для Claude Code проверяет защиту веб-приложения от clickjacking: может ли атакующий встроить страницу во фрейм и выполнить чувствительное действие.
MIT ★ 16 193 обновлён 2026-10-29
/plugin marketplace add elementalsouls/Claude-BugHunter
/plugin install claude-bughunter@elementalsoulsЧто делает hunt-clickjacking
Скилл помогает искать clickjacking в потоках входа, денежных переводах, настройках аккаунта и подтверждениях OAuth. Сначала он предлагает проверить заголовки X-Frame-Options и CSP frame-ancestors, затем подтвердить уязвимость в настоящем браузере: страница должна отображаться во фрейме, а чувствительное действие — срабатывать в межсайтовом контексте.
Одного отсутствия защитных заголовков недостаточно. Уязвимость может блокировать JavaScript, запрещающий встраивание, или cookie с SameSite=Lax и SameSite=Strict, которые не отправляются при межсайтовом запросе во фрейме. Поэтому проверка должна охватывать авторизованное состояние и действие, меняющее данные; для подтверждения также нужны скриншот или запись.
Для Claude Code можно добавить репозиторий как маркетплейс и установить плагин либо использовать npx skills add. Без проверки в браузере отсутствие заголовков останется лишь поводом для расследования, а не подтверждённой уязвимостью.
Какие задачи решает
- найти страницы без защиты от встраивания
- проверить, работает ли iframe в настоящем браузере
- подтвердить clickjacking на чувствительном действии
- отсеять ложные срабатывания из-за SameSite или framebusting
Примеры запросов агенту
- Проверь страницу перевода на clickjacking и подтверди, что действие срабатывает во фрейме.
- Проверь страницу подтверждения OAuth: изучи заголовки и выполни проверку в браузере.
- Оцени, можно ли провести смену пароля через clickjacking в авторизованном состоянии.
Как установить hunt-clickjacking
1Через маркетплейс плагинов
/plugin marketplace add elementalsouls/Claude-BugHunter/plugin install claude-bughunter@elementalsoulsКоманда ставит плагин claude-bughunter целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add elementalsouls/Claude-BugHunter --skill hunt-clickjacking -a claude-code3Вручную: положить файлы
~/.claude/skills/hunt-clickjacking/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/hunt-clickjacking/
1Через Skills CLI (Vercel)
npx skills add elementalsouls/Claude-BugHunter --skill hunt-clickjacking -a codex2Вручную: положить файлы
.agents/skills/hunt-clickjacking/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add elementalsouls/Claude-BugHunter --skill hunt-clickjacking -a cursor2Вручную: положить файлы
.cursor/skills/hunt-clickjacking/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install elementalsouls/Claude-BugHunter skills/hunt-clickjacking2Вручную: положить файлы
.github/skills/hunt-clickjacking/SKILL.md1Через Skills CLI (Vercel)
npx skills add elementalsouls/Claude-BugHunter --skill hunt-clickjacking -a gemini-cli2Командой платформы
gemini skills install https://github.com/elementalsouls/Claude-BugHunter --path skills/hunt-clickjackingВручную: положить файлы
.devin/skills/hunt-clickjacking/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о hunt-clickjacking
Как установить hunt-clickjacking в Claude Code?
Добавь маркетплейс командой /plugin marketplace add elementalsouls/Claude-BugHunter, затем установи плагин командой /plugin install claude-bughunter@elementalsouls.
Что делает hunt-clickjacking?
Скилл помогает проверить защиту страницы от clickjacking: исследует заголовки, а затем проверяет в браузере встраивание и срабатывание чувствительного действия.
Почему недостаточно проверить заголовки?
Отсутствие X-Frame-Options и frame-ancestors само по себе не подтверждает уязвимость. Встраивание может блокировать JavaScript, а cookie SameSite=Lax или SameSite=Strict могут не передаваться во фрейме.
Исходный текст
SKILL.md · MIT
---
name: hunt-clickjacking
description: "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."
sources: hackerone_public, public_research
report_count: 6
---
## 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:
```html
<!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 a `Sec-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=Lax` or `SameSite=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.
© Sachin Sharma · MIT · elementalsouls/Claude-BugHunter