Skip to content
UI spoofing Advisory Advanced CVE-2026-13993

Incorrect security UI in WebAppInstalls (CVE-2026-13993)

An uninstalled PWA window can be kept open by a beforeunload handler, and in that state the browser suppresses the Custom Tab Bar and origin flash, so the window can navigate to any site without showing its origin. An attacker could use this to spoof a trusted origin inside a standalone window.

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: A PWA window can be persisted after uninstallation by using a beforeunload handler to intercept the window-close command. In this uninstalled-but-open state, the window suppresses essential origin indicators like the Custom Tab Bar, enabling origin spoofing for cross-origin navigations.

Affected files:

  • chrome/browser/ui/web_applications/app_browser_controller.cc
  • chrome/browser/ui/web_applications/web_app_browser_controller.cc
  • chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc
  • chrome/browser/web_applications/web_app_registrar.cc
  • chrome/browser/web_applications/jobs/uninstall/remove_web_app_job.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential vulnerability in the Progressive Web App (PWA) UI logic allows an uninstalled app to maintain an open window that lacks all browser-supplied origin indicators. By using a beforeunload handler to cancel the window closure triggered by uninstallation, an attacker can keep a chromeless TYPE_APP window active. Because the security logic fails open when an app is no longer found in the registrar, the window will not display origin attribution (the Custom Tab Bar) even during cross-origin navigations.

Technical Details

In Chromium, PWA windows (standalone or minimal-ui) lack a standard omnibox. Security and origin attribution are primarily provided by the Custom Tab Bar (CCT), which appears when the window navigates out of the app's scope, and a transient origin 'flash' in the title bar.

1. Fail-Open Logic in ShouldShowCustomTabBar

The visibility of the persistent Custom Tab Bar is determined by AppBrowserController::ShouldShowCustomTabBar(). The implementation begins with a check that fails open if the app is no longer considered installed:

C++
// chrome/browser/ui/web_applications/app_browser_controller.cc
bool AppBrowserController::ShouldShowCustomTabBar() const {
  if (!IsInstalled()) {
    return false;
  }
  // ... checks for out-of-scope navigation ...
}

When an app is uninstalled, IsInstalled() returns false. Consequently, ShouldShowCustomTabBar() returns false, and the Custom Tab Bar is suppressed for all navigations in that window, regardless of whether the navigation is out-of-scope or to an insecure origin.

2. Persistence via beforeunload

When a PWA is uninstalled, WebAppBrowserController::OnWebAppUninstalled() triggers a window closure via chrome::CloseWindow(browser()). This follows the standard window closing flow, which respects beforeunload event handlers. An attacker can use a beforeunload handler to prompt the user to "Stay" on the page. If the user chooses to stay, the TYPE_APP window remains active while the underlying app metadata is removed from the WebAppRegistrar.

3. Suppression of Origin Indicators

Once the app is uninstalled but the window remains open, the primary security indicators fail to provide attribution:

  • Custom Tab Bar: Suppressed by the fail-open check in ShouldShowCustomTabBar().
  • Origin Flash: WebAppOriginText::DidFinishNavigation relies on GetAppStartUrl(). When an app is uninstalled, the registrar returns an empty GURL, causing the origin flash logic to return early without displaying any attribution.
  • Window Title: WebAppBrowserController::GetTitle() attempts to prefix the page title with the app name. Since the app is uninstalled, GetAppShortName() returns an empty string. The logic then defaults to returning the raw page <title> because base::StartsWith(raw_title, "") is always true in Chromium's string utility functions.

This results in a window with no origin indicators that can navigate to any site, allowing a potential spoofing of trusted origins within a standalone window frame.

Potential Reproduction Steps (Suggested)

  1. Serve a PWA from https://attacker.example with display: standalone and a beforeunload handler that prompts the user to stay.
  2. Install and open the PWA.
  3. Uninstall the app via the browser's menu ('Uninstall [App]...').
  4. When the 'Leave site?' prompt appears, click 'Stay'.
  5. The window remains open, but the app is now uninstalled from the system.
  6. From the attacker page, navigate the window to a phishing target (e.g., window.location = 'https://trusted.example').
  7. Observe that the window shows no Custom Tab Bar and no origin flash, and the title bar displays the attacker-controlled page title without the expected app prefix.

Suggested Fix

  • Modify AppBrowserController::ShouldShowCustomTabBar() to fail-safe: if the installation status is unknown or the app is uninstalled, the Custom Tab Bar should be shown by default for all navigations.
  • Alternatively, ensure that WebAppBrowserController::OnWebAppUninstalled uses a closing mechanism that bypasses beforeunload handlers to ensure the window is terminated upon uninstallation.

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.

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 origin-indicator logic fails open: when the app is no longer in the registrar, ShouldShowCustomTabBar returns false and the title/origin-flash helpers return early, so no attribution is shown.

Impact

An attacker could spoof a trusted origin in a standalone window because the usual origin indicators are missing, though the user must first install the app and choose to stay on the page during uninstallation.

What the attacker needed

Victim installs the attacker's PWA; victim uninstalls the app; victim chooses 'Stay' on the prompt

The fix

The report suggests making ShouldShowCustomTabBar fail-safe by showing the bar when the app is uninstalled, or closing the window on uninstallation in a way that bypasses beforeunload handlers.

How it was found

  1. Serve a PWA with standalone display and a beforeunload handler that prompts the user to stay.
  2. Install and open the PWA.
  3. Uninstall the app from the browser menu.
  4. When the leave-site prompt appears, choose to stay so the window remains open.
  5. Navigate the still-open window to a different site.
  6. Observe that no Custom Tab Bar or origin flash appears and the title lacks the app prefix.

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 to run in its own window without the usual address bar. Normally the browser shows a bar with the site's address when the app leaves its own pages, so you can see where you are. This report says that if the app is uninstalled while its window is still open, that address bar disappears, letting a malicious page pretend to be another site.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.