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

Information leak in Proxy (CVE-2026-106214)

Chrome's WinHTTP proxy resolver retries a failed PAC fetch with automatic logon enabled, causing Windows to send the user's NetNTLMv2 credentials to an attacker-controlled wpad host. An attacker on the local network could harvest these credentials for offline cracking or NTLM relay.

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: When handling PAC file fetches via ProxyResolverWinHttp, receiving an HTTP 401 challenge triggers an explicit retry with fAutoLogonIfChallenged set to TRUE. This causes WinHTTP to automatically transmit the local Windows user's NetNTLMv2 credentials to an attacker-controlled wpad host, bypassing standard auth-canceling protections.

Affected files:

  • net/proxy_resolution/win/proxy_resolver_winhttp.cc
  • net/proxy_resolution/pac_file_decider.cc
  • chrome/browser/net/system_network_context_manager.cc
  • services/network/url_request_context_builder_mojo.cc
  • net/url_request/url_request_context_builder.cc
  • net/proxy_resolution/configured_proxy_resolution_service.cc

Estimated timestamp from git blame: 2008-09-09

1. Summary of the Issue (Meant for Human Triage)

A potential High-severity credential exposure vulnerability (NET-CRED) exists in Chrome's Windows proxy resolution logic when using the WinHTTP proxy resolver. Chromium's security guidelines strictly dictate that PAC script fetches must never send credentials (a rule typically enforced by PacFileFetcherImpl::OnAuthRequired on the default V8-Mojo path).

However, when the ProxyResolverWinHttp implementation is utilized, it bypasses the standard PacFileFetcherImpl logic entirely because it explicitly declares expects_pac_bytes = false. When the system attempts to fetch the PAC file using the Windows API WinHttpGetProxyForUrl and receives an HTTP 401 challenge (yielding ERROR_WINHTTP_LOGIN_FAILURE), the resolver catches this error and explicitly retries the request with fAutoLogonIfChallenged = TRUE.

Because Chromium does not override the default WINHTTP_OPTION_AUTOLOGON_POLICY, WinHTTP falls back to its default WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM behavior. Under this policy, WinHTTP treats the standard, dotless wpad hostname as belonging to the Intranet zone. Consequently, setting fAutoLogonIfChallenged = TRUE instructs WinHTTP to automatically and silently transmit the local interactive user's Windows OS credentials (NetNTLMv2 hash) to whoever answers the wpad resolution. An attacker positioned on the local network (e.g., rogue access point, coffee-shop Wi-Fi, or via LLMNR/DNS spoofing) can answer this query, serve a 401 challenge, and seamlessly harvest the victim's domain credentials for offline cracking or NTLM relay attacks.

Reachability: In official Chrome releases, this vulnerability is reachable when launched with the --winhttp-proxy-resolver or --single-process command-line flags. While off-by-default in Chrome proper, severity guidelines require assessing this as-if-reachable (High/S1) with Security_Impact-None. Crucially, this vulnerable path is the default out-of-the-box production behavior for third-party Windows applications that embed Chromium's //net library and use the default net::URLRequestContextBuilder::CreateProxyResolutionService.

Note: The exploitation steps detailed below are suggested/potential steps, as our tooling agent does not currently have the ability to run external code to provide a live proof-of-concept.


2. Proof-of-Concept & Detailed Execution Flow

The following traces the potential execution flow from attacker interception to credential compromise.

Attacker Prerequisites

  1. The attacker is positioned on the same local network as the victim (e.g., A-NETCONF threat model) and runs a DNS/LLMNR spoofer to answer wpad queries with their own IP, alongside a malicious HTTP server on port 80.
  2. The Windows victim has "Automatically detect settings" enabled in Internet Options and either runs Chrome with --winhttp-proxy-resolver, or uses a third-party //net embedder on Windows.

Execution Trace

Step 1: Network Context Initialization Fallback When launched with the flag, SystemNetworkContextManager::CreateNetworkContextParams skips setting the Mojo proxy_resolver_factory (chrome/browser/net/system_network_context_manager.cc:976-980). This causes URLRequestContextBuilderMojo::CreateProxyResolutionService to fall back to the standard net::URLRequestContextBuilder::CreateProxyResolutionService (services/network/url_request_context_builder_mojo.cc:116).

Step 2: Null Fetcher Injection On this fallback path, ConfiguredProxyResolutionService::SetPacFileFetchers is never called. As a result, the service's pac_file_fetcher_ remains nullptr. The service initializes using ProxyResolverFactoryForSystem (net/proxy_resolution/configured_proxy_resolution_service.cc:861), which on Windows instantiates ProxyResolverFactoryWinHttp (net/proxy_resolution/configured_proxy_resolution_service.cc:253-255).

Step 3: Disabling Safe PAC Byte Fetching ProxyResolverFactoryWinHttp calls its base class constructor with expects_pac_bytes = false:

C++
// net/proxy_resolution/win/proxy_resolver_winhttp.cc:216-218
ProxyResolverFactoryWinHttp::ProxyResolverFactoryWinHttp()
    : ProxyResolverFactory(false /*expects_pac_bytes*/) {}

When the proxy service initializes, it invokes InitProxyResolver::DoDecidePacFile, which extracts this boolean flag and passes it to PacFileDecider::Start (net/proxy_resolution/configured_proxy_resolution_service.cc:551). PacFileDecider saves this to fetch_pac_bytes_ = false.

Step 4: PacFileDecider Skips Mitigation Because pac_file_fetcher_ is null, PacFileDecider::DoQuickCheck skips the WPAD quick-check and jumps to GetStartState() (net/proxy_resolution/pac_file_decider.cc:255-260). In GetStartState(), because fetch_pac_bytes_ is false, it returns STATE_VERIFY_PAC_SCRIPT instead of STATE_FETCH_PAC_SCRIPT:

C++
// net/proxy_resolution/pac_file_decider.cc:446-448
PacFileDecider::State PacFileDecider::GetStartState() const {
  return fetch_pac_bytes_ ? STATE_FETCH_PAC_SCRIPT : STATE_VERIFY_PAC_SCRIPT;
}

This completely bypasses PacFileFetcherImpl::OnAuthRequired, circumventing Chrome's primary mechanism for safely aborting authenticated PAC fetches.

Step 5: WPAD URL Hardcoding PacFileDecider yields PacFileData::ForAutoDetect(). The ProxyResolverWinHttp constructor sees TYPE_AUTO_DETECT and hardcodes its internal pac_url_ to http://wpad/wpad.dat:

C++
// net/proxy_resolution/win/proxy_resolver_winhttp.cc:82-86
ProxyResolverWinHttp::ProxyResolverWinHttp(
    const scoped_refptr<PacFileData>& script_data)
    : pac_url_(script_data->type() == PacFileData::TYPE_AUTO_DETECT
                   ? GURL("http://wpad/wpad.dat")
                   : script_data->url()) {}

Step 6: First Failed OS Fetch Attempt When a network request is made, ProxyResolverWinHttp::GetProxyForURL begins proxy resolution. It initializes WINHTTP_AUTOPROXY_OPTIONS with fAutoLogonIfChallenged = FALSE and calls the Windows OS API:

C++
// net/proxy_resolution/win/proxy_resolver_winhttp.cc:121-137
options.fAutoLogonIfChallenged = FALSE;
// ... string conversions ...
BOOL ok = WinHttpGetProxyForUrl(session_handle_, ..., &options, &info);

The OS requests http://wpad/wpad.dat from the attacker. The attacker responds with HTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: NTLM. WinHTTP rejects it, returning FALSE and yielding ERROR_WINHTTP_LOGIN_FAILURE.

Step 7: The Vulnerable Credential-Leaking Retry The resolver traps this error and explicitly toggles fAutoLogonIfChallenged to TRUE, initiating a retry:

C++
// net/proxy_resolution/win/proxy_resolver_winhttp.cc:138-144
if (!ok) {
  if (ERROR_WINHTTP_LOGIN_FAILURE == GetLastError()) {
    options.fAutoLogonIfChallenged = TRUE; // <--- The Vulnerability
    ok = WinHttpGetProxyForUrl(session_handle_, ..., &options, &info);
  }

Because Chrome never configures WINHTTP_OPTION_AUTOLOGON_POLICY on the session handle (net/proxy_resolution/win/proxy_resolver_winhttp.cc:189-205), WinHTTP uses the default WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM. Under this policy, WinHTTP inherently trusts dotless hostnames like wpad as belonging to the Intranet zone. Consequently, WinHTTP immediately and silently responds to the attacker's NTLM challenge with the current Windows user's NetNTLMv2 hash, resulting in domain credential compromise.

Suggested Fix

The explicit retry block starting at net/proxy_resolution/win/proxy_resolver_winhttp.cc:138 should be removed, or alternatively, fAutoLogonIfChallenged should remain statically false. If there is a legitimate legacy requirement for this retry, it must be gated behind strict same-zone or HTTPS-only policy checks, or the session must be locked down by explicitly setting WINHTTP_OPTION_AUTOLOGON_POLICY to WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH to prevent arbitrary dotless hostname trust.


3. Technical Verification Details (Automated Audit Logs - Reviewers may skip this section)

Prior Critic Verdict:

*   Severity: High (S1)
*   Brief Notes / Reasoning:
    The report correctly identifies a logic flaw in `ProxyResolverWinHttp` where Chrome explicitly retries a failed PAC fetch with `fAutoLogonIfChallenged = TRUE` upon receiving a 401 challenge (`net/proxy_resolution/win/proxy_resolver_winhttp.cc:140`). This violates the security invariant enforced on the default V8-mojo path, which explicitly cancels auth for PAC fetches to prevent credential leaks. An attacker on the local network (MITM) who spoof the `wpad` host and returns an NTLM challenge can force WinHTTP to automatically send the victim's Windows OS credentials (NetNTLMv2 hash), as WinHTTP treats dotless hostnames as Intranet-zone by default. This allows for offline cracking or NTLM relay attacks, directly matching the High (S1) criteria: 'HTTP auth credentials ... is sent to an origin other than the one it is bound to'. Although this path is only reachable in Chrome via the off-by-default `--winhttp-proxy-resolver` flag, the severity guidelines explicitly state: 'assess severity AS IF the flag were on, and note Security_Impact-None separately. Do NOT downgrade to S3 for unreachability'. Therefore, the as-if-reachable severity remains S1. Note: `Security_Impact-None` applies for default Chrome, though this is the default production behavior for any third-party Windows `//net` embedders using `URLRequestContextBuilder::CreateProxyResolutionService`.

Codebase Investigator Proofs:

  1. Propagation of expects_pac_bytes(): Trace confirms that ProxyResolverFactoryWinHttp initializes expects_pac_bytes to false. When ConfiguredProxyResolutionService::InitializeUsingLastFetchedConfig invokes init_proxy_resolver_->Start, the decider is started using decider_->Start(..., proxy_resolver_factory_->expects_pac_bytes(), ...) (line 551). This passes false to PacFileDecider::Start, storing it in fetch_pac_bytes_ (line 113). PacFileDecider::GetStartState (lines 446-448) returns STATE_VERIFY_PAC_SCRIPT, circumventing the fetch phase.
  2. State of pac_file_fetcher_: The investigator verified that ConfiguredProxyResolutionService::SetPacFileFetchers is only called within services/network/proxy_service_mojo.cc. On the fallback path through net::URLRequestContextBuilder::CreateProxyResolutionService (called when mojo_proxy_resolver_factory_ is null), SetPacFileFetchers is completely skipped, leaving pac_file_fetcher_ permanently nullptr.
  3. Bypass of DoQuickCheck: Investigator logs verify that PacFileDecider::DoQuickCheck (lines 255-260) explicitly checks !pac_file_fetcher_. Because it is null on this path, it skips the check entirely and transitions via GetStartState().
  4. PAC URL and fAutoLogonIfChallenged Sync: Investigator verifies that ProxyResolverWinHttp evaluates script_data->type() == PacFileData::TYPE_AUTO_DETECT and hardcodes GURL("http://wpad/wpad.dat"). In GetProxyForURL (lines 120-144), this URL is assigned to options.lpszAutoConfigUrl. It confirms that the fallback execution (line 140) sets options.fAutoLogonIfChallenged = TRUE and immediately calls WinHttpGetProxyForUrl.

Environmental Assumptions & Requirements:

  • WINHTTP_OPTION_AUTOLOGON_POLICY remains unset (verified via lack of references in net/proxy_resolution/win/proxy_resolver_winhttp.cc:189-205), meaning WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM is active.
  • The bare, dotless hostname wpad satisfies Windows Intranet Zone checks for automatic NTLM/Negotiate authentication under the MEDIUM security level.
  • --winhttp-proxy-resolver command line switch remains actively evaluated for system fallback, or the application embeds the //net API defaults directly.

Evaluated with Chrome root at commit: f4cb78b4ec077b7f51b504af9350cdc166d10c2f


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 WinHTTP proxy resolver explicitly retries a failed PAC fetch with fAutoLogonIfChallenged set to TRUE, and because the WinHTTP session does not override the default autologon policy, Windows treats the dotless 'wpad' host as intranet and sends credentials.

Impact

An attacker on the local network could harvest the victim's NetNTLMv2 hash for offline cracking or NTLM relay; in default Chrome this requires the --winhttp-proxy-resolver flag, but it is the default for third-party //net embedders.

What the attacker needed

Attacker on same local network; victim has auto-detect settings enabled; Chrome launched with --winhttp-proxy-resolver; or third-party //net embedder on Windows

The fix

The retry block should be removed or fAutoLogonIfChallenged kept false, or the WinHTTP session should set WINHTTP_OPTION_AUTOLOGON_POLICY to HIGH.

How it was found

  1. Attacker on the local network answers wpad queries with their own IP and runs an HTTP server.
  2. Chrome is launched with the --winhttp-proxy-resolver flag (or a third-party //net embedder uses the default builder).
  3. The proxy resolver falls back to the WinHTTP path, leaving the PAC file fetcher null and skipping the safe auth-canceling logic.
  4. The resolver hardcodes the PAC URL to http://wpad/wpad.dat and makes an initial WinHTTP request with fAutoLogonIfChallenged set to FALSE.
  5. The attacker responds with an HTTP 401 NTLM challenge, causing WinHTTP to return ERROR_WINHTTP_LOGIN_FAILURE.
  6. The resolver retries with fAutoLogonIfChallenged set to TRUE, and WinHTTP automatically sends the user's NetNTLMv2 hash to the attacker.

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 computer needs to find a proxy server, it may ask a host called 'wpad' on the local network. This report says Chrome's Windows proxy code, after getting a login challenge from that host, retries with a setting that tells Windows to automatically send the user's login credentials. An attacker on the same Wi-Fi could pretend to be 'wpad' and steal those credentials.

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.