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.cccomponents/webapps/browser/launch_queue/launch_queue.ccchrome/browser/ui/web_applications/navigation_capturing_process.ccchrome/browser/web_applications/jobs/manifest_to_web_app_install_info_job.ccchrome/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:
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
- An attacker controls
https://example.com:8080but nothttps://example.com(port 443). - The attacker hosts a malicious PWA on port 8080 and compromises the renderer for this origin.
- The user visits
https://example.com:8080and is persuaded to install the PWA. - During installation, the compromised renderer sends a crafted
blink::mojom::Manifestto the browser process via IPC, settinghas_origin_wildcard = truefor a scope extension originating athttps://example.com:8080. - The browser process bypasses the
kWebAppEnableScopeExtensionsBySitefeature flag check and accepts the wildcard extension. - 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. - The PWA is installed and configured with
"launch_handler": {"client_mode": "focus-existing"}. - Later, the user navigates to a sensitive URL on the default port, e.g.,
https://sub.example.com/oauth_callback?code=SECRET. - 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. - 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
launchQueueAPI, exfiltrating the OAuth code.
Suggested Fix
- 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. - In
ToWebAppScopeExtensions()(chrome/browser/web_applications/jobs/manifest_to_web_app_install_info_job.cc), validate that thekWebAppEnableScopeExtensionsBySitefeature flag is enabled before allowinghas_origin_wildcardto betrue. If the flag is disabled, force it tofalseor 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.
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
- Attacker controls a non-default port on a domain and hosts a malicious PWA there.
- User visits the attacker's PWA and is persuaded to install it.
- Compromised renderer sends a crafted manifest over IPC setting has_origin_wildcard to true.
- Browser bypasses the feature flag check and accepts the wildcard extension.
- Browser fetches the association file from the attacker's server, which returns a valid JSON.
- 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.