Skip to content
SSRF Advisory Advanced CVE-2026-95376

Externally controlled reference in DevTools (CVE-2026-95376)

The Cast device discovery code in DevTools accepted IP addresses from mDNS responses without checking whether they were publicly routable. A local network attacker could spoof a Cast device and make the browser process send periodic HTTP requests to arbitrary public IPs and parse the replies in-process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: CastDeviceProvider fails to validate that IP addresses discovered via mDNS are not publicly routable, allowing a local network attacker to trigger an SSRF. By spoofing a Cast device, an attacker can cause the browser process to make periodic HTTP requests to arbitrary public IPs and parse the responses in-process. This bypasses typical network isolation boundaries and exposes the browser process to untrusted network data.

Affected files:

  • chrome/browser/devtools/device/cast_device_provider.cc
  • chrome/browser/devtools/device/devtools_android_bridge.cc
  • chrome/browser/devtools/device/devtools_device_discovery.cc
  • chrome/browser/devtools/device/android_device_manager.cc
  • chrome/browser/devtools/device/tcp_device_provider.cc
  • chrome/browser/ui/webui/inspect/inspect_ui.cc

Estimated timestamp from git blame: 2015-11-18

Summary

A potential vulnerability in CastDeviceProvider allows a local network attacker to perform Server-Side Request Forgery (SSRF) and force the browser process to parse untrusted network data. The provider accepts IP addresses from mDNS responses without verifying if they are restricted to the local network, enabling a spoofing attack that targets arbitrary public IP addresses.

Root Cause Analysis

In chrome/browser/devtools/device/cast_device_provider.cc, the CastDeviceProvider::OnDeviceChanged method processes resolved IP addresses from mDNS _googlecast._tcp.local service descriptions. While it validates the IP's format, it lacks a check for whether the address is publicly routable.

C++
// chrome/browser/devtools/device/cast_device_provider.cc:203-207
const net::IPAddress& ip_address = service_description.ip_address;
if (!ip_address.IsValid()) {
  // An invalid IP address is not queryable.
  return;
}

Other Cast-related components in Chromium (such as CastMediaSinkServiceImpl) explicitly use ip_address.IsPubliclyRoutable() to reject public addresses during discovery to prevent SSRF and cross-site tracking. The absence of this check here allows the DevToolsDeviceDiscovery logic to initiate TCP connections to any IP provided by an mDNS responder.

Potential Trigger Path

  1. A victim user opens chrome://inspect#devices in a desktop build of Chrome.
  2. This initiates device discovery polling, causing CastDeviceProvider to start listening for mDNS queries for _googlecast._tcp.local services.
  3. An attacker on the same local network segment responds to the mDNS query with a spoofed A record resolving to a targeted public IP address (e.g., a cloud metadata service or an attacker-controlled server) on port 9222.
  4. Every second, DevToolsDeviceDiscovery::DiscoveryRequest automatically initiates an HTTP GET /json/version request to the specified public IP.
  5. The raw HTTP response (headers and JSON body) is parsed directly within the unsandboxed browser process by HttpRequest in android_device_manager.cc and base::JSONReader in devtools_device_discovery.cc.

Impact

An attacker can cause the browser process to make outbound TCP connections and HTTP requests to arbitrary IPs on port 9222. Furthermore, because the responses are parsed in the privileged browser process, any potential vulnerabilities in the HTTP or JSON parsing logic could lead to memory corruption in the most privileged part of the browser.

Suggested Fix

Modify CastDeviceProvider::OnDeviceChanged in chrome/browser/devtools/device/cast_device_provider.cc to reject addresses that are publicly routable:

C++
if (!ip_address.IsValid() || ip_address.IsPubliclyRoutable()) {
  return;
}

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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 mDNS device handler only checked that the reported IP address was valid, not that it was non-public, unlike other Cast code that rejects publicly routable addresses.

Impact

An attacker could make the browser process connect to arbitrary public IPs on one port and parse untrusted responses in the privileged process, which could lead to memory corruption if the parsing code has flaws.

What the attacker needed

Attacker on the same local network; victim opens chrome://inspect#devices; target reachable on port 9222

The fix

The handler should also reject addresses that are publicly routable, as other Cast components already do.

How it was found

  1. The victim opens the DevTools devices page in desktop Chrome.
  2. Device discovery starts and the Cast provider listens for mDNS Cast service announcements.
  3. An attacker on the same network replies with a spoofed record pointing to a public IP on port 9222.
  4. The discovery loop repeatedly sends an HTTP request to that address.
  5. The response is parsed inside the browser process.

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 you open a Chrome page that looks for Cast devices, Chrome listens for announcements on the local network. This report says Chrome trusted the address in those announcements without checking it was a local address, so someone on the same network could point Chrome at an internet server of their choosing. Chrome would then keep contacting that server and reading what it sends back, which is a way of making the browser do network requests on an attacker's behalf.

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.