Insufficient validation of untrusted input in Password Manager (CVE-2026-11031)
The Password Manager sharing service does not validate that the origin and signon_realm fields in incoming invitations match, allowing a malicious sender to spoof the display domain while injecting a credential that will autofill on a different, sensitive domain. An attacker could set a harmless-looking origin for the UI and a high-value signon_realm for autofill, potentially logging the victim into the attacker's account.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: The Password Manager sharing service does not validate that the origin and signon_realm fields in incoming invitations match. This potentially allows a malicious sender to spoof the display domain in the settings UI while injecting a credential that will autofill on a different, sensitive domain.
Affected files:
components/password_manager/core/browser/sharing/password_receiver_service_impl.cccomponents/password_manager/core/browser/ui/credential_ui_entry.cccomponents/password_manager/core/browser/password_store/psl_matching_helper.cccomponents/password_manager/core/browser/password_form.h
Estimated timestamp from git blame: 2024-03-05
Description
A potential logic flaw exists in Chrome's Password Manager sharing feature. When a user receives a shared password invitation via Sync, PasswordReceiverServiceImpl::ProcessIncomingSharingInvitation converts the incoming protobuf into a PasswordForm object. The form.url and form.signon_realm fields are populated independently from attacker-controlled values in the invitation (origin and signon_realm respectively) without any cross-validation to ensure they represent the same or affiliated domains.
This discrepancy can be exploited in two ways:
- UI Spoofing: The Password Manager settings UI (
chrome://password-manager/) constructs aCredentialUIEntryand determines the display name by callingGetShownOrigin(). For web credentials, this function relies onform.url. An attacker can setoriginto a harmless-looking domain (e.g.,familyphotos.example) to evade manual review by the victim. - Targeted Autofill Injection: Chrome's autofill engine determines which stored credentials match the current page by evaluating the
signon_realminGetMatchResult(). An attacker can setsignon_realmto a high-value target (e.g.,https://accounts.google.com/).
If the victim doesn't already have a credential for the attacker's chosen username on the target signon_realm, the invitation is auto-approved and saved. Furthermore, the skip_zero_click flag defaults to false and is not modified, making the injected credential eligible for silent Auto-SignIn via the Credential Management API.
Potential Reproduction Steps
Note: Our tooling agent does not have the ability to run code or construct Sync protobufs, so these steps are theoretical based on code analysis.
- An attacker, who shares a Google Family group with the victim, crafts a malicious
IncomingPasswordSharingInvitationSpecificsSync payload. - In
client_only_unencrypted_data().password_group_data().element_data(), the attacker setsorigintohttps://innocuous.example/andsignon_realmtohttps://accounts.google.com/. - The attacker sets the username to an account they control and provides a password.
- The invitation is sent to the victim via Sync.
- In
components/password_manager/core/browser/sharing/password_receiver_service_impl.cc,IncomingSharingInvitationToPasswordFormspopulatesform.urlandform.signon_realmdirectly from the payload. IsValidSharedPasswordFormchecks both strings for validity and length, but does not cross-validate them. It returnstrue.- Since the victim has no existing credential for that username on
accounts.google.com, the credential is auto-approved and saved to the local PasswordStore. - In the Password Manager UI, the victim sees a new entry for
innocuous.example. - When the victim visits
accounts.google.com, the malicious credential is offered for autofill (or automatically signed in if the API is used), potentially logging the victim into the attacker's account.
Suggested Fix
In IsValidSharedPasswordForm (or IncomingSharingInvitationToPasswordForms), add validation to ensure that form.url and form.signon_realm are consistent. For standard web credentials, the origin derived from form.url should match the origin of form.signon_realm, or they should be verified as affiliated domains.
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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
Likely the code populates form.url and form.signon_realm independently from attacker-controlled invitation fields without cross-validating that they represent the same or affiliated domains.
Impact
An attacker could spoof the display domain and inject a credential that autofills on a sensitive domain, potentially logging the victim into the attacker's account; the report notes the steps are theoretical and not executed.
What the attacker needed
Attacker shares a Google Family group with victim; victim has no existing credential for that username
The fix
The code should be fixed by adding validation to ensure that form.url and form.signon_realm are consistent or verified as affiliated domains.
How it was found
- An attacker crafts a malicious Sync payload for a password sharing invitation.
- The attacker sets the origin to a harmless domain and the signon_realm to a sensitive domain.
- The attacker sets a username they control and a password.
- The invitation is sent to the victim via Sync.
- The code populates form.url and form.signon_realm from the payload without cross-validation.
- The credential is auto-approved and saved, then offered for autofill on the sensitive domain.
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 receive a shared password, the app shows one website name but uses another to decide where to autofill. An attacker can make the app show a harmless site while the password is actually used on a sensitive site like Google. This could trick you into logging into the attacker's account.
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.