Skip to content
SSRF Advisory Advanced CVE-2026-17844

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

A logic flaw in the DIAL device description cache allows cached entries to be served without verifying that the host of the cached app_url matches the device's updated IP address. A local-network attacker could leverage this desynchronisation to bypass IP-pinning protections and perform SSRF targeting private network addresses.

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A logic flaw in the DIAL device description cache allows cached entries to be served without verifying if the host of the cached app_url matches the device's updated IP address. A local-network attacker can potentially leverage this desynchronization to bypass IP-pinning protections and perform SSRF targeting private network addresses. This could lead to unauthorized proxy-bypassing HTTP requests being issued to local intranet devices.

Affected files:

  • chrome/browser/media/router/discovery/dial/device_description_service.cc
  • chrome/browser/media/router/discovery/dial/dial_device_data.cc
  • chrome/browser/media/router/discovery/dial/dial_media_sink_service_impl.cc
  • chrome/browser/media/router/providers/dial/dial_activity_manager.cc

Estimated timestamp from git blame: 2021-11-20

Summary

A potential logic vulnerability exists in the DIAL (Discovery and Launch) protocol implementation where the device-description cache lookup skips IsValidUrl re-validation after a USN-keyed IP address change. This desynchronizes the cached app_url from the current ip_address, potentially undermining the security invariant established by the GetApplicationInstanceURL IP-pinning fix. Consequently, an attacker on the local network could leverage this to send unauthorized proxy-bypassing HTTP requests (such as DELETE) to private network addresses.

Note: These are potential steps and vulnerabilities identified through manual code review; our tooling agent does not have the capability to execute code or run a live proof of concept.

Root Cause Analysis

In DeviceDescriptionService::CheckAndUpdateCache (chrome/browser/media/router/discovery/dial/device_description_service.cc), the cache lookup is keyed by the device's label and invalidates cached entries only if there is a config_id mismatch or if the entry has expired. It does not verify whether the host of the cached app_url matches the device's current IP address:

C++
const DeviceDescriptionService::CacheEntry*
DeviceDescriptionService::CheckAndUpdateCache(
    const DialDeviceData& device_data) {
  const auto& it = description_cache_.find(device_data.label());
  if (it == description_cache_.end()) {
    return nullptr;
  }
  // If the entry's config_id does not match, or it has expired, remove it.
  if (it->second.config_id != device_data.config_id() ||
      GetNow() >= it->second.expire_time) {
    description_cache_.erase(it);
    return nullptr;
  }
  // Entry is valid.
  return &it->second;
}

On a cache hit, the cached description (whose app_url was validated against the old IP address) is returned and used alongside the updated device data containing the new IP address. This completely bypasses both the IsValidUrl check in DeviceDescriptionFetcher::ProcessResponse and the verification in ValidateParsedDeviceDescription (which are only reachable when fetching a fresh description).

This results in a media sink being constructed with mismatched, desynchronized fields in DialMediaSinkServiceImpl::OnDeviceDescriptionAvailable (chrome/browser/media/router/discovery/dial/dial_media_sink_service_impl.cc):

C++
DialSinkExtraData extra_data;
extra_data.app_url   = description_data.app_url;       // host == OLD ip (cached)
extra_data.model_name = description_data.model_name;
extra_data.ip_address = device_data.ip_address();       // NEW ip

When launching or terminating a cast session, this mismatch can bypass the security invariant that GetApplicationInstanceURL (chrome/browser/media/router/providers/dial/dial_activity_manager.cc) relies on to prevent SSRF.

Potential Attack Scenario / Trigger Path

Below is a potential sequence of events that a local network attacker could follow to exploit this vulnerability:

  1. First discovery cycle: An attacker sends an SSDP response from IP_A (controlled by the attacker) with:
    • USN: uuid:X
    • CONFIGID.UPNP.ORG: 5
    • LOCATION: http://IP_A:.../dd.xml DialRegistry::OnDeviceDiscovered processes this and creates a new entry with a fresh label (e.g., "1").
  2. The description is fetched from IP_A. The attacker serves Application-URL: http://IP_A:.../apps. Since the host matches IP_A, IsValidUrl passes, and the description is cached with config_id = 5.
  3. Second discovery cycle: The attacker sends another SSDP response with the same USN: uuid:X and CONFIGID.UPNP.ORG: 5, but with a UDP source of IP_B (a target private IP, e.g., on a VPN or another routed interface) and LOCATION: http://IP_B:.../dd.xml. DialRegistry::UpdateFrom overwrites the ip_address_ with IP_B while preserving the label "1".
  4. When GetDeviceDescriptions runs, CheckAndUpdateCache results in a cache hit because the config_id (5) matches and the cache is not expired. The cached description (with app_url pointing to IP_A) is served with the updated device_data (ip_address pointing to IP_B) without re-running IsValidUrl.
  5. The media sink is constructed with app_url host pointing to IP_A and ip_address pointing to IP_B.
  6. A user attempts to cast to this sink. Chrome sends an HTTP POST to http://IP_A:.../apps/<app> (the attacker's server).
  7. The attacker's server at IP_A responds with 201 Created and a LOCATION header pointing to http://IP_B:<port>/<path>.
  8. GetApplicationInstanceURL validates the returned LOCATION host (IP_B) against expected_ip (which is IP_B) and passes.
  9. When the user stops casting, Chrome's browser process issues a proxy-bypassing HTTP DELETE request to http://IP_B:<port>/<path> (with LOAD_BYPASS_PROXY), completing a confused-deputy attack targeting a private address.

Suggested Fix

In CheckAndUpdateCache (chrome/browser/media/router/discovery/dial/device_description_service.cc), the cache entry should be invalidated if the current device_data.ip_address() does not match the host of the cached description_data.app_url (or the IP address used to validate the description should be stored inside CacheEntry and verified on lookup). This ensures that the IsValidUrl invariant is consistently enforced across discovery cycles.

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


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 cache lookup in CheckAndUpdateCache does not re-validate that the host of the cached app_url matches the device's current IP address, so a stale entry can be used with updated device data.

Impact

A local-network attacker could bypass IP-pinning protections and cause the browser to send proxy-bypassing HTTP requests to private network addresses, potentially leading to unauthorised actions on intranet devices.

What the attacker needed

Attacker on the same local network; victim uses Chrome's cast feature; attacker controls a device that responds to SSDP

The fix

The cache entry should be invalidated if the current device IP address does not match the host of the cached app_url, or the IP address used to validate the description should be stored and verified on lookup.

How it was found

  1. Attacker sends an SSDP response from IP_A with a USN, config ID, and LOCATION pointing to IP_A.
  2. The description is fetched from IP_A and cached because the app_url host matches IP_A.
  3. Attacker sends another SSDP response with the same USN and config ID but from IP_B, updating the device's IP address while keeping the same label.
  4. The cache lookup returns the cached description (with app_url pointing to IP_A) without re-validating against IP_B.
  5. A media sink is constructed with mismatched app_url and ip_address fields.
  6. When the user casts, Chrome sends a request to IP_A, which redirects to IP_B, and a subsequent DELETE request is sent to IP_B bypassing the proxy.

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.

The DIAL protocol lets devices on a local network announce themselves so that a browser can find and control them. The browser caches information about each device, but it fails to check that the cached address still matches the device's current IP address. An attacker on the same network could trick the browser into sending requests to private addresses that it should not reach.

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.