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

Inappropriate implementation in Extensions (CVE-2026-11020)

The ExtensionDownloader attaches OAuth2 tokens based on whether the original download URL is a Google domain, but an attacker can supply a Google open redirect as the codebase URL. When the redirect leads to the attacker's server, the Authorization header is forwarded, leaking the token.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: The ExtensionDownloader uses the attacker-controlled codebase URL from an update manifest to determine if OAuth2 tokens should be attached. By pointing this URL to a Google open redirect, an attacker can trigger credential escalation, and the resulting Authorization header is leaked to the attacker's domain across the redirect.

Affected files:

  • extensions/browser/updater/extension_downloader.cc
  • extensions/browser/updater/safe_manifest_parser.cc

Estimated timestamp from git blame: 2021-08-23

Summary

A logic error in ExtensionDownloader allows an attacker-controlled update manifest to trigger credential escalation. The downloader decides whether to attach OAuth2 tokens based on whether the download URL (crx_url) belongs to a Google domain. Since the crx_url is provided in the codebase attribute of the update XML, an attacker can specify a *.google.com open redirect URL to bypass the intended trust boundary. Furthermore, because the downloader uses network::SimpleURLLoader without configuring it to strip sensitive headers on cross-origin redirects, the OAuth2 token is leaked to the attacker's final destination.

Technical Details

In extensions/browser/updater/extension_downloader.cc, the logic for escalating credentials is gated by a check on the request URL:

C++
// extensions/browser/updater/extension_downloader.cc:1425
if (fetch->url.DomainIs(kGoogleDotCom) && identity_manager_) {
  fetch->credentials = ExtensionFetch::CREDENTIALS_OAUTH2_TOKEN;
}

This fetch->url is initialized from the codebase attribute of the update manifest parsed in safe_manifest_parser.cc.

If the request fails with a 401/403, IterateFetchCredentialsAfterFailure checks the original requested URL, not the final URL. If the original URL is a Google domain, it escalates to CREDENTIALS_OAUTH2_TOKEN and retries.

During the retry, CreateExtensionLoader fetches an OAuth2 token (scoped to chromewebstore.readonly) and adds it to the request:

C++
// extensions/browser/updater/extension_downloader.cc:1204
extension_loader_resource_request_->headers.SetHeader(
    net::HttpRequestHeaders::kAuthorization,
    base::StringPrintf("Bearer %s", access_token_.c_str()));

Crucially, ExtensionDownloader does not set an OnRedirectCallback on its SimpleURLLoader to strip the Authorization header on cross-origin redirects. The network service will transparently follow the redirect and send the sensitive header to the attacker's domain.

Potential Attack Steps

Note: These steps are suggested based on code analysis; our tooling has not executed them to confirm exploitation.

  1. A user installs an extension (e.g., via enterprise policy or developer mode) with an update_url pointing to an attacker-controlled server.
  2. The attacker's server responds to the update check with a manifest where the codebase attribute is an open redirect on a Google domain (e.g., https://google.com/url?q=https://attacker.com/crx).
  3. The ExtensionDownloader attempts to fetch the CRX. The Google endpoint redirects to the attacker's server, which returns an HTTP 401 Unauthorized.
  4. IterateFetchCredentialsAfterFailure sees the 401 error and checks the original URL (google.com). It escalates the request to CREDENTIALS_OAUTH2_TOKEN.
  5. The downloader fetches an OAuth2 token and retries the request to the Google open redirect, this time with an Authorization: Bearer <token> header.
  6. The Google endpoint again redirects to the attacker's server. Because SimpleURLLoader is not configured to remove the Authorization header, the token is sent to the attacker, leaking the user's credentials.

Suggested Fix

  1. ExtensionDownloader should use SimpleURLLoader::SetOnRedirectCallback to explicitly remove the Authorization header (and any cookie-related headers) if the redirect destination is no longer a trusted Google domain.
  2. IterateFetchCredentialsAfterFailure should ideally inspect the final URL that served the 401/403, rather than the initial fetch->url, before deciding to attach credentials.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 downloader trusts the original URL's domain for credential escalation and does not strip the Authorization header on cross-origin redirects.

Impact

An attacker could obtain the user's OAuth2 token, which is scoped to chromewebstore.readonly, by redirecting the download request to their own server.

What the attacker needed

User installs extension with attacker update_url; attacker controls update server; Google open redirect exists

The fix

The downloader should remove the Authorization header on redirects to untrusted domains and should check the final URL before escalating credentials.

How it was found

  1. A user installs an extension whose update URL points to an attacker-controlled server.
  2. The attacker's server responds with an update manifest whose codebase attribute is a Google open redirect to the attacker's site.
  3. The downloader fetches the CRX; the Google endpoint redirects to the attacker's server, which returns HTTP 401.
  4. The downloader sees the 401, checks the original Google URL, and escalates to using an OAuth2 token.
  5. The downloader fetches the token and retries the request to the Google open redirect with an Authorization header.
  6. The Google endpoint redirects again to the attacker's server, and the token is sent there because the header is not stripped.

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 a browser extension updates, it may send a secret token to Google to prove the user is allowed to download it. The code decides to send this token just because the address starts with google.com, but an attacker can use a Google link that redirects to their own site. The browser then follows the redirect and accidentally hands the secret token to the attacker.

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.