Skip to content
Info disclosure Advisory Advanced CVE-2026-79122

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.cc
  • google_apis/drive/drive_base_requests.cc
  • google_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.

  1. Manual Header Attachment: In google_apis/common/base_requests.cc, UrlFetchRequestBase::StartAfterPrepare adds the header: request->headers.AddHeaderFromString(base::StringPrintf("Authorization: Bearer %s", access_token.data()));.
  2. Redirect Handling Omission: The class initializes SimpleURLLoader without calling SetOnRedirectCallback. When a redirect occurs, SimpleURLLoader follows it by default.
  3. Network Stack Behavior: In Chromium's network stack, the net::RedirectUtil::UpdateHttpRequest utility (used by net::URLRequest) only strips headers explicitly provided in a removed_headers list. While Blink's renderer-side ResourceLoader correctly populates this list with Authorization for cross-origin redirects, the browser-process implementation in UrlFetchRequestBase does 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 to https://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 nextLink field for pagination) or Location headers (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 the Authorization header—to an arbitrary third-party origin.

Impact

This issue potentially affects every component using google_apis::RequestSender, including:

  • Google Drive: Disclosure of drive scope tokens.
  • Birch/Calendar: Disclosure of calendar.events.readonly tokens.
  • 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.

  1. Sign in to a Chrome profile to ensure authenticated services are active.
  2. Trigger a background request from an affected service (e.g., a Drive sync or Calendar poll).
  3. 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/).
  4. Monitor the outgoing request to the external domain to verify if the Authorization: Bearer header is present.

Suggested Fix

  1. In UrlFetchRequestBase, implement a redirect callback using SimpleURLLoader::SetOnRedirectCallback that explicitly adds net::HttpRequestHeaders::kAuthorization to the removed_headers list if the redirect is cross-origin.
  2. Update Google API consumers (particularly in google_apis/drive/) to validate that any server-supplied URL (such as nextLink or upload session URLs) matches an expected Google origin before using it in a RequestSender flow.

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Sign in to a Chrome profile so authenticated services are active.
  2. Trigger a background request from an affected service such as Drive sync or Calendar poll.
  3. Use a proxy or simulated network to return an HTTP 302 redirect from the Google API endpoint to an external domain.
  4. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.