UI misrepresentation in Passwords (CVE-2026-87501)
A logic flaw in Chrome's OTP field detection allows a cross-origin iframe to signal an OTP flow, causing Chrome to defer and then silently suppress compromised-password warnings and automated password change offers. An attacker could prevent users from being informed that their credentials were leaked.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 months
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 logic flaw in the OtpFieldDetector component allows cross-origin iframes to incorrectly signal the presence of a one-time password (OTP) flow for the main frame. This can be used to silently defer and ultimately suppress Chrome's compromised-password warnings and Automated Password Change (APC) offers.
Affected files:
components/autofill/core/browser/integrators/one_time_tokens/otp_field_detector.ccchrome/browser/password_manager/password_change_delegate_impl.cccomponents/autofill/core/common/autofill_features.ccchrome/browser/ui/passwords/manage_passwords_ui_controller.ccchrome/browser/password_manager/chrome_password_change_service.cc
Estimated timestamp from git blame: 2025-09-15
Summary
A potential vulnerability exists in Chrome's Password Manager where a third-party, cross-origin iframe can prevent Chrome from displaying critical security notifications regarding leaked credentials. This occurs because the OtpFieldDetector incorrectly aggregates OTP field detection across all frames in a tab without verifying that the fields belong to the same origin as the main frame.
Technical Details
When Chrome detects that a user has signed in using a leaked password, ManagePasswordsUIController::OnCredentialLeak is triggered. If the site supports Automated Password Change (APC), Chrome initiates an APC flow via PasswordChangeDelegateImpl instead of showing a standard leak dialog.
In chrome/browser/password_manager/password_change_delegate_impl.cc, the delegate checks autofill::OtpFieldDetector::IsOtpFieldPresent() to determine if the user is currently in a multi-step login process (e.g., waiting to enter a 2FA code). If an OTP field is detected, the delegate defers showing the APC offer UI to avoid interrupting the login.
However, the OtpFieldDetector (in components/autofill/core/browser/integrators/one_time_tokens/otp_field_detector.cc) incorrectly considers focusable OTP fields in all frames. Due to the kAutofillRestrictOtpToSameTldPlusOne feature being disabled by default, no origin check is performed. An attacker-controlled iframe can simply include an <input autocomplete="one-time-code"> to trigger this state.
While the UI is deferred:
- The Omnibox password/leak icon is hidden because
ManagePasswordsUIController::GetState()returnsINACTIVE_STATEwhile a delegate exists. - If the user navigates away or closes the tab,
PasswordChangeDelegateImpl::OnCrossOriginNavigationDetectedis called, which terminates the flow silently if no UI was ever displayed.
As a result, a user may never be informed that their credentials have been compromised.
Potential Reproduction Steps
- Host a page at
https://victim.comthat embeds a cross-origin iframe fromhttps://attacker.com(e.g., via a malicious advertisement). - The attacker iframe contains a focusable input:
<input type="text" autocomplete="one-time-code">. - The user signs in to
https://victim.comusing a password known to be leaked. - Observe that Chrome initiates the APC flow internally but suppresses all UI (no dialog, no omnibox icon) due to the detected OTP field in the iframe.
- The user navigates to a new site; the APC flow terminates, and no leak warning is ever shown.
Suggested Fix
Enable the kAutofillRestrictOtpToSameTldPlusOne feature by default, or modify OtpFieldDetector::IsOtpForm to always verify that detected OTP fields are same-origin (or same-site) with the main frame's origin before signaling their presence to the Password Manager.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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
Impact
A user may never be informed that their credentials have been compromised, as the leak warning and automated password change offer are silently suppressed.
What the attacker needed
Victim visits a page with an attacker iframe; victim signs in with a leaked password; site supports automated password change
The fix
The feature restricting OTP detection to the same top-level site should be enabled by default, or the OTP detector should always verify that detected fields are same-origin with the main frame before signalling their presence.
How it was found
- Host a page that embeds a cross-origin iframe from an attacker-controlled domain.
- The attacker iframe contains a focusable input with autocomplete set to one-time-code.
- The user signs in to the main site using a password known to be leaked.
- Chrome starts the automated password change flow but suppresses all UI because an OTP field was detected in the iframe.
- The user navigates away, the flow terminates, and no leak warning is ever shown.
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 log in with a password that Chrome knows has been leaked, Chrome normally shows a warning and offers to help you change it. This report found that a malicious advertisement embedded on a website could trick Chrome into thinking you are still in the middle of logging in, so Chrome hides the warning. If you then leave the page, the warning is lost and you never find out your password was exposed.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.