Incorrect security UI in Passwords (CVE-2026-12458)
The account chooser dialog for the Credential Management API automatically focuses the 'Sign in' button and allows key events to bypass the minimum-show-time protection, so a page on a PSL-matched or affiliated origin could trick a user into pressing Enter to release a saved password. The report describes a potential keyjacking attack that has not been verified with a proof-of-concept.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 21 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: The Credential Management API account chooser dialogue views are potentially vulnerable to keyjacking because the default 'Sign in' (OK) button is focused automatically upon display and key events bypass input activation protection. An attacker-controlled PSL-matched or affiliated origin can request credentials without transient user activation, then hijack a rapid user keystroke (such as Enter or Space) to instantly accept the prompt. This potentially releases the victim's saved cross-origin password in cleartext to the requesting page's renderer.
Affected files:
chrome/browser/ui/views/passwords/account_chooser_dialog_view.ccchrome/browser/ui/views/passwords/password_combined_selector_view.cc
Estimated timestamp from git blame: 2026-02-10
Root Cause Analysis
The navigator.credentials.get({password:true}) account-chooser dialog (AccountChooserDialogView and its unified UI replacement PasswordCombinedSelectorView) is a security-decision UI that releases a saved password for a different origin (PSL-matched or affiliation-grouped) to the requesting page.
Two critical details make these dialog views potentially vulnerable to keyjacking:
- The OK ('Sign in') button is default-focused upon showing.
- Key events bypass the
InputEventActivationProtectorminimum-show-time safety gate.
Neither view overrides GetInitiallyFocusedView(). As a result, the default implementation of DialogDelegate::GetInitiallyFocusedView() is executed and focuses the default OK button initially:
// ui/views/window/dialog_delegate.cc
View* DialogDelegate::GetInitiallyFocusedView() {
...
int default_button = GetDefaultDialogButton(); // returns kOk
...
if (default_button & static_cast<int>(ui::mojom::DialogButton::kOk)) {
return dcv->ok_button(); // OK is initially focused
}
}
Furthermore, neither view overrides ShouldAllowKeyEventsDuringInputProtection(), which defaults to returning true. During dialog interaction, DialogClientView::ButtonPressed calls InputEventActivationProtector::IsPossiblyUnintendedInteraction with allow_key_events=true:
// ui/views/window/dialog_client_view.cc
void DialogClientView::ButtonPressed(ui::mojom::DialogButton type,
const ui::Event& event) {
...
if (... input_protector_->IsPossiblyUnintendedInteraction(
event, /*allow_key_events=*/delegate
->ShouldAllowKeyEventsDuringInputProtection())) {
return;
}
... delegate->AcceptDialog();
}
In InputEventActivationProtector::IsPossiblyUnintendedInteraction, non-repeat key events with allow_key_events=true immediately return false, meaning they completely bypass the minimum-show-time safety gate (view_protected_time_stamp_ is never checked against):
// ui/views/input_event_activation_protector.cc
if (event.IsKeyEvent() && event.AsKeyEvent()->is_repeat()) { return true; }
if (!event.IsMouseEvent() && !event.IsTouchEvent() && !event.IsGestureEvent()) {
if (allow_key_events || !event.IsKeyEvent()) {
return false; // non-repeat key event: NOT gated by minimum-show-time protector
}
}
This behavior allows a page sharing the same registerable domain (or affiliation group) to steal credentials via a single rapid, socially-engineered keypress.
Potential Attack Scenario
Note: These are potential steps, as our tooling agent doesn't yet have the ability to run code or verify a full proof-of-concept.
- The user has saved credentials for
login.example.com. - The user navigates to an attacker-controlled page sharing the same eTLD+1 (e.g.,
attacker.example.com). - The attacker page calls
navigator.credentials.get({password:true, mediation:'required'})to query credentials without needing a transient user activation gate. - The browser gathers matched credentials, detects a Public Suffix List (PSL) match, and decides to display the account chooser dialog (since automated sign-in is disallowed for non-exact matches).
- The dialog is shown and takes active keyboard focus, defaulting its focus directly onto the 'Sign in' (OK) button.
- The attacker page presents a call-to-action (e.g., asking the user to "Press Enter to continue"). When the user presses Enter, the key event is targeted directly at the focused 'Sign in' button of the dialog.
- The keypress completely bypasses the activation protector's short delay gate and immediately triggers acceptance of the dialog, sending the cleartext credential back to the renderer process.
Suggested Remediation
To align the account chooser dialog views with other security-sensitive dialogs in Chromium (such as PasswordCrossDomainConfirmationPopupViewViews):
- Avoid default-focusing the OK/Sign-in button. Override
GetInitiallyFocusedView()inAccountChooserDialogViewandPasswordCombinedSelectorViewto focus the Cancel/Close button instead. - Override
ShouldAllowKeyEventsDuringInputProtection()to returnfalseso that key events are subject to the same minimum-show-time safety gate as mouse and touch events.
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 views do not override GetInitiallyFocusedView() (so the OK button is focused by default) and do not override ShouldAllowKeyEventsDuringInputProtection() (so key events skip the minimum-show-time gate).
Impact
A page on a PSL-matched or affiliated origin could obtain the victim's saved cross-origin password in cleartext if the user presses a key as prompted; the report notes this is a potential issue and has not been verified with a proof-of-concept.
What the attacker needed
Saved credentials for a related origin; attacker page on same eTLD+1 or affiliation; victim presses a key as prompted
The fix
The dialog views should override GetInitiallyFocusedView() to focus the Cancel/Close button instead of OK, and override ShouldAllowKeyEventsDuringInputProtection() to return false so key events are subject to the minimum-show-time gate.
How it was found
- The user has saved credentials for a login subdomain.
- The user visits an attacker-controlled page on the same registrable domain.
- The attacker page calls the credential request API without needing a user gesture.
- The browser shows the account chooser dialog and focuses the 'Sign in' button.
- The attacker page asks the user to press Enter, which activates the focused button.
- The keypress bypasses the activation protector and the saved password is released to the page.
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 the browser for a saved password, the browser shows a pop-up asking you to confirm. This report says that pop-up puts the 'Sign in' button in focus and lets a quick key press (like Enter) confirm it immediately, without the usual short delay that stops accidental clicks. A malicious page on a related domain could therefore trick you into pressing Enter and hand over your password.
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.