Inappropriate implementation in CORS (CVE-2026-76033)
A renderer-writable field controlling accepted stream types was not validated for untrusted renderers, so a compromised renderer could disable content decoding in the network service. Raw compressed bytes then reached the Opaque Response Blocking sniffer, which failed open, potentially letting the renderer read credentialed cross-origin response bodies.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A compromised renderer can potentially bypass Site Isolation and read credentialed cross-origin response bodies by exploiting a lack of validation on the devtools_accepted_stream_types parameter. By setting this renderer-writable Mojom field to an empty array, the network service's content decoding is bypassed, causing raw compressed bytes to be sent to the Opaque Response Blocking (ORB) sniffing layer. Because ORB fails open on compressed data that does not match plaintext signature rules, the credentialed cross-origin response is allowed and delivered to the compromised renderer to be decompressed locally.
Affected files:
services/network/cors/cors_url_loader_factory.ccservices/network/url_loader_util.ccservices/network/public/mojom/url_request.mojomnet/filter/filter_source_stream.ccnet/url_request/url_request_http_job.ccservices/network/url_loader.ccservices/network/orb/orb_impl.cc
Estimated timestamp from git blame: 2021-03-22
Summary
A potential vulnerability in Chromium's network service allows a compromised renderer to bypass Site Isolation (Opaque Response Blocking - ORB) and read credentialed cross-origin response bodies. The issue stems from a lack of validation on the devtools_accepted_stream_types parameter inside ResourceRequest. An untrusted renderer can set this field to an empty array, which disables content decompression in the network service. Consequently, raw compressed bytes are passed to the ORB sniffer. Since compressed bytes do not match plaintext signatures of blocked types (such as HTML, XML, or JSON), ORB fails open, sending the compressed response directly to the compromised renderer where it can be decompressed locally.
Affected Files
services/network/cors/cors_url_loader_factory.ccservices/network/url_loader_util.ccservices/network/public/mojom/url_request.mojomnet/filter/filter_source_stream.ccnet/url_request/url_request_http_job.ccservices/network/url_loader.ccservices/network/orb/orb_impl.cc
Technical Analysis
-
Lack of Validation in IsValidRequest: The
ResourceRequest.devtools_accepted_stream_typesMojom field is renderer-writable and is not stored inTrustedUrlRequestParams. InCorsURLLoaderFactory::IsValidRequest()(services/network/cors/cors_url_loader_factory.cc), no validation or sanitization is applied to this field for untrusted renderers (whereis_trusted_is false). The field is copied verbatim to thenet::URLRequestinservices/network/url_loader_util.cc(line 539):C++ url_request.set_accepted_stream_types(request.devtools_accepted_stream_types); -
Content-Decoder Elision: When a renderer supplies
devtools_accepted_stream_types = [](an empty array) and the server returns a compressed response (e.g.,Content-Encoding: gzip):FilterSourceStream::GetContentEncodingTypes()(net/filter/filter_source_stream.ccat line 110) is called with the empty set of accepted stream types.- Because the list of accepted types is non-null but empty, the method filters out the encoding and returns an empty vector of encoding types.
URLRequestHttpJob::SetUpSourceStream()(net/url_request/url_request_http_job.ccat line 1541) callsFilterSourceStream::CreateDecodingSourceStream()with an empty vector, which returns the original, raw compressed stream without wrapping it in a decompression filter (e.g.,GzipSourceStream).- Since
client_side_content_decoding_enabledis keptfalseby the renderer, thePartialDecodersafety net inURLLoaderis never instantiated.
-
ORB Fail-Open on Compressed Bytes: When ORB is enabled, a cross-origin, no-cors response with a sniffable MIME type (such as
text/plainorapplication/json) withoutX-Content-Type-Options: nosnifffalls back to body sniffing viaOpaqueResponseBlockingAnalyzer::Sniff():- The raw compressed bytes (e.g., gzip starting with
1f 8b 08) are analyzed. - Standard plaintext sniffers (
SniffForHTML(),SniffForXML(),SniffForFetchOnlyResource()) fail to match the raw compressed byte signatures and returnkNo. - Consequently, ORB returns
kSniffMoreand eventually fails open tokAllowviaHandleEndOfSniffableResponseBody()once sniffing limits are reached. - The raw compressed bytes are piped over the Mojo data pipe directly to the renderer, which decompresses them locally to read the cross-origin authenticated data.
- The raw compressed bytes (e.g., gzip starting with
Potential Trigger Steps
Note: These are potential steps. Our tooling agent does not have the ability to execute code and has not run a proof of concept.
- A compromised renderer initiates a cross-origin authenticated request (
mode = kNoCors,credentials_mode = kInclude) targeting a compressed endpoint. - The renderer sets
devtools_accepted_stream_types = [](empty array) andclient_side_content_decoding_enabled = falseinsideResourceRequestover its boundURLLoaderFactoryMojo pipe. - The renderer includes a custom
Accept-Encoding: gzipheader to force the server to compress the response. - The network service forwards the request to the server, and the server returns a
200response containing a compressed credentialed secret. - The decoding chain is elided, bypassing decompression in the network service.
- ORB processes the raw compressed body, fails to detect JSON/HTML/XML content signatures, and fails open to
kAllow. - The compromised renderer receives the compressed payload and decodes it locally to extract the sensitive data.
Recommended Remediation
Restrict or clear devtools_accepted_stream_types in CorsURLLoaderFactory::IsValidRequest() when is_trusted_ is false, ensuring that untrusted renderers cannot modify the accepted stream types to bypass content decoding in the network service.
Evaluated with Chrome root at commit: a2bea94528f4bd6cc57739c43fa3bb890b8367d3
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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
Likely the devtools_accepted_stream_types field is renderer-writable and is not validated or sanitised for untrusted renderers, so it can switch off network-service decompression and leave ORB sniffing raw compressed bytes.
Impact
A compromised renderer could bypass Site Isolation and read credentialed cross-origin response bodies, though the report notes the steps are potential and no proof of concept was run.
What the attacker needed
Renderer already compromised; cross-origin endpoint returns compressed data; response lacks nosniff header
The fix
The field should be restricted or cleared for untrusted renderers in the request validation step so they cannot change accepted stream types.
How it was found
- A compromised renderer sends a cross-origin authenticated no-cors request to a compressed endpoint.
- The renderer sets the accepted stream types to an empty array and disables client-side content decoding.
- The renderer adds an Accept-Encoding header asking the server to compress the response.
- The server returns a compressed response containing credentialed data.
- The network service skips decompression and passes raw compressed bytes to ORB.
- ORB fails to match plaintext signatures and fails open, so the renderer receives and decompresses the data locally.
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 keep websites from different origins apart so one site cannot read another site's private data. Here, a page that had already been taken over could ask the browser's networking layer to skip unpacking compressed responses, so the safety check that inspects response bodies saw only unreadable compressed data and let it through. The page could then unpack it itself and read data it should not have been able to see.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.