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.ccmedia/mojo/mojom/media_player.mojomcontent/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:
- Attacker Setup: The attacker hosts a page with a
<video>or<audio>element. The attacker registers a JavaScriptplayevent listener on this element that attempts to call a gesture-gated API, such aselement.requestFullscreen(). - 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.
- Transient Focus Loss: An external system event (e.g., an incoming text message notification) occurs. The Android OS signals
AUDIOFOCUS_LOSS_TRANSIENTto Chrome'sAudioFocusDelegate.java. - System Suspend: This triggers a JNI call to
AudioFocusDelegateAndroid::OnSuspend(content/browser/media/session/audio_focus_delegate_android.cc), which suspends the media session withSuspendType::kSystem. - Transient Focus Gain: The notification finishes, and Android signals
AUDIOFOCUS_GAIN. - System Resume:
AudioFocusDelegate.javacalls the nativeonResume(), triggeringAudioFocusDelegateAndroid::OnResume. This resumes the session withSuspendType::kSystem. - Mojo IPC: The resume propagates through
MediaSessionImpltoMediaSessionController::OnResume, which callsRequestPlay()on themedia::mojom::MediaPlayerMojo remote. - 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 callsLocalFrame::NotifyUserActivation(..., kInteraction), granting the frame a fresh 5-second transient activation token and syncing this state to the browser process. - Bypass Execution: The media resumes, firing the queued
playevent. The attacker's event listener executes, and the call toelement.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
- Update the
media::mojom::MediaPlayerMojo interface (media/mojo/mojom/media_player.mojom) to include atriggered_by_userboolean parameter forRequestPlay, identical toRequestPause. - Plumb this parameter from the browser process, ensuring system-initiated resumes (e.g., from
AudioFocusDelegateAndroid) passfalse, while user-initiated actions (e.g., from global media controls) passtrue. - Update
HTMLMediaElement::RequestPlayin the renderer to only callLocalFrame::NotifyUserActivationiftriggered_by_useris 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.
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
- Attacker hosts a page with a media element and a play event listener that calls a gesture-gated API.
- User interacts with the page or it autoplays, starting media playback and giving Chrome audio focus.
- An external system event causes a transient audio focus loss, suspending the media session.
- When audio focus is regained, the browser resumes the session and calls RequestPlay via Mojo.
- 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.