HACKR.GG
Web Security

Host Header Attacks

The Host header tells the server which site you want. Many applications trust it blindly — using it to build password reset links, cache keys, and internal routing decisions. Poison it and you control the output.

Intermediate40 min7 lessons2 hands-on
Start free →I have an account
First lesson free. The full module is part of Pro.

You'll be able to

  • ✓Explain how the Host header is used in virtual host routing
  • ✓Identify applications that use the Host header to build dynamic URLs
  • ✓Execute a password reset poisoning attack to capture a victim's reset token
  • ✓Abuse Host header manipulation for routing-based SSRF to internal services
  • ✓Validate the Host header against an allowlist and build URLs from config

Lessons

  1. 1The Host Header & Why It Matters
  2. 2Password Reset Poisoning
  3. 3Web Cache Poisoning & Routing-Based SSRF
  4. 4Defence & Remediation
  5. 5Your Turn: Poison the HostHANDS-ON
  6. 6Host Header Attacks — Concept Review & Flag
  7. 7Hands-on Lab: Exploit Mailr AccountsHANDS-ON
Start free →