Inappropriate implementation in WebAppInstalls (CVE-2026-14138)
The Windows shortcut update code for progressive web apps renames a shortcut to the app's new title without checking whether a file of that name already exists, so the rename silently replaces it. An attacker could set a PWA's manifest title to match a legitimate application's shortcut and, once the user approves the update, overwrite that shortcut with their own.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 45 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The Windows implementation of PWA shortcut updates uses base::ReplaceFile without performing uniqueness checks. This allows a PWA to overwrite existing .lnk files on the user's system (e.g., on the Desktop or Taskbar) when its manifest title is updated and approved by the user. An attacker can use this to hijack shortcuts of legitimate applications like Outlook or Chrome.
Affected files:
chrome/browser/web_applications/os_integration/web_app_shortcut_win.cc
Estimated timestamp from git blame: 2021-09-29
Potential Vulnerability: Arbitrary .lnk File Overwrite on Windows
A logic error has been identified in the Windows-specific implementation of Progressive Web App (PWA) shortcut management. When a PWA's title is updated in its manifest, the browser attempts to rename existing OS-level shortcuts to reflect the new title. On Windows, this is implemented using base::ReplaceFile, which can result in the silent overwriting of existing, unrelated shortcuts if a name collision occurs.
Technical Details
In chrome/browser/web_applications/os_integration/web_app_shortcut_win.cc, the UpdateShortcuts() function handles the renaming of shortcuts during an application update. When a title change is detected, it calculates a new shortcut path based on the updated title:
const base::FilePath new_shortcut =
shortcut.DirName()
.Append(GetSanitizedFileName(shortcut_info.title))
.AddExtension(installer::kLnkExt);
// ...
base::ReplaceFile(shortcut, new_shortcut, &error);
On Windows, base::ReplaceFile wraps the Win32 ::ReplaceFileW API. This API is designed to atomically replace a destination file with a source file. Unlike the shortcut creation logic in CreateShortcutsInPaths()—which explicitly uses base::GetUniquePath() to ensure filenames do not collide with existing files—the update logic in UpdateShortcuts() performs no such check.
If a user has a shortcut for a different application (e.g., "Outlook.lnk") in the same directory where the PWA's shortcut is being renamed, and the PWA's new title is "Outlook", the PWA's shortcut will overwrite the legitimate Outlook shortcut.
Potential Impact
An attacker can exploit this to hijack the shortcuts of common applications. This provides a persistent OS-level UI spoofing and phishing primitive. While the vulnerability requires the user to approve the name change via a "Review App Update" dialog, the dialog does not warn that the update will overwrite existing files or hijack another application's shortcut.
Suggested/Potential Steps to Reproduce
- On a Windows system, install a PWA (e.g.,
https://example-pwa.com) and ensure it creates a Desktop shortcut. - Ensure a legitimate shortcut exists on the Desktop, such as "Outlook.lnk".
- The attacker updates the PWA manifest
nameto "Outlook". - The user launches the PWA and is prompted with an "App Update Available" notification.
- The user selects "Review App Update" and clicks "Update".
- The PWA's shortcut (
Example PWA.lnk) is renamed toOutlook.lnk, overwriting the original Outlook shortcut.
Recommended Fix
Modify UpdateShortcuts() in chrome/browser/web_applications/os_integration/web_app_shortcut_win.cc to ensure the new_shortcut path is unique before calling base::ReplaceFile. This can be achieved by using base::GetUniquePath(), consistent with the implementation in CreateShortcutsInPaths().
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 update path builds the new shortcut filename from the app title and calls a file-replace function without first checking that the name is free, unlike the creation path which asks for a unique path.
Impact
An attacker could hijack shortcuts of common applications, giving a persistent way to spoof the interface and phish, though the user must approve the name change and the dialog does not warn about overwriting files.
What the attacker needed
Windows system; user installs the PWA; victim approves the app update
The fix
The update code should check that the new shortcut path is unique, for example with the same unique-path helper used when shortcuts are first created.
How it was found
- Install a PWA on Windows so that it creates a desktop shortcut.
- Have a legitimate shortcut with the target name already present on the desktop.
- Change the PWA manifest name to match that legitimate shortcut.
- The user opens the PWA and sees an app update notification.
- The user chooses to review the update and confirms it.
- The PWA's shortcut is renamed to the legitimate name, replacing the original shortcut.
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.
A progressive web app (PWA) is a website that can be installed so it gets its own icon and shortcut, like a normal program. When such an app changes its name, the browser renames its shortcut file on the desktop. Here the browser did not first check whether another program already had a shortcut with that name, so the rename replaced the other program's shortcut instead of picking a different name.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.