HTTP protocol-level bugs
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.
HTTP request smuggling
Section titled “HTTP request smuggling”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.
# Timing-based CL.TE/TE.CL triage across a host list (smuggler.py)python3 smuggler.py -u https://example.com/ < /dev/nullcat http/live.txt | python3 smuggler.pyHTTP/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:
-
Confirm the host actually serves HTTP/2 (
curl -sI --http2 https://example.com | head -1, or the ALPN line intlsx). -
In HTTP Request Smuggler, enable the HTTP/2 probes. It sends requests with a conflicting
Content-Lengthand with CR/LF inside header names and values, then watches for a desync. -
Confirm by hand with Burp Repeater in HTTP/2 mode, which lets you set an explicit
Content-Lengththe edge will forward to the HTTP/1.1 origin. -
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.
-
Pick hosts behind a proxy or CDN from
http/httpx.json(thecdnfield, or aVia/X-Cacheheader). -
In Burp, right-click the request, Extensions, HTTP Request Smuggler, “Smuggle probe”. It reports CL.TE and TE.CL candidates.
-
Confirm a candidate with a timing differential by hand, so you are certain it is real and not a network blip.
-
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.1Host: example.comContent-Type: application/x-www-form-urlencodedContent-Length: 6Transfer-Encoding: chunked
0
XThe 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.
Web cache poisoning and deception
Section titled “Web cache poisoning and deception”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.
# Does an unkeyed header change the response? Use a unique cache-buster pathcurl -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.1Host: example.comX-Forwarded-Host: attacker.example.com
HTTP/1.1 200 OKContent-Type: application/javascriptX-Cache: HITAge: 14CF-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.
CORS misconfiguration
Section titled “CORS misconfiguration”# 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.1Host: api.example.comOrigin: https://attacker.example.comCookie: session_token=test_user_session
HTTP/1.1 200 OKContent-Type: application/jsonAccess-Control-Allow-Origin: https://attacker.example.comAccess-Control-Allow-Credentials: trueVary: 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.
postMessage and window.opener
Section titled “postMessage and window.opener”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.
# message handlers and their origin checks in the downloaded bundlesgrep -REn "addEventListener\(['\"]message|\.origin" js/files/ | head -30A 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).
CRLF, verb tampering and method override
Section titled “CRLF, verb tampering and method override”# 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.
# 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.hdrRace conditions
Section titled “Race conditions”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.
-
Find a limited action in
js/endpoints.txt: redeem, claim, transfer, apply-code, vote. -
Send the request to Turbo Intruder, and load the single-packet-attack example script that ships with it.
-
Fire 20 to 50 copies at once against your own account or coupon.
-
Success is two confirmations where the app allows one: balance doubled, coupon applied twice.
Host header injection
Section titled “Host header injection”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.
# 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.
403 and 401 bypass
Section titled “403 and 401 bypass”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 |
# Header-based bypass on a blocked pathcurl -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.
Open local graph around this page
Linked from here
Recon AtlasFor authorized testing only. Your scope is the map edge.