Incorrect security UI in Passwords (CVE-2026-11271)
The cross-domain password filling confirmation popup lacks input protection and auto-focuses the 'Confirm' button, allowing an attacker to bypass the security warning by social-engineering a user into rapidly pressing or holding the 'Enter' key. This could let a malicious website obtain saved credentials for another origin.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 53 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 without the Chrome Security team.
Overview: The cross-domain password filling confirmation popup lacks an InputEventActivationProtector and auto-focuses the 'Confirm' button upon creation. This allows an attacker to bypass the security warning and steal cross-origin credentials by social-engineering a user into rapidly pressing or holding the 'Enter' key during manual fallback autofill.
Affected files:
chrome/browser/ui/views/passwords/password_cross_domain_confirmation_popup_view_views.ccchrome/browser/ui/passwords/password_cross_domain_confirmation_popup_controller_impl.cc
Estimated timestamp from git blame: 2025-01-08
Description
The PasswordCrossDomainConfirmationPopupViewViews is a security-sensitive UI component designed to require explicit user consent before a saved credential from one origin (e.g., victim.example) is filled into another origin (e.g., attacker.example). However, this popup is potentially vulnerable to 'keyjacking' because it lacks standard dialog interaction protections.
The popup view is constructed as an activatable widget (views::Widget::InitParams::Activatable::kYes) and immediately sets the default focus to the prominent 'Confirm' button (SetInitiallyFocusedView(confirmation_button)). Crucially, because the view inherits from autofill::PopupBaseView (a views::WidgetDelegateView) and not views::DialogDelegateView, it does not benefit from the built-in InputEventActivationProtector typically provided by DialogClientView.
Exploitation Mechanism
When a user selects a cross-domain password suggestion (either from the manual-fallback picker or a grouped-affiliation suggestion) using the keyboard (e.g., pressing 'Enter'), the autofill system synchronously processes the request. It detects the cross-domain nature and immediately creates and shows the confirmation popup.
Because the new popup is activatable, it steals native OS focus synchronously before the original autofill popup has fully closed. If an attacker can social-engineer the user into double-tapping or holding the 'Enter' key, the subsequent rapid or repeated key events are routed directly to the newly focused 'Confirm' button.
In the Views framework, ButtonController::OnKeyPressed does not inherently block event.is_repeat() events or enforce a debounce. On Windows, Linux, and ChromeOS, PlatformStyle::kReturnClicksFocusedControl is true, meaning the 'Enter' key triggers the button on press, not release. (On macOS, a similar vulnerability exists using the 'Space' key). Consequently, the auto-repeating or rapid second key press immediately executes the 'Confirm' callback without any delay, bypassing the security warning entirely.
Impact
A malicious website can potentially obtain a user's saved credentials for another origin without requiring a renderer compromise. This relies on social engineering the user into specific keyboard interactions (e.g., "Hold Enter to verify") while selecting a credential.
Suggested Reproduction Steps
Note: These are potential steps based on code analysis; automated tooling has not yet executed a live proof-of-concept.
- Ensure biometric authentication before filling is disabled (the default setting on desktop).
- Save a password for
victim.example. - Navigate to a malicious page
attacker.examplecontaining a login form. - The page instructs the user: "Right-click the box, select your account, and hold Enter to verify."
- The user triggers manual-fallback autofill, selects the
victim.exampleentry, and holds the 'Enter' key. - The first key press accepts the suggestion. The cross-domain popup appears and steals focus.
- The subsequent repeating key events immediately trigger the focused 'Confirm' button.
- The credential is filled into the attacker's page and extracted via JavaScript.
Suggested Fix
- Implement Input Protection: The view should utilize an
InputEventActivationProtectorto ignore input events for a short period (e.g., 500ms) after the popup becomes visible. This is the standard defense against clickjacking and keyjacking in security dialogs. This could be achieved by refactoring the popup to useDialogDelegateViewor by manually instantiating and checking anInputEventActivationProtectorin the view's event handlers. - Adjust Default Focus: Consider altering
SetInitiallyFocusedViewso that the 'Confirm' button is not focused by default. Focusing the 'Cancel' button or nothing at all would prevent accidental confirmation via rapid 'Enter' presses.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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
The popup lacks an InputEventActivationProtector and sets initial focus to the 'Confirm' button, so repeated or held Enter key events immediately trigger confirmation.
Impact
A malicious website could potentially obtain a user's saved credentials for another origin without requiring a renderer compromise, but this relies on social engineering the user into specific keyboard interactions.
What the attacker needed
Biometric authentication disabled; saved password for victim site; victim visits attacker page; victim holds Enter key
The fix
The popup should use an InputEventActivationProtector to ignore input events for a short period after appearing, and should not focus the 'Confirm' button by default.
How it was found
- Ensure biometric authentication before filling is disabled (the default setting on desktop).
- Save a password for victim.example.
- Navigate to a malicious page attacker.example containing a login form.
- The page instructs the user: "Right-click the box, select your account, and hold Enter to verify."
- The user triggers manual-fallback autofill, selects the victim.example entry, and holds the 'Enter' key.
- The first key press accepts the suggestion. The cross-domain popup appears and steals focus.
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 you use a password manager, it sometimes asks for confirmation before filling a password into a different website. This report found that the confirmation popup can be tricked: if you press Enter quickly or hold it down, the popup may automatically confirm without you really meaning to. That could let a bad website steal your password for another site.
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.