Skip to content
Access control Advisory Advanced CVE-2026-87569

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.cc
  • chrome/browser/ui/file_system_access/file_system_access_permission_dialog.cc
  • ui/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:

  1. Focus Protection Bypass: Standard keyboard event processing via FocusManager::OnKeyEvent includes 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 calling ProcessAccelerator directly, UnhandledKeyboardEventHandler skips this check. The event is instead processed by the AcceleratorManager, which finds and triggers the most recently registered handler for VKEY_RETURN: the dialog's default 'Allow' button.

  2. Input Protection Bypass: Furthermore, dialogs built using ui::DialogModel (including the File System Access permission prompt) have enable_input_protection_ set to false by default (ui/base/models/dialog_model.h). Because of this, DialogClientView::ButtonPressed evaluates ShouldAllowKeyEventsDuringInputProtection() as true. This instructs the InputEventActivationProtector to 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.

  1. An attacker hosts a malicious website and persuades a user to press 'Enter' while interacting with the page (e.g., during a game).
  2. The website's keydown event listener triggers and initiates a request for a sensitive permission, such as fileHandle.requestPermission({mode: 'readwrite'}).
  3. 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_RETURN accelerator.
  4. The script exits the event listener without calling preventDefault(), leaving the 'Enter' event unhandled.
  5. 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.
  6. 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

  1. Modify UnhandledKeyboardEventHandler::HandleKeyboardEvent to ensure that unhandled events are either re-injected through the standard FocusManager::OnKeyEvent flow, or explicitly check focused_view_->SkipDefaultKeyEventProcessing(event) before processing them as global accelerators.
  2. Security-sensitive dialogs (or ui::DialogModel by default) should explicitly enable enable_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.

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 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

  1. Host a malicious page and persuade the user to press Enter while interacting with it.
  2. In the keydown listener, request a sensitive permission such as read-write file access.
  3. Block the renderer main thread briefly so the browser can show the dialog and register the Allow accelerator.
  4. Exit the listener without preventing the default, leaving the Enter event unhandled.
  5. The browser redispatches the event and the Allow button is triggered despite Cancel having focus.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.