testing-for-host-header-injection

Detect HTTP Host header injection vulnerabilities and generate a JSON findings report.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Acczdy/MoZiSec --skill testing-for-host-header-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-for-host-header-injection
Source: https://github.com/Acczdy/MoZiSec/tree/main/web-security/.claude/skills/testing-for-host-header-injection
Command: npx skills add https://github.com/Acczdy/MoZiSec --skill testing-for-host-header-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies and diagnoses HTTP Host header injection weaknesses that can lead to password reset poisoning, web cache poisoning, SSRF, virtual host routing abuse, and other host-based routing or URL generation vulnerabilities.

Core Features & Use Cases

  • Reflected Host Detection: Detects when Host or alternative host headers are reflected in responses or included in generated URLs.
  • Password Reset Poisoning Checks: Triggers and inspects password reset flows to determine if reset links can be poisoned to leak tokens.
  • Cache & SSRF Probing: Exercises cache layers and backend request flows to verify cache poisoning and SSRF via Host header manipulation.
  • Use Case: During a web application pentest, run this Skill to enumerate vhosts, verify reset email link generation, and confirm whether caches or proxies honor attacker-controlled host headers.

Quick Start

Test http://target.com for Host header reflection, password reset poisoning, cache poisoning, SSRF, and virtual host exposure and produce a summarized findings report.

Frequently Asked Questions about testing-for-host-header-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect host header injection vulnerabilities during a web application pentest?

Test for host header injection by sending manipulated HTTP Host and alternative headers to a target URL. This Skill checks for reflection in responses and verifies password reset poisoning, cache poisoning, and SSRF vulnerabilities behind reverse proxies.

What is HTTP host header poisoning and how does it affect password reset flows?

HTTP host header poisoning exploits applications that trust the Host header to generate links, enabling attackers to manipulate password reset emails and steal reset tokens by routing requests through attacker-controlled domains.

How do I test for web cache poisoning using manipulated host headers?

Verify web cache poisoning by injecting malicious host headers and checking if cache layers store and serve the poisoned response to subsequent users. This Skill confirms whether reverse proxies and CDNs honor attacker-controlled headers.

Can I use Python requests to check for SSRF via host header manipulation?

Yes, this Skill leverages the Python requests library to send crafted HTTP requests with manipulated host headers. It probes backend request flows to identify internal SSRF vulnerabilities exposed via host header injection.

Does this host header injection scanner work for targets behind CDNs and load balancers?

Yes, this Skill is designed for assessing targets behind reverse proxies, CDNs, and load balancers. It performs virtual host enumeration and alternative header probing to detect host header routing abuse in these infrastructure environments.

What is the best way to enumerate virtual hosts using HTTP host headers?

Enumerate virtual hosts by systematically sending varying HTTP Host header values and analyzing response differences. This Skill automates vhost discovery alongside reflection checks to map virtual host exposure and internal routing.