Takopi Class  /  Recap

Session 11

A new target reached through its login page, CapCut signing in with Google Identity Services (GIS). The goal for the day is to read how the GIS hand-off is wired.

Summary of findings

  1. 01The login page loads two scripts, one from Google and one from CapCut.Target: www.capcut.com/loginInfoRead
  2. 02A vendor SDK from the vendor origin is pristine. A self-hosted copy needs a diff.Target: No target, method noteNoteAdded to the OAuth checklist
  3. 03A page loads only some of the JS files of the app.Target: No target, method noteNoteTwo questions open
  4. 04The static bucket lists its own files, so chunk ids need no guessing.Target: sf16-web-login-neutral.capcutstatic.comInfoTested live
  5. 05A leaked namespace lists the buckets behind the CDN.Target: objectstorage.us-ashburn-1.oraclecloud.comInfoTrack 2 is active
  • Info Groundwork. No security effect is claimed.
  • Note A method or a lesson. Not a test result.

Scope

Session

Asset www.capcut.com/login IdP Google Identity Services Goal map the GIS hand-off Date 2026-11-21
Login page
The CapCut login page, read in section 01
Static host
The CapCut static CDN, listed in section 04
Object store
The Oracle namespace behind the CDN, section 05

Where each test ran

  • Read only: section 01 reads the login page and its two scripts
  • Method notes: sections 02 and 03 are lessons, no test
  • Live on the target: sections 04 and 05 listed the object storage
  • Not started: track 3, the downgrade of the OAuth flow, see Open items

Findings

Each card is one result. The number is the section number of the original recap.

01Inforead · Google sign-in · https://www.capcut.com/login

GIS on the CapCut login page

Target

www.capcut.com/login

Impact
The source gives no impact. This section maps the sign-in. No security effect is claimed.
Steps

The page signs in with Google Identity Services, the current library, not the retired Google Sign-In. Two scripts carry it, and which origin serves each one decides what we are able to do to it.

Vendor SDK, Google origin
  • https://accounts.google.com/gsi/client, fetched straight from Google, the FedCM button variant (data-use_fedcm_for_button)
  • CapCut cannot change it and there is no self-hosted copy on the page, so there is nothing of Google's to diff
First-party wrapper, CapCut origin
  • googleLogin.7f10bf6cd6.js on capcutstatic.com, a 716 KB bundle that drives the button and the whole passport login
  • It posts the result to passport/web/auth/login, so this is where the returned credential is handed to the backend
Evidence

The source gives no request or payload. The two scripts are named in Steps.

Status

Read. The source gives no verdict for this section.

02Notenote

Who serves the SDK decides what you can do

Target

No target. This is a method note.

Impact
If a vendor auth SDK is self-hosted, diff it byte for byte against the pinned canonical vendor build. A self-hosted copy can be rewritten by the site's own developers or poisoned upstream, and the credential or id_token the SDK returns is logged, or the token endpoint is swapped, before the browser ever leaves the page. A missing integrity hash or a loose script-src is what lets a changed build ship. The first-party wrapper around the SDK has no canonical to diff, so you read it directly, it is where the hand-off to the backend is actually wired.
Steps

The one thing to carry out of today. When an auth vendor's SDK is loaded straight from the vendor origin it is pristine, the site cannot touch it, and a diff buys nothing. The surface moves the moment a site serves its own copy.

GIS makes this concrete, three layers and only the last is yours to attack:

pseudo
server, Google SDK           safe, Google's code, the site never serves it
client, Google SDK           safe, pristine from accounts.google.com/gsi/client
client SDK  ->  website JS   review, the first-party wrapper that eats the credential
Evidence

The source gives no request. The three layers are in Steps.

Status

Done. Added to the OAuth checklist as a never-skip step.

03Notenote

The SPA only ships you some of its JS

Target

No target. This is a method note.

Impact
The legacy Google flow branch, or the wrapper code the downgrade step is after, may live only in a chunk that never loaded, so pull them all before deciding a path is not there.
Steps

A recon note that decides whether the GIS work above is actually complete. A modern SPA is code-split, the browser pulls only the chunks a page needs, so what you see loaded is never the whole app. The GIS wrapper and any legacy-flow branch can sit in a chunk that never loads on the login page.

  1. A page loads many JS files in the browser, say around 60
  2. That is not all of them, the build ships closer to 100
  3. Lazy-loading: as you browse the site more chunks load, on route changes and on dynamic imports
  4. In narrow recon, fetch every JS file including all chunks, off the asset manifest and the webpack runtime, not only the ones the browser happened to pull

Concretely, in production the app is a few big server-side bundles, each split into chunks, and a page pulls only the chunks it needs:

pseudo
login.js   chunked into 100   login page      79 / 100 loaded
main.js    chunked into 200   main page      166 / 200 loaded
admin.js   chunked into  30   never visited    0 /  30 loaded

admin.js sits at 0 of 30 on every page you browse, and that unreached bundle is usually the one worth reading, so clicking around the site never surfaces it.

The chunks are named by number and content hash, so a URL cannot be guessed, it is read from the build map. Taking one real chunk from this login bundle:

pseudo
https://sf16-web-login-neutral.capcutstatic.com/obj/capcut-web-login-static/ies/lvweb/account_online/static/js/async/845.16d943221e.js

async/        marks a lazy-loaded chunk
845           the chunk number
16d943221e    the content hash, a cache-bust string, not guessable

The webpack runtime carries the chunk-number to hash map for the whole build, so you lift every chunk id from there, that is how a bundle sitting at 0 loaded gets fetched without ever reaching its page.

Evidence

The source gives no request. The chunk URL is in Steps.

Status

Open. Two questions on chunk loading remain, see Open items.

04Infotested live

JS discovery, reaching the chunks the build hides

Target

sf16-web-login-neutral.capcutstatic.com/obj/capcut-web-login-static/

Impact
This answers the brute-force question outright: when the asset host is object storage you do not guess chunk ids, you read the whole inventory, and the listing spans other apps in the same bucket (growth, common_seo), not only the login build.
Steps

Fetching every chunk the manifest references is step one. Discovery is reaching the chunks the live build does not reference at all, old versions, orphaned admin bundles, dead features, each one a fresh pile of JS and endpoints. The handle is the chunk URL itself.

url
https://sf16-web-login-neutral.capcutstatic.com/obj/capcut-web-login-static/ies/lvweb/account_online/static/js/async/4664.0546492a5b.js

The number 4664 is the chunk id, stable across builds. The hash 0546492a5b is derived by the bundler from the chunk's own bytes, so it changes whenever the code changes, that is the cache-bust, and it is why the URL cannot be guessed from the id alone.

found · bucket listing beats the brute-force

The static host is Oracle Object Storage, the opc-request-id response header gives it away. Object storage exposes a ListObjects API whose prefix and limit filters it reads from the query string, so the bucket lists itself:

Flow chart 1How does the bucket listing replace the brute-force?
AttackerServer host list request JSON Read the responseheader List bucketobjects Return theJSON list Filter .jsnames 1 2 3 4
  • Start or end
  • Action
  • Attack path
  • Step number
  1. AttackerThe static host is Oracle Object Storage, the opc-request-id response header gives it away.
  2. AttackerObject storage exposes a ListObjects API whose prefix and limit filters it reads from the query string, so the bucket lists itself
  3. Server200 application/json, 917 objects on this page, 487 of them .js, paginated past 1000 with nextStartWith
  4. Attackerjq -r '.objects[].name | select(endswith(".js"))'
Evidence

The listing request and the curl command are in Evidence.

Status

Tested live. The listing answers the brute-force question. Two questions on the chunk hash remain, see Open items.

05Infotested live · the buckets behind the CDN

Where the hunt stands

Target

objectstorage.us-ashburn-1.oraclecloud.com, namespace idkhbnojcnmz

Impact

So bucket discovery is a name-guessing problem against one open namespace, cache-keys and JS strings seed the list, a wordlist extends it. Every JS file the listing yields then feeds the same three questions:

  • endpoints and parameters, grep the recovered bundles for URL templates and request-body schemas, that is the real API map
  • sensitive information, keys, internal hosts, debug flags, anything a build left in a chunk the live page never loads
  • vulnerable DOM sinks, source to sink inside each chunk, the ones hidden from the manifest are the least reviewed
Steps

Three tracks are open, each led by what it is trying to achieve, not by the next command. The middle one is carrying the session, every JS file we recover is more endpoints, more secrets, more sinks.

pseudo
1  compare the GIS SDK against Google's pristine build                   progressing
2  widen the surface by pulling every JS file the build ships and hides  active, richest track
3  downgrade the OAuth to an older flow and test that path               not started

track 2 · the buckets behind the CDN

The CDN host pins /obj/ to a single bucket, so swapping the bucket name there only returns a generic edge 404. The real surface is the Oracle namespace sitting behind it, leaked once by the Akamai cache-key, and that namespace lists every bucket in it with no auth, the bucket name is just a path segment you can change:

Flow chart 2How does the leaked namespace reach the bucket listings?
AttackerServer header x-cache-key list request 200 list Send cache-keyheader Leak thenamespace List bucketobjects Return openlisting Guess bucketnames 1 2 3 4 5
  • Start or end
  • Action
  • Attack path
  • Step number
  1. AttackerPragma: akamai-x-get-cache-key
  2. Serverx-cache-key: .../n/idkhbnojcnmz/b/capcut-web-login-static/o/
  3. Attackerhttps://objectstorage.us-ashburn-1.oraclecloud.com/n/idkhbnojcnmz/b/<bucket>/o/?limit=1000
  4. Servercapcut-web-login-static 200, the login build. seeyou-us 200, sibling app (growth/astrajs/pre_sdk)
  5. Attacker<brute> guess names here, ListBuckets needs auth but per-bucket ListObjects is open
Evidence

The namespace and bucket table is in Evidence.

Status

Open. Track 2 is active. Tracks 1 and 3 are in Open items.

Evidence

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

E1Bucket listing requesttested live · section 04

Evidence for section 04.

pseudo
https://sf16-web-login-neutral.capcutstatic.com/obj/capcut-web-login-static/?prefix=&limit=1000

200 application/json   {"objects":[{"name": ...}], "nextStartWith": ...}
917 objects on this page, 487 of them .js, paginated past 1000 with nextStartWith
pseudo
curl -s "https://sf16-web-login-neutral.capcutstatic.com/obj/capcut-web-login-static/?prefix=&limit=1000" \
  | jq -r '.objects[].name | select(endswith(".js"))'
E2Namespace bucket tabletested live · section 05

Evidence for section 05.

pseudo
Pragma: akamai-x-get-cache-key   ->   x-cache-key: .../n/idkhbnojcnmz/b/capcut-web-login-static/o/

https://objectstorage.us-ashburn-1.oraclecloud.com/n/idkhbnojcnmz/b/<bucket>/o/?limit=1000
  capcut-web-login-static   200   the login build
  seeyou-us                 200   sibling app (growth/astrajs/pre_sdk)
  <brute>                    ?    guess names here, ListBuckets needs auth but per-bucket ListObjects is open

Open items

The three tracks, from section 05

  • compare the GIS SDK against Google's pristine build
    • progressing
  • widen the surface by pulling every JS file the build ships and hides
    • active, richest track
  • downgrade the OAuth to an older flow and test that path
    • not started

Other open tests

  • From section 03, chunks

    open · chunks, next

    • How are chunks loaded? read the webpack runtime, how it maps a chunk id to a URL and what triggers the fetch on a route change or a dynamic import
    • Can I get other chunks? enumerate every chunk id from that map and pull the bundles the browser never requested, admin and the rest
  • From section 04, discovery

    open · discovery

    • How is 0546492a5b built? which hash and over what input, content only or salted, because if it is a pure content hash then an old build's source map or an archived copy hands you the old hash for free
    • Can I reach 4664 without this hash, hash-less or with an old hash the CDN still serves? if yes, brute-force the chunk-number space and pull every bundle the current manifest omits, more JS files, more surface