hunt-host-header
できること
このツールは、Webサイトのセキュリティ上の欠陥を見つけるためのものです。偽のアドレスを本物だと誤認させることができないかを確認します。それによって、アカウントの乗っ取りなどの脆弱性が生じる可能性があります。
使う場面
- ✓許可を得て、Webサイトのセキュリティをテストするとき。
- ✓「Host Header Injection」の欠陥の仕組みを理解するとき。
- ✓パスワード再設定リンクなどの重要な情報を、サイトが正しく守れているかを確認するとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-host-header/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Webサイト X のパスワード再設定機能が「Host Header Injection」攻撃に脆弱かどうかを確認して”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、'Host'ヘッダーを書き換えて偽のアドレスを模倣したリクエストを、Webサイトに送信します。サイトがこの情報を誤って使ってリンクを生成したり、リクエストを処理したりしないかを観察します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
HUNT-HOST-HEADER — Host Header Injection
Grounding / Provenance
This skill is built from the public Host-header attack literature, not invented payloads. Cite the technique source in your report, never a fabricated ID:
- Password-reset poisoning class — the canonical write-up is Skelet's/Detectify-era
"Practical HTTP Host header attacks" (the Django
request.get_host()→ password-reset-link case). Many frameworks built the reset URL from the request Host with noALLOWED_HOSTS-style allowlist. Cite the framework + the reflected-Host behaviour you actually observed. - Web cache poisoning via unkeyed Host / X-Forwarded-Host — PortSwigger Research, James Kettle, "Practical Web Cache Poisoning" (2018) and "Web Cache Entanglement" (2020). These define unkeyed-input poisoning, which is the mechanism behind X-Forwarded-Host poisoning.
- Routing-based SSRF — PortSwigger Research, "Cracking the lens" / routing-based SSRF (Host header steers the front-end's upstream selection).
When you write the report, name the exact behaviour you reproduced (reflected header, cache HIT on a fresh key, OOB hit from your Collaborator). Do not copy a CVE or H1 ID you have not verified — a missing citation is always better than a wrong one.
Crown Jewel Targets
Host header injection that reaches password reset links = Critical (ATO for any user).
Highest-value chains:
- Password reset poisoning → ATO — server builds the reset link from the request Host;
attacker sets
Host: evil.com; the victim's reset email points the token at the attacker → token captured on click → full ATO. Pre-account-takeover variant: even the victim requesting their own reset leaks the token to evil.com. - Web cache poisoning via unkeyed Host — a CDN/reverse proxy caches a response that reflects
an attacker
X-Forwarded-Hostinto an absolute URL (script src, link, redirect) → poisoned entry served to every later visitor on that cache key → mass XSS/redirect/CSP bypass. - Routing-based SSRF — the front-end uses the Host header itself to pick the upstream;
Host: 169.254.169.254(or an internal hostname) makes it forward your request to that target → cloud metadata / internal admin panels. - Path-override SSRF / ACL bypass — IIS/ASP.NET/Spring honour
X-Original-URL/X-Rewrite-URLto override the routed path → reach/adminor internal endpoints the edge ACL thought it blocked. (Different layer from routing SSRF — see Phase 3.) - OAuth/OIDC poisoning — Host drives
redirect_urior the OIDCissuer/ discovery doc → auth-code or token theft → ATO.
Attack Surface Signals
Any password reset / forgot-password / email-verification / invite endpoint
Any app behind CDN/reverse proxy (Cloudflare, Varnish, Fastly, Akamai, Nginx, HAProxy)
OAuth/OIDC authorization + /.well-known/openid-configuration endpoints
Absolute URLs constructed from request Host (set-password links, share links, webhooks)
Email-sending endpoints (transactional mail, notifications)
Reverse proxies that may route by Host (k8s ingress, service mesh, internal forward proxies)
Dangerous header candidates (unkeyed / trusted inputs):
Host X-Forwarded-Host X-Host
X-Forwarded-Server X-HTTP-Host-Override Forwarded
X-Original-URL X-Rewrite-URL X-Override-URL (path-override class)
Step-by-Step Hunting Methodology
Always test against your own registered test account. Never request another user's reset.
Phase 1 — Password Reset Poisoning
# 1a. Override Host directly
…
よくある質問
「Host Header Injection」とは何ですか?
攻撃者がHTTPリクエストの'Host'ヘッダーを操作して、Webサーバーに別のドメインから届いたリクエストだと思い込ませる攻撃の一種です。
なぜ危険なのですか?
パスワード再設定リンクが改ざんされると、アカウントを乗っ取られる可能性があります。また、悪意のあるコードが実行されるXSSや、内部システムにアクセスされるSSRFにつながることもあります。
このツールを使うには許可が必要ですか?
はい。セキュリティテストに使えるツールのため、使用する前にシステム所有者から明示的な書面による許可を得ることが不可欠です。
詳細
人気
- GitHubのスター
- 48k
- ランキング
- #4876
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。