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

Improper input validation in Network (CVE-2026-79032)

A compromised renderer could send a cross-origin prefetch request with restricted internal network load flags because the browser forwarded the renderer's flags to a trusted URL loader factory without sanitising them. This allowed the renderer to bypass proxy settings, HSTS upgrades and certificate network fetches.

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 without the security team.

Overview: A compromised renderer can bypass network service load_flags restrictions by exploiting the cross-origin prefetch mechanism. The browser incorrectly forwards renderer-supplied load flags to a trusted CorsURLLoaderFactory without sanitization, enabling the renderer to set restricted internal flags.

Affected files:

  • content/browser/loader/prefetch_url_loader_service_context.cc
  • content/browser/url_loader_factory_params_helper.cc
  • services/network/cors/cors_url_loader_factory.cc
  • content/browser/loader/prefetch_url_loader.cc

Estimated timestamp from git blame: 2024-08-21

Vulnerability Details

When a renderer process initiates a cross-origin prefetch, it sends a network::ResourceRequest to the browser process via SubresourceProxyingURLLoaderService. If the request includes the net::LOAD_RESTRICTED_PREFETCH_FOR_MAIN_FRAME flag, it is routed to PrefetchURLLoaderServiceContext::CreatePrefetchLoaderAndStart.

To properly handle cache partitioning for these cross-origin prefetches, the browser process provisions a special URLLoaderFactory using RenderFrameHostImpl::CreateCrossOriginPrefetchLoaderFactoryBundle(). This factory is created via URLLoaderFactoryParamsHelper::CreateForPrefetch, which explicitly sets is_trusted = true to allow it to supply per-request IsolationInfo.

The vulnerability exists because PrefetchURLLoaderServiceContext copies the renderer's ResourceRequest and forwards it to this trusted factory without sanitizing the load_flags. The validation function PrefetchURLLoaderServiceContext::IsValidCrossOriginPrefetch checks the initiator and ensures LOAD_CAN_USE_RESTRICTED_PREFETCH_FOR_MAIN_FRAME is not set, but leaves all other flags intact.

When the request reaches the Network Service, CorsURLLoaderFactory::IsValidRequest performs a security check to ensure untrusted callers are not using restricted load flags. However, because this specific CorsURLLoaderFactory was created with is_trusted_ = true, the allowlist check is completely bypassed:

C++
  // services/network/cors/cors_url_loader_factory.cc
  if (!is_trusted_) {
    ... 
    // Apply allowlist for which flags untrusted factories are allowed to use.
    if (request.load_flags & ~(... allowlist ...)) {
      mojo::ReportBadMessage("CorsURLLoaderFactory: Untrusted caller using restricted load flag");
      return false;
    }
  }

As a result, a compromised renderer can inject highly restricted internal network flags into the prefetch request.

Impact

A compromised renderer can bypass critical network-level security policies:

  1. net::LOAD_BYPASS_PROXY: The request will bypass Enterprise DLP, inspection, or user-configured proxy settings, routing directly to the target host.
  2. net::LOAD_SHOULD_BYPASS_HSTS: By also setting credentials_mode = network::mojom::CredentialsMode::kOmit, the attacker can satisfy the CHECK in URLRequestHttpJob and force the request to bypass HSTS upgrades. This allows plaintext HTTP requests to HSTS-enrolled domains.
  3. net::LOAD_DISABLE_CERT_NETWORK_FETCHES: The attacker can disable OCSP/CRL/AIA fetches during certificate verification.

While the PrefetchURLLoader drains the response body before it reaches the renderer, these network side-effects represent a significant trust-boundary violation and policy bypass.

Suggested Steps to Trigger (Theoretical)

  1. Gain code execution in a sandboxed renderer process.
  2. Construct a network::ResourceRequest targeting a cross-origin URL.
  3. Set load_flags to include net::LOAD_PREFETCH | net::LOAD_RESTRICTED_PREFETCH_FOR_MAIN_FRAME | net::LOAD_BYPASS_PROXY.
  4. To bypass HSTS, also include net::LOAD_SHOULD_BYPASS_HSTS and set credentials_mode = network::mojom::CredentialsMode::kOmit.
  5. Send the request to the browser process via the SubresourceProxyingURLLoaderService Mojo interface.
  6. The request will bypass CorsURLLoaderFactory restrictions and be executed by the network stack with the malicious flags applied.

Suggested Fix

In PrefetchURLLoaderServiceContext::CreatePrefetchLoaderAndStart or IsValidCrossOriginPrefetch, the browser process must strictly sanitize resource_request.load_flags. It should either apply a bitwise AND mask against an allowlist of permitted prefetch flags, or immediately reject the request if any restricted flags are present.

Evaluated with Chrome root at commit: e9e0fcbb690b1a8c1a26c81c2a9ea23d6e178368


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 failed to sanitise renderer-supplied load_flags before forwarding them to a trusted CorsURLLoaderFactory, which skipped its allowlist check because it was marked as trusted.

Impact

A compromised renderer could bypass enterprise proxy inspection, force plaintext HTTP requests to HSTS-enrolled domains, and disable certificate revocation fetches, though the response body is drained before reaching the renderer.

What the attacker needed

Compromised renderer process

The fix

The browser process should strictly sanitise resource_request.load_flags by applying an allowlist mask or rejecting requests with restricted flags.

How it was found

  1. Gain code execution in a sandboxed renderer process.
  2. Construct a network::ResourceRequest targeting a cross-origin URL.
  3. Set load_flags to include prefetch and restricted flags such as LOAD_BYPASS_PROXY.
  4. To bypass HSTS, also include LOAD_SHOULD_BYPASS_HSTS and set credentials_mode to kOmit.
  5. Send the request to the browser process via the SubresourceProxyingURLLoaderService Mojo interface.
  6. The request bypasses CorsURLLoaderFactory restrictions and is executed with the malicious flags applied.

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 web browser splits itself into a renderer (which runs web pages) and a browser process (which handles network requests). If an attacker can take over the renderer, they should not be able to make the browser process use special internal network options. Here, the browser process trusted the renderer's request too much and let it use those special options.

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.