Incorrect security UI in Views (CVE-2026-14144)
The Digital Identity safety interstitial in Chrome focuses the 'Continue' button by default and allows key events to bypass the 500ms input protection window. A malicious site could trick a user into pressing Enter or Space during rapid keystrokes, accidentally accepting the dialog and skipping the security warning.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 45 days
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 malicious website can potentially bypass the Digital Identity safety interstitial on desktop by tricking a user into accidentally accepting the dialog via rapid keystrokes. This is due to the 'Continue' button being focused by default and a lack of key-event input protection in the dialog host.
Affected files:
chrome/browser/ui/views/digital_credentials/digital_identity_safety_interstitial_controller_desktop.ccui/views/bubble/bubble_dialog_model_host.ccui/views/input_event_activation_protector.cc
Estimated timestamp from git blame: 2025-07-07
Background
The Digital Identity API (navigator.credentials.get({digital: ...})) is used by websites to request sensitive information from a user's digital wallet. On desktop, Chrome displays a safety interstitial (a modal security warning) to ensure the user is aware of the risks before proceeding with a cross-device request (e.g., scanning a QR code).
The Issue
A potential vulnerability in the desktop implementation of this interstitial allows a malicious site to bypass the warning through a 'keyjacking' attack.
-
Initially Focused Button: In
DigitalIdentitySafetyInterstitialControllerDesktop::ShowInterstitialImpl, the dialog is constructed usingui::DialogModeland explicitly sets the initial focus to the 'Continue' button:.SetInitiallyFocusedField(kContinueButtonId);(digital_identity_safety_interstitial_controller_desktop.cc:162). -
Input Protection Bypass: The dialog is hosted by
views::BubbleDialogModelHost, which inherits the default behavior ofviews::DialogDelegate::ShouldAllowKeyEventsDuringInputProtection(). This default implementation returnstrue(dialog_delegate.cc:249). -
Protector Logic: When a user interaction occurs,
views::InputEventActivationProtector::IsPossiblyUnintendedInteraction()is called to prevent accidental interactions immediately after a dialog appears (within a ~500ms window). However, the protector explicitly allows key events to bypass this time-gate if the delegate'sallow_key_eventsis set totrue:C++ if (!event.IsMouseEvent() && !event.IsTouchEvent() && !event.IsGestureEvent()) { if (allow_key_events || !event.IsKeyEvent()) { return false; // Bypasses the 500ms safety interval } }
Consequently, any non-repeat key event (such as pressing Enter or Space) is processed immediately upon the dialog's appearance, bypassing the guard designed to ensure informed user consent.
Potential Attack Scenario
- A malicious page induces the user to perform rapid keystrokes (e.g., via a fake 'type-to-win' game or CAPTCHA requiring repeated
Enterpresses). - During this activity, the page calls
navigator.credentials.get({digital: ...}), consuming the transient user activation requirement. - The browser process displays the Digital Identity safety interstitial.
- The 'Continue' button receives keyboard focus the instant the dialog appears due to the
SetInitiallyFocusedFieldconfiguration. - The user's next keystroke (intended for the attacker's page) is instead delivered to the focused 'Continue' button.
- The
InputEventActivationProtectorallows the interaction immediately, bypassing the safety interval. - The dialog is dismissed, and the browser proceeds to the next step (e.g., displaying a QR code for a mobile wallet), having bypassed the safety warning without the user's informed consent.
Note: These steps are suggested based on code analysis; our current environment does not support running live proof-of-concept code.
Impact
While this bypass allows skipping the browser's safety warning, the overall impact is mitigated by the fact that the user must still complete the subsequent flow (e.g., scanning a QR code on a mobile device and approving the request in a wallet app). However, bypassing a primary security interstitial is considered a Medium (S2) severity issue in Chrome.
Suggested Fix
The host for the Digital Identity safety interstitial should ensure that ShouldAllowKeyEventsDuringInputProtection() returns false. This ensures that key events are subject to the same 500ms input protection interval as mouse events, preventing accidental dismissal.
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
Likely the dialog host does not override ShouldAllowKeyEventsDuringInputProtection to return false, so key events bypass the 500ms input protection interval, combined with the 'Continue' button being focused by default.
Impact
The bypass allows skipping the browser's safety warning, but the overall impact is mitigated because the user must still complete the subsequent flow (e.g., scanning a QR code and approving in a wallet app).
What the attacker needed
Victim performs rapid keystrokes; malicious website; user interaction required
The fix
The host for the Digital Identity safety interstitial should ensure that ShouldAllowKeyEventsDuringInputProtection() returns false.
How it was found
- A malicious page induces the user to perform rapid keystrokes (e.g., via a fake 'type-to-win' game or CAPTCHA requiring repeated Enter presses).
- During this activity, the page calls navigator.credentials.get({digital: ...}), consuming the transient user activation requirement.
- The browser process displays the Digital Identity safety interstitial.
- The 'Continue' button receives keyboard focus the instant the dialog appears due to the SetInitiallyFocusedField configuration.
- The user's next keystroke (intended for the attacker's page) is instead delivered to the focused 'Continue' button.
- The InputEventActivationProtector allows the interaction immediately, bypassing the safety interval.
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 to use your digital wallet, Chrome shows a warning dialog to make sure you understand the risk. This report found that the dialog's 'Continue' button is already selected, and the dialog accepts keyboard presses immediately, so if you happen to press Enter right as it appears, you might accept the warning without meaning to. The attacker just needs to get you typing quickly before triggering the dialog.
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.