Skip to content
Info disclosure Advisory Advanced CVE-2026-15124

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.cc
  • chrome/browser/password_manager/chrome_password_manager_client.cc
  • components/password_manager/core/browser/password_autofill_manager.cc
  • components/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.

  1. Attacker Setup: An attacker embeds an iframe on the victim's site (e.g., via user-generated content) with sandbox="allow-scripts" (omitting allow-same-origin). This forces the iframe into an opaque origin.
  2. 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.
  3. Prediction Trigger: The browser receives Autofill server predictions evaluating the form as a SINGLE_USERNAME field.
  4. Bypassing Validation: PasswordManager::ProcessAutofillPredictions is called and executes CreateFormManager(driver, form). While CreateFormManager checks client_->IsFillingEnabled(form.url()), it fails to check if the frame has an opaque origin (unlike renderer-initiated paths which use HasValidURL()).
  5. Credential Fetching: A PasswordFormManager is created, which fetches the victim's saved credentials for the parent origin and stores the full plaintext password in the browser's PasswordAutofillManager::fill_data_.
  6. 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 type attribute of the input element from text to password.
  7. Preserved Identity: Changing the type attribute preserves the element's blink::WebNode::GetDomNodeId(), meaning its FieldRendererId and FieldRef dictionary key remain unchanged.
  8. Suggestion Selection & IPC: The user selects the suggestion. The browser retrieves the plaintext password from fill_data_ and sends it via the FillPasswordSuggestion Mojo IPC to the renderer.
  9. Renderer Filling: In the renderer, PasswordAutofillAgent::FillPasswordSuggestion calls FindPasswordInfoForElement. Because the attacker script changed the type to password, it successfully looks up the element in web_input_to_password_info_ using the preserved FieldRef. The validation passes, and blink::WebInputElement::SetAutofillValue injects the plaintext password into the DOM.
  10. Exfiltration: The attacker's script reads the .value property of the input element, stealing the password.

Affected Code Locations

  • components/password_manager/core/browser/password_manager.cc: ProcessAutofillPredictions calls CreateFormManager without an opaque origin check.
  • components/password_manager/core/browser/password_manager.cc: CreateFormManager relies on IsFillingEnabled, 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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Embed an iframe on the victim site with sandbox="allow-scripts" so it has an opaque origin.
  2. Inject a form with a single text input into the sandboxed iframe.
  3. Let the browser receive autofill server predictions classifying the field as a single username.
  4. The browser creates a form manager and fetches the parent origin's saved credentials into browser-side fill data.
  5. The user clicks the field and, while the autofill popup is open, the attacker's script changes the input type from text to password.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.