HTTP request smuggling and cache attacks — CL.TE/TE.CL/TE.TE desync, HTTP/2 downgrade and H2.CL/H2.TE smuggling, plus web cache poisoning and web cache deception. Detection via timing and differential responses, and escalation to request hijacking, credential theft, and mass cache poisoning. Use against front-end/back-end architectures, CDNs, and caching layers.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Web Request Smuggling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-web-request-smuggling)
---
name: web-request-smuggling
description: HTTP request smuggling and cache attacks — CL.TE/TE.CL/TE.TE desync, HTTP/2 downgrade and H2.CL/H2.TE smuggling, plus web cache poisoning and web cache deception. Detection via timing and differential responses, and escalation to request hijacking, credential theft, and mass cache poisoning. Use against front-end/back-end architectures, CDNs, and caching layers.
---
# HTTP Request Smuggling & Cache Attacks
Front-end and back-end servers can disagree about where one request ends and the next begins. That desync lets you prepend data to another user's request. Caches add a second class of bug: poisoning and deception.
## Trigger phrases
`request smuggling, http smuggling, cl.te, te.cl, desync, http/2 downgrade, cache poisoning, web cache deception, h2.cl`
## Part A — Request smuggling
### 1. Detect the desync (safely)
Front-end and back-end parse `Content-Length` (CL) vs `Transfer-Encoding: chunked` (TE) differently.
- **CL.TE / TE.CL timing probes:** send a request crafted so one server waits for more data → measurable delay. Use timing-based detection first (lower risk than exploit attempts).
- Use Burp's HTTP Request Smuggler extension or manual crafting with raw sockets (HTTP/1.1 keep-alive).
- **TE.TE:** obfuscate the `Transfer-Encoding` header so only one server honors it (`Transfer-Encoding : chunked`, `Transfer-Encoding: xchunked`, tab/space tricks, duplicate TE headers, `Transfer-Encoding\n: chunked`).
### 2. HTTP/2-specific
- **H2.CL / H2.TE:** HTTP/2 front-end downgrading to HTTP/1.1 back-end — inject CL/TE discrepancies via H2 request fields; CRLF injection in H2 header names/values; request-line/`:path` smuggling.
- **H2 request splitting / response queue poisoning.**
### 3. Exploit
- **Prepend to victim requests:** capture other users' requests (steal cookies/tokens), or force victims onto attacker-controlled responses.
- **Bypass front-end controls:** reach internal-only paths the front-end blocks.
- **Credential/session theft**, **cache poisoning via smuggled request**, **response-queue desync** (serve attacker content to the next client).
> Smuggling can disrupt production. Confirm with timing first, exploit only within RoE, and avoid high-volume tests on shared infrastructure.
## Part B — Web cache poisoning
Make the cache store a malicious response served to other users.
1. **Find unkeyed inputs:** headers/params that change the response but aren't part of the cache key (`X-Forwarded-Host`, `X-Forwarded-Scheme`, `X-Host`, custom headers, certain query params). Use a cache-buster param while testing.
2. **Inject a payload** via the unkeyed input that lands in the cached response (XSS via reflected `X-Forwarded-Host` in a link/script src, open redirect, or resource swap).
3. **Confirm it caches** (repeat without your header; the payload persists) and affects other users.
- Variants: **cache-key normalization** flaws, **fat GET** (body in GET), **parameter cloaking**, **cache deception keying**.
## Part C — Web cache deception
Trick the cache into storing a victim's private page as if it were a static asset.
- Request a sensitive page with an appended static-looking path/extension: `/account/profile.css`, `/account/profile/nonexistent.jpg`, path-parameter tricks (`;`, `%2f`, `//`). If the back-end serves the private page but the cache stores it by the static rule, the next requester (you) retrieves the victim's cached private data.
- Test delimiters and extensions the CDN caches by default; confirm private content is cached and retrievable unauthenticated.
## Depth & chaining
- Smuggling + cache poisoning = persistent, mass-impact XSS or redirect.
- Cache deception → session/PII theft of whoever's page got cached.
## Evidence
Capture the raw crafted request(s), the desync/timing proof or the poisoned cached response retrieved in a clean session, and the impact.