http-host-header-attacks

Test HTTP Host header trust for redirect, cache, SSRF, and vhost bypass.

5|2|Updated May 16, 2026
One-click install
npx skills add https://github.com/DorianGallo/hack-skills-local --skill http-host-header-attacks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: http-host-header-attacks
Source: https://github.com/DorianGallo/hack-skills-local/tree/main/skills/http-host-header-attacks
Command: npx skills add https://github.com/DorianGallo/hack-skills-local --skill http-host-header-attacks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you identify and test when an application trusts the HTTP Host header for URL generation, routing, cache behavior, or access-control decisions, which can lead to password reset poisoning, web cache poisoning, SSRF via routing, and virtual host bypass.

Core Features & Use Cases

  • Password reset poisoning: Inject an attacker-controlled Host so generated reset links point off-domain and capture tokens.
  • Web cache poisoning via Host: Determine whether responses (and embedded links/scripts) reflect Host while cache keys exclude it.
  • SSRF via Host routing: Check reverse proxies/load balancers that route backend services based on Host.
  • Virtual host bypass & enumeration: Brute-force and probe alternate vhosts using Host values like localhost, admin, staging, and internal.
  • Bypass techniques for Host validation: Evaluate common normalization mismatches such as X-Forwarded-Host/Forwarded, absolute-URI request lines, double-Host, ports/credentials parsing, trailing dots, whitespace/tab injection, and connection-state keep-alive edge cases.
  • Framework-specific verification: Focus on how PHP/Django/Rails/Node derive host information and which middleware/proxy settings change behavior.

Quick Start

Ask the model to produce a Host-header test plan for a target login/reset flow, including payload candidates to validate password reset poisoning, cache-link reflection, and vhost/SSRF routing impact.

Frequently Asked Questions about http-host-header-attacks

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

FAQPage Schema
How does HTTP Host header injection enable password reset poisoning?

HTTP Host header injection enables password reset poisoning by tricking an application into generating password reset links with an attacker-controlled domain. If the server trusts the Host header for URL generation, the reset token is sent to the attacker's server, allowing account compromise.

What are common bypass techniques for Host header validation?

Common Host header validation bypass techniques include injecting X-Forwarded-Host or Forwarded headers, using absolute-URI request lines, double-Host injection, port and credential parsing mismatches, trailing dots, whitespace/tab injection, and keep-alive connection-state edge cases to exploit normalization differences.

How do I test web cache poisoning using the Host header?

To test web cache poisoning using the Host header, inject an attacker-controlled Host value and check if the response reflects it in embedded links or scripts. If the cache key excludes the Host header, the poisoned response is served to other users.

Can I use Host header manipulation to achieve SSRF via reverse proxy routing?

Yes, you can achieve SSRF via Host header manipulation by targeting reverse proxies or load balancers that route backend services based on the Host value. Injecting internal Host values like localhost or admin can route requests to protected internal services.

Does this approach to Host header testing work with PHP, Django, Rails, and Node frameworks?

Yes, this approach works with PHP, Django, Rails, and Node frameworks. It evaluates how each framework derives host information and tests specific middleware or proxy settings that alter Host header parsing, validation, and normalization behaviors.

What is virtual host bypass and how do I enumerate alternate vhosts?

Virtual host bypass is accessing restricted applications by manipulating the Host header to probe alternate vhosts. You enumerate alternate vhosts by brute-forcing Host values like localhost, admin, staging, and internal to discover hidden routing paths and access control weaknesses.