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

Information leak in Network (CVE-2026-79220)

The Network Service failed to strip HTTP authentication headers from WebSocket handshake details sent back to the renderer, so a compromised renderer could read cached Basic or Digest credentials. An attacker with code execution in a sandboxed renderer could initiate a WebSocket to an authenticated origin or proxy and extract the leaked credentials.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Flapjack, 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 Network Service fails to redact sensitive HTTP authentication headers when reporting WebSocket handshake details back to the renderer process. A compromised renderer can exploit this to steal cached user credentials by initiating a WebSocket connection to an authenticated origin or proxy.

Affected files:

  • services/network/websocket.cc

Estimated timestamp from git blame: 2018-11-30

Vulnerability Description

A potential high-severity information leak exists in Chromium's Network Service. When a WebSocket connection is initiated, the underlying HTTP transaction (net::HttpNetworkTransaction) automatically appends cached credentials (e.g., for Basic or Digest authentication) to the outgoing request via Authorization and Proxy-Authorization headers if the user has previously authenticated to the target server or proxy.

To support diagnostic features, the Network Service reports the over-the-wire headers back to the renderer process through the mojom::WebSocketHandshakeClient::OnOpeningHandshakeStarted Mojo interface. The code responsible for preparing this message is WebSocketEventHandler::OnStartOpeningHandshake within services/network/websocket.cc.

While the implementation explicitly filters out the Cookie header for renderers that lack raw header access (impl_->has_raw_headers_access_ is false), it fails to apply this filtering to Authorization or Proxy-Authorization headers. Consequently, sensitive cached credentials are inadvertently leaked across the process boundary back to the unprivileged renderer.

Potential Exploitation Steps

An attacker who has achieved code execution within a sandboxed renderer process (e.g., via a V8 or Blink vulnerability) could potentially exploit this to steal user credentials:

  1. The attacker's compromised renderer initiates a new WebSocket connection via the network::mojom::NetworkContext::CreateWebSocket Mojo interface, targeting a URL where the user has an active HTTP Auth session (or a request that traverses an authenticated proxy).
  2. The Network Service sets up the connection. Because valid credentials exist in net::HttpAuthCache, net::HttpNetworkTransaction::BuildRequestHeaders appends the Authorization or Proxy-Authorization header to the request.
  3. The net::WebSocketBasicHandshakeStream copies these enriched headers into a WebSocketHandshakeRequestInfo object and triggers the OnStartOpeningHandshake event.
  4. In services/network/websocket.cc, the sanitization loop fails to strip the authentication headers because it only checks for net::HttpRequestHeaders::kCookie.
  5. The Network Service sends the unredacted headers back to the renderer via the OnOpeningHandshakeStarted IPC.
  6. The attacker's custom WebSocketHandshakeClient receives the IPC and extracts the base64-encoded or plaintext credentials from the Authorization header.

Note: Our tooling agent cannot run code, so these are potential steps derived from static analysis of the codebase.

Impact

This bypasses the renderer/network privilege separation intended to protect credentials. While server authentication credentials (AUTH_SERVER) are partitioned by NetworkAnonymizationKey, proxy credentials (AUTH_PROXY) are not partitioned (they use an empty NAK). Thus, a single compromised renderer could potentially extract global proxy credentials, elevating the impact of the leak.

Recommended Fix

The filtering logic in services/network/websocket.cc within WebSocketEventHandler::OnStartOpeningHandshake should be updated to strip net::HttpRequestHeaders::kAuthorization and net::HttpRequestHeaders::kProxyAuthorization (in addition to kCookie) when impl_->has_raw_headers_access_ is false.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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

The header sanitisation loop in WebSocketEventHandler::OnStartOpeningHandshake only removes the Cookie header and does not remove Authorization or Proxy-Authorization headers before sending handshake details to a renderer without raw header access.

Impact

A compromised renderer could steal cached server credentials and, because proxy credentials are not partitioned, global proxy credentials, weakening the renderer/network privilege separation; the text notes the steps are derived from static analysis and were not run.

What the attacker needed

Code execution in a sandboxed renderer; user has cached HTTP auth credentials; target origin or proxy is authenticated

The fix

The filtering in WebSocketEventHandler::OnStartOpeningHandshake should also strip the Authorization and Proxy-Authorization headers when the renderer lacks raw header access.

How it was found

  1. A compromised renderer opens a WebSocket to a URL where the user has an active HTTP authentication session or that goes through an authenticated proxy.
  2. The Network Service builds the handshake request and adds the cached Authorization or Proxy-Authorization header.
  3. The handshake stream copies the enriched headers into the handshake request info and fires the opening handshake event.
  4. The sanitisation code in websocket.cc leaves the authentication headers in place because it only checks for the Cookie header.
  5. The Network Service sends the unredacted headers to the renderer over the opening handshake IPC.
  6. The attacker's handshake client reads the credentials from the Authorization header.

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 log in to a website with a username and password prompt, the browser stores those credentials and adds them to later requests automatically. Chromium splits its work into a sandboxed renderer (where web pages run) and a more privileged network service, and the network service is supposed to hide secrets like cookies from the renderer. Here it forgot to hide the login credentials too, so a renderer that has already been hacked could read them.

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.