agentleFS
fennihfennih/hunterkit/request-smuggling/SKILL.md

request-smuggling

Skill0 starsChanged 6 days agoMITView on GitHub

Focused hunt for HTTP request smuggling (CL.TE, TE.CL, TE.TE) and client-side desyncs: safe differential detection with minimal request pairs, no sustained DoS. Use when the focus is smuggling/desync on a target with a front-end proxy. Requires careful, low-volume testing — this skill emphasizes the discipline.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No evidence of a proxy layer (headers like Via, X-Forwarded-For, CDN Server values, different headers front/back) — ask/infer first

    line 15
  2. Distinctive:

    Prefer POST endpoints where the back-end echoes the body.

    line 35
  3. Very specific:

    Use curl with two URLs in one invocation (connection reuse) or a tiny python script for precision.

    line 55
  4. Distinctive:

    If the desync comes from browser connection reuse only (client-side), label it distinctly — impact and remediation differ.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

HTTP Request Smuggling / Desync

When to use

  • "Hunt request smuggling on X", "test the proxy chain of X"
  • Target has: front-end (LB/CDN/proxy) + back-end with potentially differing body parsing; HTTP/1.1 with keep-alive, or HTTP/2 with downgrade

When NOT to use

  • No evidence of a proxy layer (headers like Via, X-Forwarded-For, CDN Server values, different headers front/back) — ask/infer first
  • Programs that explicitly forbid smuggling (high impact on shared infra — check policy)

Inputs

  • Target + one or two vulnerable-looking endpoints (POST with body reflection preferred)
  • Confirmation that you can afford 2 requests per candidate vector (plus baselines)

Rationalizations to reject

  • "405 or timeout = vulnerable" — ambiguous responses are noise. A finding needs a differential: the poisoned-next-request proof (second request's response contains evidence from the first request's body).
  • "The error is different" — front/back errors differ for many reasons. Reproduce the differential cleanly twice.
  • "More requests will clarify" — no. Smuggling probes poison other users' connections. Minimum volume, maximum analysis.

Methodology

1. Fingerprint front/back

Headers from responses: Server, Via, CDN (Cloudflare/Fastly/Akamai signatures), X-Served-By, differing header case/order between endpoints (suggests two stacks). HTTP/2 support (curl --http2 -I). Keep-alive reuse confirmed via curl -v two requests on one connection.

2. Vector selection (safe-first)

Prefer POST endpoints where the back-end echoes the body. Vectors:

  • CL.TE: front uses Content-Length, back uses Transfer-Encoding
  • TE.CL: reverse
  • TE.TE (obfuscated): duplicate/conflicting TE headers (e.g. Transfer-Encoding: xchunked, chunked with odd casing/spaces)
  • H2.CL / H2.TE: HTTP/2 front-end downgrade smuggling (post-HTTP/2 desync)
  • Client-side desync: server responds without Content-Length and no chunked → browser connection reuse poison (report carefully; verify with a local two-tab simulation before claiming victim impact)

3. Detection pairs

Standard proof shape (example CL.TE):

POST /endpoint HTTP/1.1
Content-Length: 6
Transfer-Encoding: chunked

0

G

Followed immediately by a second, normal request: if the back-end treats the trailing G as the start of the next request → differential (e.g. GPOST /endpoint 404/405 in the second response, or the smuggled prefix visible in an error).

  • One candidate vector = 1 baseline + 1 probe pair. If ambiguous, at most one repeat. Then move on.
  • Use curl with two URLs in one invocation (connection reuse) or a tiny python script for precision.

4. Escalation (only after clean differential)

  • Queue poisoning to capture another user's request (report captured headers, mask cookies in the report).
  • Method override/routing bypass: smuggled prefix reaching internal-only paths.
  • Cache poisoning via smuggling (if CDN cache in front) — one proof request.

Reporting

findings/smuggling-<date>.md: vector, exact pair of requests, the two responses forming the differential, impact. Severity: cross-user capture = high; internal routing bypass = high; pure desync = medium.

Focus discipline

If the desync comes from browser connection reuse only (client-side), label it distinctly — impact and remediation differ.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.