Skip to content
TECHNIQUE 04/13OP PROTOCOL

HTTP protocol-level bugs

8 min readRecon Atlas

These bugs live in how servers, proxies and caches disagree about a request, not in a single parameter. Recon points you at them through the infrastructure it mapped: CDNs, caches and load balancers in http/httpx.json, and the cross-origin machinery in your JS.

Signalhttp/httpx.json
NoiseHeavy active
Severityhigh to critical
ConfirmA timing or differential probe shows the front end and back end disagree on where one request ends. Burp's HTTP Request Smuggler automates the detection safely.

Smuggling happens when a front-end proxy and a back-end server parse Content-Length and Transfer-Encoding differently. Part of one request is then treated as the start of the next. It needs a chain of servers, which is exactly what a CDN-fronted host in your recon is. One origin process that both terminates TLS and builds the response has only one parser. There is no desync to find. Spend that host on CORS and races instead.

CL.TE means the front end trusts Content-Length and the back end trusts Transfer-Encoding. TE.CL is the swap. An HTTP/2 edge that rewrites the request to HTTP/1.1 before the origin can desync on the same two headers. Those cases are called H2.CL and H2.TE.

The safe way to find it is Burp’s HTTP Request Smuggler extension. It sends timing-based probes that detect the desync without actually smuggling a victim request. Outside Burp, smuggler.py runs the same CL.TE and TE.CL timing checks from the command line. It is handy for triaging a long host list before you open each candidate in Burp.

Terminal window
# Timing-based CL.TE/TE.CL triage across a host list (smuggler.py)
python3 smuggler.py -u https://example.com/ < /dev/null
cat http/live.txt | python3 smuggler.py

HTTP/2 downgrades need their own probe. When an edge speaks HTTP/2 to you but HTTP/1.1 to the origin, it rewrites the request. A smuggled header can survive the rewrite (H2.CL and H2.TE). Test it by sending HTTP/2 requests with injected Content-Length/Transfer-Encoding values and header names containing CR/LF, which an HTTP/1.1-only tool cannot express:

  1. Confirm the host actually serves HTTP/2 (curl -sI --http2 https://example.com | head -1, or the ALPN line in tlsx).

  2. In HTTP Request Smuggler, enable the HTTP/2 probes. It sends requests with a conflicting Content-Length and with CR/LF inside header names and values, then watches for a desync.

  3. Confirm by hand with Burp Repeater in HTTP/2 mode, which lets you set an explicit Content-Length the edge will forward to the HTTP/1.1 origin.

  4. Prove it against your own follow-up request only, never by capturing another user’s.

CF-RAY, X-Amz-Cf-Id, and a second Via header are the same tell as the cdn field.

  1. Pick hosts behind a proxy or CDN from http/httpx.json (the cdn field, or a Via/X-Cache header).

  2. In Burp, right-click the request, Extensions, HTTP Request Smuggler, “Smuggle probe”. It reports CL.TE and TE.CL candidates.

  3. Confirm a candidate with a timing differential by hand, so you are certain it is real and not a network blip.

  4. Prove impact against your own request only: capture your own next request, or hit an internal path, without affecting other users.

A CL.TE timing probe leaves one byte for the next request on the same socket.

POST /search HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 6
Transfer-Encoding: chunked
0
X

The front end forwarded a body of length 6. The back end treated the chunk 0 as the end of the request and left X on the socket. A back end that closes the connection after every request never hands that byte to anyone else. A keep-alive pool that is not shared across clients blocks the same attack. The delay only says the parsers disagreed.

Signalhttp/httpx.json
NoiseLight active
SeverityHigh
ConfirmAn unkeyed input you control changes a cached response that other requests then receive, shown on a cache-buster URL you own.

A cache stores a response under a key, usually the path and some headers. If an input that is not part of the key still changes the response, you can poison what other users get. Hosts with X-Cache, Age or CF-Cache-Status headers in your recon are candidates. No cache header means there is nothing to poison.

Terminal window
# Does an unkeyed header change the response? Use a unique cache-buster path
curl -s -i "https://example.com/?cb=UNIQUE1" -H 'X-Forwarded-Host: attacker.example.io' | grep -iE '^(x-cache|age|cf-cache-status):|attacker.example.io'

If attacker.example.io appears reflected and the response is then served from cache to a plain request for the same path, that is cache poisoning. Cache deception is the mirror image: you trick the cache into storing a private page (/account/profile/nonexistent.css) that an attacker can then read. Test both on a path only you request, using a unique buster, so you never poison a real page.

A hit on a buster you chose looks like this.

GET /static/bundle.js?cb=check123 HTTP/1.1
Host: example.com
X-Forwarded-Host: attacker.example.com
HTTP/1.1 200 OK
Content-Type: application/javascript
X-Cache: HIT
Age: 14
CF-Cache-Status: HIT
var baseUri = "https://attacker.example.com/api";

The cache key ignored X-Forwarded-Host, and the stored script points at the attacker host. ?cb=check123 is a key only you requested. The record does not show you can poison a URL other people fetch.

Param Miner (Burp BApp) finds unkeyed inputs automatically. These bugs reward patience; the win is usually one obscure header the cache ignores.

Signalhttp/httpx.json, js/endpoints.txt
NoiseLight active
Severitylow to high
ConfirmThe server reflects an attacker origin in Access-Control-Allow-Origin with Allow-Credentials true, letting a cross-site page read authenticated data.
Terminal window
# Does the server reflect an arbitrary Origin and allow credentials?
curl -s -i "https://api.example.com/account" -H 'Origin: https://attacker.example.io' | grep -i 'access-control-allow-'

The dangerous combination is Access-Control-Allow-Origin: https://attacker.example.io together with Access-Control-Allow-Credentials: true, on an endpoint that returns user data. That lets any site read a logged-in victim’s data. Test the common flaws:

Flaw Origin you send Bug if reflected
Origin reflection https://attacker.example.io ACAO echoes it with credentials true
Null origin null ACAO is null, reachable from a sandboxed iframe
Subdomain wildcard https://attacker.example.com Prefix or suffix match accepts your lookalike
Pre-domain https://example.com.attacker.io Weak regex accepts it
GET /api/v2/private/account HTTP/1.1
Host: api.example.com
Origin: https://attacker.example.com
Cookie: session_token=test_user_session
HTTP/1.1 200 OK
Content-Type: application/json
Access-Control-Allow-Origin: https://attacker.example.com
Access-Control-Allow-Credentials: true
Vary: Origin
{"id": 4021, "email": "user@example.com", "balance": 1500.00}

The echoed origin, credentials true, and a body that contains the user’s email are the bug. The same headers on a public catalog are not, because there is no session to steal.

A reflected origin with Allow-Credentials: false is usually low or informative, because there is no session to steal. Confirm the endpoint returns something sensitive before you rate it.

Signaljs/files/
NoisePassive
Severitymedium to high
ConfirmA message handler that trusts any origin processes attacker data into a sink, shown with a proof page you host.

Your downloaded JS holds the client-side cross-origin bugs. Search for addEventListener('message' handlers that never check event.origin, then trace event.data into a sink.

Terminal window
# message handlers and their origin checks in the downloaded bundles
grep -REn "addEventListener\(['\"]message|\.origin" js/files/ | head -30

A handler that writes event.data into innerHTML or passes it to eval without an origin check is DOM XSS reachable from any page. A check written as event.origin.includes('example.com') still accepts https://example.com.attacker.example.io. Separately, a link with target="_blank" and no rel="noopener" lets the opened page rewrite window.opener.location, a reverse tabnabbing issue (usually low).

Signalparams/gf/redirect.txt, urls/clean.txt
NoiseLight active
SeverityMedium
ConfirmAn injected CR LF adds a header or splits the response, or a changed method reaches a function the app did not mean to expose.
Terminal window
# CRLF: does an encoded newline inject a header the server echoes back?
curl -s -i "https://example.com/redirect?url=%0d%0aSet-Cookie:%20crlf=1" | grep -i 'set-cookie: crlf=1'

Verb tampering: when GET /admin is blocked, try POST, PUT, HEAD, or an arbitrary verb, plus the X-HTTP-Method-Override: PUT header. Some access control sits only on specific methods, so a different verb slips past. If that header is ignored, try X-Method-Override and X-HTTP-Method.

Terminal window
# Does a method override reach a blocked action?
curl -s -i -X POST https://example.com/admin/delete -H 'X-HTTP-Method-Override: DELETE' -H @acct-c.hdr
Signaljs/endpoints.txt
NoiseHeavy active
Severitymedium to high
ConfirmTwo or more parallel requests both succeed where one should, for example a coupon redeemed twice, shown on your own account.

Any endpoint that checks a limit and then acts on it can be raced. Examples are redeeming a one-time coupon, withdrawing a balance, accepting an invite and voting once. The window is tiny, so ordinary parallel requests miss it. Burp’s Turbo Intruder has a “single-packet attack” that sends many requests in one TCP packet so they arrive together.

  1. Find a limited action in js/endpoints.txt: redeem, claim, transfer, apply-code, vote.

  2. Send the request to Turbo Intruder, and load the single-packet-attack example script that ships with it.

  3. Fire 20 to 50 copies at once against your own account or coupon.

  4. Success is two confirmations where the app allows one: balance doubled, coupon applied twice.

Signalhttp/httpx.json, password reset and absolute-URL features
NoiseLight active
Severitylow to high
ConfirmA changed Host or X-Forwarded-Host reaches a sink: a poisoned reset link, a cache key, or an SSRF to an internal vhost.

Many apps build absolute URLs from the incoming Host header, or trust X-Forwarded-Host behind a proxy. Change it and see where it lands. The highest-value sink is password reset. If the reset email links to the host you supplied, a victim’s reset link points at your server and captures the token.

Terminal window
# Does the app reflect or act on an attacker-controlled Host?
curl -s -i "https://example.com/" -H 'Host: attacker.example.io' | grep -i 'attacker.example.io'
curl -s -i "https://example.com/api/password-reset" -X POST -H 'X-Forwarded-Host: attacker.example.io' -d 'email=me@test.tld'

A reset request that sends a link to attacker.example.io is reportable. So are a reflected absolute URL and an internal vhost reached through a routing header. Confirm the header actually influences behaviour, because a reflected Host that goes nowhere is informative at best.

Signalcontent/findings.md, any 403 or 401 from phases 6 and 11
NoiseLight active
Severitymedium to high
ConfirmA path that returned 403 or 401 returns 200 and the protected content after a mutation.

Recon flags guarded paths in phase 6 and phase 11 but leaves the bypass to here. When a path is blocked at the proxy rather than the app, small mutations often slip past. The proxy and the app normalise the request differently. Work the checklist against one blocked path:

Technique Examples
Path case and encoding /Admin, /ADMIN, /%61dmin, /admin%2f, /admin/.
Trailing characters /admin/, /admin..;/, /admin#, /admin?, /admin%20
Routing headers X-Original-URL: /admin, X-Rewrite-URL: /admin, X-Forwarded-For: 127.0.0.1
Method change POST, HEAD, OPTIONS, X-HTTP-Method-Override: GET
Source IP spoofing X-Forwarded-For, X-Real-IP, X-Client-IP set to 127.0.0.1 or an internal range
Terminal window
# Header-based bypass on a blocked path
curl -s -o /dev/null -w "X-Original-URL: %{http_code}\n" -H "X-Original-URL: /admin" https://example.com/
curl -s -o /dev/null -w "X-Rewrite-URL: %{http_code}\n" -H "X-Rewrite-URL: /admin" https://example.com/

The nomore403 and byp4xx tools run the whole list for you. A different status is only a lead. Confirm the response actually contains the protected content before you report, because a 200 with an empty body is not a bypass.

Next, test GraphQL, REST, gRPC and token-based APIs in API and service testing.

Connections5 backlinks · 3 outgoingFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Recon AtlasFor authorized testing only. Your scope is the map edge.