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

Insufficient policy enforcement in PWAs (CVE-2026-5892)

A renderer-callable Mojo method, InstallFromElement(), sets a flag that makes the browser auto-grant the WEB_APP_INSTALLATION permission without showing a prompt. A compromised renderer could therefore install cross-origin PWAs without the user's consent to the permission.

Tianyi Hu Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 42 days

Report description

WebInstallService InstallFromElement() bypasses WEB_APP_INSTALLATION permission prompt via renderer-callable Mojo method


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/web_applications/web_install_service_impl.cc


The problem

Please describe the technical details of the vulnerability

WebInstallServiceImpl::InstallFromElement() sets triggered_from_element_ = true then calls Install(). In RequestWebInstallPermission(), this flag causes the WEB_APP_INSTALLATION permission to be auto-granted without showing a permission prompt. A compromised renderer can call InstallFromElement() directly via Mojo to install cross-origin PWAs without user consent to the permission.

The permission bypass was designed intentionally for the <install> HTML element — the rationale being that a user clicking an <install> element already implies consent, so no separate permission prompt is needed. However, this design violates the Chromium security model: Mojo does not enforce which renderer code path invoked a method. The browser cannot distinguish between a call from a legitimate <install> element click handler and a call from compromised renderer code. Both arrive as the same InstallFromElement() IPC. The triggered_from_element_ flag is therefore a renderer-trusted boolean that the browser uses to make a security decision — a classic Mojo trust boundary violation. The existing test InstallWithUrl_IgnoresDeniedPermission explicitly asserts this bypass works, confirming the design intent, but the threat model was not considered.

Vulnerable files:

Transmission chain:

  1. The renderer calls WebInstallService::InstallFromElement(options, callback) via Mojo. This method is intended only for the <install> HTML element, but any renderer code can call it.
  2. In WebInstallServiceImpl::InstallFromElement(), the browser unconditionally sets triggered_from_element_ = true, then delegates to Install().
  3. Install() eventually calls RequestWebInstallPermission(). When the permission status is ASK, the method checks triggered_from_element_:
C++
if (triggered_from_element_) {
  // Do not show permission prompt for installs from an element entry point.
  // Grant permission by default if not already granted or denied.
  std::move(callback).Run(
      std::vector<content::PermissionResult>({content::PermissionResult(
          PermissionStatus::GRANTED,
          content::PermissionStatusSource::UNSPECIFIED)}));
  return;
}
  1. The permission is auto-granted and the install proceeds without a permission prompt.
  2. Additionally, triggered_from_element_ is never reset, so all subsequent Install() calls on the same WebInstallServiceImpl instance also bypass the permission prompt (sticky state).

Steps to reproduce:

  1. Check out stable tag: git checkout -b poc 145.0.7632.117
  2. git apply poc_patch.diff
  3. autoninja -C out/Default chrome -j8
  4. Place PoC files (index.html, serve.py) in a directory and start the server:
    • python3 serve.py
  5. Launch patched Chrome:
    • out/Default/Chromium.app/Contents/MacOS/Chromium --user-data-dir=/tmp/chrome-poc-test --enable-blink-features=WebAppInstallation http://localhost:8080/index.html
  6. Click "Install cross-origin PWA". The install dialog appears directly without a permission prompt.

The renderer patch replaces Install() with InstallFromElement() in the renderer's navigator.install() implementation, simulating a compromised renderer. --enable-blink-features=WebAppInstallation is needed to expose the JS API, but the underlying Mojo interface is already bound by default (the kWebAppInstallation base feature is enabled by default).

Bisect: Introducing commit: 1fd86f307a82e5a58bb86dafcb0e19cb7c29016e

  • Author: Kristin Lee ([email protected]), Dec 19 2025
  • Message: "[<install> Element] Do not show the permission prompt"
  • CL: https://chromium-review.googlesource.com/c/chromium/src/+/7266918
  • Evidence: parent f8e2c3ebdf4e904db590874c40168861ccf4f606 has no InstallFromElement or triggered_from_element_; this commit adds both.
  • Cr-Commit-Position: refs/heads/main@{#1560950} — after M144 branch (1552494), before M145 branch (1568190).
  • Earliest affected: M145. Latest confirmed: M145 (145.0.7632.117).

Note: a follow-up commit 8d4441fe2c2a7f58a3db483da333f9ed0b933822 (Jan 20 2026, CL https://chromium-review.googlesource.com/c/chromium/src/+/7278710) changed the bypass from "allow unless previously denied" to "always GRANTED unconditionally," worsening the bug in M146+.

Suggested fix (attached as fix.diff):

Remove triggered_from_element_ from the permission bypass condition in Install():

Diff
-  if (triggered_from_element_ || install_target == last_committed_url_) {
+  if (install_target == last_committed_url_) {

The browser cannot verify that InstallFromElement() was called from a genuine <install> element versus a compromised renderer. The fix removes the renderer-trusted flag from the permission decision, so InstallFromElement() goes through the normal RequestWebInstallPermission() flow. The triggered_from_element_ field is retained for UMA/UKM metrics routing only. The existing InstallWithUrl_IgnoresDeniedPermission test is updated to expect permission denial instead of bypass.

Impact analysis

A compromised renderer can install arbitrary cross-origin PWAs without the WEB_APP_INSTALLATION permission prompt. This bypasses the permission model that gates the Web Install API.

User harm:

  • Phishing: Install a malicious PWA mimicking a banking/email app — PWAs appear as native apps with no browser chrome, making phishing more convincing.
  • Persistence: PWAs persist beyond browser sessions and appear in the OS app list/dock, giving the attacker a persistent foothold.
  • No user awareness: The permission prompt is the user's only signal that a cross-origin install is happening. Bypassing it means the user sees only the install dialog (which may look legitimate) without the preceding "allow this site to install apps?" consent.

Reachability: A compromised renderer in any top-level frame on desktop Chrome. Reachable via renderer exploits (e.g., V8 bugs) or compromised ad network code.

Compounding factors:

  1. The triggered_from_element_ flag is sticky — once set, it persists for the lifetime of the WebInstallServiceImpl instance, so all subsequent Install() calls on the same document also bypass the permission prompt.
  2. On M145 (stable), the bypass is in RequestWebInstallPermission() after the GRANTED/DENIED switch — so the bypass fires when permission status is ASK (the default). A user who previously clicked "Block" is protected. However, on main (shipping in M146), the bypass was moved before RequestWebInstallPermission() entirely (line 320: if (triggered_from_element_ || ...) → OnPermissionDecided(GRANTED)), meaning the permission is auto-granted even if the user previously denied it. This makes the M146 variant strictly worse.

The cause

What version of Chrome have you found the security issue in?

145.0.7632.117 (Stable)

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Permissions Bypass

How would you like to be publicly acknowledged for your report?

Tianyi Hu

The original report as published on the Chromium issue tracker, by Tianyi Hu. 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 made a security decision based on a boolean flag set by the renderer, which cannot prove the call came from a genuine <install> element click rather than compromised renderer code.

Impact

A compromised renderer could install arbitrary cross-origin PWAs without the permission prompt, enabling more convincing phishing and persistent apps; on M145 a user who previously blocked the permission is still protected, but on M146 the bypass was moved earlier and grants even after a denial.

What the attacker needed

Compromised renderer; desktop Chrome; WebAppInstallation feature enabled

The fix

The suggested fix removes the renderer-trusted flag from the permission decision so InstallFromElement() goes through the normal permission flow, keeping the field only for metrics.

How it was found

  1. Build a patched Chrome from the stable tag with the renderer patch applied.
  2. Serve the proof-of-concept page from a local server.
  3. Launch the patched Chrome with the WebAppInstallation feature enabled and open the page.
  4. Click the install button and observe the install dialog appears without a permission prompt.

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.

Chrome splits itself into a browser process that makes security decisions and renderer processes that handle web pages. A renderer can ask the browser to do things through a message channel called Mojo, and the browser is supposed to check that the request is legitimate. Here the browser trusted a flag set by the renderer to skip a permission prompt, so malicious page code could install apps without asking the user.

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 by Tianyi Hu

View all

6 more disclosed reports, best first.

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.