Skip to content
Smuggling / CRLF Advisory Advanced CVE-2026-11246

Insufficient validation of untrusted input in IndexedDB (CVE-2026-11246)

IndexedDB did not validate a blob's declared size against its actual physical size, and a network service component failed to clamp read sizes, causing an integer underflow. A compromised renderer could plant a malicious blob that, when fetched by an uncompromised renderer, would stream more data than the Content-Length header indicated, enabling persistent HTTP request smuggling.

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 forge the size of an IndexedDB blob to be much smaller than its physical size. When fetched, an integer underflow in DataPipeElementReader bypasses EOF checks, streaming the entire file. This sends an HTTP request with a small Content-Length but a large body, enabling persistent HTTP Request Smuggling.

Affected files:

  • content/browser/indexed_db/instance/blob_reader.cc
  • content/browser/indexed_db/instance/transaction.cc
  • content/browser/indexed_db/instance/leveldb/backing_store.cc
  • services/network/data_pipe_element_reader.cc

Estimated timestamp from git blame: 2025-11-11

Summary

Two related bugs allow a compromised renderer to plant a malicious IndexedDB blob that, when later fetched by an uncompromised renderer, results in persistent HTTP Request Smuggling.

First, IndexedDB does not sufficiently validate the size of a blob against its actual physical size during a put operation. Second, DataPipeElementReader in the network service fails to clamp its buffer read sizes, leading to an integer underflow when a data pipe provides more data than expected. This causes the browser to stream the entire physical file into the HTTP request body while maintaining a small Content-Length header.

Technical Details

  1. Forging Blob Size: In content/browser/indexed_db/instance/transaction.cc, Transaction::CreateExternalObjects only checks that info->size >= 0. A compromised renderer can provide a valid Mojo handle to a large blob (e.g., 1MB) but forge the IDBBlobInfo.size to be a small value (e.g., 100 bytes).
  2. Unbounded Disk Write: BackingStore::Transaction::WriteNewBlobs streams the full 1MB blob to disk, ignoring the forged size. The metadata stored in LevelDB retains the forged size (100).
  3. Blob Sourced in fetch: When an uncompromised renderer later retrieves this blob and passes it to fetch(), the browser prepares the upload.
  4. Flawed BlobReader Streaming: BlobReader::Read (content/browser/indexed_db/instance/blob_reader.cc) reports blob_length_ (100) to the network service callback, but subsequently invokes its internal Read method with std::numeric_limits<uint64_t>::max() as the length. This pumps the entire 1MB file into the Mojo data pipe.
  5. DataPipeElementReader Integer Underflow: The network service sets Content-Length: 100 and uses DataPipeElementReader (services/network/data_pipe_element_reader.cc) to consume the data pipe. However, DataPipeElementReader::ReadInternal does not clamp the requested read amount to BytesRemaining(). It reads up to buf_length (e.g., 4096 bytes or more) directly from the pipe.
  6. EOF Bypass: Because 4096 bytes are read, bytes_read_ becomes 4096. On the next read, BytesRemaining() calculates size_ - bytes_read_ (100 - 4096). Since these are uint64_t, this integer underflows to a massive positive number (0xfffffffffffff064).
  7. Smuggling Execution: With the EOF check (BytesRemaining() == 0) permanently bypassed, the entire 1MB payload is written to the network socket. The remote HTTP server reads only the first 100 bytes for the current request (due to Content-Length: 100) and treats the remaining 999,900 bytes as a new, attacker-controlled HTTP request on the keep-alive connection.

Potential Reproduction Steps

Note: These are suggested steps based on code analysis, as we currently lack the ability to run an automated PoC.

  1. From a compromised renderer, create a 1MB payload via blink.mojom.BlobRegistry.
  2. Initiate an IndexedDB put transaction. Pass an IDBExternalObject referencing the 1MB blob but with IDBBlobInfo.size explicitly set to 100.
  3. From an uncompromised renderer (e.g., after a browser restart or a different page load on the same origin), retrieve the blob from IndexedDB.
  4. Execute fetch('https://target-server.com/', {method: 'POST', body: retrieved_blob, keepalive: true}).
  5. Observe that the browser sends 1MB of body data despite the Content-Length: 100 header, leading to Request Smuggling on the target server.

Suggested Fix

  1. In services/network/data_pipe_element_reader.cc: Clamp the read amount in ReadInternal to prevent underflows.
C++
size_t num_bytes = base::checked_cast<size_t>(
    std::min(BytesRemaining(), static_cast<uint64_t>(buf_length)));
  1. In content/browser/indexed_db/instance/blob_reader.cc: Only stream up to blob_length_ into the pipe instead of std::numeric_limits<uint64_t>::max().
C++
void BlobReader::Read(mojo::ScopedDataPipeProducerHandle pipe,
                      network::mojom::DataPipeGetter::ReadCallback callback) {
  std::move(callback).Run(net::OK, blob_length_);
  Read(0, blob_length_, std::move(pipe), base::DoNothing());
}

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 combination of missing size validation in IndexedDB's blob storage and an integer underflow in the network service's data pipe reader, which together bypass end-of-file checks.

Impact

A compromised renderer could plant a malicious blob that, when fetched by an uncompromised renderer, enables persistent HTTP request smuggling against a target server.

What the attacker needed

Compromised renderer; uncompromised renderer fetches blob; target server vulnerable to smuggling

The fix

The fix should clamp read sizes in DataPipeElementReader to prevent underflow and limit BlobReader to stream only up to the declared blob length.

How it was found

  1. From a compromised renderer, create a 1MB payload via the BlobRegistry.
  2. Initiate an IndexedDB put transaction with an external object referencing the 1MB blob but with size set to 100.
  3. From an uncompromised renderer, retrieve the blob from IndexedDB.
  4. Execute a fetch POST request with the retrieved blob as the body and keepalive enabled.
  5. Observe that the browser sends 1MB of body data despite a Content-Length header of 100, leading to request smuggling on the target 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.

IndexedDB is a browser database for storing data locally. A blob is a chunk of binary data. The bug let a malicious page store a blob that claimed to be tiny but was actually large. When another page later sent that blob to a server, the browser sent more data than it said it would, which can confuse the server and let an attacker sneak in extra requests.

What is Smuggling / CRLF?

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.