hunt-cache-poison
Qué hace
Esta skill prueba capas de caché y CDN en busca de envenenamiento de caché y de engaño de caché. Es para pruebas de seguridad autorizadas de sitios que usan cachés o redes de distribución de contenido.
Cuándo usarla
- ✓Cuando un sitio está detrás de un CDN y quieres comprobar cómo almacena las respuestas.
- ✓Cuando un enlace de restablecimiento de contraseña podría construirse a partir de un host de cabecera no confiable.
- ✓Cuando una página privada podría guardarse por error en una caché pública.
Link de la skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-cache-poison/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes comprobar si nuestro CDN podría guardar en caché una página privada de cuenta o aceptar cabeceras envenenadas, en nuestra prueba autorizada?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente envía peticiones con cabeceras y rutas inusuales y comprueba si una respuesta envenenada o privada se guarda y se sirve a otras peticiones. Confirma el resultado con una prueba clara.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Crown Jewel Targets
Cache poisoning is high-value because a single poisoned cache entry can affect thousands or millions of victims simultaneously — one request, mass exploitation. Payout scales with blast radius.
Highest-value targets:
- CDN-served assets (cdn.shopify.com, cloudfront distributions, Fastly/Akamai edges) — poisoning these affects every visitor globally
- E-commerce platforms with affiliate/referral flows (Shopify, WooCommerce storefronts) — session hijack or affiliate fraud potential
- Gaming platforms with update servers (rockstargames updates.* domains) — DoS on update delivery = widespread client breakage
- Authentication endpoints served through caches — leads to account takeover (the highest severity variant)
- Asset CDNs (JS/CSS delivery) — XSS payload delivery at scale
- SaaS multi-tenant platforms — one poisoned response bleeds into all tenants sharing a cache key
Asset types that pay most: CDN hostnames, subdomain-per-tenant patterns, update/download servers, login/account pages cached incorrectly, affiliate link shorteners.
Autonomous Testing Priority
Two distinct attacks live under this skill — target the simpler one first.
Attack 1 — Password Reset Poisoning (Host header injection):
The app uses the Host header to construct the password reset link in the email. Inject an attacker-controlled hostname; the victim's reset email contains a link to your server.
POST /forgot-password
Host: attacker.com
X-Forwarded-Host: attacker.com
X-Host: attacker.com
email=victim@target.com
Content-Type: application/x-www-form-urlencoded
Use a distinctive hostname you control or can identify in the response. Proof: the injected hostname appears in the response body (some apps reflect the generated reset link), or the action succeeds (2xx with a "reset email sent" message) after injection — confirming the poisoned link would be sent to the victim.
Try multiple host headers — apps vary in which one they trust (X-Forwarded-Host is most common, but Host itself also works when the proxy passes it through).
Attack 2 — Web Cache Poisoning:
Inject the attacker-controlled hostname into X-Forwarded-Host on a GET request for a cacheable page. If the hostname is reflected in the response body AND the response gets cached, subsequent visitors receive the poisoned response.
Check for cache signals in the response: X-Cache: HIT, CF-Cache-Status: HIT, Age: <nonzero>, or Via: cloudfront/varnish/fastly.
Proof for both: injected value reflected in response body, or action completed successfully despite the manipulated header.
Attack Surface Signals
URL patterns to look for:
cdn.,assets.,static.,updates.,downloads.subdomains- URL path structures with extensions that look static:
/path/to/page.css,/account.php/nonexistent.jpg - Affiliate/link shortener endpoints:
/link/,/go/,/ref/,/out/ - Paths that mix dynamic content with cacheable-looking URLs
Response headers that signal a cache:
X-Cache: HIT / MISS
X-Cache-Status: HIT
CF-Cache-Status: HIT / MISS (Cloudflare)
Age: <nonzero>
Via: 1.1 varnish / cloudfront / fastly
Cache-Control: public, max-age=...
Surrogate-Control: max-age=...
X-Served-By: cache-...
JS/tech stack signals:
- Fastly, Varnish, Cloudfront, Akamai, Nginx proxy_cache in response headers
- Shopify/Linkpop stacks with third-party integrations
- Platforms using path-based routing without normalizing trailing segments
- Servers that reflect unvalidated headers into responses (Host, X-Forwarded-Host, X-Original-URL)
Dangerous header candidates (unkeyed inputs):
X-Forwarded-Host
X-Host
X-Forwarded-Scheme
X-Original-URL
X-Rewrite-URL
Forwarded
X-HTTP-Method-Override
Step-by-Step Hunting Methodology
Map cache infrastructure. Send a GET to the target and inspect response headers. Identify the caching layer (Cloudflare, Fastly, Varnish, Nginx). Note
Age,X-Cache,CF-Cache-Statusheaders.Identify cache key components. Send two identical requests — if
Ageincrements, the response is cached. Vary headers one-by-one (e.g., addX-Forwarded-Host) to determine which headers are NOT included in the cache key (unkeyed).Test unkeyed header reflection. Add
X-Forwarded-Host: evil.comand check if the value appears in the response body (redirects, canonical links, CSP headers, JS src attributes, meta tags). Append
Preguntas frecuentes
¿Por qué son graves los fallos de caché?
Una sola entrada de caché envenenada puede llegar a muchos visitantes a la vez, así que el impacto puede ser grande.
¿Qué es el engaño de caché?
Es cuando una página privada se guarda en caché como si fuera un archivo estático, para que otras personas puedan leerla.
¿Se solapa con las pruebas de host header?
Sí. La skill incluye el envenenamiento del host header y remite a una skill aparte de host header para más detalle.
Detalles
Descripción original del autor
Hunting skill for cache poison vulnerabilities. Built from 10 public bug bounty reports including X-Forwarded-Host poisoning, X-HTTP-Method-Override / GCS cache, reflected→stored XSS via cache, classic Omer-Gil Web Cache Deception, Cloudflare Cache Deception Armor bypass, session-token cache deception, Akamai hop-by-hop smuggling → server-side edge poisoning, and Kettle's 2024 path-normalization WCD against Cloudflare/Fastly/GCP. Host/X-Forwarded-Host injection that reaches app logic (reset-link poisoning, routing SSRF, OAuth issuer) is owned by hunt-host-header; this skill owns the case where
Popularidad
- Estrellas en GitHub
- 5,4 mil
- Posición en el ranking
- #14898
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
apk-redteam-pipeline
5,4 milAyuda a tu agente a probar una app de Android en busca de debilidades de seguridad, desde encontrar el archivo APK y descompilarlo hasta buscar secretos expuestos.
bugcrowd-reporting
5,4 milAyuda a tu agente a escribir mejores informes de vulnerabilidades para Bugcrowd, eligiendo la categoría adecuada y respondiendo a las objeciones de fuera de alcance.
cloud-iam-deep
5,4 milAyuda a tu agente a comprobar a qué puede acceder una credencial de nube encontrada en AWS, Azure o Google Cloud, durante una prueba de seguridad autorizada.
enterprise-vpn-attack
5,4 milAyuda a tu agente a revisar equipos VPN y de acceso remoto de Cisco, Fortinet, Citrix y otros en busca de debilidades conocidas, durante una prueba autorizada.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.