The chain in time
- Target
No target. This is a method note. The chain is the vibe.co uploader.
- Impact
- Why three phases and not one feature. Each phase has a different owner, the app, the bucket, the edge, and each owner decides something the others cannot see. Phase 1 is the only one with code the app wrote. Phase 2 and 3 are configuration on components the app only points at. A review that stops at the app's code reviews one phase of three.
- Steps
-
Every handler below sits in one of three phases. Read the step first, then the code that implements it, then ask which component enforces the guard and which component the guard is supposed to protect. When the answer is two different names, you have the shape of a finding.
The chain in time, in three phases. Solid arrows are requests, dashed are responses, the bars are who is busy. Phase 1, authorization, steps 1 to 4, is the only phase the app sees. Phase 2, upload, steps 5 to 9, is between the browser and the bucket. Phase 3, retrieve, steps 10 to 13, is between the victim and the edge. Steps 14 and 15 are the session 02 steal, after the chain. The code review below is grouped by phase. The three phases
Phase Steps Who talks to whom What is decided here The question to ask Phase 1
Authorization1 to 4 browser to the app, the app to STS whether this user may upload, the object key, the extension, and what the signature covers which inputs of the later phases are locked here, and which are left to whoever holds the URL Phase 2
Upload5 to 9 browser to the bucket, the app absent the stored bytes and the stored metadata, Content-Typeincluded, written verbatimwhat the bucket accepts that phase 1 never saw, the type, the size, the metadata, a second PUT Phase 3
Retrieve10 to 13 victim to the edge, the edge to the bucket the served type and headers, taken from the stored metadata with nothing added who else may read the bucket, and whether the edge adds a header or trusts what it pulls After
The steal14, 15 script on the CDN origin to the auth plane whether the CDN origin may read the session with credentials not an upload question, the session 02 half, reviewed at the end Five participants, two hosts
Participant On vibe.co On the bed Phase, steps Code that implements it Browser attacker's, then the victim's Burp for 1 to 9, Chrome signed in for 10 to 15 1, 2, 3 and after: 1, 5, 7, 10, 14 static/index.html, the panel JSApp server clear-platform.vibe.covibe.thezodd.com, Flask behind Caddy behind Cloudflare1: steps 2, 3, 4 app.pylines 60 to 101S3 bucket the presigned PUT target, name unknown vibecdn.thezodd.com, us-east-1, versioned2 and 3: steps 6, 8, 9, 12 aws_04_cloudflare_origin.py, CORS and policyCDN edge cdn.apps.vibe.co, CloudFrontvibecdn.thezodd.com, Cloudflare orange cloud3: steps 11, 13 no code, one CNAME and one SSL rule Auth plane clerk.vibe.co,/v1/clientsame Flask app, /v1/clientand/loginafter: step 15 app.pylines 104 to 158On the bed the app and the auth plane share one host and one cookie. On vibe they are two hosts,clear-platform.vibe.coandclerk.vibe.co, and the cookie that matters is Clerk's__clienton.vibe.co. The CORS regex in_corsstands in for Clerk's allowed-origins list, and the finding transfers because both answer the same question, which origins may read the session with credentials. - Evidence
The source gives no separate evidence. The chain diagram is in Steps.
- Status
Read. The source gives no status for this part. It sets up the code review below.