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

Inappropriate implementation in MediaCapture (CVE-2026-13985)

A logic error in the screen capture picker allows a compromised renderer to queue a second getDisplayMedia request and then navigate, so the picker shows the new site's origin instead of the requester's. If the user approves, the capture stream is delivered to the attacker's still-open connection.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 45 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A logic error in DisplayMediaAccessHandler allows a compromised renderer to spoof the origin displayed in the screen capture picker. By queuing multiple requests and initiating a navigation, the attacker can cause the subsequent permission UI to mis-attribute the request to the new, post-navigation site origin.

Affected files:

  • chrome/browser/media/webrtc/display_media_access_handler.cc
  • content/browser/renderer_host/media/media_stream_manager.cc
  • components/web_modal/web_contents_modal_dialog_manager.cc
  • chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc
  • chrome/browser/ui/views/media_picker_utils.cc

Estimated timestamp from git blame: 2018-08-14

Potential Vulnerability: Origin Spoofing in getDisplayMedia Picker

A logic error exists in DisplayMediaAccessHandler (the handler for the getDisplayMedia API) that may allow a compromised renderer to spoof the origin shown in the media picker dialog and the subsequent capture notification.

When getDisplayMedia is called, the request is processed by DisplayMediaAccessHandler::HandleRequest. If multiple requests are made, they are queued in a RequestsQueue associated with the WebContents. If a picker is already visible, subsequent requests wait in this queue.

When a top-level navigation occurs, any active modal dialog is closed. In the case of the screen capture picker, this dismissal triggers the dequeuing of the next request in DisplayMediaAccessHandler::RejectRequest, which calls ProcessQueuedAccessRequest and then ProcessQueuedPickerRequest.

There are two primary issues in this path:

  1. Lack of RFH Validation: The dequeuing path fails to re-verify if the RenderFrameHost that originated the request is still active. While the initial HandleRequest performs an IsActive() check, the dequeuing logic does not.
  2. UI Origin Mis-attribution: ProcessQueuedPickerRequest populates the picker's application title by calling GetApplicationTitle(web_contents). This helper retrieves the origin of the current primary main frame of the WebContents. If the page has navigated to a new site before the queued request is processed, the picker will display the new site's origin instead of the originating one.

Because a compromised renderer can keep the Mojo connection to MediaStreamDispatcherHost alive across navigations, the resulting capture stream will be delivered to the attacker's process once the user approves the spoofed prompt.

Potential Attack Scenario

  1. A compromised renderer on attacker.com calls getDisplayMedia twice. Request A displays a picker; Request B is queued.
  2. The renderer initiates a navigation to victim.com.
  3. Upon navigation commit, the browser closes the picker for Request A.
  4. DisplayMediaAccessHandler immediately dequeues Request B and shows a new picker.
  5. The new picker retrieves the current origin from the WebContents, which is now victim.com, and displays it as the requester: "victim.com wants to share your screen".
  6. The user, trusting the browser's UI, approves the request.
  7. The screen capture session is initiated, and the stream is delivered to the attacker via the original, still-open Mojo connection.

Suggested Fix

To mitigate this, the browser should:

  1. In ProcessQueuedAccessRequest, verify that the RenderFrameHost associated with the request is still active and that its current origin matches the origin captured at the time of the initial request.
  2. In ProcessQueuedPickerRequest, use the application_title already stored in the PendingAccessRequest structure (which was captured at the time of the request) instead of recalculating it from the WebContents state.

Note: These steps are based on source code analysis. We have not yet verified them with a working proof-of-concept.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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.

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

Likely the queued-request path does not re-check that the requesting frame is still active and rebuilds the picker title from the current page instead of the stored request.

Impact

A user who trusts the spoofed picker could approve screen sharing to the attacker, though the report notes no working proof-of-concept has been verified.

What the attacker needed

Compromised renderer; user approves the picker

The fix

The browser should verify the requesting frame is still active with the same origin and use the stored application title instead of recalculating it.

How it was found

  1. A compromised renderer calls getDisplayMedia twice, so one picker shows and the second request is queued.
  2. The renderer navigates to another site.
  3. The navigation closes the first picker, which dequeues the second request.
  4. The new picker reads the current page origin and shows it as the requester.
  5. The user approves, and the stream goes to the attacker over the original connection.

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.

When a website asks to share your screen, the browser shows a pop-up naming the site. This report says a malicious page could make that pop-up name a different, trusted site by asking twice and then quickly navigating away. If you clicked approve, your screen could be shared with the attacker.

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.