Insufficient data validation in WebAppInstalls (CVE-2026-13881)
A navigation handle in LaunchQueue::DidFinishNavigation was processed without checking whether the navigation had committed, so an aborted file-launch navigation still delivered File System Access handles to the currently loaded document. An attacker controlling an in-scope page could obtain read/write handles to local files the user intended to open with the PWA.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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 security team.
Overview: LaunchQueue::DidFinishNavigation fails to verify if a navigation has committed before delivering File System Access handles. An attacker controlling an in-scope page can abort a file launch navigation, causing the handles to be delivered to their malicious document. This potentially grants the attacker silent read/write access to local files opened by the user.
Affected files:
components/webapps/browser/launch_queue/launch_queue.ccchrome/browser/ui/web_applications/web_app_launch_process.ccthird_party/blink/renderer/modules/launch/launch_queue.cc
Estimated timestamp from git blame: 2025-03-19
Vulnerability Description
A potential security vulnerability exists in LaunchQueue::DidFinishNavigation (components/webapps/browser/launch_queue/launch_queue.cc) where the completion of a navigation is processed without verifying handle->HasCommitted().
When a user opens a file with a PWA configured to use an existing window (client_mode: 'navigate-existing'), Chrome initiates a navigation to the PWA's file handler URL. If this navigation is aborted before it commits, LaunchQueue::DidFinishNavigation still executes.
The code correctly validates the intended target URL against the app's scope (delegate_->IsInScope(..., handle->GetURL())). Because handle->GetURL() returns the intended file handler URL even for aborted navigations, this check passes. However, because the navigation failed to commit, the WebContents still hosts the previously loaded document. When SendLaunchParams is subsequently called, it retrieves the PrimaryMainFrame, which refers to the currently committed frame, and delivers the File System Access (FSA) handles to it.
Impact
An attacker controlling an in-scope page can obtain FileSystemFileHandle objects for files the user intended to open with the PWA. These handles are constructed with UserAction::kSave permissions, automatically granting both read and write access. This allows the attacker to read, overwrite, or truncate local files without further user interaction or warnings.
Potential Exploitation Scenario
Note: These are suggested steps; our tooling agent does not have the ability to run code to verify an end-to-end exploit.
- An attacker gains control of a document that falls within the scope of a targeted PWA (e.g., via XSS, or by hosting a malicious page on a shared domain like a
github.iosub-path). The PWA must useclient_mode: 'navigate-existing'. - The user has the PWA window open and navigated to this attacker-controlled, in-scope page.
- The attacker's page prompts the user to interact with it (e.g., clicking anywhere), granting the attacker's frame transient user activation.
- While the page is active, the user attempts to open a file from the OS file manager using the PWA.
- Chrome locates the existing PWA window and initiates a browser-initiated navigation to the PWA's file handler URL.
- Within the brief window of transient user activation, the attacker's JavaScript intercepts the navigation attempt and triggers a renderer-initiated navigation (e.g.,
window.stop()orlocation.href = location.href). Because of the transient activation, this successfully aborts the pending browser-initiated navigation. - The aborted navigation triggers
LaunchQueue::DidFinishNavigation. Since the intended URL was in-scope, the logic proceeds without checkingHasCommitted(). The attacker's frame remains active and receives the highly privileged Mojo handles for the file via thelaunchQueue.setConsumercallback.
Suggested Fix
Add a check for handle->HasCommitted() at the start of the pending_navigation_ logic in LaunchQueue::DidFinishNavigation.
void LaunchQueue::DidFinishNavigation(content::NavigationHandle* handle) {
// Currently, launch data is only sent the primary main frame.
if (!handle->IsInPrimaryMainFrame()) {
return;
}
if (pending_navigation_) {
if (!handle->HasCommitted() || !delegate_->IsInScope(queue_.front(), handle->GetURL())) {
Reset();
return;
}
pending_navigation_ = false;
SendQueuedLaunchParams(handle->GetURL());
return;
}
// ... existing reload logic
}
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
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 code checked the intended navigation URL against the app scope but never checked handle->HasCommitted(), so an aborted navigation still triggered delivery of launch parameters to the currently committed frame.
Impact
An attacker could read, overwrite or truncate local files the user intended to open, without further interaction or warnings; the report notes the exploit was not verified end to end.
What the attacker needed
Attacker controls an in-scope page; PWA uses client_mode 'navigate-existing'; PWA window open on attacker page; victim opens a file with the PWA
The fix
The code should be fixed by checking handle->HasCommitted() before processing the pending navigation and resetting if it has not committed.
How it was found
- The attacker controls a document within the scope of a PWA that uses client_mode 'navigate-existing'.
- The user has the PWA window open on the attacker's in-scope page.
- The attacker's page obtains transient user activation from a user interaction.
- The user opens a file from the OS file manager using the PWA.
- Chrome starts a browser-initiated navigation to the PWA's file handler URL.
- The attacker's JavaScript aborts that navigation, and the aborted navigation still triggers delivery of the file handles to the attacker's frame.
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 open a file with an installed web app, the browser hands the app a special token that lets it read and write that file. The browser was supposed to give this token only to the page it was navigating to, but it forgot to check that the navigation actually happened. A malicious page already open in the app's window could therefore receive the token and access your file.
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.