http-smuggling
Skill1 starsChanged 11 days agoMITView on GitHub
Hunt for HTTP request smuggling via Content-Length/Transfer-Encoding parsing discrepancies between front-end proxy and back-end server (CL.TE, TE.CL, TE.TE obfuscation), and HTTP/2-to-HTTP/1 downgrade smuggling (H2.CL, H2.TE). Use when the target is behind a reverse proxy/load balancer/CDN in front of an origin server. Keywords: request smuggling, CL.TE, TE.CL, TE.TE, chunked encoding, HTTP/2 downgrade, desync. Do NOT use for cache poisoning that doesn't involve a parsing desync — use cache-poisoning. Do NOT use for simple header injection — use crlf-injection.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- SubhiSec/claude-ai-cyber-security-skillstheir own version, first seen Oct 25, 2026
- 0xGhostCAT/claude-ai-cyber-security-skillstheir own version, first seen Jun 2, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- SubhiSec/claude-ai-cyber-security-skills★ 45same name
- 0xGhostCAT/claude-ai-cyber-security-skills★ 41same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-agent-reconSkill
- ai-supply-chainSkill
- exfiltration-via-aiSkill
- indirect-injectionSkill
- llm-fuzzingSkill
- prompt-injectionSkill
- rag-poisoningSkill
- tool-abuseSkill
- chain-analysisSkill
- chain-auth-to-takeoverSkill
- chain-customSkill
- chain-graph-walkSkill
- chain-idor-to-mass-dataSkill
- chain-info-to-exploitSkill
- chain-multi-appSkill
- chain-ssrf-to-cloudSkill
- chain-web-to-rceSkill
- chain-xss-to-account-takeoverSkill
- email-securitySkill
- engagement-flowSkill
- finding-disciplineSkill
- http-headers-securitySkill
- oob-interactionsSkill
- opsec-disciplineSkill
- research-firstSkill
- scope-disciplineSkill
- scope-importSkill
- session-contextSkill
- 2fa-bypassSkill
- api-abuseSkill
- auth-bypassSkill
- broken-access-controlSkill
- business-logicSkill
- cache-poisoningSkill
- clickjackingSkill
- corsSkill
- credential-testingSkill
- crlf-injectionSkill
- cryptographic-oracleSkill
- csrfSkill
- css-injectionSkill
- data-exfiltration-testSkill
- deserializationSkill
- email-injectionSkill
- file-uploadSkill
- fuzzingSkill
- graphqlSkill
- grpcSkill
- host-headerSkill
- idorSkill
- info-disclosureSkill
- jwtSkill
- lateral-movementSkill
- lfi-rfiSkill
- mass-assignmentSkill
- oauthSkill
- open-redirectSkill
- parameter-pollutionSkill
- password-resetSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 95
H2.CL / H2.TE downgrade smuggling: If the front-end speaks HTTP/2 to clients but downgrades to HTTP/1.1 to the origin, Content-Length …
- Distinctive: line 133
Overclaim trap: do not claim "session hijacking of other users" unless you actually captured another connection's data in your own test …
- Distinctive: line 140
Before declaring this finding complete, probe these escalation paths:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Signals
Via,X-Cache,Serverheaders indicating a reverse proxy/CDN (nginx, HAProxy, Varnish, Cloudflare, AWS ALB) in front of a different origin server (Apache, Tomcat, gunicorn, Node).- Mixed HTTP/1.1 and HTTP/2 support advertised (
Alt-Svc, ALPN h2). - Any load-balanced architecture with connection reuse/keep-alive between proxy and origin (most are, by default).
- Inconsistent behavior on malformed requests between first and subsequent responses on the same connection.
Prerequisites
- Raw socket control — Burp Repeater with "Update Content-Length" unchecked and raw tab, or
nc/custom Python socket script.curlalone cannot craft the conflicting headers needed (it normalizes them). - Ability to send requests with both
Content-LengthandTransfer-Encoding: chunkedset simultaneously with inconsistent/obfuscated values. - A second, unauthenticated "victim" probe request to detect smuggling via response queue desync (timing or content confusion), without needing a real victim.
Methodology
- Timing-based detection (safe, confirms a desync exists before weaponizing). Use Burp Suite's HTTP Request Smuggler extension to run its standard detection suite against the target, which sends TE.CL/CL.TE probes and measures response timing. Start there before hand-crafting raw sockets.
- CL.TE manual probe. Front-end uses
Content-Length, back-end usesTransfer-Encoding. Send a request where the declaredContent-Lengthis shorter than the body, with a smuggled request stashed after the "false" end — the back-end, followingTransfer-Encoding, treats the extra bytes as the start of the next request on the same connection:
Send via raw socket to control exact bytes (Burp Repeater raw tab, or):POST / HTTP/1.1 Host: target.com Content-Length: 13 Transfer-Encoding: chunked 0 SMUGGLEDprintf 'POST / HTTP/1.1\r\nHost: target.com\r\nContent-Length: 13\r\nTransfer-Encoding: chunked\r\n\r\n0\r\n\r\nSMUGGLED' | \ openssl s_client -connect target.com:443 -quiet -ign_eof - TE.CL manual probe. Front-end honors
Transfer-Encoding, back-end honorsContent-Length. Craft a chunked body whose declaredContent-Lengthonly covers part of it, leaving a smuggled request as "leftover body" that the back-end reattaches to the next request on the connection:POST / HTTP/1.1 Host: target.com Content-Length: 4 Transfer-Encoding: chunked 5c GPOST / HTTP/1.1 Content-Type: application/x-www-form-urlencoded Content-Length: 15 x=1 0 - TE.TE (obfuscation). Both front-end and back-end nominally support
Transfer-Encoding, but one of them can be tricked into ignoring it via header obfuscation, downgrading the request to CL.TE or TE.CL behavior from only one side. Try each against the target and watch for a desync:
Pair each variant with a CL.TE-style body and a TE.CL-style body separately to see which interpretation wins at which hop.Transfer-Encoding: chunked Transfer-Encoding: xchunked Transfer-Encoding : chunked (space before colon) Transfer-Encoding: chunked Transfer-Encoding: identity X: X Transfer-Encoding: chunked Transfer-Encoding:[tab]chunked Transfer-Encoding: chunked, identity - H2.CL / H2.TE downgrade smuggling. If the front-end speaks HTTP/2 to clients but downgrades to HTTP/1.1 to the origin,
Content-Lengthmismatches against the HTTP/2 framed body length (HTTP/2 has noTransfer-Encoding) can desync the downgrade:# use h2csmuggler or Burp's HTTP/2 support in Repeater to set Content-Length # independently from the actual :path/body length over h2 h2csmuggler.py -x https://target.com --test - Confirm impact via response queue poisoning. Send the smuggling probe request immediately followed by a normal, distinguishable request (e.g. requesting
/robots.txt) on the same connection. If the normal request's response instead contains data belonging to the smuggled request (or an entirely different client's request lands misrouted on your connection in a race), that's a working confirmation:# Burp Repeater: send group in sequence on a single connection, inspect # response boundaries for the "robots.txt" request receiving unexpected content - Escalate only within scope/gate: capturing another real user's request (classic smuggling impact: session hijacking) requires sending many requests in a race window against shared infrastructure — this is destructive/impactful to other users. Treat as a human-gated action; demonstrate with your own second test connection/account first (self-poisoning PoC) before any multi-victim attempt.
Tooling
- Burp Suite extension HTTP Request Smuggler (automated CL.TE/TE.CL/TE.TE detection + exploit generation).
- Burp Repeater raw request tab with "Update Content-Length" disabled — mandatory for hand-crafted desync payloads.
h2csmugglerfor HTTP/2 downgrade testing.- Raw
openssl s_client/ncfor scripted socket-level control when Burp isn't available.
Root Causes
- Front-end and back-end servers (or library versions) disagree on how to parse a request carrying both
Content-LengthandTransfer-Encoding, violating RFC 7230's precedence rule (Transfer-Encoding should always win, but many implementations get this wrong or allow header obfuscation to flip it). - Connection reuse (keep-alive) between proxy and origin without per-request boundary re-validation.
- HTTP/2-to-HTTP/1.1 downgrade that maps h2 pseudo-headers/framing to h1 headers without strict length validation.
Validation Gate (minimum proof)
- Raw request/response capture (exact bytes, not curl's normalized form) of the smuggling payload AND the follow-up probe request whose response was contaminated/misrouted — this pairing is the proof, a single odd response is not.
- Timing-based detection results alone (Burp's automated suite) are Inferred, not Demonstrated — escalate to a content-confirmation PoC before claiming Demonstrated per project anti-fabrication rules.
- Note exact front-end/back-end server identification (
Serverheader, error page fingerprints) to explain the mechanism in the report.
Gotchas
- Minimum proof: a timing anomaly is a lead, not a finding — you need the second request's response to visibly contain smuggled content or be misrouted.
- Common N/A: HTTP/1.0-only back-ends, or infrastructure that normalizes/strips duplicate
Transfer-Encoding/Content-Lengthat the very first hop (many modern CDNs patched this) — confirm via the timing probe before investing in raw-socket crafting. - Overclaim trap: do not claim "session hijacking of other users" unless you actually captured another connection's data in your own test window — describe it as a theoretical impact class otherwise, labeled Unproven.
curlcannot send genuinely conflictingContent-Length/Transfer-Encodingheaders — it will silently "fix" your request. Any smuggling test attempted purely with curl that "shows nothing" is inconclusive, not a clean negative.- Respect the project's 120s/3-retry budget — raw socket desync testing can hang connections; set explicit timeouts on
nc/openssl s_client. - This is inherently a shared-infrastructure risk — confirm scope explicitly covers the proxy/load balancer layer, not just the application, before probing.
Chain Anchors
Before declaring this finding complete, probe these escalation paths:
- Request queue poisoning — Can the smuggled request poison the next legitimate user's request/response pairing?
- Auth/ACL bypass — Can smuggling bypass a front-end security control (WAF, auth proxy) that the back-end alone wouldn't allow?
- Cache poisoning chain — Can the smuggled payload end up cached and served to other users?
- Response capture for data theft — Can smuggling be used to capture another user's response (session tokens, PII) in yours?
A finding without chain anchor results is INCOMPLETE. Record each anchor as tested/not-applicable/blocked with the reason.
Chains & Compositions
- Smuggled request reflected into another user's response → session token theft, chain with session-management.
- Smuggling used to poison a shared cache entry → chain with cache-poisoning (same desync, different payoff).
- Smuggled request bypassing front-end auth/WAF checks (front-end sees one request, back-end processes two) → chain into broken-access-control for endpoints normally blocked at the edge.
- Host header manipulation via the smuggled request → chain with host-header.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

