Missing authorization in Views (CVE-2026-87569)
Unhandled keyboard events in Chromium's Views were redispatched directly to the accelerator manager, skipping the focused view's default key event processing. An attacker could time an Enter keypress so that a tab-modal permission dialog's default Allow button was triggered even though Cancel had focus, granting a sensitive capability without genuine consent.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
Flapjack, 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 flaw in how unhandled keyboard events are processed allows websites to bypass focus protections on tab-modal dialogs like File System Access prompts. By timing an 'Enter' keypress and returning it unconsumed, an attacker can trigger the dialog's default 'Allow' action even when the 'Cancel' button is focused. Furthermore, these dialogs disable input event activation protection for key events by default, defeating rapid-interaction mitigations.
Affected files:
ui/views/controls/webview/unhandled_keyboard_event_handler.ccchrome/browser/ui/file_system_access/file_system_access_permission_dialog.ccui/base/models/dialog_model.h
Estimated timestamp from git blame: Unknown (Google3 checkout)
Technical Details
A potential security vulnerability exists in how unhandled keyboard events are redispatched by the UnhandledKeyboardEventHandler on Windows, Linux, and ChromeOS. When a keyboard event (such as an 'Enter' keypress) is sent to a renderer and is not consumed, the browser process receives an INPUT_EVENT_ACK_STATE_NOT_CONSUMED notification. This unhandled event is routed to views::UnhandledKeyboardEventHandler::HandleKeyboardEvent.
For kRawKeyDown events, the handler extracts the associated accelerator (e.g., VKEY_RETURN) and directly calls focus_manager->ProcessAccelerator(accelerator). This direct invocation introduces a significant security bypass:
-
Focus Protection Bypass: Standard keyboard event processing via
FocusManager::OnKeyEventincludes a critical safety check:focused_view_->SkipDefaultKeyEventProcessing(event). This check is used to protect sensitive dialogs by setting the initial focus to a 'Cancel' button, which consumes the 'Enter' key and prevents it from acting as a global accelerator. By callingProcessAcceleratordirectly,UnhandledKeyboardEventHandlerskips this check. The event is instead processed by theAcceleratorManager, which finds and triggers the most recently registered handler forVKEY_RETURN: the dialog's default 'Allow' button. -
Input Protection Bypass: Furthermore, dialogs built using
ui::DialogModel(including the File System Access permission prompt) haveenable_input_protection_set tofalseby default (ui/base/models/dialog_model.h). Because of this,DialogClientView::ButtonPressedevaluatesShouldAllowKeyEventsDuringInputProtection()astrue. This instructs theInputEventActivationProtectorto explicitly ignore key events, allowing an 'Enter' keypress to be accepted immediately after the dialog appears, bypassing protections against rapid or accidental interactions.
Potential Attack Scenario
Note: These are suggested steps; our tooling agent does not yet have the ability to run code to confirm a working proof of concept.
- An attacker hosts a malicious website and persuades a user to press 'Enter' while interacting with the page (e.g., during a game).
- The website's
keydownevent listener triggers and initiates a request for a sensitive permission, such asfileHandle.requestPermission({mode: 'readwrite'}). - The script briefly blocks the renderer's main thread (e.g., using a synchronous busy-wait loop). This ensures the browser process has enough time to initialize the tab-modal permission dialog and register its default 'Allow' button's
VKEY_RETURNaccelerator. - The script exits the event listener without calling
preventDefault(), leaving the 'Enter' event unhandled. - The browser redispatches the unhandled event. Due to the direct call to
ProcessAccelerator, the dialog's focused 'Cancel' button is bypassed, and the default 'Allow' button accelerator is triggered. - Because input protection is disabled for key events, the action is immediately accepted, granting the attacker the requested capability without genuine user consent.
Recommended Fix
- Modify
UnhandledKeyboardEventHandler::HandleKeyboardEventto ensure that unhandled events are either re-injected through the standardFocusManager::OnKeyEventflow, or explicitly checkfocused_view_->SkipDefaultKeyEventProcessing(event)before processing them as global accelerators. - Security-sensitive dialogs (or
ui::DialogModelby default) should explicitly enableenable_input_protection_to mitigate rapid-interaction attacks via keyboard events.
Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff
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 unhandled keyboard event handler called the accelerator manager directly instead of going through the focus manager's check that lets the focused view consume the key, and the dialog model left input protection disabled for key events.
Impact
An attacker could obtain a sensitive permission such as read-write file access without genuine user consent, though the report notes the proof of concept was not run and the scenario is suggested rather than confirmed.
What the attacker needed
Victim presses Enter on attacker page; Windows, Linux or ChromeOS; user interaction with a permission prompt
The fix
The handler should re-inject unhandled events through the standard focus manager flow or check the focused view's default key event processing, and security-sensitive dialogs should enable input protection.
How it was found
- Host a malicious page and persuade the user to press Enter while interacting with it.
- In the keydown listener, request a sensitive permission such as read-write file access.
- Block the renderer main thread briefly so the browser can show the dialog and register the Allow accelerator.
- Exit the listener without preventing the default, leaving the Enter event unhandled.
- The browser redispatches the event and the Allow button is triggered despite Cancel having focus.
- Because input protection is off for key events, the permission is granted immediately.
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 web page asks for a sensitive permission, the browser shows a dialog and normally puts focus on Cancel so a stray Enter does not approve it. This report says a flaw in how the browser handles an Enter key the page did not use could make the dialog approve the request anyway. The attacker only needs the user to press Enter on a malicious page at the right moment.
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.