Skip to content
Access control Advisory Advanced CVE-2026-10004

Insufficient validation of untrusted input in Passwords (CVE-2026-10004)

A cross-origin subframe can report a form with a spoofed action URL that collides with a victim form's FormSignature, poisoning the shared Autofill predictions map. This can cause the victim's password field to be misidentified as a username, leading to the plaintext password being saved as a username in the browser UI.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 12 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 malicious cross-origin subframe can potentially poison the shared Autofill server predictions map in the PasswordManager by reporting a form with a spoofed action URL that generates a colliding FormSignature. This allows an attacker to manipulate field-type identification for a victim origin's form within the same tab. The impact includes functional disruption of autofill and the potential for a user's password to be saved as a username in the browser's UI.

Affected files:

  • components/password_manager/core/browser/password_manager.cc
  • components/password_manager/core/browser/password_form_manager.cc
  • components/password_manager/core/browser/form_parsing/form_data_parser.cc
  • components/password_manager/core/browser/password_manager.h

Estimated timestamp from git blame: 2018-11-16

Summary

A potential vulnerability exists in the PasswordManager where Autofill server predictions are stored in a shared map (one per WebContents) keyed by FormSignature without sufficient validation of the source frame's origin. Because FormSignature is calculated using renderer-provided data—specifically the form's action URL—that is not validated against the frame's origin in the browser, a cross-origin subframe can inject malicious predictions into this map. If the subframe's injected FormSignature matches that of a form in another frame (e.g., the main frame), the victim's PasswordFormManager may adopt these poisoned predictions.

Root Cause Analysis

The PasswordManager maintains a map of Autofill server predictions:

C++
// components/password_manager/core/browser/password_manager.h
std::map<autofill::FormSignature, FormPredictions> server_predictions_;

Predictions are updated in PasswordManager::ProcessAutofillPredictions. The key, FormSignature, is generated from FormData. While the browser process sanitizes FormData::url in ContentAutofillDriver::Lift, it does not validate or overwrite the action URL provided by the renderer. Consequently, a subframe can report a form claiming an action URL belonging to a different origin.

When a PasswordFormManager for a victim frame retrieves predictions, it uses the FormSignature to look up the shared map. The matching logic in PasswordFormManager::UpdateServerPredictionsForObservedForm relies on FieldRendererId to map predictions to fields. Because FieldRendererId values are sequential and highly predictable across processes (often starting from 1), an attacker can easily craft a form whose IDs collide with the victim's form.

Potential Impact

By poisoning the server_predictions_ map, an attacker can steer the FormDataParser logic in the victim frame:

  1. Field-Role Swapping: An attacker can map a USERNAME prediction to the victim's password field's renderer_id. This causes the user's plaintext password to be saved as the 'username' in the browser's password manager, exposing it in the save bubble and subsequent autofill UI.
  2. Field Suppression: An attacker can map a NOT_PASSWORD prediction to a password field, effectively disabling the Password Manager for that form.

Suggested/Potential Reproduction Steps

  1. A user navigates to https://victim.com/login which contains a standard login form (username ID 1, password ID 2) and an attacker-controlled iframe https://attacker.com.
  2. The iframe at attacker.com reports a form via mojom::AutofillDriver::FormsSeen with its action URL set to https://victim.com/login and field names matching the victim's form.
  3. The attacker swaps the FieldRendererIds in their report: they assign ID 1 to the 'username' field and ID 2 to the 'password' field, but instruct the Autofill server (through crowdsourcing) to treat ID 2 as the username.
  4. Once the server predictions arrive, the shared server_predictions_ map is updated with the poisoned entry for the victim's FormSignature.
  5. When the user interacts with the victim's form, PasswordFormManager adopts the poisoned mapping: {ID 2 -> USERNAME}.
  6. Upon submission, the Password Manager identifies the field with ID 2 (the actual password field) as the username and offers to save it in plaintext.

Recommended Fix

The PasswordFormManager::UpdateServerPredictionsForObservedForm should verify that the predictions in the shared map were generated by a frame with a matching origin or driver_id before adopting them. Additionally, the browser's ContentAutofillDriver::Lift should validate the action URL against the frame's origin.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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 does not check that the action URL used to compute a form's signature belongs to the same origin as the frame reporting it, and it uses predictable field IDs to match predictions, allowing a cross-origin frame to inject colliding predictions.

Impact

An attacker could disrupt autofill and cause a user's plaintext password to be saved as a username in the browser's UI, potentially exposing it.

What the attacker needed

Victim visits a page with an attacker iframe; attacker controls a cross-origin iframe; predictable field IDs

The fix

The fix should validate that predictions in the shared map come from a frame with a matching origin or driver ID, and validate the action URL against the frame's origin.

How it was found

  1. A user visits a victim login page that contains an attacker-controlled iframe.
  2. The iframe reports a form with the victim's action URL and matching field names.
  3. The attacker swaps field IDs so the password field is labelled as username in the prediction.
  4. The shared predictions map is updated with the poisoned entry for the victim's form signature.
  5. When the user interacts with the victim form, the password manager adopts the poisoned mapping.
  6. On submission, the password field is treated as a username and the password is offered to be saved in plaintext.

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 fill in a login form, the browser asks a server for hints about which box is the username and which is the password. These hints are stored in a shared list for the whole tab. The report says a malicious website loaded in a frame on the same page can add fake hints to that list, making the browser think the password box is actually the username box. Then the browser might offer to save your password as a username, showing it in plain text.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.