We opened on the non-technical half, what actually turns a mid-level hacker into a good one, then spent the session doing the thing itself: a live threat-modeling pass on the vibe.co sign-in redirect. We tracked one marker value from the URL, through the Clerk OAuth round-trip, to the redirect that lands you back, and proved the target is held in server-side session and replayed in a Location header. The lesson to keep: name the sink by watching the value flow end to end before you grep a single JS file.
Summary of findings
From the takeaways, section 06Final verdict, CRLF failed and the open redirect is real but not reachable from the sign-in link, so neither is a standalone finding
Asset vibe.co sign-inToday narrow recon + open redirect + CRLFCRLF failedOpen redirect found, not exploitableMapped the Clerk OAuth flowDate 2026-10-03
Sign-in page
https://www.vibe.co/sign-in
Broker
clerk.vibe.co, the Clerk service
Provider
Google, accounts.google.com
Live request
POST /v1/client/sign_ins
Lab
No lab. All tests ran live, in Burp and the browser.
Where each test ran
Live on the target: sections 02, 03 and 05
Method notes: sections 01, 04 and 06
Not started: the bundle read of section 04, see Open items
Findings
Each card is one result. The number is the section number of the original recap. Long code is in Evidence.
01Notenote
The path to become a hacker
Target
No target. This is a method note.
Impact
Mindset + technical → mid-level. Threat modeling is the rest. You cannot buy the modeling instinct. It is the compound interest of a lot of raw input, processed into knowledge and then actually spent against targets. The only real question is where that experience comes from, and how the loop pays you back.
This is why real targets cost years. CTFs and vulnerable boxes have an answer key, so the loop closes in hours. Real websites do not, so you learn slowly, from triage replies, from the rare disclosed report, from another hunter. There is no shortcut around the clock, only ways to run more loops inside it.
Steps
Two things make a hacker, mindset and technical skill. The technical half is the easy part, it is finite and you can study it, and the two together get you to mid-level. What separates a mid-level hacker from the rest is threat modeling, the instinct for where a bug lives before you have found it, and that is not something you can cram. It comes from experience, and experience has a supply chain.
The reward is the whole difference. Raw input becomes knowledge the same way for everyone, but on CTFs and training boxes someone hands you the answer when you are done. On a real target there is no writeup waiting, the only feedback is other people and it is scarce, so the one way to bank that experience is time, years of it.
Evidence
The source gives no test evidence. This section is a method note.
Status
Taught. The source states no test result for this section.
02Infotested live
The sign-in redirect, threat modeling a live sink
Target
www.vibe.co sign-in page and clerk.vibe.co, the sign_ins POST.
Impact
The threat model, in one line. A user-controlled query parameter is stored in server session and replayed into a Location header, so the two things to prove next are, does it accept an absolute external URL (open redirect), and can a CR or LF be smuggled into the stored value to split the response and inject headers (CRLF). This is the live answer to the redirect validation question we left open in session 02.
Steps
With the mindset half said out loud, we did the thing itself on a real target. The parameter we picked is the one every app has and nobody looks at, the post-login redirect_url on the sign-in page:
It reads like a client-side redirect, and a redirect driven by JavaScript is a dangerous sink, so the textbook next move is to grep the JS bundles for the source that reads redirect_url and the sink it flows into. We will do that, but first the cheaper and more honest move: watch it in action. You learn more from one marked request through the real flow than from an hour of reading minified code blind.
Watch before you grep. Source-to-sink in the bundle tells you what the code can do. Driving the live flow with a marker value tells you what it actually does, and which of the two of you is wrong. Do the observation first, then read the JS to confirm the mechanism.
Watch it in action, with a marker
We append a unique tail to the value so it is unmistakable in the traffic, then complete a normal login:
After the login finishes, the browser lands on the marked path, and Burp shows the redirect is a server-issued 307 whose Location echoes our value byte for byte:
http
HTTP/2 307 Temporary Redirect
Location: https://www.vibe.co/dashboard/reportsaaaaaaa # our marker, reflected into the header
The value lands in a response header, not in HTML. A 307 with our input in Location is a server-side redirect. That already reshapes the threat model, the first guess of a client-side DOM redirect is wrong, the sink is on the server.
Where the value lives between the two requests
Here is the puzzle that makes this worth a diagram. The request that completes sign-in goes to clerk.vibe.co, and it does not carry our marked path. Yet the redirect that comes back, from www.vibe.co, does. The input disappears on the way in and reappears on the way out, so something is storing it across the round-trip.
WATCH THE VALUE FLOW BEFORE YOU GREP THE JS
Flow chart 1Where does the redirect value live between the two requests?
Start or end
Action
Attack path
Step number
Browser to www.vibe.coGET /sign-in?redirect_url=/dashboard/reportsAAA
www.vibe.co to clerk.vibe.coPOST /v1/client/sign_insbody: action_complete_redirect_url = /dashboard/reportsAAA
clerk.vibe.costored in server sessionnot localStorage, not a readable cookie
… Google OAuth round-trip completes …
clerk.vibe.co to Browser307 Location: https://www.vibe.co/dashboard/reportsAAA
BrowserLands on /dashboard/reportsAAAthe marker survived the whole flow
A sequence of the redirect value flowing through sign-in. The browser sends GET /sign-in with redirect_url set to /dashboard/reportsAAA to www.vibe.co. The front end then POSTs to clerk.vibe.co at /v1/client/sign_ins, and the body carries action_complete_redirect_url set to the same path. Clerk stores that redirect target in server-side session, highlighted, which is not localStorage and not a readable cookie. The Google OAuth round-trip completes. Then a 307 redirect comes back to the browser with Location set to https://www.vibe.co/dashboard/reportsAAA. The browser lands on /dashboard/reportsAAA, so the marker survived the whole flow.
The input is held server-side between the two legs. It cannot be localStorage, that is client-only and could never drive a server 307, and it is not visible in any readable cookie, those are tokenized or session handles. The only thing left is server-side session state keyed to the client, written at sign-in and replayed on return.
The request that completes the OAuth leg is the Clerk sign_ins call. The body is where the redirect target actually travels, folded into action_complete_redirect_url, and the giant cookie is trimmed to the two handles that matter:
The mechanism, stated. The server takes action_complete_redirect_url from this POST, stores it in the session tied to __client, and when the OAuth round-trip returns it replays that stored value into the Location of a 307. Our redirect_url from the sign-in page is what seeds it, so controlling that query parameter controls a server-side redirect target.
First order vs second order, why you had to watch
This is the exact reason the live run beat the grep. A first-order bug reflects your input in the same response, input in, output out, and a scanner catches it on the first request. This one is second-order, the input is stashed as a dummy, the OAuth round-trip runs, and only a few requests later does the stored value surface in the output, where you have to be watching to catch it.
Input in, output much later. First order is input straight to output in one response. Second order parks the input as a dummy, lets the OAuth round-trip run, and replays it into the output a few requests downstream, so the only place the bug is visible is the live flow, with you watching the end of it.
Our input enters at the sign-in URL, and to turn the threat model into a test we point it at an external domain we control rather than an in-app path, so a redirect that leaves vibe.co proves the open redirect:
One parameter, several requests apart. The value is set in the sign-in URL but only acts in HTTP requests that fire later, after OAuth, which is the whole definition of a second-order sink. It is why a scanner that only checks immediate reflection walks straight past this, and why tracing the value through the entire flow is the only way it surfaces.
Classify the sink before picking a payload
We saw the same drill in session 02, a sink is not one thing. Our value lands only in a Location header on a server 307, it never reaches the HTML body and it never builds a client fetch path, so the whole family of client-side bugs is off the table. The gadget class is open redirect, and because the value is written into a response header, CRLF injection rides in the same sink.
Gadget, open redirect, not XSS. Reflected XSS needs the value in the HTML body, CSPT needs it in a client-built request path, a DOM sink needs JavaScript navigation. None applies, the value only ever reaches a Location header, so we aim at open redirect, with CRLF as the escalation the header placement hands us.
Evidence
The requests are in the steps, in the order we sent them. The long one is in evidence.
Done, mapped live. The source proves where the value is held. It claims no bug.
03Nonetested live
The open redirect, and the one that does not count
Target
clerk.vibe.co, the sign_ins POST, and the sign-in link on www.vibe.co.
Impact
So is it a vulnerability? No. We only reached it by editing a request in the middle of the flow. To do that to a victim you would already need to control their traffic, and if you can rewrite their requests you do not need an open redirect. A bug you can only trigger by tampering with your own in-flight request is self-inflicted, not a finding.
Steps
Of the two leads, CRLF came up empty so far, no newline survived into the stored value. Open redirect is a different story. Sitting in the middle of the flow with Burp, editing the request by hand, we got it to fire cleanly.
The mid-flow open redirect
In the Clerk sign_ins POST we hand-edited action_complete_redirect_url to point at an external host, www.vibe.computer, cookie trimmed to the two handles that matter:
GET /v1/oauth_callback?state=9apnitw0...&iss=https://accounts.google.com&code=4/0AX...&scope=email+profile+openid+...&authuser=0&prompt=none HTTP/2
Host: clerk.vibe.co
and the response redirects the browser straight off the apex to our external host:
http
HTTP/2 307 Temporary Redirect
Content-Length: 0
Location: https://www.vibe.computer/dashboard/reportsaaa # the open redirect fires
Inject where the attacker actually stands. Rewriting the mid-flow POST proves the backend will redirect anywhere, but the attacker's only real reach is the sign-in URL they can send a victim. The finding has to survive from that entry point, not from Burp.
Feed it from the beginning
So we drop the mid-flow edit and put the payload where an attacker can, the redirect_url on the sign-in link, and compare a relative path against an absolute external host:
The naive open redirect is dead at the entry point. A relative path is kept and expanded, but an absolute external host is thrown away and replaced with the safe default /dashboard. Something on the client is normalizing the value before it ever reaches the stored field, so the mid-flow result does not reproduce from a link.
Who builds the request? The JS
The sign_ins POST is not sent by a form, it is assembled by the client-side JavaScript that reads redirect_url off the URL and writes action_complete_redirect_url. That JS is the guard that dropped our external host, so it is now the target. The next move is to read the bundle, find the exact function that does the redirect_url → action_complete_redirect_url transform, and see whether its host check is bypassable.
The handoff to next. We have a confirmed backend open redirect with no attacker-reachable trigger, gated only by a client-side normalizer. That is a classic bypass hunt, protocol-relative //host, a backslash https:\/\/host, whitespace or control bytes, an @ userinfo trick, a missing or doubled scheme. If any of those slips an external host past the JS into the stored value, the dead mid-flow redirect becomes a live, link-delivered open redirect.
Evidence
The requests are in the steps. The edited POST is in evidence. The table shows the result from the link.
Tested live, no bug. CRLF failed. The open redirect fires only after a mid-flow edit.
04Notenote
Into the JS, deduce before you read
Target
The www.vibe.co JavaScript bundle. We did not read it in this session.
Impact
The one trick that makes the grep work, map the casing. Searching the bundle for the wire name action_complete_redirect_url finds nothing. Clerk's JS holds the field in camelCase, actionCompleteRedirectUrl, and only serializes it to snake_case on the way out. So the real anchor is the camelCase identifier, and whenever you pivot from a request parameter into source, translate snake_case ↔ camelCase ↔ kebab-case first.
Steps
We stop editing requests and open the bundle, but we do not read it top to bottom. We deduce what must be in there and grep for exactly that. The deep dive has three parts, the flow, the rename, and where the protection runs.
A · the flow, three deductions
Because the sign-in request is assembled on the client, three facts follow, and each one is a string to search for:
Deduction turns a bundle into a search. You never have to read all of it. The field name must be built in code, the request must be sent from code, and the value must be read from the query string, so three greps land you on the field, the call site, and the source.
B · the parameter rename
pseudo
// on the wire -> in the JS
action_complete_redirect_url -> actionCompleteRedirectUrl // grep THIS
redirect_url -> redirectUrl
C · where the protection runs
actionCompleteRedirectUrl is the thread end, following it reaches the code that takes redirectUrl off the query string and decides what the stored value becomes, the normalizer that dropped our external host. The open question is where that protection fires, because that decides where the breakpoint goes and where a bypass would live. There are two candidates:
Two places, one of them cleans the value. Either the page sanitizes redirect_url the moment it reads the query string, or it carries the raw value and cleans it only when fetch assembles the body. Finding which one tells you where the host check lives and what a bypass has to slip past.
How to decide. Set a breakpoint on both ends, the moment the page reads the query string and the moment fetch builds the sign_ins body, and watch when the value flips from our external host to the default. Whichever one mutates it is the protection, and that function, its host check, is what a bypass has to beat. That trace is the next pass.
Evidence
The source gives no request for this section. The casing map is in the steps.
Status
Open. The source says the trace of the two breakpoints is the next pass.
05Infotested live
The OAuth flow, end to end
Target
clerk.vibe.co, the broker, with www.vibe.co and Google.
Impact
The brief.clerk-js boots and a plain GET /v1/client mints an anonymous __client, then www.vibe.co POSTs sign_ins to rotate it and get a Google authorize URL, the JS redirects the browser to Google, Google returns to clerk.vibe.co/v1/oauth_callback with a code, and Clerk exchanges that code to bind the same__client to the user. The __client is only an anonymous, HttpOnly handle, not itself the account credential, but once bound it is the key that unlocks the /v1/client read we proved in session 02 returns the identity and a session JWT, so the flow that binds it is the surface worth the next session.
Steps
The final result on the redirect hunt first, then the thing that was actually worth the session.
CRLF
Failed, no newline survived into the stored value, nothing to split the response with
Open redirect
Found, not exploitable, it fires from a mid-flow edit, but the client-side normalizer blocks it from the sign-in link, so there is no attacker-reachable trigger
So the redirect is a dead end as a standalone bug. But chasing it made us read the whole sign-in, and the real prize is understanding the OAuth flow end to end, because that is where the __client question we have circled since session 02 finally gets answered, and where the next bugs live.
Two canonical OAuth shapes
Social login usually takes one of two shapes. Either the app talks to the identity provider directly, or an auth service sits in the middle and brokers it. Vibe runs the second, with Clerk on clerk.vibe.co as the broker, so every leg of the dance is a request you can see and reason about.
Clerk sits in the middle. The brokered shape means the browser bounces www.vibe.co → clerk.vibe.co → Google → clerk.vibe.co → www.vibe.co, and the crucial exchanges, minting the device handle and swapping the Google code for a session, both happen at clerk.vibe.co.
The flow, step by step
1. Load the sign-in page. A Next.js page on Vercel, served signed-out, that boots Clerk in the browser:
1b. Clerk boots and the anonymous client is minted here. Before any click, clerk-js calls the FAPI twice, GET /v1/environment then GET /v1/client, and it is that GET /v1/client that mints the __client, not the sign_ins POST below. Captured cold in an isolated browser with no Clerk cookies, the request carries none and the response sets it:
This answers session 02's open question. The first __client is not earned by a token exchange and is not a shared .vibe.co cookie, it is simply handed out by an unauthenticated GET /v1/client to anyone who boots clerk-js. The JWT payload is only {id, rotating_token}, an anonymous device identifier, not a credential. So the sign_ins POST never mints the handle, it only rotates one that already exists, exactly what session 02 suspected.
2. Click “Continue with Google”. Clerk's JS fires a cross-site POST to the broker, which rotates the existing anonymous __client and hands back the Google authorize URL, cookie trimmed:
3. Google consent. The browser follows the authorize URL to accounts.google.com, the user approves, and Google sends it back to the redirect_uri, which is the broker, not the app.
4. The callback exchanges the code. A top-level navigation lands on /v1/oauth_callback with the Google code, and the broker swaps it for the authenticated session, trimmed:
http
GET /v1/oauth_callback?state=1yog519q...&iss=https://accounts.google.com&code=4/0AX...&scope=email+profile+openid+...&prompt=none HTTP/2
Host: clerk.vibe.co
Cookie: __client=eyJ...; __client_uat=0; ... # the anon handle, trimmed
http
HTTP/2 307 Temporary Redirect
Location: https://www.vibe.co/dashboard
Set-Cookie: __ck_csrf_token=...; Domain=vibe.co; HttpOnly; Secure
Set-Cookie: __clerk_handshake=eyJ...; Domain=vibe.co; Max-Age=70; HttpOnly # base64 bundle of Set-Cookie dirs incl. __session JWT, trimmed
Set-Cookie: __client=eyJ...; Domain=clerk.vibe.co; HttpOnly; Secure; SameSite=Lax # NEW rotating_token = now authenticated
Set-Cookie: __client_uat=1791049454; Domain=vibe.co; ... # non-zero = signed in
The whole thing turns on three moments at clerk.vibe.co. The init GET /v1/clientmints the anonymous __client (sessions: [], __client_uat=0), the sign_ins POST rotates that same handle while it is still anonymous (client_trust_state: pending), and the oauth_callback that carries the Google code binds it to a user, rotating its token again and flipping __client_uat to a timestamp. The __clerk_handshake is how the broker ships the session cookies back to the vibe.co apex.
THE CLERK-BROKERED OAUTH FLOW, STEP BY STEP
Flow chart 2How does the browser get an anonymous __client?
Start or end
Action
Attack path
Step number
Source step 1 GET /sign-in + /v1/client (mints anon __client)
www.vibe.coThe page loads signed out and boots Clerk in the browser
clerk.vibe.coclerk-js calls GET /v1/client and the response mints the anonymous __client
Source step 2 POST /v1/client/sign_ins (Clerk JS, cross-site)200 rotates anon __client + Google authorize URL
The response returns the Google authorize URL to the browser
The Clerk-brokered OAuth flow step by step across four lanes, Browser, www.vibe.co, clerk.vibe.co and Google. Step one, the browser gets /sign-in from www.vibe.co, which loads the Clerk JS, and that JS calls GET /v1/client which mints the anonymous __client cookie. Step two, the Clerk JS sends a cross-site POST to clerk.vibe.co at /v1/client/sign_ins, which rotates that same anonymous __client and returns the Google authorize URL. Step three, the browser is redirected to accounts.google.com with the redirect_uri set to clerk.vibe.co/v1/oauth_callback, the user consents, and Google sends the browser back with a code and state. Step four, the browser does a top-level navigation to clerk.vibe.co/v1/oauth_callback with the code, and clerk responds with a 307 to /dashboard and a Set-Cookie for the authenticated __client. Step five, the browser loads /dashboard, now signed in. The key point, highlighted, is that the Google authorization code is exchanged at /v1/oauth_callback for the authenticated __client cookie.
The whole dance, one picture. The browser is the only thing that talks to all three servers, Clerk never leaves clerk.vibe.co, and the single moment that matters is the callback, where the one-time Google code becomes a long-lived authenticated __client.
Continued from flow chart 2
Flow chart 3How does the Google code become an authenticated __client?
Start or end
Action
Attack path
Step number
Source step 3 redirect to accounts.google.com (redirect_uri = clerk.vibe.co/v1/oauth_callback)
Googleconsent, back with ?code & state
Source step 4 GET /v1/oauth_callback?code=... (top-level nav)★ the Google authorization code is exchanged at /v1/oauth_callback to bind the __client to the user
Done, mapped live. The source answers the open question from session 02. It claims no bug.
●Notenote
Takeaways
Target
No target. This is a list of takeaways.
Impact
This session is the mindset frame feeding a live narrow recon and threat-model pass, and it answers the redirect question left open in session 02.
Steps
Mindset plus technical gets you to mid-level, threat modeling is the rest, and it only comes from experience, which has a supply chain of raw input, study, knowledge, application, reward
CTFs and training boxes hand you an answer key in a writeup, real targets do not, so the only way to bank that experience is time, years of it
Threat model a parameter by watching the value flow end to end before grepping the JS, the live run tells you what the code actually does
A unique marker tail, reportsaaaaaaa, made the sink visible, and the 307Location echoed it back byte for byte
The marked path never reached clerk.vibe.co yet came back in the redirect, so the target is held across the round-trip, not passed through it
It cannot be localStorage, that is client-only and cannot drive a server 307, and it is not in a readable cookie, so it lives in server-side session keyed to __client
The value travels as action_complete_redirect_url in the Clerk sign_ins POST, is stored, and is replayed into the Location header after OAuth completes
This is a second-order sink, the input is parked at sign-in and only acts several requests later, so a scanner that checks immediate reflection misses it and watching the whole flow is the only way it shows
Name the sink before the payload, the value only reaches a response header, so the gadget is open redirect with CRLF, not reflected XSS, CSPT or a DOM sink
Hand-editing the mid-flow sign_ins POST fires the open redirect, but that is self-inflicted, to do it to a victim you would already own their traffic, so it is not a finding
A bug has to survive from the attacker-reachable entry point, here the sign-in link, not from Burp in the middle of the flow
From the link a relative redirect_url is kept and expanded to www.vibe.co, but an absolute external host is dropped to the default /dashboard, so a client-side JS normalizer is the real guard
CRLF came up empty so far, no newline survived into the stored value
The sign_ins request is built by JS, so the normalizer is the next target, read the bundle for the redirect_url → action_complete_redirect_url transform and test the host check for a bypass
Do not read a bundle top to bottom, deduce what a client-built request must contain, the field name, the send call, the query-string read, then grep for exactly those three
Map the casing before you search, the wire name action_complete_redirect_url is actionCompleteRedirectUrl in the JS, grep the camelCase or you find nothing
Final verdict, CRLF failed and the open redirect is real but not reachable from the sign-in link, so neither is a standalone finding
Vibe runs the brokered OAuth shape, vibe.co → clerk.vibe.co → Google → clerk.vibe.co → vibe.co, so every leg is a visible request
The __client is minted anonymous by the plain GET /v1/client that clerk-js fires at init, not by sign_ins, captured cold the request carries no clerk cookie and the response sets __client with sessions:[], so sign_ins only rotates it and the oauth_callback binds it to a user, flipping __client_uat from 0 to a timestamp
The __client JWT is just {id, rotating_token}, an anonymous device identifier and not itself the account credential, what trades for the account is the authenticated /v1/client read it unlocks, which returns identity plus a session JWT (session 02)
Exhausting a dead-end bug still paid off, the redirect hunt is what forced a full read of the OAuth flow, which is the real surface for next time
Evidence
The source gives no evidence for the list. The evidence is in the cards above.
Status
Noted. The list keeps the session verdict and the next steps.
Evidence
This section has the long code. Click an item to open it. Use Copy to copy a code block.
E1The Clerk sign_ins POSTrequest · the body that carries the redirect target
HTTP/2 200 OK
Access-Control-Allow-Origin: https://www.vibe.co # ACAC: true
Set-Cookie: __client=eyJ...; Domain=clerk.vibe.co; HttpOnly; Secure; SameSite=Lax # rotated, still anonymous
Set-Cookie: __client_uat=0; Domain=vibe.co; ... # 0 = signed out
{"response":{"object":"sign_in_attempt","status":"needs_identifier",
"first_factor_verification":{"strategy":"oauth_google",
"external_verification_redirect_url":"https://accounts.google.com/o/oauth2/auth?...&redirect_uri=https%3A%2F%2Fclerk.vibe.co%2Fv1%2Foauth_callback&state=1yog519q..."}},
"client":{"sessions":[],"client_trust_state":"pending"}} # no user bound yet
Open items
Open questions
Answered:live
the backend redirects to any host if action_complete_redirect_url is external, but only via a mid-flow edit, from the sign-in link a client-side JS normalizer forces the host to www.vibe.co
Answered (session 02's core question):live
the first __client is minted by an unauthenticated GET /v1/client at clerk-js init, no token exchange and no shared .vibe.co cookie, so sign_ins only rotates it, confirmed by a cold capture with no clerk cookie in and Set-Cookie __client out
Can that JS normalizer be bypassed, protocol-relative //host, a backslash https:\/\/host, whitespace or control bytes, an @ userinfo trick, a doubled or missing scheme, so an external host reaches the stored value from a link
Which exact JS function reads redirect_url and builds action_complete_redirect_url, and what is its host-check logic, grep actionCompleteRedirectUrl to confirm and attack it
Does the protection run on load, sanitizing as the query string is read, or on request, when fetch builds the body, breakpoint both ends and watch which one mutates the value
Can a CR or LF be smuggled into the stored value to split the response and inject headers, the CRLF escalation the Location placement invites, nothing found so far
The __clerk_handshake is a signed base64 bundle of Set-Cookie directives including a __session JWT, what signs it and can it be replayed or forged to plant a session
Is there a session fixation in the brokered flow, mint an anonymous __client, plant it in a victim via the top-level redirect, and have their Google login bind to our handle, the lead from session 02
Is the redirect_uri on the Google authorize leg locked to clerk.vibe.co/v1/oauth_callback, or is there room for a redirect_uri or state abuse in the broker
Does the stored redirect survive into a victim session, can we plant it, which would chain with the __client fixation lead from session 02
What is the full impact ceiling of the open redirect, token theft on the OAuth leg, or only a landing-page redirect