Inappropriate implementation in Cast (CVE-2026-8009)
A compromised renderer can send a crafted IPC message to start a presentation to a local HTTP URL, bypassing Private Network Access checks. If the user selects a Wired Display, the browser performs a browser-initiated navigation to that URL, enabling stateless CSRF against local network devices.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 41 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer can bypass Private Network Access (PNA) checks by initiating a Presentation API request to a local HTTP URL. If a user selects a Wired Display in the resulting Cast dialog, the browser performs a browser-initiated navigation to the target, bypassing PNA and enabling stateless CSRF against local network devices.
Affected files:
components/media_router/common/media_source.ccchrome/browser/ui/media_router/presentation_receiver_window_controller.cccontent/browser/presentation/presentation_service_impl.cccomponents/media_router/browser/presentation/controller_presentation_service_delegate_impl.ccchrome/browser/media/router/providers/wired_display/wired_display_media_route_provider.cccomponents/media_router/browser/presentation/presentation_navigation_policy.ccchrome/browser/ui/media_router/media_route_starter.cc
Estimated timestamp from git blame: 2017-12-16
Vulnerability Overview
A potential vulnerability exists in the Presentation API's Wired Display feature where a compromised renderer can bypass Private Network Access (PNA) restrictions. By crafting a malicious StartPresentation IPC message, an attacker can force the browser process to execute a browser-initiated GET request to an arbitrary local network IP address, enabling stateless Cross-Site Request Forgery (CSRF) against local devices (e.g., routers or IoT devices).
Potential Attack Steps
Note: The following steps are theoretical as our setup does not currently have the ability to run code to produce a working Proof of Concept.
- Renderer Compromise: An attacker exploits a separate vulnerability to gain code execution within a sandboxed renderer process.
- IPC Spoofing: The attacker directly sends a
blink.mojom.PresentationService.StartPresentationMojo IPC message to the browser. This bypasses renderer-side Blink checks (such as[SecureContext], Mixed Content restrictions, and User Activation requirements). - Malicious URL Payload: In the IPC message, the attacker specifies a local network target in the
presentation_urlsfield (e.g.,http://192.168.1.1/admin/reboot?foo=bar). - Browser-Side Validation Bypass: The browser receives the request in
PresentationServiceImpl. The URL is validated againstmedia_router::IsValidPresentationUrl, which explicitly allows thehttp://scheme without checking for private/local IP addresses. - Deceptive UI: The Cast dialog is presented to the user. It displays the origin of the requesting frame but hides the malicious destination URL.
- User Interaction: The user, believing the request is benign, selects a "Wired Display" (a connected secondary monitor) from the dialog.
- Browser-Initiated Navigation:
WiredDisplayMediaRouteProvidercreates aPresentationReceiverWindowController. To load the presentation, it callsLoadURLWithParamson a new Off-The-Record WebContents. - PNA Bypass: Crucially, the
content::NavigationController::LoadURLParamsobject defaultsis_renderer_initiatedtofalse. The network service treats this as a highly trusted browser-initiated navigation. Because there is no initiatorClientSecurityStateattached, PNA checks are completely bypassed, and the HTTP GET request to the local network device is executed.
Impact
An attacker with a compromised renderer can perform stateless CSRF attacks (triggering state-changing GET requests) against devices on the victim's local network. This bypasses the typical PNA protections designed to prevent external origins from reaching internal network addresses.
Suggested Fix
There are two primary ways to fix this issue:
- Propagate Initiator State: In
PresentationReceiverWindowController::Start(and any other presentation controllers), explicitly setis_renderer_initiated = trueon theLoadURLParamsstruct. Furthermore, ensure theinitiator_originand the appropriateClientSecurityStateare passed along from the originalPresentationRequestso that the network service can enforce PNA checks correctly. - Strict URL Validation: Update
media_router::IsValidPresentationUrlorControllerPresentationServiceDelegateImpl::StartPresentationto explicitly reject private/local IP addresses or localhost URLs unless the request originates from a securely contextualized, authenticated, or similarly privileged local source.
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
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. Please feel free to reach out to me if you have concerns or feedback.
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 browser-initiated navigation used to load the presentation does not carry the original initiator's security state, so Private Network Access checks are skipped.
Impact
An attacker with a compromised renderer could perform stateless CSRF attacks against local network devices, bypassing PNA protections.
What the attacker needed
Compromised renderer; user selects Wired Display
The fix
The issue should be fixed by propagating the initiator's security state to the navigation or by rejecting private/local IP addresses in presentation URLs.
How it was found
- Compromise a renderer process to gain code execution.
- Send a crafted StartPresentation IPC message to the browser.
- Include a local network URL in the presentation_urls field.
- The browser validates the URL but allows http:// without checking for private IPs.
- The user selects a Wired Display from the Cast dialog.
- The browser performs a browser-initiated navigation to the local URL, bypassing PNA.
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 page runs in a restricted part of the browser called a renderer. If an attacker can break out of that restriction, they can send fake instructions to the browser's core. This report shows that one such instruction could make the browser visit a device on your home network, like a router, without the usual safety checks.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.