Insufficient policy enforcement in Passwords (CVE-2026-15124)
A sandboxed iframe without allow-same-origin could cause the browser to fetch the parent origin's saved passwords through the autofill prediction path, because the frame's opaque origin was not checked. An attacker could then change a username field to a password field during autofill so the plaintext password is filled into the DOM and read by script.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 25 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 potential vulnerability exists where a same-site sandboxed iframe with an opaque origin can steal parent origin credentials. This occurs because the browser-initiated ProcessAutofillPredictions path creates a PasswordFormManager without validating if the frame has an opaque origin, allowing the sandboxed frame to fetch the parent's autofill data. An attacker can exploit this by dynamically changing a single-username field to a password field during an autofill interaction to exfiltrate the password.
Affected files:
components/password_manager/core/browser/password_manager.ccchrome/browser/password_manager/chrome_password_manager_client.cccomponents/password_manager/core/browser/password_autofill_manager.cccomponents/password_manager/content/browser/content_password_manager_driver.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A potential vulnerability in the Password Manager allows a same-site sandboxed iframe to obtain plaintext saved passwords belonging to its parent origin. This bypasses the security boundaries intended by the sandbox attribute (specifically when allow-same-origin is omitted, resulting in an opaque origin).
The root cause is that the browser-initiated prediction processing path (PasswordManager::ProcessAutofillPredictions) creates a PasswordFormManager for drivers associated with sandboxed iframes without validating if the frame's committed origin is opaque. This results in the parent origin's credentials being fetched and stored in the browser-side PasswordAutofillManager::fill_data_. When a user interacts with a single-username field and selects an autofill suggestion, an attacker can dynamically change the field type to password to force the renderer to fill the plaintext password into the DOM, where it can be read by malicious JavaScript.
Potential Attack Chain
Note: These are suggested steps based on static code analysis; a working Proof of Concept has not been run.
- Attacker Setup: An attacker embeds an iframe on the victim's site (e.g., via user-generated content) with
sandbox="allow-scripts"(omittingallow-same-origin). This forces the iframe into an opaque origin. - Form Injection: The attacker injects a simple HTML form containing a single text input field (e.g.,
<input type="text" id="username">) into the sandboxed iframe. - Prediction Trigger: The browser receives Autofill server predictions evaluating the form as a
SINGLE_USERNAMEfield. - Bypassing Validation:
PasswordManager::ProcessAutofillPredictionsis called and executesCreateFormManager(driver, form). WhileCreateFormManagerchecksclient_->IsFillingEnabled(form.url()), it fails to check if the frame has an opaque origin (unlike renderer-initiated paths which useHasValidURL()). - Credential Fetching: A
PasswordFormManageris created, which fetches the victim's saved credentials for the parent origin and stores the full plaintext password in the browser'sPasswordAutofillManager::fill_data_. - User Interaction & Type Confusion: The user clicks the text input field, triggering the Autofill suggestion popup. While the popup is open, the attacker's JavaScript dynamically alters the
typeattribute of the input element fromtexttopassword. - Preserved Identity: Changing the
typeattribute preserves the element'sblink::WebNode::GetDomNodeId(), meaning itsFieldRendererIdandFieldRefdictionary key remain unchanged. - Suggestion Selection & IPC: The user selects the suggestion. The browser retrieves the plaintext password from
fill_data_and sends it via theFillPasswordSuggestionMojo IPC to the renderer. - Renderer Filling: In the renderer,
PasswordAutofillAgent::FillPasswordSuggestioncallsFindPasswordInfoForElement. Because the attacker script changed the type topassword, it successfully looks up the element inweb_input_to_password_info_using the preservedFieldRef. The validation passes, andblink::WebInputElement::SetAutofillValueinjects the plaintext password into the DOM. - Exfiltration: The attacker's script reads the
.valueproperty of the input element, stealing the password.
Affected Code Locations
components/password_manager/core/browser/password_manager.cc:ProcessAutofillPredictionscallsCreateFormManagerwithout an opaque origin check.components/password_manager/core/browser/password_manager.cc:CreateFormManagerrelies onIsFillingEnabled, which doesn't check the origin's opaque status.
Suggested Fix
Add an origin validation check to PasswordManager::ProcessAutofillPredictions or PasswordManager::CreateFormManager to ensure that a PasswordFormManager is not created for frames with an opaque origin. This could involve checking driver->HasValidURL() or explicitly verifying that the frame's GetLastCommittedOrigin() is not opaque before proceeding with form manager creation.
Evaluated with Chrome root at commit: 65b3256311f3ab6fb9870eaa522de7e6dd2663bb
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 browser-initiated autofill prediction path creates a PasswordFormManager without checking whether the frame's committed origin is opaque, unlike renderer-initiated paths that validate the URL.
Impact
A same-site sandboxed iframe could obtain the parent origin's plaintext saved password, but the report notes that no working proof of concept has been run.
What the attacker needed
Attacker can embed an iframe on the victim site; victim has saved credentials for the parent origin; victim interacts with the autofill popup
The fix
The report suggests adding an origin validation check so that a PasswordFormManager is not created for frames with an opaque origin.
How it was found
- Embed an iframe on the victim site with sandbox="allow-scripts" so it has an opaque origin.
- Inject a form with a single text input into the sandboxed iframe.
- Let the browser receive autofill server predictions classifying the field as a single username.
- The browser creates a form manager and fetches the parent origin's saved credentials into browser-side fill data.
- The user clicks the field and, while the autofill popup is open, the attacker's script changes the input type from text to password.
- The user selects the suggestion; the browser sends the plaintext password to the renderer, which fills it into the DOM where the attacker's script reads it.
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.
A sandboxed iframe is a web page embedded inside another page with restrictions. Normally, if the sandbox does not include allow-same-origin, the embedded page is treated as coming from nowhere (an opaque origin) and should not get access to the parent site's data. Here, the browser's password autofill code did not check that rule, so the embedded page could make the browser look up the parent site's saved password and then trick the browser into typing it into a field the attacker can read.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.