Insufficient policy enforcement in Passwords (CVE-2026-8547)
A compromised renderer in a cross-origin iframe can overwrite the shared password generation popup state, causing the browser to save an attacker-chosen password for the victim's origin. If the user accepts the poisoned suggestion, the attacker can log into the victim's account.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 44 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer in a cross-origin iframe can potentially poison the shared password generation popup state for a victim origin. ChromePasswordManagerClient::PresaveGeneratedPassword fails to verify that the calling frame owns the active popup before updating its password value. If the user accepts the poisoned suggestion, the attacker-controlled password is saved for the victim's account, leading to account takeover.
Affected files:
chrome/browser/password_manager/chrome_password_manager_client.ccchrome/browser/ui/passwords/password_generation_popup_controller_impl.cc
Estimated timestamp from git blame: 2024-05-24
Vulnerability Details
ChromePasswordManagerClient is a WebContentsUserData instance, meaning a single instance is shared across all frames (main frame and iframes) within a given tab. When a password generation popup is triggered, its state is managed by a PasswordGenerationPopupControllerImpl instance, which is stored in the ChromePasswordManagerClient::popup_controller_ member.
The vulnerability exists in the autofill.mojom.PasswordGenerationDriver::PresaveGeneratedPassword Mojo IPC handler. When this IPC is received, the method updates the popup_controller_ with the provided password without verifying that the sender frame is the actual owner of the currently active popup.
void ChromePasswordManagerClient::PresaveGeneratedPassword(
const autofill::FormData& form_data,
const std::u16string& password_value) {
content::RenderFrameHost* rfh =
password_generation_driver_receivers_.GetCurrentTargetFrame();
// ... checks ...
#if !BUILDFLAG(IS_ANDROID)
if (popup_controller_) {
// FLAW: No check is performed to ensure `rfh` owns the `popup_controller_`.
// A cross-origin iframe can overwrite the victim's generated password.
popup_controller_->UpdateGeneratedPassword(password_value);
}
#endif
// ...
}
Because the popup_controller_ correctly retains the victim frame's driver_ and form_data_ from when the popup was initially created, accepting the poisoned password binds the attacker's string to the victim's origin. This bypasses Site Isolation and results in an account takeover.
Potential Attack Steps
(Note: These are suggested/potential steps based on code analysis; our tooling agent does not yet have the ability to run live code to provide a working proof of concept.)
- An attacker compromises a cross-origin iframe (e.g., via a v8 bug) embedded on a victim's registration or password-change page.
- The user interacts with a password field on the victim site, prompting the browser to display a password generation popup.
- The victim's frame legitimately creates the popup, and the browser stores its controller in the shared
ChromePasswordManagerClient::popup_controller_. - The compromised iframe observes the interaction and sends a
PresaveGeneratedPasswordMojo IPC to the browser, containing an attacker-known password. ChromePasswordManagerClient::PresaveGeneratedPasswordreceives the IPC from the attacker's frame and unconditionally updates the sharedpopup_controller_with the attacker's password.- The user clicks "Use suggested password" (or accepts it via keyboard), believing it to be a secure, browser-generated password for the victim site.
- The browser saves the attacker's password under the victim's origin and fills it into the form. The attacker can now log into the victim's account remotely.
Suggested Fix
Before calling popup_controller_->UpdateGeneratedPassword(password_value), ChromePasswordManagerClient must verify that the incoming IPC originates from the same frame or driver that the popup_controller_ was instantiated for.
For example, the controller could expose its associated RenderFrameHost or PasswordManagerDriver, allowing ChromePasswordManagerClient to enforce an ownership check:
if (popup_controller_ &&
popup_controller_->driver().get() ==
password_manager::ContentPasswordManagerDriver::GetForRenderFrameHost(rfh)) {
popup_controller_->UpdateGeneratedPassword(password_value);
}
Evaluated with Chrome root at commit: 876d480da1f794d87813cfa2e6ff4fcf9771e939
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 IPC handler updates the shared popup controller without checking that the sending frame owns the active popup.
Impact
If the user accepts the poisoned suggestion, the attacker-controlled password is saved for the victim's account, leading to account takeover.
What the attacker needed
Compromised renderer in a cross-origin iframe; victim interacts with a password field; victim accepts the suggested password
The fix
The handler should verify that the incoming IPC originates from the same frame or driver that owns the popup controller before updating the password.
How it was found
- An attacker compromises a cross-origin iframe on a victim's registration or password-change page.
- The user interacts with a password field, prompting the browser to display a password generation popup.
- The victim's frame creates the popup and stores its controller in the shared client.
- The compromised iframe sends a PresaveGeneratedPassword IPC with an attacker-known password.
- The handler updates the shared popup controller with the attacker's password.
- The user accepts the suggestion, and the browser saves the attacker's password for the victim's origin.
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 offers to generate a strong password, the browser shows a popup. This report says a malicious iframe on the same page could secretly change the password shown in that popup to one the attacker knows. If the user accepts it, the attacker can then log in as the user.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.