Inappropriate implementation in iOS (CVE-2026-9955)
The iOS Credential Provider Extension used a substring match to decide whether a saved credential matched the requesting website. An attacker could craft a URL containing a victim domain as a substring, causing Chrome to suggest the victim's credential on the attacker's page and potentially disclose the password.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 39 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 without the Chrome Security team. Please see go/chrome-ai-generated-security-bugs-faq for more information.
Overview: The iOS Credential Provider Extension uses an insecure substring match to determine if a saved credential matches the requesting website. An attacker can craft a URL containing a victim domain as a substring to cause Chrome to suggest the victim's credential on the attacker's page, leading to potential password disclosure.
Affected files:
ios/chrome/credential_provider_extension/ui/credential_list_mediator.mmios/chrome/credential_provider_extension/credential_provider_view_controller.mmios/chrome/browser/credential_provider/model/archivable_credential+password_form.mmios/chrome/credential_provider_extension/ui/credential_list_view_controller.mm
Estimated timestamp from git blame: 2025-01-10
Description
There is a potential cross-origin password disclosure vulnerability in the iOS Credential Provider Extension (CPE). The logic that determines whether a stored password should be presented as 'Suggested' for a given website relies on an insecure substring match.
When a website requests autofill, iOS invokes the extension and passes an array of ASCredentialServiceIdentifier objects. For web requests, the identifier property contains the full URL of the requesting page (with the https:// scheme stripped by iOS).
In ios/chrome/credential_provider_extension/ui/credential_list_mediator.mm, the method -[CredentialListMediator passwordCredential:matchesServiceIdentifiers:] evaluates these identifiers against stored credentials:
BOOL serviceNameMatches =
credential.serviceName &&
[identifier.identifier
localizedStandardContainsString:credential.serviceName];
The localizedStandardContainsString: method performs a basic, case-insensitive substring search. Because identifier.identifier (the haystack) is the attacker-controlled URL and credential.serviceName (the needle) is the victim domain (e.g., accounts.google.com), an attacker can simply embed the victim domain into their URL.
For example, if the attacker hosts a page at https://attacker.com/login?target=accounts.google.com, the identifier passed to Chrome will be attacker.com/login?target=accounts.google.com. The substring match against accounts.google.com will evaluate to YES.
Chrome will then prominently display the victim's credential in the 'Suggested' section of the iOS AutoFill picker, complete with the trusted domain name and favicon. If the user selects the suggestion and authenticates via FaceID/TouchID, the plaintext password is provided back to the iOS framework and autofilled into the attacker's page.
Potential Reproduction Steps
Note: These steps are based on static analysis and have not been executed with a working proof of concept.
- Ensure Chrome is configured as an AutoFill provider on an iOS device.
- Save a password in Chrome for a legitimate site, e.g.,
https://accounts.google.com/. - Navigate to an attacker-controlled site crafted to include the victim domain as a substring, such as
https://attacker.com/login?target=accounts.google.com. - Tap the password field on the attacker's page and select 'Passwords...'. Choose Chrome if prompted.
- Observe that the legitimate Google credential is shown at the top of the picker in the 'Suggested' section.
- Tap the suggestion and perform biometric authentication.
- The victim's password is provided to the iOS framework and autofilled into the attacker's page.
Suggested Fix
The matching logic should be updated to enforce strict domain boundaries rather than relying on substring searches. Specifically, the extension should extract the host from the ASCredentialServiceIdentifier and compare it against the credential's registryControlledDomain (eTLD+1) or use a robust suffix match that prepends a . (e.g., matching .example.com against sub.example.com), similar to the logic already implemented for passkey upgrades in passkey_request_details.mm.
Evaluated with Chrome root at commit: 7353d249d9cacf9c7218e1d7b8a39cf39c72d646
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.
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 extension used a case-insensitive substring search (localizedStandardContainsString:) to compare the full requesting URL against the credential's service name, instead of comparing hostnames with strict domain boundaries.
Impact
If the user selects the suggested credential and passes biometric authentication, the plaintext password is provided to the iOS framework and autofilled into the attacker's page, potentially disclosing the password.
What the attacker needed
Chrome set as AutoFill provider on iOS; Victim has a saved password for the target site; Victim visits attacker-controlled page; Victim selects suggestion and passes biometrics
The fix
The matching logic should be updated to enforce strict domain boundaries, such as comparing the extracted host against the credential's registryControlledDomain or using a suffix match that prepends a dot.
How it was found
- Ensure Chrome is configured as an AutoFill provider on an iOS device.
- Save a password in Chrome for a legitimate site.
- Navigate to an attacker-controlled site whose URL includes the victim domain as a substring.
- Tap the password field on the attacker's page and select 'Passwords...', choosing Chrome if prompted.
- Observe the legitimate credential shown at the top of the picker in the 'Suggested' section.
- Tap the suggestion, perform biometric authentication, and the password is autofilled into the attacker's page.
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 save a password in Chrome, Chrome tries to show it only on the correct website. Here, Chrome checked whether the website address merely contained the saved site's name anywhere, so a malicious site could include the real site's name in its own address and trick Chrome into offering the saved password. If the user picked it and approved with Face ID or Touch ID, the password would be filled into the malicious page.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.