Skip to content
SSRF Advisory Advanced CVE-2026-17870

Insufficient validation of untrusted input in Cast (CVE-2026-17870)

Chrome's Cast discovery service accepts mDNS-advertised endpoints and connects to them, but its IP check only blocks publicly routable addresses, so private and loopback addresses are allowed. A local network attacker could use this to make the browser probe internal ports as a blind SSRF proxy, bypassing Private Network Access protections.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 51 days

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: Chrome's Cast discovery service automatically initiates TCP and TLS connections to IPs and ports specified in local mDNS responses. The IP validation check explicitly permits connections to all private (RFC 1918) and loopback addresses. A local network attacker can broadcast malicious mDNS records to use the browser as a blind SSRF proxy, probing internal ports and bypassing Private Network Access (PNA) protections.

Affected files:

  • chrome/browser/media/router/discovery/mdns/cast_media_sink_service_impl.cc
  • chrome/browser/media/router/discovery/mdns/media_sink_util.cc

Estimated timestamp from git blame: Unknown (Google3 checkout)

Summary

A potential vulnerability in Chrome's Cast Media Sink discovery service allows an attacker on the local network to perform blind Server-Side Request Forgery (SSRF) and internal port probing. By broadcasting malicious mDNS responses for the _googlecast._tcp.local service type, an attacker can induce Chrome into initiating TCP connections to arbitrary internal IP addresses and ports, including loopback (127.0.0.1) and private IP ranges.

Technical Details

The Cast discovery service, running in the browser process, listens for mDNS responses to discover Cast devices. When a new service is discovered, Chrome attempts to establish a Cast channel (initially a TCP connection followed by a TLS handshake) to the provided endpoint.

  1. mDNS Parsing: When a UDP packet on port 5353 is received, DnsSdRegistry::DispatchApiEvent notifies CastMediaSinkService::OnDnsSdEvent (chrome/browser/media/router/discovery/mdns/cast_media_sink_service.cc:163).
  2. IP Extraction: CreateCastMediaSink parses the IP address and port from the mDNS response without restricting it to specific ranges (chrome/browser/media/router/discovery/mdns/media_sink_util.cc:41).
  3. Flawed Validation: The connection attempt is routed to CastMediaSinkServiceImpl::OpenChannel (chrome/browser/media/router/discovery/mdns/cast_media_sink_service_impl.cc:472). A security check is performed: if (!allow_all_ips_ && ip_endpoint.address().IsPubliclyRoutable()) (line 481).
  4. Bypass: Because the attacker provides a private IP (e.g., 10.x.x.x) or loopback address (127.0.0.1), net::IPAddress::IsPubliclyRoutable() returns false (net/base/ip_address.cc:224). The condition fails, and the connection is permitted.
  5. Socket Creation: Chrome creates a CastSocketImpl and sends a Mojo IPC request to the Network Service to create a TCPConnectedSocket to the attacker-specified internal IP and port.

While the payload sent upon connection is limited to a TLS ClientHello (and potentially a Cast AuthChallenge), the initiation of the TCP connection itself bypasses Private Network Access (PNA) protections.

Suggested Attacker Steps

Note: These are potential steps based on code analysis; our tooling agent does not run code to verify them.

  1. An attacker resides on the same local network as the victim.
  2. The attacker broadcasts crafted mDNS UDP packets on port 5353, advertising _googlecast._tcp.local services with target IPs corresponding to the victim's loopback address or internal VPN hosts, specifying various target ports.
  3. Chrome receives and parses the mDNS broadcast, automatically initiating TCP connection attempts to the specified internal IPs/ports via the system network context.
  4. The attacker infers the status of the target ports (open/closed) by measuring the timing of subsequent mDNS broadcasts or using mDNS known-answer suppression side channels.

Suggested Fix

The IP validation logic in CastMediaSinkServiceImpl::OpenChannel should be hardened. While Cast devices reside on private networks, allowing connections to loopback (127.0.0.0/8 and ::1) is unnecessary and should be blocked. Additionally, to mitigate scanning of arbitrary internal networks, Chrome could restrict automatic connections to the local subnet the mDNS packet originated from, or restrict connections to typical Cast device ports (e.g., 8009) unless explicitly initiated by user interaction.

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

Likely the validation inverts the intended restriction: it only rejects publicly routable addresses, so private and loopback targets pass the check and connections are made.

Impact

An attacker on the local network could use the browser to probe internal ports and bypass Private Network Access protections, though the data sent is limited to a TLS handshake and possibly a Cast authentication challenge.

What the attacker needed

Attacker on the same local network; victim runs Chrome with Cast discovery active; no user interaction needed

The fix

The IP validation should be hardened to block loopback addresses, and automatic connections could be limited to the originating subnet or to typical Cast ports unless the user acts.

How it was found

  1. The attacker is on the same local network as the victim.
  2. The attacker broadcasts crafted mDNS packets advertising Cast services pointing at internal or loopback addresses and chosen ports.
  3. Chrome parses the broadcast and automatically opens TCP connections to those internal addresses and ports.
  4. The attacker infers whether the target ports are open or closed from timing or mDNS side channels.

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.

When Chrome looks for Cast devices on your network, it trusts announcements sent over the local network and opens a connection to whatever address they name. The safety check only refuses addresses on the public internet, so addresses inside your own network or on your own machine are accepted. Someone on the same network could therefore trick your browser into quietly trying connections to internal services, which can reveal whether those services exist.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.