Missing authorization in Chromecast (CVE-2026-113240)
The browser process unconditionally exposes the CastDemo interface to all renderers, and a compromised renderer can bypass a feature flag check to request it, allowing the attacker to reconfigure Wi-Fi and conduct a persistent man-in-the-middle attack.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 7 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: The chromecast.shell.mojom.CastDemo interface is unconditionally exposed to all Cast renderers by the browser process. A compromised renderer can bypass renderer-side feature flag checks and directly request this sensitive interface, which is then forwarded without authorization to the privileged Cast Service. This potentially allows an attacker to reconfigure the device's Wi-Fi network and execute a persistent Man-in-the-Middle (MITM) attack.
Affected files:
chromecast/browser/cast_browser_interface_binders.ccchromecast/browser/cast_web_contents_impl.cc
Estimated timestamp from git blame: 2022-07-18
Summary
On Chromecast, the browser process registers a binder for the chromecast.shell.mojom.CastDemo interface unconditionally for every render frame. This interface provides sensitive methods, such as SetWifiCredentials, intended only for retail store demonstration mode. While legitimate access is controlled by a renderer-side feature flag check (kEnableDemoStandaloneMode in feature_manager.cc), a compromised renderer with native code execution can bypass this check by directly requesting the interface via the BrowserInterfaceBroker. The browser process fails to authorize the request before forwarding it to the highly-privileged Cast Service, potentially enabling a full sandbox escape and persistent device compromise.
Technical Details
-
Unconditional Binder Registration: In
chromecast/browser/cast_content_browser_client_receiver_bindings.cc:113-117,RegisterBrowserInterfaceBindersForFramecallsPopulateCastFrameBindersfor every newly created render frame. Insidechromecast/browser/cast_browser_interface_binders.cc:131-132, a binder formojom::CastDemois added unconditionally, mapping it to theBindFromCastWebContentshelper. -
Missing Browser-Side Authorization: When a compromised renderer directly requests the
CastDemointerface, the request reachesBindFromCastWebContents(cast_browser_interface_binders.cc:39-50). This function retrieves theCastWebContentsobject for the app session but crucially fails to verify if the session is authorized (e.g., by checkingcast_web_contents->renderer_features_for thekEnableDemoStandaloneModeflag). Instead, it unconditionally passes the request tocast_web_contents->TryBindReceiver(). -
Forwarding to the Cast Service: In
CastWebContentsImpl::TryBindReceiver(chromecast/browser/cast_web_contents_impl.cc:453-471), the method first attempts to bind the receiver locally. SinceCastDemois not a browser-side local interface, it falls back to forwarding the request toremote_interfaces_.Bind(std::move(receiver)). -
Security Contract Violation: The
remote_interfaces_object proxies requests to the closed-source, highly-privileged Cast Service. Forwarding the untrusted renderer's receiver directly violates the documented security contract incast_web_contents.mojom:103-105: "Sensitive APIs should never be exposed through |remote_interfaces|."
Impact
An attacker who has compromised a standard Chromecast renderer process (e.g., via a V8 or Blink vulnerability) can establish a direct Mojo connection to the privileged Cast Service. They can then invoke sensitive methods like SetWifiCredentials("attacker-ssid", "attacker-psk") (chromecast/common/mojom/cast_demo.mojom:62). This forces the device onto an attacker-controlled network, resulting in a persistent Man-in-the-Middle (MITM) attack over all subsequent device traffic. Other sensitive methods, such as GetAvailableWifiNetworks (location reconnaissance) and GetConnectionStatus (information leakage), are also exposed.
Suggested Reproduction Steps
Note: These are potential steps based on code analysis; our tooling agent cannot execute arbitrary code to produce a working exploit.
- Exploit a memory safety vulnerability to gain arbitrary native code execution within a standard Cast app renderer process.
- Construct a payload that interacts with the Mojo IPC system. Create a
mojo::Remote<chromecast::shell::mojom::CastDemo>. - Request the interface from the browser process:
render_frame_host->GetBrowserInterfaceBroker().GetInterface(remote.BindNewPipeAndPassReceiver()). - Once the remote is connected to the Cast Service, invoke the sensitive API:
remote->SetWifiCredentials("attacker-ssid", "attacker-psk"). - Observe the Chromecast device disconnecting from its legitimate network and associating with the attacker's access point.
Suggested Fix
The browser process must validate that the requesting renderer is authorized before binding or forwarding the CastDemo interface.
In BindFromCastWebContents (or a dedicated binder function for CastDemo), verify that the CastWebContents object possesses the kEnableDemoStandaloneMode feature flag in its renderer_features_ dictionary before passing the receiver to TryBindReceiver. Alternatively, do not unconditionally register the CastDemo binder in PopulateCastFrameBinders; instead, register it conditionally based on the app session's properties.
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
The browser process registers and forwards the CastDemo interface without verifying that the requesting renderer is authorised to use it.
Impact
An attacker who has already compromised a renderer could force the device onto an attacker-controlled network, enabling a persistent man-in-the-middle attack over all subsequent traffic.
What the attacker needed
Compromised renderer process; native code execution in renderer
The fix
The browser process should check that the renderer has the kEnableDemoStandaloneMode feature flag before binding or forwarding the CastDemo interface.
How it was found
- Exploit a memory safety vulnerability to gain native code execution in a Cast renderer process.
- Create a Mojo remote for the CastDemo interface.
- Request the interface from the browser process via the BrowserInterfaceBroker.
- Invoke SetWifiCredentials on the connected remote.
- Observe the device disconnecting from its network and joining the attacker's access point.
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 renderer is the part of the browser that runs web content. Normally, a feature flag stops renderers from using a special demo interface, but the browser never checks that flag itself. So if an attacker can take over a renderer, they can ask for that interface directly and change the device's Wi-Fi settings.
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.