Two-branch HTTP request smuggling detection tree showing conflicting framing probes and possible parser outcomes
Illustrative HTTP/1.1 framing probes. CL/TE labels describe front-end and back-end parsing; outcomes require confirmation. Timing and confirmation techniques ↗

01Issue

Overview

A reverse proxy and an application server must agree on where each HTTP request begins and ends. Request smuggling occurs when two components parse the same byte stream differently, so one sees a single request while another sees an extra or differently framed request. HTTP/1.1 message framing uses rules involving Content-Length and Transfer-Encoding; protocol translation and inconsistent handling can also create ambiguity. This is a parser disagreement, not simply the presence of both headers.

Common causes

  • The proxy and origin use different rules for message length or invalid framing.
  • An intermediary translates HTTP/2 or HTTP/3 to HTTP/1.1 and produces inconsistent framing.
  • Duplicate or malformed framing headers are normalized differently by different components.
  • A connection is reused after the components disagree about where a request ends.

References: RFC 9112: HTTP/1.1 message framing ↗PortSwigger: HTTP Request Smuggling ↗CWE-444: Inconsistent Interpretation of HTTP Requests ↗

02Examples

These illustrative HTTP/1.1 requests use a test endpoint at example.com. Replace the host and path for your environment. Preserve CRLF line endings and disable automatic Content-Length updates in your testing client. Run the timing probes on an isolated test connection: a timeout is a clue, not confirmation.

CL.CL — Content-Length baseline

POST / HTTP/1.1
Host: example.com
Content-Length: 3

abc

Consistent handling: One normal response and one complete request in the back-end logs. This is a baseline; it does not establish that every Content-Length combination is safe.

TE.TE — chunked baseline

POST / HTTP/1.1
Host: example.com
Transfer-Encoding: chunked

3
abc
0

Consistent handling: One normal response and one complete request. This valid chunked request alone does not test a TE.TE parsing discrepancy.

CL.TE — timing probe

POST / HTTP/1.1
Host: example.com
Content-Length: 4
Transfer-Encoding: chunked

1
A
X

Possible issue: A repeatable back-end timeout can indicate the front end used Content-Length while the back end waited for chunked data. Secure handling: The edge rejects ambiguous framing and closes the connection. Confirm the differing boundaries using proxy and back-end traces; a timeout alone has other causes.

TE.CL — timing probe

POST / HTTP/1.1
Host: example.com
Content-Length: 6
Transfer-Encoding: chunked

0

X

Possible issue: A repeatable back-end timeout can indicate the front end used chunked framing and the back end waited for additional Content-Length bytes. Secure handling: Reject ambiguous framing and close the connection. Confirm the parser disagreement in logs; an HTTP status or timeout alone does not prove it.

TE.TE — altered Transfer-Encoding

POST / HTTP/1.1
Host: example.com
Content-Length: 4
Transfer-Encoding: chunked
Transfer-Encoding: x

1
A
X

Possible issue: If the two servers interpret duplicate Transfer-Encoding fields differently, the request boundaries may differ. Secure handling: Invalid or unsupported transfer codings are rejected and the connection closed. A rejection or timeout does not identify which parser handled which header; inspect both hops and verify any cross-request effect.

Confirming desynchronization

After a timing clue, compare the proxy and back-end request boundaries and use a separate, identifiable follow-up request in an isolated environment. Confirmation requires evidence that the first request changed how the next request was parsed or associated, not merely a delayed or different response. HTTP/2 downgrade and CL.0 behavior depend on the deployed protocol path and require their own tests; these HTTP/1.1 examples do not cover every variant.

PortSwigger: timing and confirmation techniques · RFC 9112: message body length

03Impact

The request path must include components that interpret request boundaries differently. To affect a later request, the connection, queue, or backend routing must expose bytes left over by that disagreement. A single unusual response is not enough to establish this behavior.

Depending on architecture, request desynchronization can make requests affect the wrong user or backend operation, bypass front-end controls, or poison a connection’s request sequence. Impact requires confirmation of the exact parsing disagreement and the resulting cross-request or policy effect; a scanner timeout alone is not proof.

04Testing

Test cases

Use dedicated accounts A and B, synthetic markers and an isolated staging deployment. Map example routes to approved test endpoints. Run only cases supported by the deployed protocols and features.

Use a dedicated backend connection pool containing only test traffic; a separate client connection does not isolate a shared origin pool. Record the proxy chain, negotiated protocols and connection IDs. Disable retries, redirects and automatic framing correction, and reset the test pool between comparison arms. Keep credentials and unrelated inputs fixed.

Preserve exact HTTP/1.1 CRLF line endings and body bytes. Content-Length counts bytes. The complete 56-byte canary request is GET /canary/SMUG-01 HTTP/1.1\r\nHost: app.example.test\r\n\r\n. The CL.TE body is 0\r\n\r\n plus that request (61 bytes). The TE.CL body is 38\r\n plus that request plus \r\n0\r\n\r\n (67 bytes). Do not append a newline. These escaped forms define the exact bytes if the viewer changes blank lines.

For HTTP/2, the blocks show decoded frames: put pseudo-headers in HEADERS, the body in DATA, and END_STREAM on the final DATA frame. Do not send those blocks as HTTP/1.1 text.

After each arm, send this unchanged follow-up on the controlled connection:

GET /test/follow-01 HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
 

It returns FOLLOW-01 with Cache-Control: no-store. For HTTP/2, send the equivalent GET on a subsequent stream and verify actual backend reuse. The cache case instead uses /cache/SMUG-01 in both arms, followed by B’s clean verification request on a fresh connection.

Confirm canary execution, protected content, response misassociation or the stated cache effect. Status codes, timeouts, scanner labels and raw body text in logs do not prove that a hidden request executed.

Prevent CL.TE request-boundary disagreement

Applicability

Broadly applicable to HTTP/1.1 proxy-to-origin paths accepting bodies; backend reuse is required for follow-up response effects. Omit if HTTP/1.1 is absent throughout the chain.

Objective

Determine whether adding chunked framing causes bytes inside one length-delimited body to execute as a second request.

Security rule

The edge must reject conflicting framing or forward a single unambiguous message; body bytes must never become a hidden request.

Controlled setup

Use A’s nonpersistent /test/consume endpoint, which drains arbitrary text and returns CONSUMED-A. /canary/SMUG-01 returns inert SMUG-01 and Cache-Control: no-store. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Verify the baseline returns CONSUMED-A, records one origin request, and never invokes the canary.
  2. On a fresh isolated connection, replay with only the Transfer-Encoding header added. Send the fixed follow-up after the first request; inspect edge/origin traces and assigned responses.
  3. Repeat once after resetting the dedicated pool. As independent variants of this same case, add only Transfer-Encoding : chunked or a single field containing chunked, identity to the original baseline. Preserve the exact space before the colon in the first variant. These are malformed probes, not extra findings.

Baseline request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 61
 
0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Baseline result

CONSUMED-A; one outer origin request containing the complete body.

Test request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 61
Transfer-Encoding: chunked
 
0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Changed value: Transfer-Encoding: absent → chunked (one added field). For each normalization variant, absent → the single stated malformed field.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

Reject and close, or safely normalize without executing the canary; the follow-up remains independent.

Evidence confirming a finding

Origin traces show the canary executed although it appeared only inside the outer body, corroborated by SMUG-01 in the misassigned response or canary execution log.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

A client silently splitting the body, an automatic retry, an intentional body-processing service, or a canary requested separately. Timeouts do not classify CL.TE.

References

Prevent TE.CL request-boundary disagreement

Applicability

Broadly applicable where the edge accepts HTTP/1.1 chunked requests and forwards to an HTTP/1.1 origin. Omit if chunked transport is rejected consistently.

Objective

Check whether a short Content-Length makes the origin execute chunk data as a request.

Security rule

Every hop must agree on chunked framing or reject the conflicting message before reusing the connection.

Controlled setup

The consuming route decodes and drains chunks without interpreting their contents. The chunk payload is exactly the complete inert canary request. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Send the chunked baseline; verify the decoded body equals the inner request and only /test/consume executes.
  2. On a fresh isolated connection send the same bytes with only Content-Length added. Its value covers the hexadecimal chunk-size line and its CRLF, not the chunk data.
  3. Send the fixed follow-up, correlate origin requests and responses, and reset the pool before repeating.

Baseline request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Transfer-Encoding: chunked
 
38
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 
0
 
 

Baseline result

CONSUMED-A, one origin request, and no canary execution.

Test request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Transfer-Encoding: chunked
Content-Length: 4
 
38
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 
0
 
 

Changed value: Content-Length: absent → 4.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

Reject conflicting framing and close, or forward one safely normalized request; never execute chunk data.

Evidence confirming a finding

The origin parses the chunk data as GET /canary/SMUG-01 and executes it, with corroborating marker response or execution trace.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

Chunk metadata exposed by an echo endpoint, a chunk-size error, or response timeout without a second parsed request.

References

Enforce one interpretation of duplicate Content-Length

Applicability

Broadly applicable to HTTP/1.1 parser chains. A successful duplicate-equal baseline is required for this exact pair; if it is rejected, record that control and omit the conflicting pair.

Objective

Check whether changing one duplicate length lets a body become an additional request.

Security rule

Conflicting lengths must be rejected; accepted identical duplicates must be interpreted consistently.

Controlled setup

Use the consuming endpoint and a body consisting solely of the complete canary request. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Confirm equal duplicate lengths are accepted as one normal consuming request. If not, stop this case rather than treating an invalid baseline as successful.
  2. Change only the second Content-Length value to zero and replay on a fresh dedicated connection.
  3. Send the fixed follow-up; inspect both hops for different lengths and the canary execution. Reset the pool.

Baseline request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 56
Content-Length: 56
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Baseline result

CONSUMED-A; the entire canary text is consumed as data.

Test request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 56
Content-Length: 0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Changed value: Second Content-Length: 56 → 0; first length unchanged.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

Reject conflicting lengths and close the affected connection.

Evidence confirming a finding

An origin-parsed extra canary request or SMUG-01 delivered in the follow-up response, correlated with conflicting edge/origin length decisions.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

A tool merging duplicate headers, rejection by either hop, or duplicate-equal normalization without any boundary confusion.

References

Validate HTTP/2 Content-Length before downgrading

Applicability

Conditional, common: client HTTP/2 is translated to origin HTTP/1.1. Omit for end-to-end HTTP/2 without translation.

Objective

Check whether a mismatched HTTP/2 length becomes a zero-length HTTP/1.1 request with executable trailing bytes.

Security rule

The HTTP/2 declared length must match DATA length; translation must not create extra origin requests.

Controlled setup

Use one HTTP/2 stream with DATA equal to the complete canary request, END_STREAM after the final byte. Capture the generated HTTP/1.1 origin bytes. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Send the baseline with DATA and matching content-length; confirm CONSUMED-A and one origin request.
  2. Change only content-length to zero, retaining the exact DATA frames, frame boundaries and END_STREAM position.
  3. Send the fixed logical follow-up on another stream in the same controlled client connection; confirm actual backend reuse from trace IDs and reset afterward.

Baseline request

:method: POST
:scheme: https
:authority: app.example.test
:path: /test/consume
cookie: session=TEST_A
content-type: text/plain
content-length: 56
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Baseline result

CONSUMED-A; DATA is consumed as one body.

Test request

:method: POST
:scheme: https
:authority: app.example.test
:path: /test/consume
cookie: session=TEST_A
content-type: text/plain
content-length: 0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Changed value: content-length: 56 → 0.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

HTTP/2 examples below are decoded frame representations, not literal HTTP/1.1 wire requests. 

Expected secure result

Reject/reset the malformed stream and do not reuse a contaminated backend connection; no extra origin request.

Evidence confirming a finding

Captured downgrade output plus origin execution of the body-contained canary, or SMUG-01 assigned to the follow-up.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

A text-only tool that never sent HTTP/2, client auto-correction, a stream error, or independent backend connections.

References

Reject HTTP/2 Transfer-Encoding during translation

Applicability

Conditional: HTTP/2 frontend downgrades to HTTP/1.1. Omit otherwise.

Objective

Check whether an illegal HTTP/2 transfer-encoding field changes the origin body boundary.

Security rule

HTTP/2 transfer-encoding must not be forwarded as active HTTP/1.1 chunked framing. The permitted HTTP/2 te: trailers field is a different field. 

Controlled setup

Send the fixed body beginning with a zero chunk followed by the complete canary, inside one HTTP/2 DATA payload. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Confirm the baseline HTTP/2 request consumes all DATA as opaque text.
  2. Add only transfer-encoding: chunked using a frame-capable client that permits malformed fields. Preserve content-length and DATA.
  3. Send the fixed follow-up and inspect the downgrade and canary execution; reset the pool.

Baseline request

:method: POST
:scheme: https
:authority: app.example.test
:path: /test/consume
cookie: session=TEST_A
content-type: text/plain
content-length: 61
 
0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Baseline result

CONSUMED-A and exactly one origin request.

Test request

:method: POST
:scheme: https
:authority: app.example.test
:path: /test/consume
cookie: session=TEST_A
content-type: text/plain
content-length: 61
transfer-encoding: chunked
 
0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Changed value: transfer-encoding: absent → chunked.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

Reject the malformed stream; never emit conflicting HTTP/1.1 framing that permits canary execution.

Evidence confirming a finding

Origin trace shows the canary executed outside the declared outer request, supported by translated bytes and marker response/log.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

Client suppressing the forbidden field, legitimate te: trailers, or origin logging the body as text without executing it.

References

Prevent body reuse after an early response (CL.0)

Applicability

Conditional, common: redirects, static routes, error handlers or other endpoints can answer before consuming a body on a persistent HTTP/1.1 path. Omit where bodies are always drained or connections closed.

Objective

Check whether an early-response route leaves a complete declared body available for parsing as a request.

Security rule

A server must consume the declared body or close the connection before reuse.

Controlled setup

Map /test/early to one existing body-ignoring candidate in the isolated deployment. It returns EARLY-01 without changing state. Use /test/consume as the working control. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Send the consuming-route baseline and fixed follow-up; verify CONSUMED-A then FOLLOW-01. Separately verify the candidate route’s legitimate normal response.
  2. Change only the outer path to /test/early; retain the declared length and full canary body.
  3. Send the identical follow-up on the same dedicated connection; compare origin parsing and response assignment. Repeat each other candidate as a separate pair.

Baseline request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 56
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Baseline result

CONSUMED-A, FOLLOW-01, and no canary execution.

Test request

POST /test/early HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 56
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Changed value: Outer request target: /test/consume → /test/early.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

EARLY-01 followed by FOLLOW-01, or closure requiring a fresh connection; no parsing of body text as GET.

Evidence confirming a finding

The canary executes from leftover declared body bytes, or the follow-up receives SMUG-01, confirmed by origin connection traces.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

Legitimate early response followed by safe body draining, connection closure, redirects auto-followed by the client, or HEAD response semantics.

References

Preserve edge restrictions on a protected read

Applicability

Conditional impact check after a confirmed framing primitive: an edge-only read restriction exists. Omit when all routes have equivalent origin authorization or no such restriction exists.

Objective

Check whether one hidden GET bypasses an explicit front-end read restriction.

Security rule

A route forbidden to A at the edge must remain forbidden when reached through a smuggled request.

Controlled setup

Owner/admin B provisions synthetic /test/private001 returning PRIVATE-B-01; A must be forbidden by documented policy. /test/public-001 returns PUBLIC-A-01. Both paths have identical byte lengths. B verifies the private fixture through its legitimate administrative test route. No write, approval or administrative action is attempted. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Verify A’s ordinary public GET succeeds and direct private GET is denied; B confirms fixture ownership and PRIVATE-B-01.
  2. Using the already confirmed CL.TE carrier, establish a repeatable PUBLIC-A-01 response for the embedded public GET. This carrier control is intentionally malformed and supplements, rather than replaces, the legitimate endpoint baselines.
  3. Replay the exact carrier changing only its embedded request target to the private path. Keep A’s inner and outer cookies identical. Send the same follow-up and inspect the actual returned content.

Baseline request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 86
Transfer-Encoding: chunked
 
0
 
GET /test/public-001 HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
 
 

Baseline result

The prior legitimate GET works; the known carrier yields PUBLIC-A-01. No private bytes are exposed.

Test request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 86
Transfer-Encoding: chunked
 
0
 
GET /test/private001 HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
 
 

Changed value: Embedded GET target: /test/public-001 → /test/private001; same byte length, so outer Content-Length is unchanged.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

A receives no PRIVATE-B-01, even if the hidden request reaches the origin.

Evidence confirming a finding

PRIVATE-B-01 or protected synthetic fields delivered to A through the carrier, with origin and edge traces proving the edge restriction was bypassed. Origin invocation without disclosure proves routing bypass only; report that narrower result.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

Public/shared data, a private route intentionally open to A, origin response seen only by B, or different authorization cookies injected by the harness.

References

Prevent a smuggled response from contaminating a cache entry

Applicability

Conditional impact check: confirmed desynchronization and a shared response cache whose dedicated test namespace can be purged. Omit when shared caching is absent.

Objective

Check whether a canary response is cached under a different clean request’s cache key.

Security rule

A response generated for one request must not be cached or served as another request’s representation.

Controlled setup

Reserve disposable /cache/SMUG-01 returning CACHE-CLEAN-01 to test A and B; configure a separate inert /canary/SMUG-01 response SMUG-01 as cacheable only inside this isolated namespace. Purge before each arm. No production cache key is used. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Verify a clean GET /cache/SMUG-01 returns CACHE-CLEAN-01 for both test clients. Confirm its cache key and purge capability.
  2. Send the baseline carrier and the fixed cache follow-up on the controlled connection, then fetch the identical cache URL on B’s fresh connection. Record content and cache metadata; purge.
  3. Replay with only Transfer-Encoding added. Send the exact same cache follow-up and then B’s exact same clean fetch. Preserve cookies per client across both arms. Purge and restore no-store on the canary afterward.

Baseline request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 61
 
0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Baseline result

The normal consuming request works; B’s clean cache fetch returns CACHE-CLEAN-01.

Test request

POST /test/consume HTTP/1.1
Host: app.example.test
Cookie: session=TEST_A
Content-Type: text/plain
Content-Length: 61
Transfer-Encoding: chunked
 
0
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Changed value: Transfer-Encoding: absent → chunked; cache follow-up and B’s clean verification request remain byte-identical across arms.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

The cache entry stays CACHE-CLEAN-01; malformed input cannot supply its stored response.

Evidence confirming a finding

B receives SMUG-01 for /cache/SMUG-01 over a fresh connection, with cache storage/hit traces tying that marker to the wrong cache key. A single misassigned response without storage is desynchronization, not confirmed cache poisoning.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

A load balancer returning stale fixtures, origin route aliases, per-client cache keys, or direct response queue confusion without persistent caching.

References

Confirm browser connection reuse cannot expose a desynchronized response

Applicability

Conditional: CL.0 was confirmed on the browser-facing HTTP/1.1 service and a normal browser can send the candidate request cross-origin. Omit if HTTP/2 is mandatory or browser connection rules prevent reuse.

Objective

Check whether a browser’s subsequent clean read receives a body-contained canary response.

Security rule

A browser-facing connection must not reuse unread body bytes as the next request.

Controlled setup

Use an isolated browser profile for A and tester-owned https://probe.example.test. No real sessions, credentials or active scripts are present in target responses. Use the same two harmless routes as CL.0. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. From the controlled origin run a normal Fetch POST with text/plain body equal to the full canary request, then a clean fetch to /test/follow-01. Use credentials: omit and redirect: manual in both arms. The baseline path is /test/consume.
  2. Repeat after clearing the connection pool, changing only the POST URL path to /test/early. Browser-generated headers must match; discard/repeat pairs if relevant credentials or request headers differ. Do not spoof forbidden framing headers.
  3. Verify actual HTTP/1.1 connection reuse and response routing in browser network capture plus origin trace. A no-cors opaque response cannot prove disclosure; use trace-assisted marker association, without claiming script-readable access.

Baseline request

POST /test/consume HTTP/1.1
Host: app.example.test
Origin: https://probe.example.test
Content-Type: text/plain
Content-Length: 56
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Baseline result

The actual browser sends the POST and follow-up; the control delivers FOLLOW-01 without canary execution.

Test request

POST /test/early HTTP/1.1
Host: app.example.test
Origin: https://probe.example.test
Content-Type: text/plain
Content-Length: 56
 
GET /canary/SMUG-01 HTTP/1.1
Host: app.example.test
 
 

Changed value: Browser POST URL path: /test/consume → /test/early. Both arms omit credentials; identical POST body and follow-up URL.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

The HTTP blocks show the relevant browser-emitted request fields; capture and preserve the complete actual requests, including browser-managed headers. Use native Fetch to construct the requests; do not paste these into a raw client and claim browser reachability.

Expected secure result

The early body is consumed or its connection closed; the follow-up gets FOLLOW-01.

Evidence confirming a finding

Browser capture and origin traces associate SMUG-01 with the clean follow-up on a reused browser connection. Report whether the response is readable, opaque, or only trace-confirmed.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

A proxy-only reproduction, browser cache/service worker response, different negotiated protocols, or CORS errors without demonstrated response misassociation.

References

Keep edge read restrictions after an h2c upgrade

Applicability

Conditional: a deployed HTTP/1.1 edge forwards h2c upgrades and the architecture has an edge-restricted synthetic read. Omit when h2c is absent, rejected, or terminated and reauthorized at the edge.

Objective

Check whether a cleartext HTTP/2 upgrade permits a forbidden read through an uninspected tunnel.

Security rule

Upgraded traffic must preserve the original edge read policy or be denied.

Controlled setup

Owner B creates /test/private001 with PRIVATE-B-01; A can read /test/public-001 only. Configure an approved h2c test route and record whether upgrade is intended. No admin mutations are used. Use only synthetic test data. Apply the isolation and wire conventions above.

Steps

  1. Verify the normal public GET as A and the expected direct private denial.
  2. Send an allowed GET /test/public-001 upgrade handshake with Connection: Upgrade, HTTP2-Settings; Upgrade: h2c; and HTTP2-Settings: AAMAAABk (SETTINGS_MAX_CONCURRENT_STREAMS = 100). After 101, send the HTTP/2 client preface and SETTINGS, and receive the public response on stream 1. Then send the baseline decoded HEADERS below on stream 3 with END_STREAM. Require a successful public read; otherwise omit this pair.
  3. Reset the connection and repeat the identical public upgrade handshake, preface and SETTINGS. On stream 3 send the test HEADERS below, changing only :path to the private route. Stream IDs, END_STREAM, cookie and every handshake value stay the same across arms. Verify stream 3 content and the bypassed edge policy in traces.

Baseline request

:method: GET
:scheme: http
:authority: app.example.test
:path: /test/public-001
cookie: session=TEST_A

Baseline result

Normal public GET succeeds; the identical public upgrade handshake completes, and baseline stream 3 returns PUBLIC-A-01. A direct private read through the edge is denied. The blocks are decoded HTTP/2 HEADERS on the upgraded cleartext connection, not literal wire text.

Test request

:method: GET
:scheme: http
:authority: app.example.test
:path: /test/private001
cookie: session=TEST_A

Changed value: Post-upgrade stream 3 :path: /test/public-001 → /test/private001; upgrade handshake unchanged.

Values kept the same: Credentials, method, host/authority, headers, body, follow-up and transport route stay fixed except for the stated change.

Expected secure result

The private read stays denied, whether the upgrade is rejected or safely handled.

Evidence confirming a finding

A receives PRIVATE-B-01 over the accepted upgraded connection despite the direct edge denial; capture the stream mapping and bypassed rule. A 101 response alone is insufficient.

Evidence to preserve

Sanitized request/response pairs with exact framing; fixture ownership and marker; timestamps and correlation IDs; protocols, edge/origin connection IDs and parser traces; relevant before/after state. Redact credentials consistently.

Likely false positives

An explicitly allowed h2c tunnel with no promised edge restriction, a public fixture, or an upgrade response without private content.

References

Testing references: RFC 9112: HTTP/1.1 message framing ↗PortSwigger: HTTP Request Smuggling ↗CWE-444: Inconsistent Interpretation of HTTP Requests ↗

05Mitigation

Keep proxy and origin software current and configure them to reject ambiguous or malformed request framing. Ensure every hop applies consistent HTTP parsing rules. Avoid unsafe protocol downgrades; where translation is required, use a maintained proxy with strict validation. Close connections when framing is invalid and test the complete deployed path, not just the origin server.

Retest

Repeat the same low-impact checks through each supported protocol and edge route. Confirm ambiguous framing is rejected consistently, connections are not reused with leftover data, and normal requests still reach the intended backend.