Incorrect authorization in CORS (CVE-2026-87485)
The Network Service trusted a renderer-provided flag to skip CORS preflight and access checks for cache revalidation requests. A compromised renderer could spoof this flag to leak cross-origin headers and create ETag/Last-Modified oracles.
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 CORS checks by setting the internal is_revalidating flag to true on a resource request. This allows an attacker to send cache validation headers cross-origin without a preflight and bypass access checks on 304 Not Modified responses. Consequently, the attacker can leak cross-origin headers and create credentialed ETag/Last-Modified oracles.
Affected files:
services/network/cors/cors_url_loader.ccservices/network/cors/cors_url_loader_factory.ccservices/network/public/cpp/cors/cors_util.ccservices/network/public/mojom/url_request.mojom
Estimated timestamp from git blame: 2026-02-19
Description
There is a potential vulnerability in the Network Service's handling of CORS checks for cache revalidation requests. The network::mojom::URLRequest struct contains a boolean flag is_revalidating. This flag is populated by the renderer and passed to the Network Service via Mojo IPC.
Currently, the Network Service implicitly trusts this renderer-provided flag to relax CORS enforcements:
- Preflight Bypass: In
CorsUnsafeNotForbiddenRequestHeaderNames(services/network/cors/cors_util.cc), ifis_revalidatingis true, cache validation headers likeIf-Modified-SinceandIf-None-Matchare exempted from triggering a CORS preflight. - Access Check Bypass: In
CorsURLLoader::OnReceiveResponse(services/network/cors/cors_url_loader.cc), ifis_revalidatingis true and the server responds with an HTTP 304 (Not Modified), the loader setsis_304_for_revalidation = trueand skips theCheckAccess()function entirely.
Because a compromised renderer process can arbitrarily construct Mojo IPC messages, an attacker can spoof this flag on a cross-origin, credentialed request. By doing so, they can force the Network Service to skip both the preflight request and the response access checks for 304 responses, resulting in the raw URLResponseHead (including all cross-origin HTTP headers) being forwarded back to the compromised renderer. This acts as a cross-origin information leak and an ETag/Last-Modified oracle.
Potential Reproduction Steps
Note: These are suggested theoretical steps to trigger the vulnerability. Our tooling agent does not actively execute code or PoCs.
- Compromise a Renderer: An attacker achieves arbitrary code execution within a sandboxed renderer process (e.g., via a V8 bug).
- Construct a Malicious Request: Using the
network::mojom::URLLoaderFactoryIPC interface, the attacker creates anetwork::ResourceRequesttargeting a sensitive cross-origin endpoint (e.g.,https://victim.example/api/user-data). - Configure CORS and Credentials: The attacker sets
mode = kCorsandcredentials_mode = kInclude. - Inject Cache Headers and Spoof Flag: The attacker adds an
If-None-Match: "target-etag"header and sets theis_revalidatingboolean flag totrue. - Initiate Request: The attacker sends the
CreateLoaderAndStartIPC message. - Network Service Bypasses Preflight: The Network Service receives the request. Due to the spoofed
is_revalidatingflag, it skips the preflight requirement for theIf-None-Matchheader. - Server Responds: The victim server receives the credentialed GET request. If the ETag matches, it returns an HTTP
304 Not Modified(which typically lacksAccess-Control-Allow-Originheaders). - Network Service Bypasses Access Check: In
CorsURLLoader::OnReceiveResponse, the network service seesis_revalidating == trueandresponse_code == 304. It skips theCheckAccessevaluation. - Data Leak: The Network Service forwards the
URLResponseHeadcontaining the raw cross-origin headers back to the renderer, allowing the attacker to read them and confirm the ETag state.
Suggested Fix
The Network Service should not rely solely on the untrusted, renderer-provided is_revalidating flag to bypass critical CORS security checks.
Potential remediation approaches:
- Enforce Server-Side Tracking: The Network Service (e.g., the HTTP Cache layer) should track whether a request is genuinely an internal cache revalidation, rather than accepting the state directly from the IPC struct. The renderer should not dictate this state.
- Header Filtering: If the renderer must control this flag,
CorsURLLoadershould strip sensitive/non-safelisted cross-origin headers from the304response before forwarding theURLResponseHeadback to the untrusted renderer whenCheckAccessis skipped.
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.
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 Network Service implicitly trusted a renderer-supplied boolean flag (`is_revalidating`) to relax CORS enforcement, without independently verifying that the request was a genuine cache revalidation.
Impact
An attacker could leak cross-origin headers and create credentialed ETag/Last-Modified oracles, but this requires a compromised renderer.
What the attacker needed
Compromised renderer process; ability to send Mojo IPC messages
The fix
The Network Service should track cache revalidation state itself rather than trusting the renderer, or strip sensitive headers from 304 responses when access checks are skipped.
How it was found
- Compromise a renderer process to gain arbitrary code execution.
- Use the URLLoaderFactory IPC interface to create a cross-origin request with CORS mode and credentials included.
- Add an If-None-Match header and set the is_revalidating flag to true.
- Send the CreateLoaderAndStart IPC message to the Network Service.
- The Network Service skips the preflight requirement due to the spoofed flag.
- The victim server returns 304 Not Modified, and the Network Service skips the access check, forwarding raw headers back 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.
CORS is a browser rule that stops a website from reading data from another site unless that site explicitly allows it. Here, the browser's network component believed a signal from the web page's code that said 'this is just a cache check', so it skipped the usual safety checks. A malicious page could abuse this to peek at another site's response headers.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.