A proxy chain is a parser chain. Each hop decides where a request starts and ends, and the next hop trusts those bytes. If Content-Length, Transfer-Encoding or duplicate headers make two hops disagree, an attacker can hide one request inside another.
HTTP/1.1 permits a body to be delimited by Content-Length or chunked Transfer-Encoding, but not ambiguously by both. Proxies and servers often normalize, reject or prefer different headers. When the front-end uses one boundary and the back-end uses another, bytes inside a body become a new request at the back-end, or a legitimate request is consumed as body. The result is a desynchronized connection that can bypass front-end authorization, poison the next response or reach internal routes.
- Map the front-end and back-end body rules
- Craft one raw request whose body hides a second request
- Confirm both parsers disagree
- Capture the flag
Client to CDN or load balancer
Where to look before you type a payload
The client sends headers that can be read in more than one way: both CL and TE, duplicate CL, or an obfuscated TE value.
The front-end accepts or rewrites the headers according to its parser and computes a body boundary.
The proxy forwards bytes to a reused back-end connection, preserving or rewriting the ambiguous framing.
The back-end applies a different rule, ends the body earlier or later, and parses the remaining bytes as a new request.
Open one hint at a time. The first two build the model; the last two point at the boundary.
Hint 1
Identify which side trusts Content-Length and which side trusts Transfer-Encoding or the last duplicate header.
Hint 2
The hidden request must sit inside the first request body as the front-end sees it, but after the body boundary as the back-end sees it.
Hint 3
The front-end trusts chunked framing and the back-end trusts Content-Length. Put the admin request inside the chunked body and set Content-Length to end just before it.
Hint 4 · near the answer
Look for GET /admin/secret in the back-end trace and confirm it is absent from the front-end trace.
Observe → Hypothesize → Test → Prove → Explain
This is the same loop a reviewer expects in a report. Your draft stays in this browser; nothing is submitted until you choose to export it.
Evidence log
Write for a reviewer who was not in the room. Every claim needs a request, response or state change behind it.
Preview the evidence report
# Lab evidence report — The Chunk That Ate the Admin - Family: Request Smuggling - Lab ID: web-smuggling-clte - Date: 2026-12-05 ## Workflow ### Observe - [ ] Open "The Chunk That Ate the Admin" and record the entry point, the HTTP method and the role you are given. - [ ] List every parameter, header, cookie and object identifier the normal flow exposes. - [ ] Save a baseline response: status, body shape, timing and the fields that change by user. ### Hypothesize - [ ] Name the server decision that protects the entry point, and the evidence it should use. - [ ] Use the clue as a constraint, not an answer: Front-end: Trusts Transfer-Encoding: chunked and hides the whole chunked body. Back-end: Trusts Content-Length and starts a new request when that length ends. Smuggle GET /admin/secret inside the first request body. - [ ] Predict the exact status, body or state change that would prove the decision is missing. ### Test - [ ] Start from the baseline and change one value: the Content-Length and Transfer-Encoding boundaries. - [ ] Keep the request replayable; vary encoding, method or identifier location only after the first result. - [ ] Capture the full request and response for the winning attempt, including the flag. ### Prove - [ ] Capture the flag and name the exact foreign object, role or state change it proves. - [ ] Repeat from a clean session and confirm the result is not cached or stale. - [ ] State impact precisely: what data or action did you actually obtain? ### Explain - [ ] State the root cause without naming the payload: which decision failed? - [ ] Name the control that prevents recurrence and the layer where it belongs. - [ ] Write one regression test that fails before the fix and passes after it. ## Evidence ### Target and baseline _Not recorded._ ### Hypothesis _Not recorded._ ### Winning request _Not recorded._ ### Proof _Not recorded._ ### Root cause _Not recorded._ ### Control and regression test _Not recorded._ ## Analyst conclusion The proof demonstrates the missing control above. The regression test should fail against the vulnerable behavior and pass after remediation.
The full request, the reasoning and the debrief unlock after a successful capture. That is deliberate: struggle first, then consolidate.
False positives to rule out
- Two ordinary pipelined requests reach the origin; the front-end also sees two requests, so no boundary was crossed.
- A request with both CL and TE is rejected with 400 by every hop; rejection is the secure behavior, not a finding.
- A timing difference appears only under load or with a single malformed request and cannot be reproduced with a differential probe.
Regression tests to name
- CL and TE together are rejected: The edge returns 400 and does not forward a body to the origin
- Duplicate CL is rejected: The request is rejected instead of choosing first or last
- Obfuscated TE is rejected: The request is rejected or canonicalized to one supported value
- Use one HTTP version and one parser chain where possible, and reject requests with both Content-Length and Transfer-Encoding.
- Normalize or reject duplicate Content-Length, duplicate Transfer-Encoding and obfuscated header names at the edge.
- Disable back-end connection reuse when a request is ambiguous, and make the origin reject malformed framing.
- Test the deployed proxy chain with CL.TE, TE.CL, TE.TE and duplicate-CL probes in CI, not only in a lab.
Request Smuggling ثغرة اختلاف تفسير بين hops: الواجهة الأمامية ترى طلبًا واحدًا، والخادم الخلفي يرى طلبين. السبب غالبًا Content-Length وTransfer-Encoding متعارضان أو رؤوس مكررة. الحل: رفض الطلبات الملتبسة، وتطبيع الرؤوس عند الحافة، وعدم إعادة استخدام اتصال خلفي بعد طلب مشبوه، واختبار السلسلة الفعلية بـCL.TE وTE.CL وTE.TE وContent-Length المكرر. لا تختبر المكتبة فقط؛ اختبر كل hop.