A new target, reached through the browser extension rather than a deliberate navigation. CapCut, the account settings page, already logged in. Opens on working out what the page actually is, React on the client, one sessionid cookie shared between the SPA and its API host, a hybrid of SSR for the account shell and CSR for whichever tab is open, then into threat modeling the settings page and a second feature it links to, download your data.
This page is the brief for the session, not a finished recap. Results, verdicts and takeaways get written in as we actually run them, in discovery order, nothing claimed before it is proven.
Live on the target: sections 00 to 03, 05 and 06 (the raw fetch, the fiber key check, the x8 run)
Read only: sections 07 and 08 read the bundle code, see Evidence
Not a test: sections 04, the two notes without a number and the plan
Not started: the hypotheses of section 07 and the click test of section 08, see Open items
Findings
Each card is one result. The number is the section number of the original recap. Long code is in Evidence.
00Inforead · Narrow recon · the shape before touching any data
One cookie, two hosts
Target
www.capcut.com and edit-api-sg.capcut.com. Both hosts read the same cookie.
Impact
The source finds no bug here. This is the baseline for the client-side questions in the next sections.
Steps
CapCut: video editing, profiles, AI features bolted on, the usual shape for this kind of app. Two hosts in play so far, both reading the same session cookie:
SPA
www.capcut.com
sessionid cookie, scope .capcut.com
Backend
edit-api-sg.capcut.com
same sessionid cookie, same .capcut.com scope
One cookie, scoped to the parent domain, read by both the SPA host and its API host. Standard same-site session sharing, nothing to it yet, just the baseline before the client-side questions below.
Evidence
The source gives no request or code for this section.
Status
Done. The source calls this the baseline. It claims no result.
01Infotested live · javascript_tool · the fiber key is the signal, the devtools hook is not
React, confirmed
Target
The settings page on www.capcut.com, the #root element.
Impact
✓ React confirmed, by the fiber key on #root, not by the devtools hook, which was absent and told us nothing either way.
Steps
The question on the table: the site is visibly React, but a settings page like this one usually loads its data client side, an empty shell then a fetch. Does it here? Two things checked at once, starting with whether this is even React underneath.
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ was not present, most likely stripped in production or the devtools extension was simply not installed in this profile. Not a reliable no. The authoritative check is the DOM itself: #root carries a React internal fiber key, __reactContainer$sf5al0swios, a key that only exists on a node React's own reconciler is managing.
Evidence
The evidence is the fiber key __reactContainer$sf5al0swios on #root, in the Steps field.
Status
Confirmed. The page is React. The next section checks where the data comes from.
02Infotested live · A raw fetch of the document beats trusting the hydrated DOM
Server-side data, confirmed
Target
The document at www.capcut.com, fetched again from inside the page.
Impact
✓ Confirmed. The email is in the raw HTML, server-rendered, before React boots. No post-load API call carries this field, there is nothing to catch in the network tab for it.
Steps
The second half of the question: once React boots, does it fetch the account fields, or are they already there? fetch(location.href) from inside the page pulls the document straight from the server again, independent of whatever the DOM currently shows, hydrated or not.
The account email was already present in that raw response, masked as y***[email protected]. No __NEXT_DATA__ blob anywhere in it either, so not Next.js's own hydration shape, but something is clearly injecting account data into the document before React ever touches it.
Evidence
The evidence is the masked email y***[email protected] in the raw response, in the Steps field.
Status
Confirmed. The account data is server-rendered. The next section names the mechanism.
03Infotested live · Same hydration trick, a different meta-framework
__MODERN_ROUTER_DATA__, the __NEXT_DATA__ analogue
Target
The raw HTML of the settings page on www.capcut.com, the __MODERN_ROUTER_DATA__ script tag.
Impact
The layout node is exactly where the earlier masked email came from. Confirms Modern.js SSR, not Next.js, same mechanism, different script tag name.
Steps
Follow-up: is __MODERN_ROUTER_DATA__ (seen on window) and its loaderData the same pattern as Next.js's __NEXT_DATA__? Checked directly in the raw HTML, not inferred:
Next.js's own SSR hydration payload, keyed by props.pageProps
__MODERN_ROUTER_DATA__
the same job, for Modern.js, ByteDance's own React meta-framework, same org as CapCut and TikTok
loaderData
Modern.js/Remix-style convention, data organized per route segment (layout here) because each route carries its own loader function, and loaderData[routeId] is that loader's resolved output
The layout node is exactly where the earlier masked email came from. Confirms Modern.js SSR, not Next.js, same mechanism, different script tag name.
The hydration flow
Flow chart 1How does the account data get into the settings page?
Start or end
Action
Attack path
Step number
CAPCUT.COM, SETTINGS PAGEGET /settingssessionid cookie, scoped to .capcut.com
CONFIRMEDSSR hydrationserver renders the full HTMLaccount fields already baked inASSUMED, THEN RULED OUT The usual CSR pattern. server sends an empty #root. React boots, then fetches account data. ruled out, no second request fired
A JSON blob baked into the HTMLid __MODERN_ROUTER_DATA__, application/jsonloaderData.layout: isLogin, avatar, email, userIdfound by fetching the raw page, before hydration
React hydrates over that HTML, reading the data straight off windowModern.js: ByteDance's own React framework, same org as CapCut and TikTok
Confirmed by forcing a raw fetch of the document, not by trusting the already-hydrated DOM. The left branch, the usual empty-shell-then-fetch pattern, was the starting assumption and the first thing ruled out once the raw HTML turned out to already carry the account fields.
Evidence
The evidence is the script tag and the table in the Steps field. The source gives no longer code for this section.
Status
Confirmed. Modern.js SSR, not Next.js.
●Notenote · the generalizable part, past this one app
Grep the raw HTML for a JSON script tag
Target
No target. This is a method note.
Impact
The source gives no impact. This is a method note.
Steps
The generalizable part, past this one app: a <script type="application/json" id="..."> tag in the raw HTML is worth checking for on any SPA before assuming the account data arrives by a client-side fetch. The id changes by framework, __NEXT_DATA__ for Next.js, __MODERN_ROUTER_DATA__ for Modern.js, __NUXT__ for Nuxt, __REMIX_CONTEXT__ for Remix, but the shape is the same: account fields land in the document before any script runs, readable without ever calling an API or watching the network tab for the right request.
Lines up with the Is it React? question in Narrow Recon, data-reactroot on an SSR page versus id="root" on an empty shell, and with the single page applications section on reading what the framework actually ships before touching the app itself.
Evidence
The source gives no evidence for this note.
Status
Note. The source gives no test result for this note.
04Notenote · Method · the plan for the rest of the target
Features, threat model, test
Target
No target. This is a method note for the CapCut hunt.
Impact
The source gives no impact. This is a plan.
Steps
The same three-step shape as the flow, written down for this target specifically: list the features, threat model each one, then test. Two things on the board to read for on every feature from here on:
Authentication class
OAuth
Forgot password
and whatever else the account surface offers
JS in the SPA, read for
sources and dangerous sinks
dangerous postMessage listeners
features, endpoints, how the app is put together
gadgets that could chain into something bigger
Evidence
The source gives no evidence for this plan.
Status
Open. The source gives this as a plan. Nothing in it is run yet.
05Infotested live · Narrow recon · the per-tab content, not just the account shell
settings, two tabs, one hybrid pattern
Target
Two routes of www.capcut.com/settings, settings_tab=info_page and settings_tab=space_page.
Impact
The source gives no impact. The result is that the fields that matter per tab load by CSR, not by SSR.
Confirmed: both are CSR for their actual tab content, the same hybrid pattern as section 02 and 03 above but one layer further in. Both URLs ship the identical __MODERN_ROUTER_DATA__, the route (locale$)/settings/page does not key off settings_tab at all, so SSR always returns the same minimal shell regardless of which tab is open:
No email, no connected accounts, no space or storage data anywhere in that SSR payload. What each tab actually shows is a separate client-side fetch on top of that shell:
settings_tab=info_page
email, mobile, social connects
GET /passport/web/account/info/?aid=348188..., not in the SSR blob at all
settings_tab=space_page
the Spaces table, member count, role
POST edit-api-sg.capcut.com/lv/v1/asset_auto_sync/get_instance
POST edit-api-sg.capcut.com/lv/v1/common_task/list ×2, POST mcs-normal-sg.capcutapi.com/list
So the earlier, plainer /settings only looked SSR for its account data because the generic shell's profileData happens to carry a name, an avatar and a description, the same three fields the layout uses everywhere. The fields that actually matter per tab are CSR, confirmed by what each route's loader ships versus what it fetches after.
Looked for more tabs two ways. ffuf on the settings_tab value: no hits worth it. Reading the JS: yes, that is where info_page and space_page came from in the first place. The names are in the bundle, not something worth fuzzing for.
Evidence
The evidence is the two URLs, the profileData payload and the endpoint lists in the Steps field.
Status
Confirmed. Both tabs are CSR for their content. The ffuf run on settings_tab found nothing worth keeping.
06Nonetested live · Threat modeling · what is on the table for the main page
threat modeling, /settings
Target
https://www.capcut.com/settings, with and without the sessionid cookie.
Impact
The source gives no impact. The IDOR test found no hidden identifier. DOM XSS and XSS are not run.
Steps
IDOR, loading another user's information. Approach: fuzz for a hidden parameter or header, the implicit identifier case, the one the client never sends on its own:
Still on the board for this page: DOM XSS and ordinary reflected/stored XSS, neither run yet.
The page also surfaces a download your data option. A quick read of the JS shows a CSP is present on the page it leads to, which narrows what an XSS there could do before it even runs. That option opens a second page:
url
https://www.capcut.com/download-your-data
Evidence
The evidence is the two x8 commands in the Steps field.
Status
Tested live, no bug. The x8 run on /settings gave one result.
No bug. One change in reflections, utm_medium, a tracking parameter that reflects and nothing else. Not a hidden identifier.
07Not ratedread · Threat modeling · the pre-download flow, request to file
download-your-data, threat modeling
Target
https://www.capcut.com/download-your-data, https://www.capcut.com/dyd-download/download_with_token/ and the API host edit-api-sg.capcut.com.
Impact
The source states four hypotheses. None is tested live. They point at file delivery through a trusted origin, a token sent to the wrong endpoint, a token in logs and history, and another user's export.
Steps
The threat worth testing for: pulling another user's data export instead of your own. The pre-download flow runs three requests, all to edit-api-sg.capcut.com:
http
OPTIONS /dyd/v1/download_your_data/create_data_application
POST /dyd/v1/download_your_data/create_data_application?aid=348188&appid=348188&data_format=1&request_type=0&category_selection_list=[{"request_app":348188,"category_selection":[3,8,22,23,9,25,24,10,11,13]}]
POST /dyd/v1/download_your_data/get_data_applications?aid=348188
The third request's JSON response carries status: 2, which is what makes the Download button appear in the DOM. Clicking it goes to:
Read off the live page at this point: a Request data / Download data tab pair, Data for user4039996715179, All Data, a requested-on date, the Download button, and a Past requests heading below it, the DOM understanding for what this feature actually offers.
The download step · token to file
The download runs on its own page, the token and the API address both arrive in the query string:
If download_api exists and is not the literal string "undefined", the page URL-decodes it and uses it as the API address, otherwise it falls back to <webDomain>/dyd/v1/download_your_data/retrieve_data_with_token. The "undefined" check suggests some upstream code builds this link with a missing value
The filename comes from a static config entry, v["3006"].filename, not from the URL
The only check on the address: if it does not start with https://, the page adds https:// in front. There is no host allowlist
It sends POST <download_api>?token=<token> with credentials: "include", so cookies go along, and a JSON Content-Type, which on a cross-origin host triggers a CORS preflight
This is the common js-file-download pattern. It wraps the response bytes in a Blob, typed from the argument, else application/octet-stream, creates an object URL and a hidden <a download="filename">, clicks it, then removes it after 200 ms. So whatever the API answers gets saved to disk as a file, started from www.capcut.com.
Flow chart 2How does the data export get from the API to a file?
Start or end
Action
Attack path
Step number
the pre-download flowThe pre-download flow runs three requests, all to edit-api-sg.capcut.comOPTIONS and POST create_data_application, then POST get_data_applications
the third responseThe third request's JSON response carries status: 2, which is what makes the Download button appear in the DOM
the live pageClicking it goes to https://www.capcut.com/dyd-download/gdpr/download/v2/?aid=348188&lang=en
the download pageIt sends POST <download_api>?token=<token> with credentials: "include", so cookies go alongthe token and download_api come from the query string
the API hostwhatever the API answers
the helperwhatever the API answers gets saved to disk as a file, started from www.capcut.com
What this opens · hypotheses to test, none tested live
Hypothesis: download_api sets the host, so a www.capcut.com link can make the visitor's browser POST to any https host. That host can answer with CORS headers and any bytes, and the page saves those bytes as a file under CapCut's filename, attacker-controlled file delivery through a trusted origin
Hypothesis: download_api can also point to a different path on a CapCut API host, so the token goes to an endpoint it was never meant for
Hypothesis: the token sits in the query string, which puts it in browser history, server logs and possibly the Referer
Hypothesis: the original threat in this section, pulling another user's export. The live test is whether retrieve_data_with_token checks that the token belongs to the logged-in session, account A's token while logged in as account B, and while logged out. Also decode the JWT and note which user or request IDs it binds and when it expires
Evidence
The requests and the short code are in the Steps field. The long bundle code is in Evidence.
Open. The source marks every hypothesis here as not tested live.
Todo. The response parameter named _r, not read yet. /dyd-download/verify, still untouched. None of the What this opens items has been tested live yet.
08Not ratedread · JS review · a flag read straight off the query string, nothing behind it
the capcut:// deep link, gated by isInapp
Target
The download-your-data chunk download-your-data_page.e86ff21740.js and /download-your-data?isInapp=1 on www.capcut.com.
Impact
No app-bridge check, no UA sniff.isInapp is true whenever the URL's own query string says isInapp=1, read client side with no server or app-bridge validation behind it at all. From a plain browser tab, /download-your-data?isInapp=1 with no verify_ticket present reaches the same branch a real in-app web view would.
Steps
The hypothesis going in: CapCut's own app, opening a web view for this flow, probably hands that web view the session's authentication. Worth finding exactly when the app-side path fires instead of the plain web one. Traced the gating condition in the download-your-data chunk (download-your-data_page.e86ff21740.js):
js
if (a && !r) returnvoid (0,e3.A)({ url: "capcut://main/web?web_url=".concat(...) })
Resolved: a is isInapp, r is the current verify_ticket. The branch fires only when both hold: isInapp true, and no verify_ticket yet. When it fires, it hands the native app a capcut://main/web?web_url=https://www.capcut.com/dyd-download/gdpr/download/v2/?<encoded state>, telling the app's own embedded web view to open that URL itself, instead of continuing in the plain browser tab.
Where isInapp actually comes from, same chunk, the query-string parser:
js
s = i.get("isH5"), l = i.get("isInapp"), ...isH5: !!s && "1" == s,
isInapp: !!l && "1" == l,
Flow chart 3When does the capcut:// branch fire?
Start or end
Action
Decision
Attack path
Step number
a plain browser tab/download-your-data?isInapp=1 with no verify_ticket present
the query-string parserisInapp is true whenever the URL's own query string says isInapp=1
the gating conditionThe branch fires only when both hold: isInapp true, and no verify_ticket yet
the native appit hands the native app a capcut://main/web?web_url=https://www.capcut.com/dyd-download/gdpr/download/v2/?<encoded state>, telling the app's own embedded web view to open that URL itself
the plain browser tabinstead of continuing in the plain browser tab
One caveat found before this thread was followed further: the destination host inside web_url is looked up from a table keyed by an app id (webAndAppAid), not built from a raw string under direct control, so swapping it for an attacker-controlled host is not a given. Whether webAndAppAid or aid is itself query-controllable, which would decide which host that table can be made to return, is the open thread here.
Evidence
The evidence is the gating code and the parser code in the Steps field.
Status
Open. The branch is traced in the code. It is not clicked and watched yet.
●Notenote · two lessons from this session
Two patterns worth keeping
Target
No target. This is a method note.
Impact
The source gives no impact. This is a method note.
Steps
.get() on a page's own query string is a source in the sources-and-sinks sense, confirmed directly in the same chunk, i.get("isH5"), i.get("isInapp"), i.get("enter_from") all feed state the component trusts. Worth reading every .get() call in a bundle, not just the parameters the UI exposes
IDOR splits into explicit and implicit, the identifier already in your hand against the one you have to fuzz for. The /settings param-miner run this session was the implicit case, ruled out; nothing explicit has been tried yet
Evidence
The source gives no separate evidence for these notes.
Status
Note. The source gives no test result here. The explicit IDOR case is not tried yet.
Evidence
This section has the long code. Click an item to open it. Use Copy to copy a code block.
E1The page logicminified bundle · the download page, token and download_api
M.useEffect)( () => {
var t = e.get("token")
, a = e.get("download_api")
, i = a && "undefined" !== a ? decodeURIComponent(a) : "".concat(E.Mn.DOMAIN_EXTERNAL.webDomain, "/dyd/v1/download_your_data/retrieve_data_with_token")
, M = "".concat(v["3006"].filename);
t && M && i && function(e) {
(0,
o._)(function*(e) {
var {token: t, downloadAPI: a, filename: i} = e;
try {
var M = a || "";
M && !M.startsWith("https://") && (M = "https://".concat(M));
var s = yieldfetch("".concat(M, "?token=").concat(encodeURIComponent(t)), {
credentials: "include",
method: "POST",
headers: {
"Content-Type": "application/json"
}
});
E2The file helperminified bundle · the js-file-download pattern
As1(e) {
e.exports = function(e, t, r, a) {
var o = newBlob(void0 !== a ? [a, e] : [e],{
type: r || "application/octet-stream"
});
if (void0 !== window.navigator.msSaveBlob)
window.navigator.msSaveBlob(o, t);
else {
var n = window.URL && window.URL.createObjectURL ? window.URL.createObjectURL(o) : window.webkitURL.createObjectURL(o)
, s = document.createElement("a");
s.style.display = "none",
s.href = n,
s.setAttribute("download", t),
void0 === s.download && s.setAttribute("target", "_blank"),
document.body.appendChild(s),
s.click(),
setTimeout(function() {
document.body.removeChild(s),
window.URL.revokeObjectURL(n)
}, 200)
}
}
},
Open items
Open questions
What else sits inside loaderData.layout past isLogin, avatar, email, userId, the indexTccData field was cut off and not read in full
Whether other CapCut routes carry their own __MODERN_ROUTER_DATA__ block with fields this one does not, a route-by-route diff
Whether any field inside that blob is less masked than the email, or carries something that should not reach the client at all
edit-api-sg.capcut.com itself is still untouched, only named so far as the host the shared sessionid also reaches
OAuth and forgot password on CapCut, neither looked at yet
The JS in the SPA, not read yet for sources, sinks, postMessage listeners or gadgets, past what the download-your-data chunk already gave up
DOM XSS and ordinary XSS on /settings, both still untested
What the CSP on download-your-data actually allows, read, not just noted as present
The _r response parameter on the pre-download flow, and whether the data export itself can be pulled for another account
The GDPR download route and /dyd-download/verify, where the verify_ticket actually gets set, neither opened yet
Whether webAndAppAid or aid is query-controllable, which would decide which host the capcut:// deep link's lookup table can return, and whether that reaches an attacker-controlled host in practice
Whether visiting /download-your-data?isInapp=1 with no verify_ticket in a plain browser actually fires the deep-link branch, traced in the code but not clicked and watched yet
A reddit lead, noted alongside a $5k figure, not read or followed up yet
A reminder to come back to CapCut's drive/AI features, not opened yet