hunt-host-header
Что он делает
Этот инструмент помогает находить уязвимости на сайтах. Он проверяет, можно ли заставить сайт принять поддельный адрес за настоящий, что может привести к краже аккаунтов или другим уязвимостям.
Когда использовать
- ✓Когда вы тестируете безопасность сайта с разрешения владельца.
- ✓Чтобы понять, как работают уязвимости «Host Header Injection».
- ✓Чтобы проверить, правильно ли сайт защищает конфиденциальные данные, например ссылки для сброса пароля.
Ссылка на скилл
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-host-header/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверь, уязвим ли сайт X к атакам «Host Header Injection» через функцию сброса пароля.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Инструмент отправляет сайту изменённые запросы, подменяя заголовок 'Host', чтобы имитировать поддельные адреса. Он отслеживает, использует ли сайт эту информацию ошибочно при создании ссылок или обработке запросов.
Технический текст (оригинальный 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»?
Это тип атаки, при котором злоумышленник меняет заголовок 'Host' HTTP-запроса, чтобы обмануть веб-сервер и заставить его думать, что запрос пришел с другого домена.
Почему это опасно?
Это может привести к захвату аккаунта (если ссылки для сброса пароля подменены), выполнению вредоносного кода (XSS) или доступу к внутренним системам (SSRF).
Нужно ли разрешение для использования этого инструмента?
Да, перед использованием обязательно нужно явное письменное разрешение владельца системы, так как инструмент может применяться для проверки безопасности.
Подробности
Популярность
- Звёзды на GitHub
- 48k
- Место в рейтинге
- #4876
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
00-andruia-consultant
48kПомогает агенту начинать или улучшать ИИ-проекты: анализирует код, подбирает инструменты и составляет план на испанском.
007
48kАгент проводит аудит безопасности и моделирование угроз для защиты проектов.
10-andruia-skill-smith
48kПомогает агенту создавать и улучшать ИИ-инструменты: описание работы, документация и проверка структуры.
20-andruia-niche-intelligence
48kАгент составляет обзор отрасли: контекст, правила, паттерны использования и риски по надёжным источникам.
Похожие скиллы
reverse-engineer-anything
422kПомогает агенту изучить готовые приложения и пакеты, объяснить их функции, сравнить версии или помочь с пересборкой через REA.
1password
394kПомогает агенту настроить командную строку 1Password, войти в нее и читать или подставлять секреты, не выводя их значения в чат.
healthcheck
394kПомогает агенту проверить компьютер или сервер, на котором работает OpenClaw, на риски безопасности, такие как SSH, файрвол, обновления и резервные копии, а затем предложить безопасные исправления.