UI misrepresentation in Prompts (CVE-2026-121122)
The exclusive-access permission prompt does not report its on-screen bounds, so the browser's checks for overlapping menus and popups fail open. An attacker could place a native dropdown over the prompt and, after removing it, trick a user's click into granting persistent keyboard or pointer lock.
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 ExclusiveAccessPermissionPrompt class lacks an override for GetViewBoundsInScreen, inheriting a default implementation returning nullopt. Consequently, occlusion-detection mechanisms in PopupMenuHelper and WebContentsImpl fail to detect overlapping select popups or dropdown menus. This exposes the keyboard/pointer-lock permission prompts to potential clickjacking attacks that grant persistent permissions without informed consent.
Affected files:
chrome/browser/ui/views/permissions/exclusive_access_permission_prompt.hchrome/browser/ui/views/permissions/exclusive_access_permission_prompt.cc
Estimated timestamp from git blame: 2024-04-17
Root Cause Analysis
ExclusiveAccessPermissionPrompt (chrome/browser/ui/views/permissions/exclusive_access_permission_prompt.h, lines 29-65) inherits from PermissionPromptDesktop but does not override GetViewBoundsInScreen(). The base class implementation in chrome/browser/ui/views/permissions/permission_prompt_desktop.cc (lines 56-59) returns std::nullopt:
std::optional<gfx::Rect> PermissionPromptDesktop::GetViewBoundsInScreen() const {
return std::nullopt;
}
Other active desktop permission prompts (such as PermissionPromptBubble, PermissionPromptChip, or EmbeddedPermissionPrompt) override this method to provide the actual screen bounds of their prompt bubble. Because ExclusiveAccessPermissionPrompt does not, its exclusion/view bounds evaluate to std::nullopt.
This omission degrades occlusion-detection mechanisms that prevent overlapping elements from covering active permission prompts:
- macOS
<select>popup path:PopupMenuHelper::IntersectsPermissionPrompt(content/browser/renderer_host/popup_menu_helper_mac.mm, lines 106-122) delegates bounds retrieval down to the prompt's exclusion area. Because the bounds arestd::nullopt, the intersection check fails-open, causing the initial check and the 100 msCheckPermissionPromptOcclusioncheck timer to act as no-ops. The dropdown menu remains open over the prompt bubble. - Aura WebPagePopup path: Similarly,
WebContentsImpl::ShowCreatedWidget(content/browser/web_contents/web_contents_impl.cc, lines 6004-6011) fails-open whenpermission_exclusion_area_boundsisstd::nullopt, allowing the popup to cover the prompt.
Additionally, both WindowsStationarityMonitorMac and WindowsStationarityMonitorAura are blind to native popup menus and widgets of type TYPE_POPUP (which do not require a non-client view), meaning closing the dropdown does not re-trigger input event activation protection.
Potential Exploit Scenario
Note: The following steps are suggested/potential attack sequences; our tooling agent does not currently have the capability to run a live proof of concept.
- An attacker-controlled webpage shows a
<select>dropdown styled to overlap the center of the viewport (where the prompt bubble is displayed). - The user clicks the
<select>dropdown, producing a native menu overlay and granting transient user activation. - Under this transient activation, the webpage programmatically requests a keyboard/pointer lock (
navigator.keyboard.lock()). - The browser displays the
ExclusiveAccessPermissionPromptbubble under the native menu. Since the exclusion area returnsstd::nullopt, the occlusion timer does not dismiss the menu. - The attacker's script waits for a duration exceeding the double-click threshold (e.g., 800 ms) and then programmatically removes the
<select>element from the DOM. - The menu vanishes, instantly revealing the prompt's action buttons. Because the stationarity monitor does not track popup menus, the prompt's input protector is not re-armed.
- The user's continuation click falls onto the "Allow every visit" or "Allow this time" button, granting persistent lock permissions without informed consent.
Suggested Fix
Override GetViewBoundsInScreen() in ExclusiveAccessPermissionPrompt to return the actual bounds of its underlying bubble view when it is visible.
std::optional<gfx::Rect> ExclusiveAccessPermissionPrompt::GetViewBoundsInScreen() const {
views::View* prompt_view = prompt_view_tracker_.view();
if (prompt_view && prompt_view->GetWidget()) {
return prompt_view->GetWidget()->GetWindowBoundsInScreen();
}
return std::nullopt;
}
Evaluated with Chrome root at commit: bf775e5d75cb9e1767e2cd02cc93efa0077d14a5
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 prompt class never overrides the method that returns its screen bounds, so the base implementation returns an empty value and the occlusion checks treat the prompt as having no area to protect.
Impact
A user's click could be redirected onto the permission prompt, granting persistent keyboard or pointer lock without informed consent; the report notes no live proof of concept was run.
What the attacker needed
Victim visits attacker page; victim clicks a dropdown; keyboard or pointer lock requested
The fix
The prompt class should be changed to override the bounds method and return the real screen bounds of its bubble view when visible.
How it was found
- A page shows a select dropdown positioned over the centre of the viewport where the prompt appears.
- The user clicks the dropdown, opening a native menu and giving transient user activation.
- The page requests keyboard or pointer lock while that activation is valid.
- The permission prompt appears beneath the native menu and is not dismissed because the bounds are empty.
- After a delay longer than the double-click threshold, the script removes the select element so the menu vanishes.
- The user's next click lands on the prompt's allow button, granting persistent permission.
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 site asks for a powerful permission, the browser shows a small prompt and normally hides or dismisses any menus that overlap it, so a user cannot be tricked into clicking the wrong thing. Here the prompt never told the browser where it was on screen, so that overlap check had nothing to compare against and did nothing. A page could then cover the prompt with a dropdown and, once the dropdown disappears, catch the user's next click on the allow button.
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.