Information leak in SignIn (CVE-2026-79122)
The UrlFetchRequestBase class in Chromium's browser process attaches an OAuth Bearer token to Google API requests but does not remove it on cross-origin redirects, so a redirect to an attacker-controlled origin could disclose the token. The report is based on code analysis and has not been verified with a working proof of concept.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The UrlFetchRequestBase class, used by numerous browser-process Google API clients, fails to strip the sensitive Authorization header during cross-origin redirects. This behavior potentially discloses OAuth Bearer tokens to unauthorized third-party origins, violating Step 13 of the Fetch specification. Impacted services include Google Drive, Calendar, and YouTube Music, which may leak tokens through HTTP redirects or malicious server-supplied URLs.
Affected files:
google_apis/common/base_requests.ccgoogle_apis/drive/drive_base_requests.ccgoogle_apis/drive/drive_api_requests.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Background
In Chromium, the google_apis::UrlFetchRequestBase class is the primary base class for browser-process HTTP requests to Google APIs. It manages authentication by attaching an Authorization: Bearer [token] header to requests dispatched via network::SimpleURLLoader.
Potential Root Cause
The vulnerability stems from the fact that UrlFetchRequestBase manually adds the Authorization header but does not register a redirect callback to ensure its removal during cross-origin transitions.
- Manual Header Attachment: In
google_apis/common/base_requests.cc,UrlFetchRequestBase::StartAfterPrepareadds the header:request->headers.AddHeaderFromString(base::StringPrintf("Authorization: Bearer %s", access_token.data()));. - Redirect Handling Omission: The class initializes
SimpleURLLoaderwithout callingSetOnRedirectCallback. When a redirect occurs,SimpleURLLoaderfollows it by default. - Network Stack Behavior: In Chromium's network stack, the
net::RedirectUtil::UpdateHttpRequestutility (used bynet::URLRequest) only strips headers explicitly provided in aremoved_headerslist. While Blink's renderer-sideResourceLoadercorrectly populates this list withAuthorizationfor cross-origin redirects, the browser-process implementation inUrlFetchRequestBasedoes not, leading to the header being preserved across origins.
Potential Exploitation Scenarios
An attacker could potentially receive a user's OAuth token through two primary vectors:
- Cross-Origin HTTP Redirects: If a targeted Google API endpoint (e.g.,
www.googleapis.com) has an open-redirect vulnerability or is manipulated via a network-level attack, an HTTP 301/302 response can redirect the authenticated request tohttps://attacker.test/, which would receive the Bearer token in the request headers. - Application-Level URL Injection: Some services, such as Google Drive, parse URLs from JSON responses (e.g., the
nextLinkfield for pagination) orLocationheaders (for resumable upload session URLs). Analysis suggests these URLs are used blindly to initiate new authenticated requests. An attacker who can influence these fields (e.g., through a compromised network process or a specific API state) can direct a new request—complete with theAuthorizationheader—to an arbitrary third-party origin.
Impact
This issue potentially affects every component using google_apis::RequestSender, including:
- Google Drive: Disclosure of
drivescope tokens. - Birch/Calendar: Disclosure of
calendar.events.readonlytokens. - YouTube Music: Disclosure of focus-mode related tokens.
- Glanceables (Tasks/Classroom): Disclosure of various productivity scopes.
Suggested Potential Steps to Trigger
Note: These steps are based on code analysis and have not been verified with a functional Proof of Concept.
- Sign in to a Chrome profile to ensure authenticated services are active.
- Trigger a background request from an affected service (e.g., a Drive sync or Calendar poll).
- Use a proxy or simulated network environment to return an HTTP 302 redirect from the Google API endpoint to an external domain (e.g.,
https://attacker.example/). - Monitor the outgoing request to the external domain to verify if the
Authorization: Bearerheader is present.
Suggested Fix
- In
UrlFetchRequestBase, implement a redirect callback usingSimpleURLLoader::SetOnRedirectCallbackthat explicitly addsnet::HttpRequestHeaders::kAuthorizationto theremoved_headerslist if the redirect is cross-origin. - Update Google API consumers (particularly in
google_apis/drive/) to validate that any server-supplied URL (such asnextLinkor upload session URLs) matches an expected Google origin before using it in aRequestSenderflow.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the browser-process request class adds the Authorization header manually but never registers a redirect callback to strip it on cross-origin redirects, unlike Blink's renderer-side loader.
Impact
OAuth Bearer tokens for services such as Drive, Calendar and YouTube Music could be disclosed to a third-party origin if a redirect or server-supplied URL points there; the report notes the steps are unverified.
What the attacker needed
Signed-in Chrome profile; attacker controls redirect or URL field; network position or API state control
The fix
The class should register a redirect callback that removes the Authorization header on cross-origin redirects, and consumers should validate server-supplied URLs against expected Google origins.
How it was found
- Sign in to a Chrome profile so authenticated services are active.
- Trigger a background request from an affected service such as Drive sync or Calendar poll.
- Use a proxy or simulated network to return an HTTP 302 redirect from the Google API endpoint to an external domain.
- Monitor the outgoing request to the external domain to check whether the Authorization header is present.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you sign in to a Google service in Chrome, the browser sends a secret token with each request so the server knows who you are. If the server replies with a redirect to a different website, the browser should drop that secret before following the redirect. This report says one part of Chrome forgets to drop it, so the other website could receive the secret.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.