Insufficient data validation in Media (CVE-2026-11134)
A logic flaw in Blink's media loader allows a Service Worker to redirect a cross-origin retry back to the same origin, causing authenticated cross-origin data to be merged into a same-origin cache entry without the CORS taint flag. An attacker could then read that cross-origin media data via canvas or Web Audio, bypassing the Same-Origin Policy.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 53 days
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 Chrome Security team.
Overview: A logic flaw in ResourceMultiBufferDataProvider allows an attacker to bypass origin checks during media retries. By using a Service Worker to redirect a cross-origin retry back to the same origin, authenticated cross-origin data can be merged into a same-origin cache entry without the CORS taint flag. This potentially allows the attacker to read cross-origin media data via <canvas> or Web Audio.
Affected files:
third_party/blink/renderer/platform/media/resource_multi_buffer_data_provider.ccthird_party/blink/renderer/platform/media/url_index.cc
Estimated timestamp from git blame: 2025-08-11
Summary
A potential vulnerability in Blink's media loader allows a cross-origin information leak. An attacker can use a Service Worker to intercept a retried media request and redirect it in a way that causes authenticated, cross-origin data to be merged into a same-origin buffer. This data can then be read by the attacker using standard web APIs like <canvas> or Web Audio, bypassing the Same-Origin Policy (SOP).
Vulnerability Details
The vulnerability stems from how ResourceMultiBufferDataProvider handles origin checks during redirects and how UrlData merges data:
- Stale Origin Check: In
ResourceMultiBufferDataProvider::WillFollowRedirect, the security checkSecurityOrigin::AreSameOrigin(original_url_, redirects_to_)compares the redirect destination againstoriginal_url_. However,original_url_is initialized once in the constructor. If a request is redirected cross-origin, and a subsequent retry is redirected back to the original origin by a Service Worker, this check evaluates to true. - Bypassed Empty Buffer Check: Because the
AreSameOrigincheck passes, the vital security checkif (url_data_->multibuffer()->map().empty() && fifo_.empty())is skipped. This allows the redirect to proceed even if the buffers are already full of cross-origin data from the previous target. - Missing Taint Propagation: The loader calls
UrlData::RedirectToto migrate to the new same-originUrlData. This method callsMultiBuffer::MergeFrom, which copies the cross-origin data blocks but fails to propagate theis_cors_cross_origin_taint flag. The cross-origin data is now cached as same-origin.
Potential Attack Scenario
An attacker could potentially exploit this via the following steps (note: this is a theoretical sequence, as our tooling cannot currently execute a PoC):
- An attacker's page on Origin A (controlled by a Service Worker) starts a media request to
https://A/v1(CORS unspecified). - The server redirects to a victim resource
https://B/secret(authenticated via cookies). - The loader follows the redirect, fetching and buffering cross-origin bytes from
https://B/secretinto a cross-originUrlDataobject. - The connection is interrupted (e.g., via the attacker serving a capped 206 response), triggering the loader to schedule a retry to
https://B/secret. - The attacker's Service Worker intercepts this cross-origin retry and responds with a redirect back to
https://A/v2. WillFollowRedirectcompareshttps://A/v1(original_url_) andhttps://A/v2. They are same-origin, so the empty-buffer check is bypassed.- The Service Worker responds to the
https://A/v2fetch with a basic same-origin response. - The loader calls
UrlData::RedirectTo, merging the cross-origin bytes fromhttps://B/secretinto the same-originUrlDataforhttps://A/v2without setting theis_cors_cross_origin_flag. - The attacker creates a new
<video src="https://A/v2">element. It hits the per-frameUrlIndexcache, returning the poisonedUrlData. - Because the new element hasn't been redirected and the
UrlDatais not flagged as cross-origin, the video is not tainted. The attacker reads the victim's bytes using<canvas>or Web Audio.
Suggested Fix
There are two primary areas to address:
- Fix the Origin Check in
WillFollowRedirect: The comparison should likely validate against the current URL (url_data_->url()) rather than the immutableoriginal_url_, or track if a cross-origin redirect has already occurred to enforce the empty buffer check more strictly. - Ensure Safe Merging in
UrlData::RedirectTo: When merging multibuffers during a redirect, theis_cors_cross_origin_flag (and other relevant security metadata) should be safely transferred or validated to ensure cross-origin data cannot be laundered into a same-origin cache entry.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
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
Likely the origin check in WillFollowRedirect compares the redirect destination against the original URL rather than the current URL, and the merge in UrlData::RedirectTo fails to propagate the CORS taint flag.
Impact
An attacker could potentially read authenticated cross-origin media data via canvas or Web Audio, bypassing the Same-Origin Policy, though the report notes this is a theoretical sequence and no proof-of-concept was executed.
What the attacker needed
Victim visits attacker's page; attacker controls a Service Worker; victim authenticated to target origin; media request with redirects
The fix
The origin check in WillFollowRedirect should validate against the current URL rather than the immutable original URL, and UrlData::RedirectTo should safely transfer or validate the CORS taint flag when merging multibuffers.
How it was found
- An attacker's page on Origin A starts a media request to a URL on A.
- The server redirects to a victim resource on Origin B, which is fetched and buffered as cross-origin data.
- The connection is interrupted, triggering a retry to the Origin B resource.
- The attacker's Service Worker intercepts the retry and redirects back to a URL on Origin A.
- The origin check passes because both URLs are on Origin A, bypassing the empty-buffer check.
- The cross-origin bytes are merged into a same-origin cache entry without the CORS taint flag, and the attacker reads them via canvas or Web Audio.
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.
Websites are normally prevented from reading data from other websites by the Same-Origin Policy. This report describes a bug in Chrome's media loading code where a malicious website could trick the browser into mixing data from another site into its own cache, then read that data using standard web features like canvas or audio. The attack requires the victim to visit the attacker's page and have a Service Worker installed, and the report notes it is theoretical because no proof-of-concept was executed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.