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

Incorrect authorization in WebShare (CVE-2026-106391)

The ShareService Mojo interface on Android is scoped to the WebContents rather than the RenderFrameHost, so a compromised renderer can keep the Mojo pipe after a cross-origin navigation. An attacker could then use the orphaned connection to terminate the new site's renderer, bypass DLP policies, and spoof the native Share Sheet UI.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Flapjack, 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: The ShareService Mojo interface on Android is registered at the WebContents scope rather than the RenderFrameHost scope. This allows a compromised renderer to retain the Mojo pipe after cross-origin navigation. By abusing this orphaned connection, an attacker can potentially trigger cross-origin renderer termination, bypass DLP policies, and spoof the native Share Sheet UI.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeInterfaceRegistrar.java
  • chrome/android/java/src/org/chromium/chrome/browser/webshare/ShareServiceImplementationFactory.java
  • chrome/android/java/src/org/chromium/chrome/browser/share/ShareDelegateImpl.java

Estimated timestamp from git blame: 2016-09-28

Summary

On Android, the ShareService Mojo interface is improperly scoped to the lifecycle of the WebContents rather than the specific RenderFrameHost. This architectural mismatch allows a compromised renderer to maintain a functional Mojo connection to the browser process even after the tab has navigated to a different, cross-origin site. When the attacker invokes this orphaned remote, the browser incorrectly processes the request using the state of the new origin (via mWebContents.getMainFrame()), leading to severe security consequences.

Potential Exploit Scenario

Note: The following steps are a potential exploit scenario based on code analysis; a working proof of concept has not yet been executed.

  1. Compromise: An attacker exploits a vulnerability to compromise a renderer process for a site they control (e.g., attacker.com).
  2. Bind Interface: The compromised renderer requests to bind the blink::mojom::ShareService interface. In ChromeInterfaceRegistrar.java, this is handled by ChromeWebContentsInterfaceRegistrar, tying the interface to the WebContents via ShareServiceImplementationFactory.
  3. Cross-Origin Navigation: The attacker triggers a top-level navigation within the same tab to a highly trusted target site (e.g., bank.com).
  4. Mojo Pipe Survival: Because the ShareService is scoped to the WebContents, the Mojo connection is not torn down during the navigation. The attacker's renderer retains the active remote.

Impacts

By invoking the retained ShareService remote while the user is viewing the target site, the attacker can achieve three distinct impacts:

1. Cross-Process Renderer Termination (Site Isolation Violation) If the attacker sends a share() IPC with a malformed URL (e.g., invalid scheme), ShareServiceImpl.share() calls mDelegate.terminateRendererDueToBadMessage(). The delegate handles this by calling mWebContents.getMainFrame().terminateRendererDueToBadMessage(reason). Because the main frame now points to the target site (bank.com), the browser incorrectly kills the innocent cross-origin renderer process, leaving the attacker's renderer alive.

2. Enterprise Policy Bypass If the attacker sends a valid share() IPC, ShareServiceImplementationFactory creates a ChromeShareExtras object without setting a RenderFrameHost. When this reaches ShareDelegateImpl.shareIfAllowedByPolicy(), the missing RenderFrameHost causes an early return (shareCallback.onResult(true)), bypassing any configured Data Leak Prevention (DLP) enterprise policies.

3. UI Spoofing The native Android Share Sheet is presented to the user. Because the action is executed in the context of the current WebContents, system-level attribution and permission checks (such as isFeatureEnabled(PermissionsPolicyFeature.WEB_SHARE)) are evaluated against the currently visible site (bank.com), while the shared content is entirely attacker-controlled.

Suggested Fix

  1. Correct Scoping: In ChromeInterfaceRegistrar.java, move the registration of ShareService.MANAGER from ChromeWebContentsInterfaceRegistrar to ChromeRenderFrameHostInterfaceRegistrar.
  2. Bind RenderFrameHost: Update ShareServiceImplementationFactory to take a RenderFrameHost instead of a WebContents in its constructor.
  3. Use Bound Origin: Update the ShareServiceImpl.WebShareDelegate implementation to use the bound RenderFrameHost for policy checks (isFeatureEnabled), bad message termination, and explicitly set it when building ChromeShareExtras to ensure DLP checks function correctly.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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

The ShareService Mojo interface was registered at the WebContents scope instead of the RenderFrameHost scope, so the connection was not torn down on cross-origin navigation.

Impact

An attacker could terminate the renderer of the new site, bypass DLP policies, and spoof the native Share Sheet UI, though no working proof of concept has been executed.

What the attacker needed

Compromised renderer process; attacker controls a website; user navigates to a trusted site in same tab

The fix

The registration should be moved to the RenderFrameHost scope, the factory should take a RenderFrameHost, and the delegate should use the bound RenderFrameHost for policy checks and bad message termination.

How it was found

  1. Compromise a renderer process for a site the attacker controls.
  2. Request to bind the ShareService interface, which ties it to the WebContents.
  3. Trigger a top-level navigation in the same tab to a trusted site.
  4. The Mojo connection survives the navigation because it is scoped to the WebContents.
  5. Invoke the retained ShareService remote while the user is on the trusted site.

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 Mojo interface is a way for a web page's code to talk to the browser's internal code. Normally that connection should be tied to the specific page that opened it, but here it was tied to the whole tab, so it survived when the tab moved to a different website. That let a malicious page keep using the connection while the user was on a trusted site, which could cause the wrong site to be blamed or security checks to be skipped.

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.