Takopi Class  /  Hunt map

capcut.com

Not a session log, that is session 09. This is the standing map of how the target is being hunted, one branch per feature, kept in sync as the hunt continues. The shape is always the same four steps:

Site→ Feature→ Threat model→ Hunt
TODO not tested yet NO BUG tested, came back clean IN PROGRESS actively being chased
Site

capcut.com

/settings

Account settings. SSR ships one generic profileData shell for every tab, each tab's real content is a separate CSR fetch, see session 09.

NO BUG

IDOR, implicit identifier

Hidden param or header exposing another user's info. x8 param miner fuzz, plain and with the session cookie. Only utm_medium reflects, nothing hidden found.

TODO

DOM XSS

Not run yet.

TODO

Reflected / stored XSS

Not run yet.

download-your-data

The GDPR export flow. Three requests to edit-api-sg.capcut.com build the request, status: 2 surfaces the Download button, see session 09. The Download button sits behind an email 2FA, mapped in session 10. Every test case and its result is on the test run page.

Tested

Verified, full threat model in session 10, section 05, DOM XSS threat modeling, the blob download. download_api from the query string picks the host, so the response bytes are ours, but the route passes no mime, so the blob is application/octet-stream, and the helper always sets download with a client-built CapCutExportData_<date>.zip. Saved, never rendered.

NO BUG

JWT forge

HS256, and the only claims are download_file and exp. A forged token lets us pick any capcut_dyd_<uid><aid>, which means anyone's export. Tests: alg: none, crack the secret offline from the real token we already captured (jwt_tool, hashcat -m 16500), signature stripped, exp pushed forward with the signature unchanged. Ran, see the test run: key brute force over jwt.secrets.list and rockyou found nothing, alg: none, stripped signature and tampered exp all 400.

NO BUG

Abuse case, skip the MFA

The intended chain is request download → MFA → token → download. Look for another way to the file that skips a link: a second endpoint that issues a token or serves the zip without a ticket. Two sources: JS review of the download-your-data chunk for every /dyd/v1/ path and parameter, and an ffuf fuzz for siblings under /dyd/v1/download_your_data/ on edit-api-sg. Ran, see the test run: the dyd chunk holds exactly three /dyd/ paths, ffuf found no sibling, and no ticket, empty ticket or sms_ticket=true all 403. The step 1 email_ticket swap is still blocked on a fresh OTP.

NO BUG

download_file parameter override

Send download_file=capcut_dyd_<other uid>348188 as an extra query or JSON body parameter next to a valid token on retrieve_data_with_token, and next to the ticket on get_download_token. Watch whether the server takes the client value over the claim inside the token. Try parameter pollution too, the same name twice. Tested manually: the server ignores the client value, no override.

NO BUG

One year d_ticket skips the code

Set on .capcut.com with Max-Age=31536000 after verify. Whether a later export trusts it and never asks for the OTP again. Ran: a new export asked for the code again.

NO BUG

download_api on download_with_token as a CSRF gadget into CapCut APIs

The same route makes the victim send POST https://<any host>/<path>?<params> from https://www.capcut.com with cookies, a trusted Origin and an empty body. Tested manually, no bug. Passport is out, it wants X-Tt-Passport-Csrf-Token. As a token exfil gadget it paid, see the forgot password branch: through a CSP-trusted GCP host it carries the reset token out, the second half of the session 13 takeover.

To do

TODO

capcut:// deep link via isInapp

App hands the flow to its own web view, hypothesis: it carries the session along. Gating condition traced in the JS, see session 09: isInapp is a bare query string, no app-bridge check behind it. Open: whether webAndAppAid / aid is also controllable, which decides the destination host, and whether the branch actually fires when visited live.

TODO

Downloading another user's export

The _r response parameter unread. /dyd-download/verify now mapped, see session 10: email OTP, then a ticket, then a 120 second JWT whose only claim is the file name capcut_dyd_<uid><aid>, then retrieve_data_with_token?token= returns the zip with user_data_capcut.json. The tests live in the rows below.

TODO

Ticket not bound to the session

Account A's ticket with account B's sessionid on get_download_token, and whether retrieve_data_with_token needs the session at all or the JWT alone pulls the zip. Step 4 was captured with the full cookie jar, so that is still unanswered.

TODO

sms_ticket switch

Client says which ticket type to check. Flip to true, or send the step 1 email_ticket in place of the verified ticket.

TODO

OTP brute force

Six digits on /passport/web/email/verify/, encoded XOR 5 then hex by mix_mode=1. Rate limit and ticket single use not checked yet. Blocked in the test run, send_code was throttled (1206) so verify never fired.

TODO

File spoofing, attacker bytes as the CapCut export

download_api on our host, any bytes saved from capcut.com as CapCutExportData_<date>.zip. Low on its own, worth noting only beside a stronger finding. Session 13 found the CSP denies an arbitrary host as download_api and lets a GCP storage host through, so the bytes would have to come from a CSP-trusted host.

Authentication class, Google OAuth

Three web Google doors all end at POST /passport/web/auth/login with platform_app_id=1773, the backend validates by asking Google. Mapped in session 10, section 06. The desktop app login is a separate flow and holds a confirmed account takeover, section 07. Session 12 went after the web flow directly, the legacy implicit builder is still shipped and reachable by logging out, opening settings and clicking the profile, and the passport redirect flow carries a confirmed open redirect. Forgot password is opened, its own branch below from session 13. Facebook, TikTok and Apple not opened yet.

Confirmed

The desktop flow drops the OAuth result into feed-api.capcutapi.com/lv/v1/oauth/{update,get}_auth_query_params, keyed by an id the attacker picks in the unsigned state, read back with no cookie. With prompt=none (and authuser=0) a victim who has used CapCut desktop gets no consent screen, so opening one link hands the attacker the victim's Google code, id_token (aud = CapCut client) and access_token. Report: vulnerabilities/vuln-1-google-oauth-handoff/report.md. Not run: trading the code for a live session.

Two-step flow, GET /passport/web/web_login/?next= copies the value verbatim into the OAuth state, then GET /passport/web/web_login_success?state= redirects on it, and that second step's host allowlist is bypassed by the backslash family, https:\\example.com, http:example.com and friends. Confirmed on the error branch in headless Chrome, and the state is unsigned so the proof is one cookieless link on www.capcut.com. Low standalone, the success branch is still to run. See session 12, section 07.

Tested

NO BUG

BOE platform id on production

platform_app_id=200257, the internal test environment Google platform, returns Platform is invalid on login_only.

To do

The legacy login is flow 1, mint before the redirect, safe on its own. Two conditions turn it, a non-happy path that forces response_type=token+code and gets back 200 plus an error with the artifact in the response, and a server-side open redirect as the exfil channel. Condition 2 is the confirmed open redirect above, condition 1 is still to run. See session 12, section 06.

login_only answers unsigned and reflects Google tokeninfo errors, so validation is delegated to Google. Mint an ID token and access token for our own account through another client (OAuth Playground) and send them. A login means every third-party Google site can take over CapCut accounts. Highest value test on this branch.

state = window.__uid_sha || sha256(uid).slice(15,47), deterministic from the uid. Callback /lv/v1/user/web/third_party_clouds_authorization/google_drive with our computed state and a code minted in another session.

TODO

Token type and client swaps

A Drive or Contacts client token to login, an access token in access_token_secret, an ID token in access_token.

TODO

Nonce never reaches the backend

The popup generates a nonce but sends only access_token and id_token, so a leaked ID token replays until exp.

TODO

Callback hand-off through localStorage

/third-party-callback passes the tokens to the opener under __thirdPartyCallbackResult__, the bare key without attemptId is also accepted. Login CSRF shape, and any XSS on the origin reads the tokens.

TODO

Email merge on bind_with_email_login

Google email matching an existing CapCut email account, test a Google account whose email is not verified.

TODO

Facebook, Apple and the other providers

Queued on the session 13 track list, not opened yet: OAuth for Facebook, Apple and the rest, the Facebook token mint, and a second Facebook path.

Forgot password

Four steps, two tickets, mapped in session 13, section 01. The email ticket from step 1 opens the flow, the mailed DOM link plus the OTP returns the change password ticket, the golden one step 4 spends with the new password. The reset link has two handles, its host and its path, and both turned out controllable.

Confirmed

Two informative bugs chained. The next parameter on the forgot password request controls the path of the mailed reset link, so a link that keeps the host capcut.com and passes the check opens /dyd-download/download_with_token instead of the reset page, with the real reset token and code in the query. The gadget ships token to whatever host download_api names, the CSP denies an arbitrary host and a GCP storage host it already trusts gets through. One victim click and the attacker completes the reset. See session 13, section 03.

The check HTML-decodes the incoming value and requires a capcut.com host on that, the builder re-parses the raw value and mails a link built from it. An HTML entity that acts as an authority delimiter only after decoding gives A.host = capcut.com to the check and another host to the mail, so the mailed link moves to a host you choose. Informative on its own, the takeover went through the path handle instead. The payload on the recap is illustrative, not the exact one used. See session 13, section 02.

JS in the SPA

Cross-cutting, every bundle read for sources, dangerous sinks, dangerous postMessage listeners, endpoints, and gadgets for a chain. Only the download-your-data chunk has been read in full so far.

First chain found, through the Feature in the DOM track in session 13: /dyd-download/download_with_token reads token and download_api off the query string and ships the token to that host, the exfil half of the forgot password takeover. The pattern behind it, confirmed in the chunk that has been read: .get() on the page's own query string is a source, i.get("isH5"), i.get("isInapp"), i.get("enter_from") all feed trusted state.

TODO

API endpoints from the JS files, IDOR

Queued on the session 13 track list, not started.

TODO

DOM bugs from the JS files

Queued on the session 13 track list, not started.

TODO

Bucket brute

Queued on the session 13 track list, not started. Session 11 reached the hidden chunks through an open Oracle bucket.

edit-api-sg.capcut.com

The backend host itself. Seen so far only through what /settings and download-your-data call on it, never targeted on its own.

TODO

Not modeled yet

Nothing started on this host directly.

Parking lot, not attached to a feature yet