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.cccontent/app_shim_remote_cocoa/render_widget_host_ns_view_bridge.mmchrome/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.
- Renderer Compromise: An attacker gains arbitrary code execution within the sandboxed renderer process.
- Direct Mojo Invocation: The attacker binds directly to the
blink::mojom::ShareServiceand sends aSharemessage. This bypasses the renderer-side checks inNavigatorShare::shareandNavigatorShare::CanShareInternal, which would normally require transient user activation and restrict URLs to HTTP/HTTPS. - Payload Construction: The attacker provides a deceptive
title(e.g., "Cute Kitten Image"), an emptyfilesarray, and setsshare_urlto a sensitive local file path using thefile://scheme (e.g.,file:///Users/victim/.ssh/id_rsa). - Browser Process Bypass: The browser process receives the message in
ShareServiceImpl::Share(chrome/browser/webshare/share_service_impl.cc). Because thefilesarray is empty, it skips Safe Browsing and MIME type checks. Crucially, the browser process does not validate theshare_urlscheme or check for transient user activation, trusting the renderer implicitly. - 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), thefile://GURL is converted to a nativeNSURL. It is then wrapped in anNSPreviewRepresentingActivityItemalongside the attacker's deceptivetitle. - 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
NSURLand 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.
- URL Scheme Validation: Add validation in
ShareServiceImpl::Share(chrome/browser/webshare/share_service_impl.cc) to ensureshare_urluses a permitted scheme (e.g.,http:orhttps:) and explicitly rejectfile://,chrome://, etc. - User Activation Check: Enforce that a transient user activation is present when handling the
ShareMojo 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.
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
- Gain arbitrary code execution within the sandboxed renderer process.
- Bind directly to the ShareService Mojo interface and send a Share message, bypassing renderer-side checks.
- Provide a deceptive title, an empty files array, and set share_url to a sensitive local file path using the file:// scheme.
- 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.
- The request is routed to macOS UI components, where the file:// URL is converted to a native NSURL and wrapped with the deceptive title.
- 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.