Skip to content
Info disclosure Advisory Advanced CVE-2026-106274

Incorrect reference resolution in Browser (CVE-2026-106274)

On macOS, Chrome automatically zips file packages selected via a file picker, but the zipping process follows symbolic links without validation. An attacker could craft a malicious package containing symlinks to sensitive local files, and when a victim selects it, Chrome would include those files in the resulting zip, allowing the attacker to exfiltrate them.

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.

Overview: On macOS, when a user selects a file package (e.g., a .app bundle) in a standard file picker, Chrome automatically zips the package. The zipping process inadvertently follows symlinks without validation, potentially allowing a malicious bundle to exfiltrate arbitrary local files when uploaded.

Affected files:

  • chrome/browser/file_select_helper_mac.mm
  • components/remote_cocoa/app_shim/select_file_dialog_bridge.mm
  • content/browser/web_contents/file_chooser_impl.cc
  • third_party/zlib/google/zip.cc

Estimated timestamp from git blame: 2014-10-10

Summary

On macOS, Chrome automatically zips file packages (such as .app bundles) when they are selected via a file picker in kOpen or kOpenMultiple mode. This process, handled by FileSelectHelper::ProcessSelectedFilesMac, fails to properly handle symlinks. An attacker can craft a malicious package containing symlinks to sensitive local files (like SSH keys). When a victim selects this package, Chrome recursively zips the targets of these symlinks, bypassing existing mitigations and allowing the attacker to exfiltrate arbitrary local files at the browser process's privilege level.

Vulnerability Details

The vulnerability exists because the package-zipping pipeline on macOS follows symlinks during both directory enumeration and file reading:

  1. Symlink Following during Enumeration: When a package is selected, FileSelectHelper::ZipPackage calls RelativePathsForPackage (in chrome/browser/file_select_helper_mac.mm) to get a list of its contents. This function constructs a base::FileEnumerator with recursive=true but without the base::FileEnumerator::SHOW_SYM_LINKS flag. On POSIX systems, omitting this flag causes the enumerator to use stat() instead of lstat(). Consequently, it follows symlinks to directories and recursively enumerates their contents as if they were inside the package.
  2. Lexical Relativization: The enumerated paths are relativized using base::FilePath::AppendRelativePath. This operation is purely lexical and does not resolve symlinks, blindly accepting paths like Evil.app/Contents/loot_ssh/id_rsa as valid relative paths.
  3. Symlink Following during Zip I/O: The resulting list of paths is passed to zip::ZipFiles (in third_party/zlib/google/zip.cc). This function opens files using base::File with FLAG_OPEN | FLAG_READ. On POSIX, base::File translates this to the open() system call without the O_NOFOLLOW flag. Therefore, the kernel follows the symlinks again, and the actual contents of the target files (e.g., ~/.ssh/id_rsa) are read into the zip archive.
  4. Mitigation Bypass: The existing RemoveSymlinks mitigation in FileChooserImpl::FileSelected is skipped for standard file selection (kOpen and kOpenMultiple); it is only enforced for kUploadFolder. Furthermore, because ProcessSelectedFilesMac replaces the original package path with the path to the temporary .zip file (which is a regular file), any subsequent symlink checks on the resulting path would be ineffective.
  5. Package Selection: The macOS UI bridge in components/remote_cocoa/app_shim/select_file_dialog_bridge.mm explicitly permits the selection of file packages even when directory selection is disabled (canChooseDirectories = NO), facilitating this attack via standard <input type="file"> elements.

Potential Reproduction Steps

Note: These steps describe how an attacker might exploit this issue. Our tooling agent cannot run code to verify this PoC end-to-end, but code analysis confirms the behavior.

  1. Create a directory named Evil.app/ with a minimal Contents/Info.plist so macOS recognizes it as a package.
  2. Inside Evil.app/Contents/, create symlinks to sensitive user data, e.g., ln -s ~/.ssh loot_ssh.
  3. Package Evil.app in a .dmg or .zip file to preserve the symlinks upon download and extraction by a victim.
  4. Social-engineer a user to visit a malicious site with an <input type="file"> element and select the Evil.app bundle.
  5. Chrome's browser process will recursively zip the bundle, following the symlinks and including the contents of the target files (e.g., SSH private keys) in the archive.
  6. The browser process grants the renderer read access to the resulting zip file, which the attacker's JavaScript can then read and exfiltrate to a remote server.

Suggested Fix

  1. Enumerate symlinks without following them: In chrome/browser/file_select_helper_mac.mm, update RelativePathsForPackage to instantiate base::FileEnumerator with the base::FileEnumerator::SHOW_SYM_LINKS flag. This will ensure it uses lstat() and does not traverse into directory symlinks.
  2. Filter symlinks during zipping: Either manually filter out symlinks returned by the enumerator in RelativePathsForPackage, or add logic to zip::ZipFiles (or a dedicated wrapper) to explicitly reject symlinks or use O_NOFOLLOW when opening files for zipping in this context.
  3. Apply RemoveSymlinks validation: Consider moving or duplicating the RemoveSymlinks validation logic so that it applies to the contents of Mac packages before they are zipped, ensuring consistency with the folder upload mitigations.

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.

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 package-zipping code on macOS follows symbolic links during both directory enumeration and file reading because it does not use the appropriate flags to avoid following symlinks.

Impact

An attacker could exfiltrate arbitrary local files at the browser process's privilege level, but the report notes that the tooling agent could not verify the proof-of-concept end-to-end.

What the attacker needed

MacOS; victim selects malicious package; attacker can deliver malicious package

The fix

The fix should involve enumerating symlinks without following them, filtering symlinks during zipping, and applying RemoveSymlinks validation to Mac packages before zipping.

How it was found

  1. Create a directory named Evil.app/ with a minimal Contents/Info.plist so macOS recognizes it as a package.
  2. Inside Evil.app/Contents/, create symlinks to sensitive user data, e.g., ln -s ~/.ssh loot_ssh.
  3. Package Evil.app in a .dmg or .zip file to preserve the symlinks upon download and extraction by a victim.
  4. Social-engineer a user to visit a malicious site with an <input type="file"> element and select the Evil.app bundle.
  5. Chrome's browser process will recursively zip the bundle, following the symlinks and including the contents of the target files (e.g., SSH private keys) in the archive.
  6. The browser process grants the renderer read access to the resulting zip file, which the attacker's JavaScript can then read and exfiltrate to a remote server.

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 pick a file like an app bundle on a Mac, Chrome sometimes compresses it into a zip file. This report says that if the bundle contains shortcuts (symlinks) to other files, Chrome might follow those shortcuts and include the other files in the zip. An attacker could trick you into selecting a malicious bundle, and then steal your private files like SSH keys.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.