UI misrepresentation in UI (CVE-2026-87559)
The Media Router (Cast) dialog only acquires a fullscreen blocker when the tab is already fullscreen, so a page can enter fullscreen after the dialog is requested and hide the browser's trusted UI. An attacker could then spoof the browser chrome around the legitimate dialog to make a malicious site appear trusted.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 months
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: The Media Router (Cast) dialog fails to unconditionally acquire a fullscreen blocker, allowing a page to enter fullscreen mode after the dialog is requested. This hides the browser's top-level UI and allows a malicious site to spoof the security context around the trusted dialog.
Affected files:
chrome/browser/ui/views/media_router/media_router_dialog_controller_views.ccchrome/browser/ui/views/media_router/cast_dialog_coordinator.ccchrome/browser/ui/views/toolbar/webui_pinned_toolbar_actions.cc
Estimated timestamp from git blame: 2026-04-13
A potential vulnerability exists in the Media Router dialog implementation where it fails to properly block fullscreen transitions, leading to possible UI spoofing.
In MediaRouterDialogControllerViews::CreateMediaRouterDialog (chrome/browser/ui/views/media_router/media_router_dialog_controller_views.cc), a fullscreen blocker is only acquired if the tab is already in fullscreen mode at the time the dialog is created:
if (browser) {
// ...
if (fullscreen_controller->IsTabFullscreen()) {
auto blocker =
initiator()->ForSecurityDropFullscreen(display::kInvalidDisplayId);
if (!blocker) {
return;
}
fullscreen_blocker_ = std::move(*blocker);
}
}
Because this check is conditional on IsTabFullscreen(), a malicious page can request and enter fullscreen mode after the Cast dialog has been requested but before it is fully displayed, or even while it is already visible. When the tab enters fullscreen, the browser's top-level chrome (including the Omnibox and security indicators) is hidden. The page can then render a spoofed browser environment (e.g., a fake Omnibox with a trusted origin) behind and around the legitimate Cast dialog.
This is particularly concerning for the Cast dialog's default 'Cast tab' mode, which does not display the origin of the tab being cast, relying instead on the browser's Omnibox for origin verification. An attacker could trick a user into believing they are casting a trusted site while they are actually interacting with a malicious one.
Furthermore, the 'Anchor Fallback' path (lines 108-117), which is used when no browser window is found for the initiator, skips the fullscreen blocker logic entirely, despite a comment in the source code (line 73) explicitly noting that showing the dialog in the content area without a toolbar is 'susceptible to spoofing attacks.'
Potential Reproduction Steps (Suggested)
- Navigate to a malicious page that requests fullscreen after a short delay (e.g., using
setTimeout). - Interact with the page (e.g., right-click) to grant it transient user activation.
- Open the Cast dialog via the context menu or browser toolbar.
- If the fullscreen request executes after the dialog is requested but while no blocker is active, the browser will grant fullscreen and hide the trusted UI.
- Observe the Cast dialog displayed over an attacker-controlled fullscreen surface with spoofed browser chrome.
Note: These steps are based on code analysis and have not been verified with a working proof of concept.
Suggested Fix
Call ForSecurityDropFullscreen unconditionally in CreateMediaRouterDialog to ensure a blocker is always acquired for the lifetime of the dialog, regardless of the initial fullscreen state or the anchoring method. This aligns with the implementation used by other security-sensitive components, such as the File System Access API.
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
The fullscreen blocker is acquired only when the tab is already fullscreen at dialog creation, and the anchor fallback path skips it entirely, so later fullscreen transitions are not blocked.
Impact
A malicious page could hide the browser's top-level UI and spoof the security context around the trusted Cast dialog, potentially tricking a user into believing they are casting a trusted site; the steps are based on code analysis and have not been verified with a working proof of concept.
What the attacker needed
Victim visits a malicious page; page requests fullscreen after a delay; user grants transient activation; user opens the Cast dialog
The fix
Call ForSecurityDropFullscreen unconditionally in CreateMediaRouterDialog so a blocker is always acquired for the lifetime of the dialog, regardless of the initial fullscreen state or anchoring method.
How it was found
- Navigate to a malicious page that requests fullscreen after a short delay.
- Interact with the page to grant it transient user activation.
- Open the Cast dialog via the context menu or browser toolbar.
- If the fullscreen request executes after the dialog is requested but while no blocker is active, the browser grants fullscreen and hides the trusted UI.
- Observe the Cast dialog displayed over an attacker-controlled fullscreen surface with spoofed browser chrome.
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 browser shows a trusted pop-up like the Cast dialog, it should stop the page from going fullscreen, because fullscreen hides the address bar and security indicators. Here the browser only blocks fullscreen if the page was already fullscreen when the dialog opened. A malicious page can wait until the dialog is opening and then go fullscreen, drawing a fake address bar around the real dialog so the user thinks they are on a safe site.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.