Incorrect reference resolution in Passwords (CVE-2026-106279)
The main Chrome iOS app reads a favicon filename from a shared App Group container without validating it, then uses that string as a path when saving a file. A compromised app extension could supply a traversal path to overwrite or delete files in the main app's private data container.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A vulnerability in Chrome for iOS allows a compromised app extension to overwrite or delete files in the main app's private data container. This is caused by insufficient sanitization of a 'favicon' filename retrieved from a shared App Group container. An attacker with control over an extension could use path traversal to target sensitive files like preferences or databases.
Affected files:
ios/chrome/browser/credential_provider/model/credential_provider_util.mmios/chrome/common/credential_provider/archivable_credential.mmios/chrome/common/credential_provider/archivable_credential_store.mmios/chrome/common/credential_provider/constants.mmios/chrome/common/app_group/app_group_constants.mmios/chrome/app/profile/profile_controller.mm
Estimated timestamp from git blame: Unknown (Google3 checkout)
Description
A path traversal vulnerability has been identified in the way the main Chrome iOS app synchronizes favicons from the shared App Group container used by its extensions (e.g., Credential Provider, Share, or Widget extensions). The application reads an ArchivableCredentialStore from the shared container and uses the favicon field of each credential as a filename for local storage without validation.
Root Cause Analysis
In ios/chrome/browser/credential_provider/model/credential_provider_util.mm, the function UpdateFaviconsStorage() iterates through credentials synced from the shared container. It extracts the favicon property, which is an arbitrary NSString supplied by the extension:
// ios/chrome/browser/credential_provider/model/credential_provider_util.mm
NSString* filename = credential.favicon;
if (filename) {
FetchFaviconForURLToPath(favicon_loader, url, filename, ...);
}
This filename is eventually passed to SaveFaviconToSharedAppContainer(), which constructs a file URL using URLByAppendingPathComponent:. This method does not sanitize or reject path traversal segments like .. or /:
// ios/chrome/browser/credential_provider/model/credential_provider_util.mm
NSURL* shared_favicon_attributes_folder_url = GetFaviconsFolderURL();
NSURL* file_url = [shared_favicon_attributes_folder_url
URLByAppendingPathComponent:filename
isDirectory:NO];
// Overwrite the file outside the intended directory
[file_manager createFileAtPath:[file_url path]
contents:data
attributes:nil];
Because the main app runs with higher privileges and has full access to its own private container (/var/mobile/Containers/Data/Application/<MAIN_APP_UUID>/), an attacker can use strings like ../../../../Data/Application/<MAIN_APP_UUID>/Library/Preferences/com.google.chrome.ios.plist to overwrite critical configuration files.
Potential Attack Scenario
- Compromised Extension: An attacker first gains code execution in a Chrome iOS app extension (e.g., via a separate vulnerability).
- Identify Target: The attacker determines the main app's data container UUID, potentially leaked via shared logs or files in the App Group container.
- Craft Store: The extension writes a malicious
ArchivableCredentialStoreto the shared container. This store contains a credential where thefaviconfield is a traversal path targeting a sensitive file in the main app's container. - Trigger Sync: The attacker waits for the main app to initiate a favicon resync (occurring periodically or upon certain app states). During this sync, the main app processes the malicious store and performs the out-of-bounds write.
Impact
This vulnerability allows a compromised, lower-privilege extension to bypass sandbox restrictions and compromise the integrity of the main app's private data. This could result in persistent data loss, corruption of login data, or modification of app preferences.
Suggested Fix
Implement strict validation of the favicon filename in ios/chrome/browser/credential_provider/model/credential_provider_util.mm. The filename should be verified to contain only safe characters (e.g., hexadecimal characters if SHA256 hashes are expected) and must not contain path separators (/) or dot-segments (..). Additionally, the code should verify that the resulting NSURL is still contained within the expected SharedFaviconAttributes directory.
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.
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 favicon filename taken from the shared container is used as a path component without rejecting path separators or dot-segments, and the resulting URL is not checked to stay inside the intended folder.
Impact
A compromised, lower-privilege extension could bypass sandbox restrictions and corrupt or delete the main app's private data, including login data and preferences.
What the attacker needed
Code execution in a Chrome iOS extension; knowledge of the main app container UUID; main app performs a favicon resync
The fix
The favicon filename should be validated to allow only safe characters and no path separators or dot-segments, and the resulting URL should be checked to remain inside the expected favicon folder.
How it was found
- Gain code execution in a Chrome iOS app extension.
- Determine the main app's data container UUID, possibly from shared logs or files.
- Write a malicious credential store to the shared container with a traversal path in the favicon field.
- Wait for the main app to resync favicons so it processes the store and writes outside the intended folder.
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.
Apps on iOS can share a small storage area with their extensions, which are helper components that run separately. Here the main Chrome app trusted a filename written by an extension and used it directly to save a file, so a malicious extension could point that name at files outside the intended folder. This lets it damage the main app's private data, but only if the extension is already compromised.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.