Skip to content
Access control Advisory Advanced CVE-2026-8015

Inappropriate implementation in Media (CVE-2026-8015)

A logic flaw in Chromium's media playback handling causes system-initiated media resumes to grant user activation to the page, allowing an attacker to bypass gesture-gated APIs like requestFullscreen without user interaction.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 38 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A logic flaw in HTMLMediaElement::RequestPlay allows media playback resumed by system events (like regaining audio focus on Android) to unconditionally grant user activation to the frame. This allows an attacker to bypass security requirements for gesture-gated APIs like requestFullscreen or window.open without user interaction. The root cause is a missing 'triggered_by_user' parameter in the RequestPlay Mojo interface, unlike RequestPause.

Affected files:

  • third_party/blink/renderer/core/html/media/html_media_element.cc
  • media/mojo/mojom/media_player.mojom
  • content/browser/media/session/media_session_controller.cc

Estimated timestamp from git blame: 2021-02-19

Description

There is a potential user activation (gesture) bypass vulnerability in Chromium's media playback handling. When media playback is requested from the browser process via Mojo, the HTMLMediaElement::RequestPlay function in the renderer unconditionally grants the frame a fresh 5-second transient user activation state.

While this is intended for genuine user interactions (like clicking 'play' on global media controls), the RequestPlay Mojo interface (media::mojom::MediaPlayer) takes no arguments and cannot differentiate between user-initiated and system-initiated events. This contrasts with the adjacent RequestPause(bool triggered_by_user) method.

This flaw becomes exploitable when a system event temporarily suspends and then automatically resumes media playback. On Android, a transient audio focus loss (e.g., a notification sound) triggers an automatic suspension (SuspendType::kSystem) and subsequent resume. When audio focus is regained, the browser instructs the renderer to resume playback by calling RequestPlay(), inadvertently granting the attacker's page a fresh user activation token without any user interaction.

Potential Exploitation Steps

An attacker could follow these steps to trigger the vulnerability and bypass gesture gates:

  1. Attacker Setup: The attacker hosts a page with a <video> or <audio> element. The attacker registers a JavaScript play event listener on this element that attempts to call a gesture-gated API, such as element.requestFullscreen().
  2. Initial Playback: The user navigates to the page and interacts with it once (or the page autoplays), starting media playback and giving Chrome OS-level audio focus.
  3. Transient Focus Loss: An external system event (e.g., an incoming text message notification) occurs. The Android OS signals AUDIOFOCUS_LOSS_TRANSIENT to Chrome's AudioFocusDelegate.java.
  4. System Suspend: This triggers a JNI call to AudioFocusDelegateAndroid::OnSuspend (content/browser/media/session/audio_focus_delegate_android.cc), which suspends the media session with SuspendType::kSystem.
  5. Transient Focus Gain: The notification finishes, and Android signals AUDIOFOCUS_GAIN.
  6. System Resume: AudioFocusDelegate.java calls the native onResume(), triggering AudioFocusDelegateAndroid::OnResume. This resumes the session with SuspendType::kSystem.
  7. Mojo IPC: The resume propagates through MediaSessionImpl to MediaSessionController::OnResume, which calls RequestPlay() on the media::mojom::MediaPlayer Mojo remote.
  8. Unconditional Activation Grant: In the renderer process, HTMLMediaElement::RequestPlay() (third_party/blink/renderer/core/html/media/html_media_element.cc:5104) is executed. It unconditionally calls LocalFrame::NotifyUserActivation(..., kInteraction), granting the frame a fresh 5-second transient activation token and syncing this state to the browser process.
  9. Bypass Execution: The media resumes, firing the queued play event. The attacker's event listener executes, and the call to element.requestFullscreen() succeeds because the security gate (HasTransientUserActivation()) checks the newly granted, illegitimate activation state.

Note: These are potential steps based on extensive code tracing. Our automated tooling does not yet have the capability to run code to confirm a working Proof of Concept.

Proposed Fix

  1. Update the media::mojom::MediaPlayer Mojo interface (media/mojo/mojom/media_player.mojom) to include a triggered_by_user boolean parameter for RequestPlay, identical to RequestPause.
  2. Plumb this parameter from the browser process, ensuring system-initiated resumes (e.g., from AudioFocusDelegateAndroid) pass false, while user-initiated actions (e.g., from global media controls) pass true.
  3. Update HTMLMediaElement::RequestPlay in the renderer to only call LocalFrame::NotifyUserActivation if triggered_by_user is true.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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.

The original report as published on the Chromium issue tracker. 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

The RequestPlay Mojo interface lacks a 'triggered_by_user' parameter, so the renderer cannot distinguish user-initiated from system-initiated play requests and always grants user activation.

Impact

An attacker could bypass gesture requirements to invoke APIs like requestFullscreen or window.open without user interaction, but the report notes this is a potential issue and no working proof of concept was confirmed.

What the attacker needed

Android device; Victim visits attacker page; Media playback starts; System audio focus event occurs

The fix

The fix should add a triggered_by_user parameter to RequestPlay, plumb it from the browser process, and only grant user activation when it is true.

How it was found

  1. Attacker hosts a page with a media element and a play event listener that calls a gesture-gated API.
  2. User interacts with the page or it autoplays, starting media playback and giving Chrome audio focus.
  3. An external system event causes a transient audio focus loss, suspending the media session.
  4. When audio focus is regained, the browser resumes the session and calls RequestPlay via Mojo.
  5. The renderer unconditionally grants user activation, and the play event fires, allowing the gesture-gated API call to succeed.

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.

Some browser features, like making a video full screen, are supposed to require a real user action such as a click. This report describes a bug where the browser mistakenly treats an automatic media resume (triggered by the phone's audio system) as if the user had clicked, so a malicious page could open full screen or pop-up windows without permission.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.