← Request Smuggling lesson
Web InfrastructureRequest SmugglingAdvanced50 min+100 XP

Zero Chunk, Admin Request

The Northwind Edge Proxy forwards bytes to a back-end that parses the same request differently. Hide a GET /admin/secret request inside the first request body so the front-end accepts it and the back-end executes it.

“The front-end saw one request, the back-end saw two, and the second one was mine.”

RFC 9112: HTTP/1.1 message syntax and routingRFC 9110: HTTP SemanticsRFC 9113: HTTP/2CWE-444: Inconsistent Interpretation of HTTP RequestsPortSwigger Web Security Academy: HTTP request smuggling
The story
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.

Your objective
  • 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
Boundary under test

Client to CDN or load balancer

Field guide · request anatomy

Where to look before you type a payload

01Frame

The client sends headers that can be read in more than one way: both CL and TE, duplicate CL, or an obfuscated TE value.

02Normalize

The front-end accepts or rewrites the headers according to its parser and computes a body boundary.

03Forward

The proxy forwards bytes to a reused back-end connection, preserving or rewriting the ambiguous framing.

04Reinterpret

The back-end applies a different rule, ends the body earlier or later, and parses the remaining bytes as a new request.

Progressive hints

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 Content-Length and the back-end trusts chunked framing. Put 0 followed by a blank line and the admin request after it, then make the declared length cover those bytes.

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.

Guided workbench

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.

0/15steps complete
Observe0/3
Hypothesize0/3
Test0/3
Prove0/3
Explain0/3

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 — Zero Chunk, Admin Request

- Family: Request Smuggling
- Lab ID: web-smuggling-tecl
- Date: 2026-12-05

## Workflow

### Observe

- [ ] Open "Zero Chunk, Admin Request" 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 Content-Length and treats the chunk framing as body bytes. Back-end: Trusts Transfer-Encoding: chunked and stops at the zero chunk. 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.
Solution and debrief
Locked until you capture the flag.

The full request, the reasoning and the debrief unlock after a successful capture. That is deliberate: struggle first, then consolidate.

What a reviewer will ask

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
The defender's move
  • 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.
See the secure-code pattern and all 4 regression tests →
الخلاصة

Request Smuggling ثغرة اختلاف تفسير بين hops: الواجهة الأمامية ترى طلبًا واحدًا، والخادم الخلفي يرى طلبين. السبب غالبًا Content-Length وTransfer-Encoding متعارضان أو رؤوس مكررة. الحل: رفض الطلبات الملتبسة، وتطبيع الرؤوس عند الحافة، وعدم إعادة استخدام اتصال خلفي بعد طلب مشبوه، واختبار السلسلة الفعلية بـCL.TE وTE.CL وTE.TE وContent-Length المكرر. لا تختبر المكتبة فقط؛ اختبر كل hop.