Side-channel information leakage in Media (CVE-2026-17696)
A potential cross-origin padding oracle in Chromium's HLS demuxer could let a malicious webpage infer the length and contents of cross-origin resources. By omitting the BYTERANGE attribute on an EXT-X-MAP tag, the origin check is bypassed, and decryption success or failure can be observed through media element events.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 potential cross-origin padding oracle in Chromium's HLS demuxer may allow a web attacker to leak the length and contents of arbitrary cross-origin resources. By omitting the BYTERANGE attribute on an EXT-X-MAP tag, the security check designed to block cross-origin range requests is bypassed. An attacker could observe decryption success or failure via JavaScript-visible media elements to infer the block-alignment of cross-origin data.
Affected files:
media/formats/hls/media_segment.ccmedia/filters/hls_data_source_provider_impl.ccmedia/filters/hls_manifest_demuxer_engine.cc
Estimated timestamp from git blame: 2026-04-14
Detailed Description
A potential vulnerability in Chromium's HLS (HTTP Live Streaming) implementation could allow a malicious webpage to leak information about cross-origin resources.
In media/formats/hls/media_segment.cc, MediaSegment::GetPlaintextStreamSource decrypts a combined stream buffer containing the concatenation of the EXT-X-MAP initialization segment and the media segment as a single AES-128-CBC block:
auto maybe_plaintext = crypto::aes_cbc::Decrypt(key, iv, src);
if (!maybe_plaintext) { return false; }
If the total buffer is not a multiple of 16 bytes or does not contain valid PKCS#7 padding, the decryption fails, returning std::nullopt and causing a demuxer error. This behavior behaves as a padding oracle.
Security Check Bypass
The HLS demuxer uses the following check to block range requests on cross-origin content:
bool HasIncompatibleRangeAndOrigin() const {
return would_taint_origin_ && requires_range_request_;
}
However, this security gate only triggers when requires_range_request_ is set to true. When a playlist uses #EXT-X-MAP:URI="https://victim.example/secret" with no BYTERANGE attribute, the data source provider sets the range mode to DataSource::RangeMode::kFullRequest. As a result, requires_range_request_ remains false, bypassing the origin check entirely and allowing cross-origin resources to be loaded.
Potential Attack Scenario
(Note: These are potential steps; no functional exploit has been run or verified by our tooling)
- An attacker hosts a webpage that embeds a
<video>element pointing to a malicious playlist. - The playlist references a cross-origin initialization segment (
EXT-X-MAP) with noBYTERANGEattribute and an attacker-controlled same-origin media segment. - The HLS demuxer downloads both resources into a single buffer of size $N$ (victim segment size) $+$ $M$ (attacker segment size).
- The attacker systematically varies the media segment size $M$ from 32 to 47 bytes.
- If the combined size $N + M$ is not a multiple of 16, or does not have valid padding, decryption fails and triggers an
errorevent on the media element. - If decryption succeeds and the container magic matches (which can be brute-forced by sweeping the first byte of the Initialization Vector), JavaScript-visible events such as
loadedmetadataare fired. - By monitoring these events, the attacker can infer the length modulo 16 of the cross-origin target and potentially decrypt trailing bytes using standard padding oracle techniques.
Suggested Remediation
To remediate this issue, Chromium should:
- Restrict the
EXT-X-MAPtag to the same origin as the playlist unless CORS is explicitly allowed by the target server. - Ensure that cross-origin segments are not concatenated or decrypted in the same buffer as same-origin segments.
- Improve
HasIncompatibleRangeAndOrigin()to robustly prevent tainted origins from loading arbitrary data chunks without proper CORS validation, regardless of whether a byte range is requested.
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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 HLS demuxer only blocks cross-origin range requests when a byte range is explicitly requested, so an EXT-X-MAP without BYTERANGE loads cross-origin data and is decrypted together with attacker-controlled data, exposing a padding oracle.
Impact
A web attacker could potentially leak the length and contents of arbitrary cross-origin resources, though no functional exploit has been verified.
What the attacker needed
Victim visits attacker's webpage; attacker controls a playlist; cross-origin target lacks CORS
The fix
Chromium should restrict EXT-X-MAP to the same origin unless CORS is allowed, avoid concatenating cross-origin and same-origin segments in one buffer, and strengthen the origin check regardless of byte range requests.
How it was found
- An attacker hosts a webpage that embeds a video element pointing to a malicious playlist.
- The playlist references a cross-origin initialization segment with no BYTERANGE attribute and an attacker-controlled same-origin media segment.
- The HLS demuxer downloads both resources into a single buffer.
- The attacker varies the media segment size from 32 to 47 bytes.
- If the combined size is not a multiple of 16 or padding is invalid, decryption fails and an error event fires.
- If decryption succeeds and the container magic matches, events such as loadedmetadata fire, letting the attacker infer the length modulo 16.
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 padding oracle is a way to learn secret data by watching whether decryption succeeds or fails. Here, a malicious webpage could load a cross-origin file as part of a video stream and use error events to guess its size and some bytes. The report is a potential issue and no working exploit was run.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.