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

Insufficient validation of untrusted input in WebAppInstalls (CVE-2026-11023)

A logic flaw in PWA wildcard scope extension matching ignores the port during origin comparison, so an attacker controlling a non-default port can capture navigations intended for the default port of the same domain. A compromised renderer can also bypass a feature flag to register wildcard scope extensions, potentially exfiltrating sensitive data such as OAuth codes.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A logic flaw in PWA wildcard scope extension matching drops the port during origin comparison. This allows an attacker who controls a non-default port to capture navigations intended for the default port of the same domain by serving a malicious manifest from a compromised renderer.

Affected files:

  • chrome/browser/web_applications/web_app_scope.cc
  • components/webapps/browser/launch_queue/launch_queue.cc
  • chrome/browser/ui/web_applications/navigation_capturing_process.cc
  • chrome/browser/web_applications/jobs/manifest_to_web_app_install_info_job.cc
  • chrome/browser/ui/web_applications/web_app_browser_controller.cc

Estimated timestamp from git blame: 2025-09-09

Description

A logic flaw exists in the PWA scope extension matching logic where the port is ignored during wildcard origin comparisons. This allows an attacker who controls a non-default port on a domain (e.g., https://example.com:8080) to capture navigations to the default port of the same domain and its subdomains (e.g., https://sub.example.com:443).

The vulnerability lies in GetScopeExtensionsScore within chrome/browser/web_applications/web_app_scope.cc. When evaluating wildcard scope extensions, the code compares the serialized target origin with the host of the scope extension:

C++
    if (scope_extension.has_origin_wildcard) {
      if (base::EndsWith(origin_string, scope_extension.origin.host(),
                         base::CompareCase::SENSITIVE) && ...

Here, origin_string is the result of url::Origin::Serialize(). For a target URL on the default HTTPS port (e.g., https://sub.example.com), Serialize() omits the port. The comparison uses scope_extension.origin.host(), which always returns the host without the port (e.g., example.com). Because both strings lack port information, base::EndsWith incorrectly matches https://sub.example.com against a scope extension for https://example.com:8080.

Furthermore, while the kWebAppEnableScopeExtensionsBySite feature (which allows wildcard scope extensions) is disabled by default, the browser process blindly trusts the has_origin_wildcard flag provided by the renderer in the blink::mojom::ManifestScopeExtension IPC message. ToWebAppScopeExtensions() in chrome/browser/web_applications/jobs/manifest_to_web_app_install_info_job.cc fails to validate the feature flag, allowing a compromised renderer to register wildcard scope extensions even when the feature is disabled.

Potential Attack Scenario

  1. An attacker controls https://example.com:8080 but not https://example.com (port 443).
  2. The attacker hosts a malicious PWA on port 8080 and compromises the renderer for this origin.
  3. The user visits https://example.com:8080 and is persuaded to install the PWA.
  4. During installation, the compromised renderer sends a crafted blink::mojom::Manifest to the browser process via IPC, setting has_origin_wildcard = true for a scope extension originating at https://example.com:8080.
  5. The browser process bypasses the kWebAppEnableScopeExtensionsBySite feature flag check and accepts the wildcard extension.
  6. The browser validates the extension by fetching the association file from the attacker's server at https://example.com:8080/.well-known/web-app-origin-association. The attacker returns a valid JSON association.
  7. The PWA is installed and configured with "launch_handler": {"client_mode": "focus-existing"}.
  8. Later, the user navigates to a sensitive URL on the default port, e.g., https://sub.example.com/oauth_callback?code=SECRET.
  9. The navigation capturing logic evaluates the URL against the PWA's scope extensions. Due to the missing port check in GetScopeExtensionsScore, it falsely determines the URL is in-scope.
  10. The browser redirects the navigation to the attacker's PWA window, and the sensitive URL is delivered directly to the attacker's JavaScript via the launchQueue API, exfiltrating the OAuth code.

Suggested Fix

  1. In GetScopeExtensionsScore (chrome/browser/web_applications/web_app_scope.cc), properly check that the ports of both the target origin and the scope extension origin match. For wildcard matching, ensure the port logic aligns with origin equality semantics rather than just doing string comparisons on hosts.
  2. In ToWebAppScopeExtensions() (chrome/browser/web_applications/jobs/manifest_to_web_app_install_info_job.cc), validate that the kWebAppEnableScopeExtensionsBySite feature flag is enabled before allowing has_origin_wildcard to be true. If the flag is disabled, force it to false or reject the scope extension.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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

Likely the origin comparison in GetScopeExtensionsScore uses string matching on hosts without comparing ports, and the browser process fails to validate the feature flag for wildcard scope extensions from the renderer.

Impact

An attacker could capture navigations to the default port of the same domain and exfiltrate sensitive data such as OAuth codes via the launchQueue API.

What the attacker needed

Attacker controls a non-default port; victim installs the malicious PWA; compromised renderer; victim navigates to sensitive URL

The fix

The fix should check that ports match in GetScopeExtensionsScore and validate the feature flag before allowing wildcard scope extensions.

How it was found

  1. Attacker controls a non-default port on a domain and hosts a malicious PWA there.
  2. User visits the attacker's PWA and is persuaded to install it.
  3. Compromised renderer sends a crafted manifest over IPC setting has_origin_wildcard to true.
  4. Browser bypasses the feature flag check and accepts the wildcard extension.
  5. Browser fetches the association file from the attacker's server, which returns a valid JSON.
  6. PWA is installed with launch_handler set to focus-existing.

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 Progressive Web App (PWA), it can be allowed to open links for certain web addresses. This report found that the browser checked only the domain name and forgot to check the port number, so a malicious app on one port could steal links meant for another port on the same site. The attacker also tricked the browser into enabling an experimental feature that should have been off.

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.