Incorrect authorization in Network (CVE-2026-95374)
Chrome's CORS-preflight cache stored entries under the raw request initiator origin instead of the tainted-adjusted origin used for the preflight header and access check, so a preflight approved for a null origin could be reused for a different origin. An attacker page could then send a credentialed non-simple request (such as DELETE) to a target that never approved that origin, causing a blind server-side state change.
- Fix shipped in 47 days
Security Bug
VULNERABILITY DETAILS
The CORS-preflight cache is keyed on the raw request_initiator url::Origin
at both store (services/network/cors/preflight_controller.cc:474,
origin/main) and lookup (:610-611). The preflight Origin request header
(:180) and the preflight access-check (:291) use the tainted-adjusted
origin
(tainted ? url::Origin() : *request_initiator). Per Fetch §4.10
"CORS-preflight cache", the entry key is the request's byte-serialized
origin, which is "null" when the tainted-origin flag is set after a
cross-origin redirect.
Consequence: a preflight that target T approved for Origin: null (reached
via O→R→T cross-origin redirect, R attacker-controlled) is cached under O's
request_initiator. A subsequent direct (untainted) fetch(T/api, {method:'DELETE'}) from O hits that cache entry, skips preflight, and
sends a credentialed DELETE to T with Origin: http://O -- an origin T's
preflight handler never approved. The reverse direction (O-approved entry
satisfies a tainted null request) also holds.
The actual-response ACAO check at cors_url_loader.cc:594-606 correctly uses
the tainted-adjusted origin, so response read is still blocked. Impact is
blind credentialed side-effect (CSRF-class) on non-simple methods, not
response disclosure.
VERSION
Chrome Version: 149.0.7827.155
Channel: Stable
Operating System: Linux x86_64, kernel 6.12.13-amd64
REPRODUCTION CASE
Attachments:
poc_server.py-- Python3, no root required, listens on 127.0.0.1:8001-8003fix.patch-- suggested fix at the two key-derivation sites
Steps:
python3 poc_server.py- Launch Chrome with a fresh profile (so the preflight cache is empty):
chrome --user-data-dir=/tmp/poc-prof http://127.0.0.1:8001/ - Observe the
poc_server.pyterminal output.
OBSERVED (bug present)
O GET / Origin=- serve attacker page
R OPTIONS /redir Origin=http://127.0.0.1:8001 preflight (R allows O)
R DELETE /redir Origin=http://127.0.0.1:8001 -> 307 http://127.0.0.1:8003/api
T OPTIONS /api Origin=null preflight ACCEPTED (ACAO: null, Max-Age: 300)
T DELETE /api Origin=null side-effect (tainted path; expected)
T DELETE /api Origin=http://127.0.0.1:8001 [OBSERVED] DELETE with Origin=O reached T without T ever preflight-approving O (tainted preflight cached under O's key)
EXPECTED (spec-compliant / bug absent)
...
T DELETE /api Origin=null side-effect (tainted path; expected)
T OPTIONS /api Origin=http://127.0.0.1:8001 [OK: BUG ABSENT] preflight DENIED for non-null origin
(Step-2 fetch misses the cache because a spec-compliant key would be
("null", T/api, NIK); fresh preflight with Origin: O is sent and T denies
it; the second DELETE never reaches T.)
ROOT CAUSE
services/network/cors/preflight_controller.cc:
- :488-490
cache_.AppendEntry(*original_request_.request_initiator, ...)-- store - :624-628
cache_.CheckIfRequestCanSkipPreflight(request.request_initiator.value(), ...)-- lookup - :178-180 / :286-292 use
tainted ? url::Origin() : *request_initiator-- header + access check
services/network/cors/preflight_result.cc:236-259
EnsureAllowedRequest re-checks credentials_mode, method, headers -- no
tainted re-check. services/network/cors/preflight_cache.{h,cc} has no
reference to tainted at all.
SUGGESTED FIX
See attached fix.patch. Use tainted ? url::Origin() : request_initiator at
both :488 and :625 so the cache key matches the byte-serialized origin used
for the header and access check. Alternative: add bool tainted as a fourth
component of the PreflightCache::cache_ key tuple (preflight_cache.h:84-88).
SECURITY IMPACT
Web-reachable (no compromised renderer, no flags, no user interaction beyond
visiting attacker page). Bypasses CORS-preflight-as-CSRF-defense for targets
whose actual-request handler rejects Origin: null while the preflight
handler accepts it (i.e. preflight allows null, but the state-changing
endpoint itself origin-checks the request header and only trusts named
origins). Response read remains blocked by the actual-response ACAO check;
impact is server-side state change only.
CREDIT INFORMATION
Reporter credit: NH DEV
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 preflight cache key used the raw request initiator origin rather than the tainted-adjusted origin that the preflight header and access check use, so cache entries did not match the byte-serialized origin required by the Fetch spec.
Impact
A page could trigger a credentialed non-simple request to a target that only approved a null origin, causing a blind server-side state change; response reading remains blocked by the actual-response ACAO check.
What the attacker needed
Victim visits attacker page; target preflight accepts Origin: null; target endpoint rejects Origin: null
The fix
The cache key should use the tainted-adjusted origin at both the store and lookup sites, or the tainted flag should be added to the cache key tuple.
How it was found
- Run the provided Python proof-of-concept server.
- Launch Chrome with a fresh profile pointing at the attacker page.
- Watch the server output to see the cached preflight being reused.
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.
Browsers normally send a small permission request (a preflight) before letting a page make certain cross-site requests, and they remember approvals in a cache. Here the cache saved the approval under the wrong name, so a later request from a different site was allowed through without asking the target again. The attacker could not read the reply, but the request still reached the server and could change data.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.