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

Incorrect authorization in Passwords (CVE-2026-106381)

On iOS, the password manager driver incorrectly returns the main frame's URL for all subframes, so a cross-origin iframe can inject a username into the top-level site's username cache. When the user later submits a password on that site, they may be prompted to save it with the attacker's username.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

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 without the Chrome Security team.

Overview: On iOS, IOSPasswordManagerDriver incorrectly reports the main frame's URL for all subframes. This breaks origin isolation, allowing a cross-origin iframe to inject a potential username into the Password Manager's cache for the top-level origin. When the user subsequently submits a password on the top-level site, they may be prompted to save their password paired with the attacker's chosen username.

Affected files:

  • components/password_manager/ios/ios_password_manager_driver.mm
  • components/password_manager/ios/shared_password_controller.mm
  • components/autofill/ios/form_util/resources/form_handlers.ts
  • components/password_manager/core/browser/password_manager.cc
  • ios/chrome/browser/autofill/form_input_accessory/coordinator/form_input_accessory_mediator.mm
  • components/autofill/ios/form_util/form_activity_tab_helper.mm

Estimated timestamp from git blame: 2023-11-30

Description

There is a potential vulnerability in the iOS Password Manager where cross-origin iframes can poison the Username-First Flow (UFF) cache for the top-level origin. This occurs due to an incorrect implementation of GetLastCommittedURL() in the iOS password manager driver.

In components/password_manager/ios/ios_password_manager_driver.mm, IOSPasswordManagerDriver::GetLastCommittedURL() delegates its call to the bridge object (SharedPasswordController). The implementation of lastCommittedURL in SharedPasswordController returns _webState->GetLastCommittedURL(). Because WebState represents the entire tab, this always returns the URL of the top-level main frame, even when the driver instance belongs to a subframe.

When a user interacts with a potential username field (e.g., a field with autocomplete="username"), the event is processed by PasswordManager::UpdateStateOnUserInput. This function calls PasswordManager::OnUserModifiedNonPasswordField, which uses driver->GetLastCommittedURL() to determine the sign-on realm for caching the candidate in the global possible_usernames_ cache. Because the iOS driver incorrectly returns the main frame's URL, any input activity within a cross-origin iframe is incorrectly associated with the main frame's security realm.

Furthermore, the iOS event handling path (SharedPasswordController::checkIfSuggestionsAvailableForForm:hasUserGesture:webState:completionHandler:) does not filter out synthetic input events based on the hasUserGesture parameter, allowing an attacker to programmatically trigger this caching behavior.

Potential Exploit Scenario

Note: These are suggested steps; we have not verified them with a working proof-of-concept.

  1. A victim navigates to a legitimate site (e.g., https://victim.example) that utilizes a Username-First Flow login (username and password on separate steps/forms).
  2. The victim site embeds a cross-origin iframe controlled by an attacker (e.g., https://evil.example/poison.html).
  3. The attacker's iframe contains a hidden input field: <input type="text" autocomplete="username" id="attacker_u">.
  4. The attacker's script programmatically sets the value of this field to an attacker-controlled username and dispatches a synthetic input event.
  5. Chromium's injected form_handlers.ts captures the event and forwards it to the browser process. SharedPasswordController passes it to PasswordManager::UpdateStateOnUserInput, ignoring that the event lacks a user gesture.
  6. The Password Manager observes the autocomplete="username" attribute and calls OnUserModifiedNonPasswordField.
  7. The Password Manager calculates the realm using driver->GetLastCommittedURL(). Because of the iOS-specific bug, this evaluates to https://victim.example/ instead of the iframe's true origin.
  8. The attacker's username is stored in the possible_usernames_ cache under the victim site's realm.
  9. The victim navigates to the password-entry step on victim.example and submits their legitimate password.
  10. The PasswordFormManager searches the possible_usernames_ cache for a matching realm. It finds the attacker's poisoned entry. Because the entry originated from a field with autocomplete="username", it is given high priority (kUsernameAutocomplete) and overrides the empty username field in the submitted form.
  11. Chrome presents the password save/update prompt, offering to save the victim's real password paired with the attacker's chosen username. If the user accepts, their credential for victim.example is corrupted.

Suggested Fix

  1. Correct URL Delegation: Modify IOSPasswordManagerDriver to store and return the actual URL or origin of the web::WebFrame it represents. The driver constructor already receives a web::WebFrame* and caches the security_origin_; this should be utilized to determine the correct realm for subframes.
  2. Enforce User Gestures: Modify SharedPasswordController or PasswordManager::UpdateStateOnUserInput to reject synthetic events (where hasUserGesture is false) when updating security-sensitive state like the possible_usernames_ cache.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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.

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

The iOS password manager driver's GetLastCommittedURL() returns the top-level tab URL instead of the subframe's origin, so input events from cross-origin iframes are attributed to the main frame's realm.

Impact

If the user accepts the save prompt, their credential for the victim site could be corrupted with the attacker's username; the report notes the exploit steps were not verified with a working proof-of-concept.

What the attacker needed

IOS device; victim visits a site with username-first login; site embeds attacker-controlled iframe; attacker can run script in iframe

The fix

The driver should return the actual URL or origin of the frame it represents, and synthetic events without a user gesture should be rejected when updating security-sensitive state.

How it was found

  1. Victim visits a legitimate site with a username-first login flow.
  2. The site embeds a cross-origin iframe controlled by the attacker.
  3. The attacker's iframe contains a hidden username field and sets its value programmatically.
  4. The attacker dispatches a synthetic input event on the field.
  5. The password manager processes the event and caches the attacker's username under the victim site's realm.
  6. The victim submits their password on the main site and is prompted to save it with the attacker's username.

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 type a username on a website, the browser's password manager remembers it to help you later. This report found that on iPhones, a malicious advertisement or embedded frame could trick the password manager into thinking a username came from the main website. Then, when you save your password, it might be stored with the wrong username.

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.