Retrieve, three flows
- Target
No single target. This is a method note. The examples come from vibe.co, kick.com and airbnb.com.
- Impact
-
Why it matters. Flow 1 only gives you what was stored, the type and the bytes, the bug is in phases 1 and 2. Flows 2 and 3 add a parser and sometimes a credential between you and the bucket, and that is a bug class of its own, reading what you were never handed a URL for.
- Steps
-
Phase 3 is not one build. Between the browser and the bucket there is always an edge, and behind the edge there is either the bucket itself, or something that talks to the bucket for it, a reverse proxy or a function.
flow 1 client <-> CDN <-> S3 the edge pulls the object itself flow 2 client <-> CDN <-> reverse proxy <-> S3 a proxy rewrites our path upstream flow 3 client <-> CDN <-> function <-> S3 code builds the S3 call, maybe signed ↳ secondary context, a second request built from our pathFlow Who talks to S3 What our path becomes Seen in class 1 · CDN → S3 the edge, CloudFront, Akamai, Cloudflare, with the bucket as origin the object key, one to one, the primary context only vibe.co ( cdn.apps.vibe.co), kick.com (files.kick.com, profile pictures and chat emotes, run 1), the bed2 · reverse proxy nginx, or any proxy, location /files/ { proxy_pass https://bucket.s3.amazonaws.com/; }a piece of a second URL the proxy assembles, after its own decoding and normalization airbnb.com, a0.muscache.com/pictures/...,server: envoyin front of S3, thex-amz-*headers and S3's XML 404 pass straight through3 · function Lambda@Edge, a CloudFront Function, a Cloudflare Worker, or an app route like /download?key=callingGetObjectan argument to code, a key, a path, sometimes a whole URL, and the call may carry the function's credential airbnb.com, a0.muscache.com/im/pictures/...,server: Akamai Image Manager, fetches the object and re-encodes it, nox-amz-*in the answerThe secondary context
In flow 1 our path is the request. In flows 2 and 3 it is an input to a request we never see, the one from the proxy or the function to S3. That second request is a new context with its own parser, and the guards that held on the first one do not travel with it. The questions to run once a flow 2 or 3 is found:
# Question Probe Verdict R1 Can the path climb out of the intended prefix to other keys /files/..%2fprivate/x,%2e%2e/, double encodingto run R2 Can it reach another bucket, path-style S3 puts the bucket in the first segment /files/..%2f..%2fother-bucket/keyto run R3 Can a ?or#survive into the upstream query%3flist-type=2(bucket listing),%3fversionId=,%3faclto run R4 If the function signs, can we steer what it signs response-content-type=text/html,response-content-dispositionon a signed GETto run R5 Does the proxy forward a header or a newline we control CRLF in the path, Host,X-Forwarded-*to run R6 Is the upstream host built from input, SSRF instead of S3 proxy_passwith a variable, a function that takes a URLto run R7 nginx alias and location quirks off-by-slash, /files../to run Which flow is it, from outside
- Flow 1, S3 headers reach the browser untouched,
Server: AmazonS3,x-amz-request-id,x-amz-version-id, and a missing key returns S3's XMLNoSuchKeyorAccessDenied - Flow 2, the edge or proxy signature shows up instead,
Server: nginx, thex-amz-*headers stripped or partial, and a missing key returns nginx's 404 page, or S3's XML wrapped by the proxy - Flow 3, the error is the app's, JSON or a framework page, the object URL carries a query or route the bucket would not understand, and the response may carry the function's own headers
- Compare a known key, a missing key and a malformed key on the same host, three error bodies tell you who answered. airbnb on 2026-10-17,
/pictures/...answersserver: envoywithx-amz-request-idandx-amz-version-id, a missing key is404 application/xmlfrom S3,/im/pictures/...answersserver: Akamai Image Managerwith nox-amz-*at all
Correction to session 06. airbnb is not a CDN straight on the bucket. The stored XSS lived in the gap between its two retrieve flows,/im/is the function that re-encodes and kills the script, the plain path is the proxy that hands the stored object back as stored. Dropping/im/was switching from flow 3 to flow 2 on the same key. - Flow 1, S3 headers reach the browser untouched,
- Evidence
-
The source gives no raw request for this card. The airbnb header readings are in the last item of Which flow is it. Run 1 shows a live flow 1 host, see card 06.
- Status
Open. The seven probes R1 to R7 have no verdict. Each one says to run.