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.cccontent/browser/renderer_host/media/media_stream_manager.cccomponents/web_modal/web_contents_modal_dialog_manager.ccchrome/browser/ui/views/desktop_capture/desktop_media_picker_views.ccchrome/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:
- Lack of RFH Validation: The dequeuing path fails to re-verify if the
RenderFrameHostthat originated the request is still active. While the initialHandleRequestperforms anIsActive()check, the dequeuing logic does not. - UI Origin Mis-attribution:
ProcessQueuedPickerRequestpopulates the picker's application title by callingGetApplicationTitle(web_contents). This helper retrieves the origin of the current primary main frame of theWebContents. 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
- A compromised renderer on
attacker.comcallsgetDisplayMediatwice. Request A displays a picker; Request B is queued. - The renderer initiates a navigation to
victim.com. - Upon navigation commit, the browser closes the picker for Request A.
DisplayMediaAccessHandlerimmediately dequeues Request B and shows a new picker.- The new picker retrieves the current origin from the
WebContents, which is nowvictim.com, and displays it as the requester: "victim.com wants to share your screen". - The user, trusting the browser's UI, approves the request.
- 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:
- In
ProcessQueuedAccessRequest, verify that theRenderFrameHostassociated with the request is still active and that its current origin matches the origin captured at the time of the initial request. - In
ProcessQueuedPickerRequest, use theapplication_titlealready stored in thePendingAccessRequeststructure (which was captured at the time of the request) instead of recalculating it from theWebContentsstate.
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.
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
- A compromised renderer calls getDisplayMedia twice, so one picker shows and the second request is queued.
- The renderer navigates to another site.
- The navigation closes the first picker, which dequeues the second request.
- The new picker reads the current page origin and shows it as the requester.
- 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.