Skip to content
CORS Advisory Advanced CVE-2026-11240

Insufficient validation of untrusted input in Loader (CVE-2026-11240)

A compromised renderer could bypass CORS and Opaque Response Blocking when loading prefetched Signed Exchanges because the browser process validated the request URL only with a debug assertion. An attacker with renderer code execution could spoof the URL and initiator to read cross-origin responses from a victim's Signed Exchange.

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: In release builds, a compromised renderer can bypass CORS and Opaque Response Blocking (ORB) when loading prefetched Signed Exchanges. The SubresourceSignedExchangeURLLoaderFactory relies on a DCHECK to validate the request URL, allowing an attacker to spoof the URL in an IPC call and read cross-origin responses.

Affected files:

  • content/browser/web_package/subresource_signed_exchange_url_loader_factory.cc
  • content/browser/web_package/signed_exchange_inner_response_url_loader.cc
  • content/browser/web_package/prefetched_signed_exchange_cache.cc

Estimated timestamp from git blame: 2024-06-18

Description

A potential vulnerability exists in SubresourceSignedExchangeURLLoaderFactory::CreateLoaderAndStart where a compromised renderer can bypass fundamental security checks (CORS and ORB) to read sensitive cross-origin data from prefetched Signed Exchanges (SXGs). This occurs because the browser process validates the requested URL against the SXG's actual inner URL using a DCHECK_EQ. In release builds, this check is compiled out or does not terminate the process, allowing a compromised renderer to provide a spoofed URL that appears same-origin with its request initiator.

Technical Details

When a prefetched SXG subresource is prepared for navigation, the browser creates a SubresourceSignedExchangeURLLoaderFactory and passes its remote to the renderer process. The renderer then invokes CreateLoaderAndStart over IPC.

In content/browser/web_package/subresource_signed_exchange_url_loader_factory.cc:

C++
// Lines 91-102: Validates the initiator against the origin lock (attacker origin).
if (!IsValidRequestInitiator(request, request_initiator_origin_lock_)) {
  // ... mojo::ReportBadMessage and return ...
}

// Line 104: Incorrectly uses DCHECK for URL validation.
DCHECK_EQ(request.url, entry_->inner_url());

An attacker controlling the renderer can craft an IPC call where both request.url and request.request_initiator are set to the attacker's origin, bypassing the initiator check (since it matches the lock) and silently failing the DCHECK_EQ URL validation.

This spoofed request is passed to SignedExchangeInnerResponseURLLoader, leading to two security bypasses:

  1. CORS Bypass: The loader calls network::cors::ShouldCheckCors(request.url, request.request_initiator, request.mode). Because the spoofed URL and the initiator are same-origin (both attacker's origin), it returns false, skipping the Access-Control-Allow-Origin check for the victim's cross-origin response.
  2. ORB Bypass: The CrossOriginReadBlockingChecker initializes the ORB analyzer (OpaqueResponseBlockingAnalyzer::Init) with the spoofed URL. If the URL and initiator are same-origin, ORB returns Decision::kAllow, completely bypassing MIME sniffing and blocking of cross-origin sensitive data.

The browser process then pipes the cross-origin response body from the victim's SXG to the compromised renderer via SendResponseBody(), violating Site Isolation guarantees.

(Note: These are potential steps based on code analysis, as our tooling cannot currently run a working proof of concept.)

Potential Attack Scenario

  1. Attacker Setup: The attacker hosts a victim's publicly-distributed SXG (e.g., https://victim.com/sensitive.json from a CDN) and an attacker-signed main SXG on their server.
  2. Prefetch Trigger: A victim user navigates to an attacker-controlled page that triggers a prefetch of the main SXG and the victim's subresource SXG.
  3. Navigation Interception: The user navigates to the main SXG. The browser intercepts the navigation, creates a SubresourceSignedExchangeURLLoaderFactory for the victim's subresource, and sends its remote to the renderer.
  4. Compromised Renderer: The attacker achieves code execution in the renderer process hosting the attacker's main SXG.
  5. Malicious IPC Invocation: The compromised renderer invokes CreateLoaderAndStart on the factory, spoofing both request.url and request.request_initiator to be the attacker's origin (https://attacker.com/fake.json).
  6. Security Checks Bypassed: The browser process validates the initiator against the lock (which passes) but skips the URL validation due to the DCHECK. CORS and ORB checks subsequently evaluate the request as same-origin (attacker to attacker) and allow the request.
  7. Data Leak: The loader streams the victim's sensitive cross-origin data to the compromised renderer, completing the Site Isolation bypass.

Suggested Fix

Replace the DCHECK_EQ in SubresourceSignedExchangeURLLoaderFactory::CreateLoaderAndStart with a proper security check that terminates the request and reports a bad message if the URL does not match the SXG's inner URL.

C++
  if (request.url != entry_->inner_url()) {
    mojo::ReportBadMessage(
        "SubresourceSignedExchangeURLLoaderFactory: "
        "request.url does not match inner_url");
    mojo::Remote<network::mojom::URLLoaderClient>(std::move(client))
        ->OnComplete(
            network::URLLoaderCompletionStatus(net::ERR_INVALID_ARGUMENT));
    return;
  }

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 browser process used a debug-only assertion (DCHECK_EQ) to compare the requested URL with the Signed Exchange's inner URL, so in release builds the check was compiled out and a spoofed URL was accepted.

Impact

A compromised renderer could read sensitive cross-origin data from a victim's prefetched Signed Exchange, violating Site Isolation guarantees.

What the attacker needed

Victim visits attacker page; attacker hosts victim's SXG; attacker has renderer code execution

The fix

The DCHECK_EQ should be replaced with a proper security check that reports a bad message and terminates the request if the URL does not match the Signed Exchange's inner URL.

How it was found

  1. The attacker hosts a victim's publicly distributed Signed Exchange and an attacker-signed main Signed Exchange.
  2. A victim user navigates to an attacker-controlled page that triggers prefetching of the main Signed Exchange and the victim's subresource Signed Exchange.
  3. The user navigates to the main Signed Exchange, and the browser creates a SubresourceSignedExchangeURLLoaderFactory for the victim's subresource.
  4. The attacker achieves code execution in the renderer process hosting the attacker's main Signed Exchange.
  5. The compromised renderer invokes CreateLoaderAndStart, spoofing both the request URL and the request initiator to the attacker's origin.
  6. The browser process passes the initiator check but skips the URL check, so CORS and ORB treat the request as same-origin and stream the victim's data to the renderer.

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 Signed Exchange is a way to serve a web page from a different server while making it look like it came from the original site. The browser has checks to stop one website from reading another website's data, but here a bug meant one of those checks was skipped in normal releases. An attacker who already controls part of the browser could then read data from another site.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.