Skip to content
Info disclosure Advisory Advanced CVE-2026-106398

Incorrect authorization in Media (CVE-2026-106398)

Chrome's HLS media loader records the URL after redirects from the outer data source, so when a same-origin Service Worker follows a cross-origin redirect with fetch, the recorded origin stays same-origin and the opaque cross-origin body is accepted as an AES key. An attacker page can then use HLS decryption success as an equality oracle to recover a low-entropy authenticated cross-origin response offline from Cache Storage.

caveeroo Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Report description

HLS accepts a Service Worker-proxied opaque cross-origin response as an AES key, enabling authenticated offline dictionary recovery


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://chromium.googlesource.com/chromium/src/+/HEAD/media/filters/hls_data_source_provider_impl.cc https://chromium.googlesource.com/chromium/src/+/HEAD/media/formats/hls/security_metadata.cc https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc


The problem

Please describe the technical details of the vulnerability

Chrome blocks an HLS manifest from using an AES key obtained through a direct cross-origin redirect. A same-origin Service Worker can bypass that protection by following the same redirect with fetch(event.request) and returning the resulting opaque response.

Text
HLS -> /key-redirect -> 302 cross-origin                     -> BLOCKED
HLS -> /key-redirect -> Service Worker fetch(event.request)
                    -> same 302 cross-origin                 -> PLAYED

Both paths reach the same final URL, carry Range: bytes=0-, and receive the same 16-byte response. The security-relevant difference is whether the media loader observes the redirect or the Service Worker follows it before returning the response.

The minimal worker code is:

JavaScript
self.addEventListener('fetch', event => {
  const url = new URL(event.request.url);
  if (url.pathname === '/key-redirect' &&
      url.searchParams.get('via') === 'sw') {
    event.respondWith(fetch(event.request));
  }
});

The server returns the same redirect in the direct control and Service Worker cases:

HTTP
HTTP/1.1 302 Found
Location: https://target.example/secret

The four-case PoC produces:

Text
same_origin           PLAYED
direct_redirect       BLOCKED
sw_redirect_known     PLAYED
sw_redirect_wrong     BLOCKED

sw_redirect_wrong follows the same worker and redirect path but receives a different 16-byte value. It fails to decrypt the media. This establishes a content-equality signal, not merely that the cross-origin request completed.

Authenticated cached-response impact

The Service Worker can store the opaque response in Cache Storage and return a fresh cached clone for later HLS key requests. For each candidate value, the attacker supplies valid media encrypted under that candidate. Playback succeeds only when the candidate equals the hidden cached response.

The attached impact PoC uses an HTTPS endpoint that returns HTTP 403 unless the request carries its normal SameSite=None; Secure session cookie. The cookie is established through a first-party HTTPS navigation and an ordinary Set-Cookie response. The authenticated endpoint returns exactly:

Text
PIN=1337;.......

Observed on Chrome Stable 151.0.7922.76:

Text
same-origin AES key                         PLAYED
direct authenticated cross-origin key      BLOCKED
opaque response stored in Cache Storage    YES
cached correct response                     PLAYED
cached equal-length wrong candidate         BLOCKED
recovered dictionary value                  1337
target requests during enumeration          0

1337 is the 1,338th member of the 0000-9999 dictionary. The PoC evaluates 48 candidates concurrently, so its successful batch finishes at candidate 1343 and records 1,344 candidate HLS loads. Setup and control loads are not included in that number.

The reference run recovered the value in 19.463 seconds. A separate worst-case run placed the match at 9999, evaluated all 10,000 candidates in 143.795 seconds, and made no additional request to the target during enumeration.

This is whole-response recovery when the complete response belongs to a practical candidate set. It is not arbitrary byte extraction or brute force of a high-entropy AES key.

Root cause

Relevant Chromium code:

Text
https://chromium.googlesource.com/chromium/src/+/HEAD/media/filters/hls_data_source_provider_impl.cc
https://chromium.googlesource.com/chromium/src/+/HEAD/media/formats/hls/security_metadata.cc
https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/renderer/platform/media/multi_buffer_data_source.cc

HlsDataSourceProviderImpl::DataSourceInitialized() records the URL returned by GetUrlAfterRedirects(). For MultiBufferDataSource, that URL is obtained from the outer UrlData:

C++
GURL MultiBufferDataSource::GetUrlAfterRedirects() const {
  return GURL(url_data_->url());
}

When the Service Worker follows the redirect, this remains the same-origin /key-redirect request URL. It does not represent the final origin supplying the opaque body. Consequently, HLS security metadata contains only the manifest origin and accepts the key:

Text
actual key bytes:       cross-origin target
recorded response URL:  same-origin Service Worker URL
recorded origin set:    manifest origin
result:                 key accepted

Chrome therefore consumes the opaque cross-origin response body as an HLS AES key while treating it as though it came from the manifest origin.

Relationship to issue 501254242

Public issue 501254242 fixed a direct HTTP-redirect bypass of the HLS key-origin restriction:

https://issues.chromium.org/issues/501254242

That fix rejects redirects observed by the HLS media data source. This report uses a different transition: the Service Worker follows the redirect inside fetch(event.request), so the outer media data source receives a same-origin Service Worker response and does not retain the redirect or final-origin state.

The PoC's direct-redirect case is blocked on the tested builds, confirming that the previous fix is present. The Service Worker case remains accepted.

Source-history introduction range

The first Chromium commit at which this equality oracle can exist is the commit that added native AES-128 HLS segment decryption using a fetched playlist key:

Text
last unaffected:    0b9dd1c9d4de4159d9b5512e3e9e9a3ae6e9922e
first affected:     1b9326aa2ff0db894fe215a10cb89899665f8020
first affected date: 2024-07-25
commit position:    refs/heads/main@{#1333263}
subject:            Decrypt AES-128 content in HLS

https://chromium.googlesource.com/chromium/src/+/1b9326aa2ff0db894fe215a10cb89899665f8020

The parent has no native path that passes a fetched HLS key to the segment decryptor. The first affected commit adds the bridge used by this PoC: fetched EncryptionData::GetKey() bytes influence whether attacker-supplied encrypted media can be parsed and played.

The later hardening history explains the remaining gap:

Text
2026-04-02  db46e35db798aeee6cea733fcb31f5d8680d6416  Restrict origins for HLS keys
2026-04-16  a8db6f5f733cfec577972326fa249a8551dbc394  Check for redirection when determining key safety
2026-06-11  cac536c341385184852d2508b92e461deb7dfd72  Track security origins included in streams

The April fix records a redirect only when the media data source observes it. The June change records GetUrlAfterRedirects(), which still yields the outer same-origin URL for the Service Worker response.

Reproduction

Attach these files individually:

Text
hls_sw_opaque_key_poc.py
encrypted_small.ts
hls_authenticated_dictionary_poc.py
plain_small.ts
hls_evidence_summary.json

Both Python files are server-only PoCs and do not launch or control Chrome.

Minimal four-case reproduction

  1. Run python3 hls_sw_opaque_key_poc.py.
  2. Start the tested Chrome build with a fresh profile and no extensions or enterprise policies.
  3. Open http://localhost:18340/.
  4. Do not interact with the page. It registers the Service Worker, reloads once to become controlled, and executes all four cases automatically.
  5. Observe VULNERABLE and the four-case matrix shown above.

The minimal script uses only Python's standard library. encrypted_small.ts is a harmless 1.16-second encrypted AAC transport stream.

Authenticated dictionary reproduction

This PoC additionally requires Python's cryptography package and OpenSSL.

  1. Run python3 hls_authenticated_dictionary_poc.py.
  2. In a fresh normal Chrome profile, open the printed HTTPS /set-cookie URL. Accept the warning for the one-day self-signed loopback certificate. This represents an ordinary first-party authenticated visit.
  3. Follow the displayed link to the printed http://localhost attacker URL.
  4. No further interaction is required. The page executes the controls and the complete four-digit enumeration.
  5. Observe VULNERABLE, found: 1337, dictionaryOrdinal: 1338, and candidateLoads: 1344. targetBeforeSearch and targetAfterSearch remain equal; both were 4 in the reference run.

plain_small.ts is a harmless 1.16-second AAC transport stream used to create candidate encrypted segments in memory.

Expected behavior

The Service Worker response should be rejected like the direct redirect because its opaque body was supplied by a different origin.

Actual behavior

Chrome imports the opaque cross-origin body as the HLS AES key and reveals whether it decrypts attacker-supplied media.

Impact analysis

An attacker who controls a web origin can use Chrome's HLS decryptor to test the complete contents of a cross-origin response that JavaScript is not allowed to read. Ordinarily, a permitted no-cors request exposes only an opaque response: script cannot inspect its status, headers, or body. This bug passes those hidden body bytes to the HLS AES implementation and exposes whether they exactly equal an attacker-chosen candidate.

Cache Storage makes the oracle persistent and offline. An already-authenticated victim visits the attacker's Service-Worker-controlled page. The worker makes one credentialed request permitted by ordinary cookie policy, retains the opaque response, and returns cached clones for the entire candidate search. The target receives no request per candidate and cannot observe or rate-limit the offline testing.

The attached PoC demonstrates the disclosure directly:

Text
before exploitation: attacker cannot read the authenticated response body
after one opaque fetch: body remains unreadable to JavaScript
after offline HLS tests: complete value PIN=1337;....... recovered
target requests during all 1,344 candidate tests: 0

No permission prompt or interaction is required after the authenticated victim opens the attacker page. The attacker gains the complete SOP-protected response when it has the required AES-key length and belongs to a practical dictionary.

Preconditions and limits:

  • Normal browser rules must permit the no-CORS request and any required credentials.
  • The target must not block the response using CORP.
  • The complete target response must be 16 bytes and belong to a practical candidate set.
  • The attack does not bypass SameSite, third-party-cookie, CORP, or Local Network Access policy.
  • It does not make brute force of a high-entropy 128-bit value practical and does not provide arbitrary byte-by-byte extraction.

These constraints limit which endpoints qualify, but for a qualifying low-entropy authenticated response the PoC recovers the entire protected body, not merely its size or whether a request occurred.


The cause

What version of Chrome have you found the security issue in?

151.0.7922.76 Stable Revision: 031bfd60f544af71d8dd7246970d1af3e1acf3ad-refs/branch-heads/7922_47@{#18} Ubuntu 24.04.4 LTS x86_64 Fresh profile; no extensions or enterprise policies 153.0.7990.0 Canary Four-case redirect matrix reproduced

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Information Leak

How would you like to be publicly acknowledged for your report?

caveeroo

The original report as published on the Chromium issue tracker, by caveeroo. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 data source records the URL after redirects from the outer UrlData, which stays the same-origin Service Worker URL when the worker follows the redirect itself, so the final cross-origin origin is never recorded in the security metadata.

Impact

An attacker-controlled page could recover the complete body of a qualifying 16-byte authenticated cross-origin response that belongs to a small candidate set, entirely offline with no further requests to the target, though CORP, SameSite and cookie policy still apply and high-entropy keys remain infeasible.

What the attacker needed

Victim visits attacker page; victim already authenticated to target; target response is 16 bytes; response in a small candidate set

The fix

The Service Worker response should be rejected like the direct redirect because its opaque body came from a different origin.

How it was found

  1. Run the minimal Python PoC server script.
  2. Start the tested Chrome build with a fresh profile and no extensions or policies.
  3. Open the local PoC page and leave it alone; it registers the Service Worker, reloads to become controlled, and runs all four cases.
  4. Observe the vulnerable result and the four-case matrix.

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 web page normally cannot read the contents of a response from another site; the browser hands it back as an opaque blob with no readable body. Here Chrome's video streaming code (HLS) took such a hidden blob and used it as a decryption key, so the page could tell whether the hidden bytes matched a guess by seeing if its own encrypted video played. Repeating that guess against a small set of likely values let the attacker learn the whole secret without ever reading it directly.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by caveeroo

View all

1 more disclosed report, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.