Host-header injection — apps trusting Host / X-Forwarded-Host to build links, route, or key caches. Password-reset poisoning (account takeover), web cache poisoning, routing/SSRF, and web cache deception. Tier 1. Payloads: payloads/crlf-http.md. Use when the app reflects or acts on the Host or forwarding headers.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Host Header Injection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-host-header-injection)
---
name: host-header-injection
description: "Host-header injection — apps trusting Host / X-Forwarded-Host to build links, route, or key caches. Password-reset poisoning (account takeover), web cache poisoning, routing/SSRF, and web cache deception. Tier 1. Payloads: payloads/crlf-http.md. Use when the app reflects or acts on the Host or forwarding headers."
---
# Host-Header Injection
If the app trusts `Host`/`X-Forwarded-Host`, you can poison links, caches, and routing. Payloads: `${CLAUDE_PLUGIN_ROOT}/payloads/crlf-http.md`.
## Trigger phrases
`host header injection, x-forwarded-host, password reset poisoning, host header attack, cache poisoning via host`
## Method
1. Inject via `Host`, `X-Forwarded-Host`, `X-Host`, `X-Forwarded-Server`, `Forwarded`, duplicate Host headers, and absolute-URI request line.
2. Confirm where the value lands: emails/links (`password-reset-poisoning` → ATO), cached responses (→ `web-cache-attacks`), redirects/routing (→ SSRF/`web-ssrf`), or cache-key (→ web cache deception).
3. Test port/userinfo tricks (`Host: target:evil`, `Host: target@attacker`).
## Escalation
Reset-link poisoning → account takeover; cache poisoning → mass impact; routing → SSRF/internal access.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.
## Evidence
The injected host, where it surfaced (email/link/cache/redirect), and the resulting impact.