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

Information leak in CORS (CVE-2026-79034)

The `did_use_server_http_auth` flag in `URLResponseHead` is not cleared for cross-origin or opaque responses in `CorsURLLoader`, so a compromised renderer can learn whether the user has HTTP-auth credentials for a target origin. By probing different paths, the attacker can enumerate which HTTP-auth-protected origins and directory prefixes the user is logged into.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 48 days

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: A compromised renderer can potentially determine if a user is logged into an HTTP-auth-protected origin and enumerate directory prefixes. This occurs because the did_use_server_http_auth field in URLResponseHead is not sanitized for cross-origin or opaque responses in CorsURLLoader. Because the HTTP auth cache is unpartitioned by default, preemptive authentication attempts will leak this state cross-origin when third-party cookies/state are permitted.

Affected files:

  • services/network/cors/cors_url_loader.cc
  • services/network/url_loader_util.cc
  • services/network/public/mojom/url_response_head.mojom

Estimated timestamp from git blame: 2025-10-01

Root Cause

In Chromium's network service, url_loader_util::BuildResponseHead() unconditionally copies the network transaction's did_use_server_http_auth bit into the renderer-bound URLResponseHead structure:

C++
// services/network/url_loader_util.cc:694
response->did_use_server_http_auth = response_info.did_use_server_http_auth;

While sibling fields inside the response head (such as device_bound_session_usage) are explicitly sanitized/cleared for cross-origin (non-basic) responses in CorsURLLoader::OnReceiveResponse and during redirects, did_use_server_http_auth is left untouched:

C++
// services/network/cors/cors_url_loader.cc:703-713
response_head->response_type = response_tainting_;
...
if (response_head->response_type != mojom::FetchResponseType::kBasic) {
  response_head->device_bound_session_usage =
      mojom::DeviceBoundSessionUsage::kUnknown;
}
// did_use_server_http_auth is NOT cleared
forwarding_client_->OnReceiveResponse(
    std::move(response_head), std::move(body), std::move(cached_metadata));

The same lack of sanitization is present on redirect paths in cors_url_loader.cc:786-787 and cors_url_loader.cc:863-866.

Why the Bit Encodes Cross-Origin State

The did_use_server_http_auth bit is set to true whenever the outgoing request carries an Authorization header:

C++
// net/http/http_network_transaction.cc:1433-1434
response_.did_use_server_http_auth =
    request_headers_.HasHeader(HttpRequestHeaders::kAuthorization);

When a request is initiated, if credentials already exist in the HttpAuthCache, the browser performs preemptive authentication to avoid an extra 401 challenge round-trip. This is managed by SelectPreemptiveAuth which queries the cache via LookupByPath():

C++
// net/http/http_auth_controller.cc:158-161
HttpAuthCache::Entry* entry = http_auth_cache_->LookupByPath(
    auth_scheme_host_port_, target_, network_anonymization_key_, auth_path_);

By default, the HTTP auth cache is unpartitioned because kSplitAuthCacheByNetworkIsolationKey is disabled (services/network/public/cpp/features.cc:92-93). Consequently, credentials entered by the user in a first-party context can be matched and attached to requests initiated by a third-party context (e.g., evil.com).

Potential Attack Scenario

Note: These are potential steps. Our tooling agent does not have the ability to run code or verify exploitability in a live environment.

  1. The victim previously authenticated to a sensitive HTTP-auth-protected origin (e.g., https://victim.intranet/admin/) in a first-party context.
  2. An attacker compromises the renderer process hosting a malicious site (e.g., https://evil.com/).
  3. The compromised renderer issues a cross-origin probe request to https://victim.intranet/admin/x with credentials_mode=kInclude and mode=kNoCors.
  4. If third-party state/cookies are allowed for the target pair, privacy mode is set to PRIVACY_MODE_DISABLED. The transaction queries the unpartitioned cache and attaches the Authorization header preemptively, setting did_use_server_http_auth to true.
  5. The network service returns the response with did_use_server_http_auth = true. CorsURLLoader marks the response type as kOpaque but fails to clear this flag.
  6. The compromised renderer reads the did_use_server_http_auth bit from the received URLResponseHead (already accessed in third_party/blink/renderer/platform/exported/resource_load_info_notifier_wrapper.cc:137-138).
  7. By comparing results across different paths, the attacker can deterministically map out the user's active HTTP-auth logins and directory path prefixes.

Suggested Fix

Sanitize the did_use_server_http_auth field inside CorsURLLoader whenever the response type is not mojom::FetchResponseType::kBasic (similar to how device_bound_session_usage is sanitized). For example:

C++
if (response_head->response_type != mojom::FetchResponseType::kBasic) {
  response_head->device_bound_session_usage =
      mojom::DeviceBoundSessionUsage::kUnknown;
  response_head->did_use_server_http_auth = false;
}

Ensure this sanitization is consistently applied in OnReceiveResponse and redirect handling paths within cors_url_loader.cc.

Evaluated with Chrome root at commit: 84065d9121f6e48f67755f0ae963cc09617e5c85


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 network service copies the `did_use_server_http_auth` bit into the response head without clearing it for non-basic (cross-origin or opaque) responses, unlike sibling fields such as `device_bound_session_usage`.

Impact

A compromised renderer could determine whether the user is logged into HTTP-auth-protected origins and enumerate directory prefixes, but only when third-party state is permitted and the auth cache is unpartitioned.

What the attacker needed

Compromised renderer; victim has HTTP-auth credentials; third-party state allowed; unpartitioned auth cache

The fix

The field should be cleared in `CorsURLLoader` whenever the response type is not basic, in both the response and redirect paths.

How it was found

  1. The victim authenticates to an HTTP-auth-protected origin in a first-party context.
  2. An attacker compromises the renderer hosting a malicious site.
  3. The compromised renderer sends a cross-origin probe request with credentials included and no-CORS mode.
  4. If third-party state is allowed, the unpartitioned auth cache supplies credentials preemptively and sets the flag.
  5. The network service returns the response with the flag still set, and `CorsURLLoader` marks it opaque without clearing it.
  6. The renderer reads the flag and compares results across paths to map active logins and directory prefixes.

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.

Some websites ask the browser for a username and password using a built-in prompt called HTTP authentication. The browser remembers these logins and can reuse them automatically. This report says a malicious page could ask the browser to make requests to other sites and then read a hidden flag that reveals whether the browser reused a saved login, letting the attacker map out which internal sites the user can access.

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.