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.cccontent/browser/indexed_db/instance/transaction.cccontent/browser/indexed_db/instance/leveldb/backing_store.ccservices/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
- Forging Blob Size: In
content/browser/indexed_db/instance/transaction.cc,Transaction::CreateExternalObjectsonly checks thatinfo->size >= 0. A compromised renderer can provide a valid Mojo handle to a large blob (e.g., 1MB) but forge theIDBBlobInfo.sizeto be a small value (e.g., 100 bytes). - Unbounded Disk Write:
BackingStore::Transaction::WriteNewBlobsstreams the full 1MB blob to disk, ignoring the forged size. The metadata stored in LevelDB retains the forged size (100). - Blob Sourced in
fetch: When an uncompromised renderer later retrieves this blob and passes it tofetch(), the browser prepares the upload. - Flawed
BlobReaderStreaming:BlobReader::Read(content/browser/indexed_db/instance/blob_reader.cc) reportsblob_length_(100) to the network service callback, but subsequently invokes its internalReadmethod withstd::numeric_limits<uint64_t>::max()as the length. This pumps the entire 1MB file into the Mojo data pipe. DataPipeElementReaderInteger Underflow: The network service setsContent-Length: 100and usesDataPipeElementReader(services/network/data_pipe_element_reader.cc) to consume the data pipe. However,DataPipeElementReader::ReadInternaldoes not clamp the requested read amount toBytesRemaining(). It reads up tobuf_length(e.g., 4096 bytes or more) directly from the pipe.- EOF Bypass: Because 4096 bytes are read,
bytes_read_becomes 4096. On the next read,BytesRemaining()calculatessize_ - bytes_read_(100 - 4096). Since these areuint64_t, this integer underflows to a massive positive number (0xfffffffffffff064). - 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 toContent-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.
- From a compromised renderer, create a 1MB payload via
blink.mojom.BlobRegistry. - Initiate an IndexedDB
puttransaction. Pass anIDBExternalObjectreferencing the 1MB blob but withIDBBlobInfo.sizeexplicitly set to 100. - From an uncompromised renderer (e.g., after a browser restart or a different page load on the same origin), retrieve the blob from IndexedDB.
- Execute
fetch('https://target-server.com/', {method: 'POST', body: retrieved_blob, keepalive: true}). - Observe that the browser sends 1MB of body data despite the
Content-Length: 100header, leading to Request Smuggling on the target server.
Suggested Fix
- In
services/network/data_pipe_element_reader.cc: Clamp the read amount inReadInternalto prevent underflows.
size_t num_bytes = base::checked_cast<size_t>(
std::min(BytesRemaining(), static_cast<uint64_t>(buf_length)));
- In
content/browser/indexed_db/instance/blob_reader.cc: Only stream up toblob_length_into the pipe instead ofstd::numeric_limits<uint64_t>::max().
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.
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
- From a compromised renderer, create a 1MB payload via the BlobRegistry.
- Initiate an IndexedDB put transaction with an external object referencing the 1MB blob but with size set to 100.
- From an uncompromised renderer, retrieve the blob from IndexedDB.
- Execute a fetch POST request with the retrieved blob as the body and keepalive enabled.
- 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.