Skip to content
Access control Advisory Advanced CVE-2026-113195

Improper input validation in Downloads (CVE-2026-113195)

A compromised renderer could bypass StorageKey partitioning by initiating a download of a blob URL with a null blob URL token, because the browser-side validation accepts the null token and falls back to an unpartitioned loader factory. This allows the compromised renderer to trigger downloads of cross-partition blob contents directly to the local disk, though the attacker cannot read the data directly.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 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: A compromised renderer can potentially bypass StorageKey partitioning by initiating a download of a blob URL with a null blob URL token. The browser-side validation in VerifyBlobToken accepts the null token, causing DownloadManagerImpl::BeginDownloadInternal to fall back to an unpartitioned loader factory. This allows the compromised renderer to trigger downloads of cross-partition blob contents directly to the local disk.

Affected files:

  • content/browser/download/download_manager_impl.cc
  • content/browser/renderer_host/ipc_utils.cc
  • content/browser/renderer_host/render_frame_host_impl.cc
  • content/browser/blob_storage/chrome_blob_storage_context.cc
  • storage/browser/blob/blob_url_registry.cc

Estimated timestamp from git blame: 2024-08-21

Potential StorageKey Partitioning Bypass in DownloadManagerImpl Fallback

Root Cause Analysis

When a download of a blob: URL is initiated, ipc_utils.cc:VerifyBlobToken verifies that if a BlobURLToken is present, the associated URL must have a blob: scheme. However, it does not enforce that a blob: URL must be accompanied by a valid token:

C++
// content/browser/renderer_host/ipc_utils.cc
bool VerifyBlobToken(
    int process_id,
    const mojo::PendingRemote<blink::mojom::BlobURLToken>& received_token,
    const GURL& received_url) {
  DCHECK_NE(ChildProcessHost::kInvalidUniqueID, process_id);

  if (received_token.is_valid()) {
    if (!received_url.SchemeIsBlob()) {
      bad_message::ReceivedBadMessage(
          process_id, bad_message::BLOB_URL_TOKEN_FOR_NON_BLOB_URL);
      return false;
    }
  }

  return true; // A blob: URL with a null token returns true successfully.
}

Because VerifyDownloadUrlParams delegates to VerifyBlobToken, the browser successfully accepts a renderer-supplied blink::mojom::DownloadURLParams message where the url is a blob: URL (e.g., blob:https://victim.example/<uuid>) and the blob_url_token is null (since blob_url_token is optional in the Mojom definition).

Subsequently, inside RenderFrameHostImpl::DownloadURL, the token-based loader factory creation is skipped because blob_url_token is null:

C++
// content/browser/renderer_host/render_frame_host_impl.cc
scoped_refptr<network::SharedURLLoaderFactory> blob_url_loader_factory;
if (blink_parameters->blob_url_token) {
  blob_url_loader_factory =
      ChromeBlobStorageContext::URLLoaderFactoryForToken(
          GetStoragePartition(), std::move(blink_parameters->blob_url_token));
}
...
StartDownload(std::move(parameters), std::move(blob_url_loader_factory));

This null factory propagates through StartDownload and DownloadManagerImpl::DownloadUrl into DownloadManagerImpl::BeginDownloadInternal. Because the factory is null but the URL has a blob: scheme, BeginDownloadInternal falls back to creating an unpartitioned factory using ChromeBlobStorageContext::URLLoaderFactoryForUrl:

C++
// content/browser/download/download_manager_impl.cc
if (!blob_url_loader_factory && params->url().SchemeIsBlob()) {
  blob_url_loader_factory = ChromeBlobStorageContext::URLLoaderFactoryForUrl(
      GetStoragePartitionForConfig(browser_context_, storage_partition_config),
      params->url());
}

URLLoaderFactoryForUrl resolves the target blob URL using a direct registry lookup:

C++
// content/browser/blob_storage/chrome_blob_storage_context.cc
storage::BlobURLLoaderFactory::Create(
    static_cast<StoragePartitionImpl*>(storage_partition)
        ->GetBlobUrlRegistry()
        ->GetBlobFromUrl(url), // Raw lookup
    url, blob_url_loader_factory_remote.InitWithNewPipeAndPassReceiver());

BlobUrlRegistry::GetBlobFromUrl returns the blob solely based on a matching URL without performing a StorageKey partitioning check (unlike the token-based path BlobURLStoreImpl::ResolveAsURLLoaderFactory, which enforces IsUrlMapped and kBlockCrossPartitionBlobUrlFetching). This potentially allows a compromised renderer to bypass the storage partition isolation constraints.

Potential Attack Scenario

Note: These are suggested/potential steps based on source-code analysis; our tooling agent does not have the ability to run code or compile a working proof-of-concept.

  1. A victim site (https://victim.example) creates a sensitive blob containing private data.
  2. The compromised renderer is hosted on a different top-level origin (or uses an unguessable UUID for a cross-origin target) but shares the same default StoragePartition.
  3. The compromised renderer calls LocalFrameHost::DownloadURL with the target blob:https://victim.example/<uuid> and a null blob_url_token.
  4. The browser process validates the input, fails to verify partitioning because the token is missing, constructs an unpartitioned loader factory, and writes the contents of the target blob directly into the user's Downloads directory.

Impact Limitation: Because the blob bytes are streamed directly to a file on local disk rather than being returned to the compromised renderer's memory space, the attacker cannot read this cross-partition data directly. The attacker would have to rely on additional steps (such as social engineering or tricking the user into uploading the downloaded file via a file picker) to exfiltrate the file's contents.

Suggested Fix

Ensure that all renderer-initiated downloads of blob: URLs are accompanied by a valid token. A similar safety pattern is already implemented for Dedicated Workers in content/browser/worker_host/dedicated_worker_host.cc, where a bad message report is generated if a blob: URL is provided without a valid token. Applying a similar check in VerifyDownloadUrlParams will ensure that all blob: download requests authenticate access via a valid token, enforcing StorageKey partitioning.

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


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 browser-side validation function VerifyBlobToken does not enforce that a blob: URL must be accompanied by a valid token, allowing a null token to bypass partitioning checks.

Impact

The attacker could cause cross-partition blob contents to be written to the local disk, but cannot read the data directly and would need additional steps to exfiltrate it.

What the attacker needed

Compromised renderer; victim site creates a blob; same StoragePartition

The fix

The fix should ensure that all renderer-initiated downloads of blob: URLs are accompanied by a valid token, similar to the check already implemented for Dedicated Workers.

How it was found

  1. A victim site creates a sensitive blob containing private data.
  2. The compromised renderer is hosted on a different top-level origin but shares the same default StoragePartition.
  3. The compromised renderer calls LocalFrameHost::DownloadURL with the target blob URL and a null blob_url_token.
  4. The browser process validates the input, fails to verify partitioning because the token is missing, constructs an unpartitioned loader factory, and writes the contents of the target blob directly into the user's Downloads directory.

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 blob URL is a temporary link to data stored in the browser's memory. The browser normally checks that a page is allowed to access a blob before letting it download it. Here, the check was incomplete: if a page asked to download a blob without providing a special token, the browser skipped the check and downloaded the blob anyway, even if it belonged to another site.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.