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

Insufficient validation of untrusted input in WebShare (CVE-2026-10920)

A compromised renderer process can bypass Web Share API validations by directly sending Mojo messages to the browser process, which lacks its own URL scheme validation. An attacker can supply a file:// URL pointing to a sensitive local file, and on macOS this file is passed to the system share sheet with a spoofed title, potentially tricking the user into exfiltrating the file's contents.

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. 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 compromised renderer process can bypass Web Share API validations by directly sending Mojo messages to the browser process. Because the browser process lacks its own URL scheme validation, an attacker can supply a file:// URL pointing to a sensitive local file. On macOS, this file is passed to the system share sheet with a spoofed title, potentially tricking the user into exfiltrating the file's contents.

Affected files:

  • chrome/browser/webshare/share_service_impl.cc
  • content/app_shim_remote_cocoa/render_widget_host_ns_view_bridge.mm
  • chrome/browser/webshare/mac/sharing_service_operation.mm

Estimated timestamp from git blame: 2025-08-04

Summary

A vulnerability in the Web Share API implementation allows a compromised renderer process to bypass security checks and initiate the sharing of arbitrary local files. By directly invoking the blink::mojom::ShareService::Share Mojo interface, an attacker can avoid renderer-side URL scheme and user activation checks. The browser process (ShareServiceImpl::Share) fails to independently validate the URL scheme, allowing a file:// URL to be passed to the platform's native sharing UI. On macOS 13.0+, an attacker can spoof the title in the share sheet, tricking the user into sending the local file to a target application like Mail or AirDrop.

Potential Attack Steps

Note: These are potential steps based on code analysis; a working proof-of-concept has not been executed.

  1. Renderer Compromise: An attacker gains arbitrary code execution within the sandboxed renderer process.
  2. Direct Mojo Invocation: The attacker binds directly to the blink::mojom::ShareService and sends a Share message. This bypasses the renderer-side checks in NavigatorShare::share and NavigatorShare::CanShareInternal, which would normally require transient user activation and restrict URLs to HTTP/HTTPS.
  3. Payload Construction: The attacker provides a deceptive title (e.g., "Cute Kitten Image"), an empty files array, and sets share_url to a sensitive local file path using the file:// scheme (e.g., file:///Users/victim/.ssh/id_rsa).
  4. Browser Process Bypass: The browser process receives the message in ShareServiceImpl::Share (chrome/browser/webshare/share_service_impl.cc). Because the files array is empty, it skips Safe Browsing and MIME type checks. Crucially, the browser process does not validate the share_url scheme or check for transient user activation, trusting the renderer implicitly.
  5. macOS UI Spoofing: The request is routed to macOS UI components. In RenderWidgetHostNSViewBridge::ShowSharingServicePicker (content/app_shim_remote_cocoa/render_widget_host_ns_view_bridge.mm), the file:// GURL is converted to a native NSURL. It is then wrapped in an NSPreviewRepresentingActivityItem alongside the attacker's deceptive title.
  6. Exfiltration: The macOS system share sheet appears without warning, displaying the spoofed title. If the user selects a sharing target (e.g., Mail), the macOS sharing system reads the local file specified by the NSURL and attaches its contents, achieving local file exfiltration and a sandbox escape.

Suggested Fix

The browser process must not rely solely on the renderer for security validation.

  1. URL Scheme Validation: Add validation in ShareServiceImpl::Share (chrome/browser/webshare/share_service_impl.cc) to ensure share_url uses a permitted scheme (e.g., http: or https:) and explicitly reject file://, chrome://, etc.
  2. User Activation Check: Enforce that a transient user activation is present when handling the Share Mojo request in the browser process.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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 process trusts the renderer's validation and does not independently check the URL scheme or user activation for Web Share requests.

Impact

On macOS 13.0+, an attacker could trick the user into exfiltrating a sensitive local file via the system share sheet, achieving a sandbox escape.

What the attacker needed

Compromised renderer process; macOS 13.0 or later; user interacts with share sheet

The fix

The browser process should validate the share_url scheme (allowing only http/https) and enforce transient user activation in ShareServiceImpl::Share.

How it was found

  1. Gain arbitrary code execution within the sandboxed renderer process.
  2. Bind directly to the ShareService Mojo interface and send a Share message, bypassing renderer-side checks.
  3. Provide a deceptive title, an empty files array, and set share_url to a sensitive local file path using the file:// scheme.
  4. The browser process receives the message and skips Safe Browsing and MIME type checks because the files array is empty, and does not validate the share_url scheme.
  5. The request is routed to macOS UI components, where the file:// URL is converted to a native NSURL and wrapped with the deceptive title.
  6. The macOS share sheet appears without warning; if the user selects a sharing target, the local file is read and attached, achieving exfiltration.

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 web browser is split into parts: the renderer (which runs web pages) and the browser process (which has more power). Normally the renderer checks things like whether a link is safe before asking the browser to share it. Here, an attacker who already controls the renderer can skip those checks and ask the browser directly to share a local file, like a private key. On macOS, the share menu then shows a fake title, so the user might send the file without realising.

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.