Inappropriate implementation in Chrome for iOS (CVE-2026-13902)
A logic flaw in Chrome for iOS allows a cross-origin iframe to trigger a promptless AR Quick Look download that overwrites a legitimate in-progress download in a shared temporary directory. An attacker could cause silent data loss and present a spoofed file to the user.
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. 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: A potential logic vulnerability in the AR Quick Look download flow on iOS allows a malicious cross-origin iframe to trigger a promptless download. This download can overwrite a user's legitimate in-flight download in the shared temporary directory due to unconditional file deletion and predictable paths. As a result, the user may experience silent data loss and be presented with a spoofed file.
Affected files:
ios/chrome/browser/download/model/ar_quick_look_tab_helper.mmios/chrome/browser/download/model/browser_download_service.mmios/web/download/download_task_impl.mmios/web/navigation/crw_wk_navigation_handler.mmios/chrome/browser/download/model/download_directory_util.mm
Estimated timestamp from git blame: 2026-02-19
Technical Details
The AR Quick Look feature in Chrome for iOS handles files with specific MIME types (e.g., model/vnd.usdz+zip). A potential logic flaw in how these downloads are initiated allows an attacker to spoof in-progress downloads and cause data loss.
- Promptless Initiation: In
ios/web/navigation/crw_wk_navigation_handler.mm, thekPreventNavigationWithoutUserInteractionpolicy decision bypasses user-gesture requirements for non-main-frame navigations. This allows an<iframe>to trigger a navigation without user interaction. When the response MIME type is a USDZ format, Chrome refuses to render it and converts it into aWKDownload. - Automatic Start:
BrowserDownloadService::OnDownloadCreatedroutes USDZ tasks toARQuickLookTabHelper::Download(), which immediately callstask->Start()without waiting for user confirmation. - Shared Temporary Path: Both AR Quick Look and standard downloads use a shared temporary directory (
<tmp>/downloads), defined inios/chrome/browser/download/model/download_directory_util.mm. - Unconditional File Deletion: When a download task starts,
DownloadTaskImpl::Start()callsCreateFileForDownload(), which executesbase::DeleteFile()on the target path to clear any existing file. - File Unlinking Race Condition: Because the target filename is derived from the server-supplied
Content-Dispositionheader, an attacker can target the predictable temporary path of a legitimate in-progress download.base::DeleteFile()will unlink the legitimate file. Under iOS/Unix file semantics, theWKDownloadwriting the legitimate file continues to write to the unlinked inode without failing. - Spoofing:
CreateFileForDownload()creates a new file at the exact same path for the attacker's payload. Once the legitimate download completes,DownloadManagerTabHelperretrieves the file from the temporary path and moves it to the user'sNSDocumentDirectory. It inadvertently moves the attacker's newly placed file, resulting in download spoofing and the loss of the legitimate file.
Potential Attack Scenario
Note: These are suggested steps; our tooling agent does not have the ability to run code, so this remains a potential exploit chain based on code analysis.
- A user navigates to a legitimate site and initiates a standard download (e.g.,
statement.pdf). Chrome begins downloading the file to<tmp>/downloads/statement.pdf. - A hidden cross-origin iframe (either embedded on the site or open in another tab) triggers a navigation to an attacker-controlled endpoint.
- The attacker's server responds with
Content-Type: model/vnd.usdz+zipandContent-Disposition: attachment; filename="statement.pdf". - Chrome promptlessly starts an AR Quick Look download. It unlinks the existing
<tmp>/downloads/statement.pdffile and creates a new one, writing the attacker's USDZ payload into it. - The legitimate download finishes. Chrome's
DownloadManagerTabHelpermoves the file located at<tmp>/downloads/statement.pdf(now containing the attacker's payload) into the user's Documents directory. - The user attempts to open
statement.pdfand opens the attacker's payload instead, while their actual document is lost.
Suggested Fix
- Unique Temporary Paths: Download tasks should use unique temporary directories (e.g., using a UUID per task) or append a unique identifier to the filename while downloading, rather than sharing a single
<tmp>/downloads/folder where collisions can occur. - Enforce User Interaction: AR Quick Look downloads initiated from subframes should be subject to strict user-gesture requirements before starting automatically.
- Collision Checks: Do not unconditionally delete existing files in the temporary directory if another active task in the browser is currently writing to that exact path.
Evaluated with Chrome root at commit: 661452647ddb2827305122ff3273bd5dea403f09
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
Likely the combination of bypassing user-gesture requirements for subframe navigations, automatically starting AR Quick Look downloads, and unconditionally deleting existing files at predictable shared temporary paths.
Impact
An attacker could cause silent data loss and present a spoofed file to the user, but the report notes this is a potential exploit chain based on code analysis and has not been run.
What the attacker needed
IOS device with Chrome; victim initiates a download; attacker can serve a USDZ response; cross-origin iframe or another tab
The fix
The report suggests using unique temporary paths per download, enforcing user interaction for AR Quick Look downloads from subframes, and avoiding unconditional deletion of files that another active task is writing to.
How it was found
- A user initiates a legitimate download, which starts saving to a predictable temporary path.
- A hidden cross-origin iframe triggers a navigation to an attacker-controlled endpoint.
- The attacker's server responds with a USDZ MIME type and a Content-Disposition header matching the legitimate filename.
- Chrome promptlessly starts an AR Quick Look download, deletes the existing temporary file, and writes the attacker's payload to the same path.
- The legitimate download completes, and Chrome moves the file at that path (now the attacker's payload) to the user's Documents directory.
- The user opens the file and gets the attacker's payload instead of their legitimate document.
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 download a file, Chrome saves it temporarily before moving it to your Documents folder. This report found that a malicious website could make Chrome start a download without asking you, and that download could replace a file you were already downloading. So you might end up with the attacker's file instead of the one you wanted, and your original file would be lost.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.