cache-poisoning-smuggling

Detect and exploit web cache poisoning and HTTP request smuggling in proxied architectures.

1|Updated Aug 3, 2026
One-click install
npx skills add https://github.com/hanmujun/hanmujun-agent-public --skill cache-poisoning-smuggling-hanmujun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cache-poisoning-smuggling
Source: https://github.com/hanmujun/hanmujun-agent-public/tree/main/skill-library/cache-poisoning-smuggling
Command: npx skills add https://github.com/hanmujun/hanmujun-agent-public --skill cache-poisoning-smuggling-hanmujun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When a target sits behind a CDN, reverse proxy, or cache layer (Cloudflare, Varnish, Nginx), front-end and back-end servers often parse requests differently. This Skill provides a systematic methodology to find unkeyed cache inputs, detect CL.TE/TE.CL/TE.TE desynchronization, and turn those parsing discrepancies into cache poisoning, security control bypasses, or cross-user data theft during authorized CTF and penetration testing engagements. ## Core Features & Use Cases - Cache Poisoning Workflow: Identify cache behavior via X-Cache/Age/CF-Cache-Status headers, discover unkeyed inputs (X-Forwarded-Host, X-Original-URL), and poison shared caches to deliver stored XSS or trigger DoS. - Request Smuggling Detection: Concrete CL.TE, TE.CL, and TE.TE payloads with timing-based confirmation, plus advanced variants like HTTP/2 downgrade (H2.TE/H2.CL), h2c upgrade smuggling, CL.0, and response queue desync. - Cache Deception & URL Discrepancy: Exploit delimiter, encoding, and dot-segment normalization differences between cache and origin to steal authenticated responses. - Use Case: In a CTF challenge behind Cloudflare, you confirm X-Forwarded-Host is reflected but unkeyed, poison the cache with a malicious script URL, and every subsequent visitor loads your JavaScript. ## Quick Start Ask the AI to load the cache-poisoning-smuggling skill and test the target for CL.TE request smuggling and unkeyed cache headers.

Frequently Asked Questions about cache-poisoning-smuggling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How to find unkeyed headers for web cache poisoning?▼

Test headers like X-Forwarded-Host, X-Forwarded-Scheme, X-Original-URL, and X-Forwarded-For one at a time, checking whether each changes the response without changing the cache key. Confirm caching with X-Cache, Age, or CF-Cache-Status headers, then send the malicious header so the poisoned response is served to other users.

What is the difference between cache poisoning and cache deception?▼

Cache poisoning injects attacker-controlled content into a shared cached response so all visitors receive it. Cache deception tricks the cache into storing a victim's private dynamic response, for example by appending a .css or .js suffix, so the attacker can later retrieve the victim's data from the cache.

Does HTTP/2 protect against request smuggling?▼

HTTP/2's built-in frame length mechanism prevents classic smuggling, but protection disappears when the front-end downgrades HTTP/2 to HTTP/1.1 for the back-end. This enables H2.TE and H2.CL attacks where the front-end trusts frame lengths while the back-end parses Transfer-Encoding or Content-Length.

Why do request smuggling tests produce false positives?▼

Client-side pipelining can mimic desync behavior. Retest with connection reuse disabled, set Turbo Intruder requestsPerConnection=1 and pipeline=False, and disable Burp's Update Content-Length and line-ending normalization to confirm genuine front-end/back-end desynchronization.

What tools automate HTTP smuggling and cache poisoning detection?▼

Burp HTTP Request Smuggler detects H2.TE, H2.CL, CL.TE, and TE.CL variants. h2cSmuggler automates h2c upgrade smuggling, while smugglefuzz, t-reqs-http-fuzzer, toxicache, wcvs, and CacheDecepHound cover fuzzing, cache poisoning scans, and cache deception detection.