The legacy implicit flow is still in the login bundle
- Target
The login JS on www.capcut.com. The legacy Google builder sits next to GIS.
- Impact
-
The implicit grant hands the access token and id_token back through the browser URL fragment to
/third-party-callback, a bigger surface than a server-side code exchange. It is reachable only because the old builder is still in the bundle, and theredirect_uriis built fromlocation.origin. Firing it and testing what the callback accepts is the non-happy path, still todo. - Steps
-
Reading the login JS, a legacy builder is still shipped alongside GIS. Reconstructed from the bundle, it builds a Google authorize URL by hand with
response_type: "token id_token", the implicit grant, not GIS and not a code flow. That is the downgrade: the app only shows the GIS button, but the old implicit builder is still reachable in the same code. - Evidence
-
Field Value client_id 87571557143-buc0jlq1ncffscght599nhlgl1u977cr.apps.googleusercontent.com(the Login client)response_type token id_token, implicit, the token and id_token come back in the URL fragmentredirect_uri location.origin + /third-party-callbackresult sink localStorage['__thirdPartyCallbackResult__'], written by the callback page - Status
Open. The builder is read, not fired. Firing it is still to do.