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

Incorrect authorization in CacheStorage (CVE-2026-121063)

A compromised renderer can forge the request_include_credentials flag when storing an opaque response in CacheStorage, causing the browser to skip CORP checks for credentialless isolated processes. This could allow a Spectre attack to read sensitive cross-origin data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 7 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 without the security team.

Overview: A compromised renderer can forge the request_include_credentials flag when storing an opaque response in CacheStorage. This allows a credentialed cross-origin response to falsely bypass Cross-Origin Resource Policy (CORP) checks when retrieved by a separate credentialless isolated process (e.g., COEP:credentialless). This subverts the defense-in-depth boundary meant to prevent Spectre attacks on sensitive cross-origin data.

Affected files:

  • content/browser/cache_storage/cache_storage_cache.cc
  • content/browser/cache_storage/cache_storage_dispatcher_host.cc
  • services/network/cross_origin_resource_policy.cc

Estimated timestamp from git blame: 2021-06-07

Summary

A vulnerability in the browser-side CacheStorage implementation potentially allows a compromised renderer to bypass Cross-Origin Resource Policy (CORP) protections designed for credentialless environments. By forging the request_include_credentials field in a CacheStorage::Put IPC, an attacker can mark a credentialed opaque response as uncredentialed. When this response is later retrieved by a separate process using COEP: credentialless or Document-Isolation-Policy: isolate-and-credentialless, the browser-side CORP check relies on this forged metadata and incorrectly allows access to the resource, bypassing the defense-in-depth boundary against Spectre attacks.

Vulnerability Details

The browser-process CORP check for CacheStorage trusts the request_include_credentials field supplied by the renderer without validation.

  1. Injection: In content/browser/cache_storage/cache_storage_cache.cc, the PutDidCreateEntry method stores metadata from the renderer's Put request. It specifically saves the request_include_credentials boolean from the FetchAPIResponse object verbatim (lines 1937-1938):

    C++
    response_metadata->set_request_include_credentials(
        put_context->response->request_include_credentials);
    
  2. Trust: The CacheStorageDispatcherHost and related validation logic (e.g., ValidBatchOperations in content/browser/cache_storage/cache_storage_dispatcher_host.cc:69) check operation types and quotas but do not validate the semantic correctness of the response fields supplied by the renderer.

  3. Retrieval and Bypass: When a document with COEP: credentialless or Document-Isolation-Policy: isolate-and-credentialless attempts to match the request in the cache, the browser retrieves the stored flag (content/browser/cache_storage/cache_storage_cache.cc:481-483).

  4. CORP Evaluation: The cache match callback in CacheStorageDispatcherHost::CacheImpl::Match calls ResponseBlockedByCrossOriginResourcePolicy (content/browser/cache_storage/cache_storage_dispatcher_host.cc:275). This function evaluates whether a resource should be blocked. It passes the forged response->request_include_credentials (false) to CrossOriginResourcePolicy::IsBlockedByHeaderValue (line 173). For credentialless modes in services/network/public/cpp/cross_origin_resource_policy.cc, the requirement for a CORP header depends on whether the request included credentials:

    C++
    require_corp_due_to_dip = request_mode == mojom::RequestMode::kNavigate ||
                              request_include_credentials;
    

    If the forged flag is false, require_corp_due_to_dip evaluates to false, allowing a response that lacks a Cross-Origin-Resource-Policy header to be delivered to the isolated process, even if it was originally fetched with credentials.

Suggested Exploit Steps (Potential)

Note: These steps are based on static analysis and have not been actively exploited in a live environment.

  1. From a compromised renderer (e.g., https://evil.com), fetch a credentialed opaque resource (e.g., an image from https://victim.com/secret.png) using {mode: 'no-cors', credentials: 'include'}.
  2. Construct a forged CacheStorage::Put (BatchOperation) IPC message. Set the response_type to kOpaque, attach the credentialed response body, and forge the request_include_credentials flag to false.
  3. Send the IPC to store the forged response in CacheStorage.
  4. Navigate a new tab to a page on https://evil.com that is served with Document-Isolation-Policy: isolate-and-credentialless. The browser will spawn a new, isolated process for this page, granting it SharedArrayBuffer and high-resolution timers.
  5. From the isolated process, retrieve the forged response via caches.match(). The browser will perform a CORP check, read the forged false flag, bypass the CORP requirement, and deliver the credentialed body to the isolated process.
  6. Utilize a Spectre side-channel attack within the isolated process to extract the sensitive cross-origin data from the opaque response.

Suggested Fix

The browser process must not blindly trust the request_include_credentials flag (or other security-critical metadata) provided by the renderer during a CacheStorage::Put operation. The browser should independently verify or track the origin and credentials mode of network requests and their resulting responses before persisting them in CacheStorage, ensuring that a compromised renderer cannot alter the security context of a cached resource.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


Results 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 browser process trusts the renderer-supplied request_include_credentials flag without validation when storing responses in CacheStorage.

Impact

A compromised renderer could bypass CORP protections and enable a Spectre attack to read sensitive cross-origin data, though the report notes the steps are based on static analysis and have not been actively exploited.

What the attacker needed

Compromised renderer; victim visits attacker page; page uses credentialless isolation

The fix

The browser should independently verify or track the origin and credentials mode of network requests before persisting them in CacheStorage, rather than trusting renderer-supplied metadata.

How it was found

  1. From a compromised renderer, fetch a credentialed opaque resource using no-cors mode with credentials included.
  2. Construct a forged CacheStorage Put IPC message with response_type set to kOpaque and request_include_credentials set to false.
  3. Send the IPC to store the forged response in CacheStorage.
  4. Navigate to a page served with Document-Isolation-Policy: isolate-and-credentialless, which spawns an isolated process.
  5. From the isolated process, retrieve the forged response via caches.match(), which bypasses the CORP check.
  6. Use a Spectre side-channel attack to extract sensitive cross-origin data from the opaque response.

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 compromised renderer is a part of the browser that has been taken over by an attacker. CacheStorage is a browser feature that lets websites store responses for later use. The bug lets the attacker lie about whether a stored response was fetched with credentials, so the browser wrongly allows a different, isolated part of the browser to read it, which could lead to stealing data via a side-channel attack called Spectre.

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.