Skip to content
Access control Advisory Advanced CVE-2026-8019

Insufficient policy enforcement in WebApp (CVE-2026-8019)

A logic flaw in the Progressive Web App installation flow allows a malicious site to supply a cross-origin application-url via page metadata, and by intentionally failing a manifest icon download, bypass manifest validation and install or overwrite a PWA using the victim's identity with attacker-controlled icons and names. This also bypasses AppLock integrity checks and affects Android shortcuts.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 36 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 without the security team.

Overview: A logic flaw in PWA installation allows a malicious site to supply a cross-origin application-url via page metadata. By intentionally failing a manifest icon download, an attacker can bypass manifest validation and install or overwrite a PWA using the victim's identity but attacker-controlled icons and names. This also bypasses AppLock integrity checks and affects Android shortcuts.

Affected files:

  • chrome/browser/web_applications/web_contents/web_app_data_retriever.cc
  • chrome/browser/web_applications/commands/fetch_manifest_and_install_command.cc
  • components/webapps/browser/android/shortcut_info.cc

Estimated timestamp from git blame: 2025-07-10

Description

A potential vulnerability exists in the Progressive Web App (PWA) installation flow that allows a malicious renderer to spoof the identity of an installed app or overwrite an existing victim's app with attacker-controlled icons and titles. This requires user interaction (accepting the install prompt) but results in persistent UI spoofing.

The vulnerability is a chain of three distinct issues:

1. Unvalidated Origin in Page Metadata During the initial phase of PWA installation, WebAppDataRetriever::GetWebAppInstallInfo requests page metadata from the renderer. In WebAppDataRetriever::PopulateWebAppInfoFromMetadata(), the metadata.application_url is blindly trusted and used to set the fallback start_url and manifest_id for the app. There is no check to ensure this URL is same-origin with the document's last committed URL.

2. Logic Error in Manifest Fallback FetchManifestAndInstallCommand receives this tainted fallback metadata and stores it in web_app_info_. It then fetches the attacker's actual manifest (which passes validation) and acquires an AppLock for the attacker's true App ID. However, if the manifest's icons fail to download (e.g., return a 404), the ManifestToWebAppInstallInfoJob flags install_info->is_generated_icon = true. In the callback OnInstallInfoObtainedMergeAndShowDialog (around line 580), this triggers an early return to fall back to page favicons. Critically, this early return skips the assignment web_app_info_ = std::move(install_info); (line 598). As a result, the command retains the tainted fallback metadata (the victim's ID) instead of the validated manifest data.

3. AppLock Integrity Bypass When the user accepts the prompt, FinalizeInstallJob writes the app to the WebAppRegistry using the tainted web_app_info_->manifest_id() (the victim's ID). Because the system does not enforce that the modified App ID matches the currently held AppLock (which is for the attacker's ID), the write succeeds. This allows an attacker to silently overwrite an existing victim's app name and OS launcher icon.

Android Impact A similar lack of validation exists in Android's components/webapps/browser/android/shortcut_info.cc. ShortcutInfo::UpdateFromMetadata blindly trusts metadata.application_url to set the shortcut's url and scope, enabling Android homescreen shortcut spoofing.

Potential Reproduction Steps

(Note: These are suggested steps based on static code analysis; we do not have a working exploit to automatically verify this.)

  1. Host an attacker page at https://attacker.example. Include the following meta tag to spoof the origin: <meta name="application-url" content="https://victim.example/">.
  2. Set the <title> and <link rel="icon"> (favicons) on the page to attacker-controlled values (e.g., "Victim Bank" and a fake bank logo).
  3. Host a manifest at https://attacker.example/manifest.json that passes kValidManifestIgnoreDisplay but includes an icons array pointing to a URL that returns a 404 Not Found error.
  4. Have the user navigate to https://attacker.example and trigger the PWA install (e.g., via the omnibox icon or Chrome menu).
  5. The user will see an install dialog with the attacker's title and favicon. If they accept, the app is installed with the manifest_id of https://victim.example/, potentially overwriting the legitimate app if it was already installed.

Suggested Fix

  1. Validate Metadata Origin: In WebAppDataRetriever::PopulateWebAppInfoFromMetadata, verify that metadata.application_url is same-origin with the WebContents' last committed URL before trusting it.
  2. Fix Command Logic: In FetchManifestAndInstallCommand::OnInstallInfoObtainedMergeAndShowDialog, ensure that web_app_info_ is updated with the validated install_info data before returning early to fetch favicons, or restructure the fallback logic so that validated manifest fields are always prioritized and retained.
  3. Enforce AppLock Integrity: ScopedRegistryUpdate or FinalizeInstallJob should verify that the App ID being written to the registry corresponds to the AppLock currently held by the command.
  4. Patch Android ShortcutInfo: Add origin validation to ShortcutInfo::UpdateFromMetadata in components/webapps/browser/android/shortcut_info.cc.

Evaluated with Chrome root at commit: e9e0fcbb690b1a8c1a26c81c2a9ea23d6e178368


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.

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

The browser blindly trusts the application-url from page metadata without checking it is same-origin, and a logic error in the install command causes it to retain this tainted metadata when manifest icon downloads fail, skipping the update with validated manifest data.

Impact

An attacker could spoof the identity of an installed app or overwrite an existing victim's app with attacker-controlled icons and titles, resulting in persistent UI spoofing; this requires user interaction (accepting the install prompt).

What the attacker needed

Victim visits attacker page; victim accepts install prompt; attacker hosts a manifest with failing icons

The fix

The report suggests validating the metadata origin, fixing the command logic to retain validated manifest data, enforcing AppLock integrity, and patching Android ShortcutInfo; it does not state that a fix was applied.

How it was found

  1. Host an attacker page that includes a meta tag setting application-url to the victim's origin.
  2. Set the page title and favicon to attacker-controlled values.
  3. Host a manifest that passes validation but includes an icons array pointing to a URL that returns 404.
  4. Have the user navigate to the attacker page and trigger the PWA install.
  5. The user sees an install dialog with attacker's title and favicon; if accepted, the app is installed with the victim's manifest_id, potentially overwriting the legitimate app.

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 install a web app (PWA) from a site, the browser checks the site's identity to keep apps separate. Here, a malicious site could trick the browser into thinking it is a different, trusted site, and then replace that trusted app's icon and name with its own. This could make a fake app look like your bank, for example.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.