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

Insufficient validation of untrusted input in Network (CVE-2026-11013)

A compromised renderer can send a positive status code in a Mojo GetSize() reply, causing the Network process to treat it as a byte count and transmit uninitialized heap memory to an attacker's server. This could leak sensitive cross-origin data such as cookies and authentication headers.

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: A compromised renderer can exfiltrate uninitialized heap memory from the Network process by sending a positive status code in a Mojo GetSize() reply. This tricks the network stack into treating the status as a successful byte count, transmitting up to 16KB of uninitialized buffer data to the attacker's server. This could leak sensitive cross-origin data such as cookies and authentication headers.

Affected files:

  • services/network/chunked_data_pipe_upload_data_stream.cc
  • net/base/upload_data_stream.cc
  • net/http/http_stream_parser.cc
  • net/spdy/spdy_http_stream.cc
  • services/network/public/mojom/chunked_data_pipe_getter.mojom

Estimated timestamp from git blame: 2024-06-24

Summary

A potential vulnerability exists in ChunkedDataPipeUploadDataStream where an unvalidated Mojo reply can cause the Network process to transmit uninitialized heap memory over the network. A compromised renderer can return a positive status value from ChunkedDataPipeGetter::GetSize(), which the network stack misinterprets as the number of bytes successfully read from an uninitialized upload buffer.

Vulnerability Details

When handling a chunked streaming upload, HttpStreamParser allocates an approximately 16KB SeekableIOBuffer (request_body_read_buf_) to hold chunk data. This buffer is backed by base::HeapArray<uint8_t>::Uninit(), meaning it contains uninitialized heap memory from the Network process.

If the renderer withholds data on the Mojo data pipe, the network read operation pends, and ChunkedDataPipeUploadDataStream stashes the uninitialized buffer in its buf_ member variable.

The ChunkedDataPipeGetter::GetSize() Mojo interface expects a reply of (int32 status, uint64 size). ChunkedDataPipeUploadDataStream::OnSizeReceived handles this reply but fails to validate that status is a valid error code (i.e., <= 0):

C++
void ChunkedDataPipeUploadDataStream::OnSizeReceived(int32_t status, uint64_t size) {
  // ...
  status_ = status; 
  // ...
  if (buf_ && (IsEOF() || status_ != net::OK)) {
    // ...
    OnReadCompleted(status_); // Passes attacker-controlled positive value
  }
}

If a compromised renderer provides a positive status (e.g., 16000), OnReadCompleted is called with that value. In net/base/upload_data_stream.cc, UploadDataStream::OnReadCompleted interprets any positive result as the number of bytes successfully read into the buffer:

C++
void UploadDataStream::OnReadCompleted(int result) {
  if (result > 0) {
    current_position_ += result;
    // ...
  }
  // ... runs callback with result
}

HttpStreamParser then takes result (16000) bytes from the uninitialized request_body_read_buf_, encodes them into an HTTP chunk, and sends the raw Network process heap memory to the destination server.

Potential Reproduction Steps

Note: These are suggested steps; our tooling does not yet run code to provide a working PoC.

  1. From a compromised renderer, initiate a fetch() request to an attacker-controlled server with a streaming body.
  2. Provide a custom ChunkedDataPipeGetter Mojo implementation.
  3. When the Network process attempts to read the upload body, withhold all data from the Mojo data pipe so the read returns net::ERR_IO_PENDING.
  4. Reply to the GetSize() Mojo call with a positive status value, such as 16000 (this must be <= 16372 to avoid crashing the span::first() bounds check inside HttpStreamParser).
  5. Observe that the Network process encodes 16,000 bytes of uninitialized heap memory and transmits it to the attacker's server.

Proposed Fix

Validate the status parameter in ChunkedDataPipeUploadDataStream::OnSizeReceived. If status > 0, it should be treated as an invalid IPC message (e.g., triggering mojo::ReportBadMessage) and the upload should be aborted with a standard error code like net::ERR_FAILED. Alternatively, add validation directly in the Mojo traits for GetSize to reject positive status codes.

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

The network process fails to validate that the status code from the renderer's GetSize() reply is non-positive, so a positive value is misinterpreted as a successful byte count.

Impact

This could leak sensitive cross-origin data such as cookies and authentication headers, but the attacker must first compromise the renderer.

What the attacker needed

Compromised renderer process

The fix

Validate the status parameter in OnSizeReceived and treat a positive status as an invalid IPC message, aborting the upload with a standard error code.

How it was found

  1. From a compromised renderer, initiate a fetch() request to an attacker-controlled server with a streaming body.
  2. Provide a custom ChunkedDataPipeGetter Mojo implementation.
  3. Withhold all data from the Mojo data pipe so the read returns net::ERR_IO_PENDING.
  4. Reply to the GetSize() Mojo call with a positive status value, such as 16000 (must be <= 16372 to avoid crashing).
  5. Observe that the Network process encodes 16,000 bytes of uninitialized heap memory and transmits it to the attacker's server.

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.

A web browser splits its work into processes: a renderer (which runs web pages) and a network process (which handles network requests). The renderer can ask the network process to upload data, and the network process uses a temporary buffer that is not cleared before use. If the renderer lies about how much data it sent, the network process may send leftover memory from its own heap to the attacker's server, potentially leaking secrets like cookies.

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.