http-host-header-attacks

Guide HTTP Host header injection and routing abuse security testing.

120|8|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/Prohao42/aimy-sikll --skill http-host-header-attacks-prohao42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: http-host-header-attacks
Source: https://github.com/Prohao42/aimy-sikll/tree/main/ai-mian/hack-skills/skills/http-host-header-attacks
Command: npx skills add https://github.com/Prohao42/aimy-sikll --skill http-host-header-attacks-prohao42

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides structured guidance for discovering and testing HTTP Host header injection and routing abuse in web applications, proxies, and virtual hosts.

Core Features & Use Cases

  • Host header testing playbook: methodically evaluates how an app uses the Host header for URL generation, routing, and access control.
  • Bypass techniques awareness: covers common bypass vectors (X-Forwarded-Host, absolute URLs, double Host, etc.) and how they impact security.
  • Related vulnerability exploration: demonstrates flows for password reset poisoning, cache poisoning, SSRF via routing, and virtual host bypass.

Quick Start

Assess a target URL for Host header weaknesses and report findings with practical mitigations.

Frequently Asked Questions about http-host-header-attacks

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

FAQPage Schema
What is HTTP Host header injection and how does it impact web application security?

HTTP Host header injection exploits how web applications use the Host header for URL generation and routing, enabling attacks like password reset poisoning, cache poisoning, and SSRF. Attackers manipulate the header to bypass access controls or redirect traffic.

How do I test for Host header injection vulnerabilities in a web application?

To test for Host header injection, methodically manipulate the Host header in HTTP requests and observe how the application handles URL generation, routing, and access control. The testing process evaluates password reset flows, cache behavior, and redirects for vulnerabilities.

What bypass techniques work for Host header validation in web applications?

Common Host header validation bypass techniques include injecting X-Forwarded-Host headers, using absolute URLs, and sending double Host headers. These vectors exploit inconsistent header parsing across proxies and virtual hosts to achieve routing abuse.

Can I use this approach to test SSRF via routing abuse on virtual hosts?

Yes, this testing approach applies to discovering SSRF via routing abuse in web applications, proxies, and virtual hosts. It evaluates how manipulated Host headers redirect internal requests and bypass virtual host access controls.

How does Host header manipulation affect password reset poisoning flows?

Host header manipulation enables password reset poisoning by altering the URL generated for password reset links. When the application trusts the Host header for link construction, attackers can redirect reset emails to malicious domains and hijack accounts.

What are the limitations of testing Host header attacks against proxies?

Testing Host header attacks against proxies may be limited by strict upstream header validation, normalized routing rules, or environments that override Host headers entirely. Some proxies strip manipulated headers before forwarding requests to the backend.