Pular para o conteúdo
Novo

DeepSeek V4.1 Flash grátis por 7 dias: 10M tokens por dia após recarga de $10 ou mais. Até 30/11.

Como funciona
noorqureshi/web-host-headerWeb e bug bounty

web-host-header

⁨Host header injection — abuse a trusted Host/X-Forwarded-Host to poison password-reset links, routing, and caches. Load when the app builds absolute URLs from the request host, on password-reset flows, or behind a proxy/CDN. Signals: reset emails with links, X-Forwarded-Host reflected, virtual hosti⁩

v2026.10.14-ee0e0c54 instalações+4 em 7 dias27 EstrelasMITsincronizado há 22 horas

Instalar

Ainda não tem a CLI da NotHoly? Instale primeiro.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/web-host-header

Grava em ⁦~/.notholy/skills⁩ depois de conferir a assinatura e o SHA-256.

AssinaturaAssinado, ed25519
Rb7YAZkG5h…SM/s2oBQ==A CLI confere o SHA-256 e a assinatura antes de gravar qualquer arquivo.
Pacoteae90d8d7…5c98f9fd
ae90d8d7e4bc…d4455c98f9fd1 arquivo · ⁦1.3 KB⁩
VarreduraBaixo1 achado
  • Links para domínios externos
Ver a varredura completa
Fontegithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-host-header@ee0e0c5

Este item ainda não foi escrito no seu idioma, então aparece em English.

When it applies

The server trusts the Host (or X-Forwarded-Host) header to build absolute URLs, decide routing, or key a cache. Classic impact: password-reset poisoning (the reset link points at your domain, so the victim's token comes to you).

Why it works

Frameworks read the request host to construct links (https://{host}/reset?token=…). The host is attacker-controlled, so if it isn't validated against an allowlist, you control where generated links point — and where secrets in them land.

Method

  1. Reset poisoning: trigger a password reset for a victim; intercept and set Host: attacker.com (or add X-Forwarded-Host: attacker.com). If the emailed link uses your host, the victim's click sends their reset token to you → account takeover.
  2. Routing/authz: try Host: of an internal vhost (admin.internal) to reach restricted apps behind the proxy; test X-Forwarded-Host, X-Forwarded-Server, X-Host, dup Host headers.
  3. Cache poisoning: if the host is reflected into a cached response, combine with web-cache-poisoning to serve your host to other users.
  4. Validation bypass: absolute-URL Host (Host: attacker.com), Host: victim.com:@attacker.com, line-wrapping, and duplicate headers (front-end vs back-end pick different ones).

Gotchas

  • Many stacks now validate Host — confirm the generated link/response actually uses your value.
  • X-Forwarded-Host often wins even when Host is validated — always test it separately.
  • Reset poisoning needs the app to email a host-derived link; verify by reading the email/link.

Verify success

A password-reset (or other) link built with your attacker host, or an internal vhost reached, or a poisoned cached response served to a clean request.

References

PortSwigger Host header attacks labs; OWASP host-header injection.

Arquivos desta versão

Permissões

PermissãoDeclaradaEncontrada na varredura
Lê arquivosNãoNão
Grava arquivosNãoNão
Roda comandos no shellNãoNão
Usa a redeSimSim
Usa conectoresNãoNão
Controla um navegadorNãoNão

Achados da varredura

Revisado em 13 de nov. de 2026

  1. InfoLink · Links para domínios externos

Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.

VersãoPublicada emCommitSHA-256AssinaturaMudança de permissão
v2026.10.14-ee0e0c513 de nov. de 2026ee0e0c5ae90d8d7Assinada–

Pergunte tudo o que o seu escopo permite.

Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.

  1. 1/3

    Crie a conta

    Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.

    Pessoa físicaEmpresa
  2. 2/3

    Adicione créditos

    No cartão. Você paga por token, sem assinatura.

    $5.00recarga mínima
  3. 3/3

    Pergunte

    No chat, ou instale o CLI e rode notholy login no terminal.

    $ notholy login