MR
Mayur Rathi
@sickn33
⭐ 47.3k GitHub stars

hunt-host-header

hunt-host-header is an code AI skill with a core value of Hunt Host Header Injection. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Hunt Host Header Injection

Last verified on: 2026-10-06

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 47.3k
Last Verified 2026-10-06
Risk Level Low
mkdir -p ./skills/hunt-host-header && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/hunt-host-header/SKILL.md -o ./skills/hunt-host-header/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

> **⚠️ 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:

> 1. Ask the user to state the exact target URL, IP, account, or resource.

> 2. Ask the user to confirm written authorization and the permitted scope.

> 3. Show the exact command(s) and explain their expected effect.

> 4. 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 no `ALLOWED_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-Host` into 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-URL` to override the routed path → reach `/admin` or internal endpoints the edge

ACL thought it blocked. (Different layer from routing SSRF — see Phase 3.)

- **OAuth/OIDC poisoning** — Host drives `redirect_uri` or the OIDC `issuer` / discovery doc →

auth-code or token theft → ATO.


---


Attack Surface Signals


text
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 for

🎯 Best For

  • Claude users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply hunt-host-header to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is hunt-host-header compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for hunt-host-header?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install hunt-host-header?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/hunt-host-header/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills