HTTP request smuggling against API gateways — CL.TE, TE.CL, TE.TE, CL.0, and HTTP/2 downgrade (H2.CL/H2.TE) to bypass gateway auth/rate/WAF and reach the backend. Tier 2 (can disrupt other clients). Use when an API sits behind a gateway/CDN/WAF and front/back-end may parse requests differently.
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 Api Gateway Smuggling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-api-gateway-smuggling)
---
name: api-gateway-smuggling
description: HTTP request smuggling against API gateways — CL.TE, TE.CL, TE.TE, CL.0, and HTTP/2 downgrade (H2.CL/H2.TE) to bypass gateway auth/rate/WAF and reach the backend. Tier 2 (can disrupt other clients). Use when an API sits behind a gateway/CDN/WAF and front/back-end may parse requests differently.
---
# API Gateway HTTP Request Smuggling
Front-end and back-end disagree on where a request ends → smuggle a request past the gateway's auth/rate/WAF checks to the backend. Prove safely; this can affect other clients.
## Trigger phrases
`request smuggling, http smuggling, cl.te, te.cl, te.te, cl.0, h2 downgrade, gateway bypass, desync, http desync`
## Execution gate (Tier 2)
Ask (a) "authorized to run smuggling/desync in RoE (may affect co-located clients)?" → if yes, test with controlled, benign smuggled requests; if no, (b) "detection-only (timing probes, no poisoning)?" → run timing diffs and stop. Record in `./.zazy/scope.md`. Never poison shared caches/queues on production without explicit sign-off.
## Method
1. **Fingerprint** — identify front-end (CDN/gateway) vs backend; note HTTP/1.1 vs HTTP/2 edge. End-to-end HTTP/2 is protected; **H2→H1 downgrade** front-ends are the prime target.
2. **CL.TE** (front-end CL, back-end TE):
```http
POST / HTTP/1.1
Host: vulnerable
Content-Length: 13
Transfer-Encoding: chunked
0
SMUGGLED
```
3. **TE.CL** (front TE, back CL) — in Burp uncheck "Update Content-Length", end with `\r\n\r\n`:
```http
POST / HTTP/1.1
Host: vulnerable
Content-Length: 3
Transfer-Encoding: chunked
8
SMUGGLED
0
```
4. **TE.TE** — obfuscate TE so one server ignores it: `Transfer-Encoding: xchunked`, `Transfer-Encoding : chunked`, `Transfer-Encoding:\tchunked`, duplicate TE headers.
5. **CL.0 / H2.0 [NEW/RARE]** — backend ignores the body on endpoints that don't expect one; the body is parsed as the next request. Common on static/handler routes behind the gateway.
6. **Detect** — timing-based (CL.TE/TE.CL) then differential responses to confirm; for HTTP/2 sites use Burp Inspector downgrade. Automate with Burp **HTTP Request Smuggler** and Turbo Intruder.
## Why it matters for APIs
Smuggling past the gateway reaches the backend **without** its auth/rate/WAF checks → auth bypass, cache poisoning, capturing/hijacking other API clients' requests, and front-end control bypass.
## Modern / rare techniques
- **[NEW/RARE] CL.0** — bodyless-endpoint desync behind the gateway.
- **[NEW/RARE] H2.CL / H2.TE downgrade** — exploit HTTP/2→HTTP/1 rewriting at the edge.
- **[RARE] Request hijacking/capture** — smuggle a prefix that captures the next victim request (steal tokens/API keys).
## Escalation / chaining
Gateway bypass → reach `api-bfla` admin routes / `api-broken-auth` without edge controls; cache poisoning → mass impact; captured requests → credential/token theft. Chain with `api-content-type-confusion` for WAF parser bypass.
## Backend & tooling
Preferred Kali path (WSL+Kali / Kali-MCP / HexStrike). Burp HTTP Request Smuggler + Repeater/Turbo Intruder; disable auto Content-Length for manual TE.CL. See `zazy-orchestrator`.
## Verification (background, before reporting)
Confirm the desync with differential responses (your smuggled prefix affecting a subsequent request you control), reproduced; prefer self-targeted capture over anything touching other clients. True positives only; never assert on timing alone.
## Evidence
The smuggled request pair + the backend response proving desync (control bypassed / your prefix reflected in a follow-up), with the technique (CL.TE/TE.CL/CL.0/H2) named. Impact + remediation (HTTP/2 end-to-end, reject ambiguous CL+TE, normalize rewritten requests).