Skip to content
Back to skills

Api Gateway Smuggling

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 17, 2026
securityapibackend

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill api-gateway-smuggling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Gateway Smuggling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Gateway Smuggling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-api-gateway-smuggling/badge)](https://www.skillsdirectory.com/skills/anandjogawade-api-gateway-smuggling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.