Skip to content
UI spoofing Advisory Advanced CVE-2026-79204

UI misrepresentation in Input (CVE-2026-79204)

A clickjacking flaw on macOS lets a malicious page open a native select menu, trigger a permission prompt underneath it, wait for the input protection timer to expire, then dismiss the menu so the user's next click lands on the Allow button. The report is based on code analysis and no working proof of concept was executed.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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: A potential clickjacking vulnerability on macOS allows a malicious site to occlude permission prompts with native <select> menus and bypass click-protection. By programmatically dismissing the menu after the protection delay has expired, an attacker can hijack a user's click to grant unauthorized permissions.

Affected files:

  • content/browser/renderer_host/popup_menu_helper_mac.mm
  • content/app_shim_remote_cocoa/render_widget_host_ns_view_bridge.mm
  • ui/views/windows_stationarity_monitor_mac.mm
  • components/permissions/permission_request_manager.cc

Estimated timestamp from git blame: 2023-07-19

Description

On macOS, the native <select> popup menu implementation in PopupMenuHelperMac appears vulnerable to a clickjacking attack that bypasses the InputEventActivationProtector. This protection is intended to prevent users from accidentally clicking 'Allow' on permission prompts by ignoring inputs for a short period (typically 500ms) after the prompt becomes visible or when the window state changes.

The vulnerability exists due to a combination of factors:

  1. One-shot Exclusion Check: PopupMenuHelperMac::ShowPopupMenu checks for permission prompt exclusion areas (via PermissionControllerImpl::GetExclusionAreaBoundsInScreen) only once before the menu is displayed. It does not monitor for new prompts appearing after the menu is open.
  2. Mojo Task Pumping in Nested Loop: In content/app_shim_remote_cocoa/render_widget_host_ns_view_bridge.mm, the use of ScopedAllowApplicationTasksInNativeNestedLoop allows Mojo tasks to be processed while the native NSMenu nested event loop is running. This allows a malicious page to programmatically trigger a permission request (e.g., Geolocation) while the <select> menu is already visible.
  3. Prompt Occlusion: The resulting permission prompt is created underneath the existing native menu window (NSPopUpMenuWindow), which resides at a higher window level. The InputEventActivationProtector is armed when the bubble appears, but its safety timer begins immediately while the prompt is occluded.
  4. Silent Protection Expiry: An attacker can keep the menu open for longer than 500ms until the protector expires. They can then programmatically remove the <select> element from the DOM, causing the menu to be dismissed instantly via cancelTrackingWithoutAnimation in WebMenuRunner.
  5. Lack of Re-arming: WindowsStationarityMonitorMac (ui/views/windows_stationarity_monitor_mac.mm) only observes views::Widget instances and does not track native AppKit menu windows. Consequently, when the menu vanishes, the InputEventActivationProtector is not notified to reset its protection timestamp. A subsequent user click, intended for the menu, is processed by the newly revealed 'Allow' button without being blocked.

Potential Reproduction Steps

Note: These are potential steps based on code analysis; a functional proof of concept has not yet been executed.

  1. On macOS, navigate to a site with a <select> element and click it to open the native menu.
  2. While the menu is open, the page executes a permission-requesting API (e.g., navigator.geolocation.getCurrentPosition()).
  3. The page waits for approximately 600ms (to exceed the double-click interval).
  4. The page removes the <select> element from the DOM to instantly dismiss the native menu.
  5. The user's next click is registered by the 'Allow' button on the revealed permission prompt, as the input protection has already expired.

Suggested Fix

  1. Modify PopupMenuHelperMac to listen for new permission prompts appearing while the menu is open and close the menu if an intersection occurs.
  2. Update WindowsStationarityMonitorMac to detect the presence and dismissal of native AppKit menus, ensuring the InputEventActivationProtector is re-armed whenever a native menu is dismissed.

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 native select menu is not tracked by the window stationarity monitor and the permission prompt exclusion check runs only once, so the input protection timer is never re-armed when the menu is dismissed.

Impact

A user could be tricked into granting a permission such as geolocation, but the report states that no functional proof of concept has been executed.

What the attacker needed

MacOS; victim visits a malicious page; victim clicks a select element; victim clicks again after the menu closes

The fix

The report suggests making the popup helper close the menu when a permission prompt appears and making the stationarity monitor re-arm the input protection when a native menu is dismissed.

How it was found

  1. On macOS, open a page with a select element and click it to show the native menu.
  2. While the menu is open, have the page call a permission-requesting API such as geolocation.
  3. Wait about 600ms so the input protection timer expires.
  4. Remove the select element from the DOM to dismiss the menu instantly.
  5. The user's next click is handled by the revealed Allow button.

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 for a permission such as your location, the browser shows a prompt and briefly ignores clicks so you cannot be tricked into pressing Allow by accident. This report suggests that on macOS a page can hide that prompt behind a dropdown menu, wait until the brief protection has passed, then close the menu so your next click hits Allow. The finding comes from reading the browser's code, not from a tested attack.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

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.