Insufficient validation of untrusted input in Cast (CVE-2026-8005)
Chrome's DIAL implementation fails to validate the host in the Application Instance URL returned by a DIAL server, allowing a malicious local device to force the browser to send unauthenticated HTTP DELETE requests to arbitrary destinations, including localhost, bypassing Private Network Access protections.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 42 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: Chrome's DIAL implementation fails to validate the host in the Application Instance URL returned by a DIAL server. This allows a malicious local device to force the browser process to send an unauthenticated HTTP DELETE request to arbitrary destinations, including localhost, bypassing Private Network Access protections.
Affected files:
chrome/browser/media/router/providers/dial/dial_activity_manager.ccchrome/browser/media/router/discovery/dial/dial_url_fetcher.ccchrome/browser/media/router/discovery/dial/dial_device_data.cc
Estimated timestamp from git blame: 2024-12-23
Description
Chrome's Media Router implements the DIAL (Discovery and Launch) protocol to discover and interact with devices on the local network. A potential blind SSRF (Server-Side Request Forgery) vulnerability exists because the browser fails to validate the host of the Application Instance URL returned by a device during an app launch.
When a user initiates a Cast session to a DIAL device, Chrome sends an HTTP POST request to the device. A successful response (HTTP 201 Created) includes a LOCATION header containing the Application Instance URL.
In chrome/browser/media/router/providers/dial/dial_activity_manager.cc, the GetApplicationInstanceURL function extracts this URL:
GURL app_instance_url(*location_header);
if (!app_instance_url.is_valid() || !app_instance_url.SchemeIs("http")) {
return GURL();
}
return app_instance_url;
Crucially, it only verifies that the URL is a valid HTTP URL. It does not validate the host/IP address. Other DIAL-related URLs are strictly validated (e.g., via DialDeviceData::IsValidUrl) to ensure they point to a non-publicly routable IP that matches the device's original SSDP source IP.
When the user later stops the Cast session, DialActivityManager::StopApp retrieves this unvalidated URL and uses DialURLFetcher::Delete(app_instance_url) to terminate the app.
DialURLFetcher constructs an uncredentialed DELETE request using the system URLLoaderFactory (which is trusted). Because the request originates directly from the browser process, it bypasses CORS and Private Network Access (PNA) restrictions. This allows a LAN attacker to pivot through the victim's browser to send blind DELETE requests to arbitrary targets, such as 127.0.0.1 or internal enterprise endpoints.
Potential Reproduction Steps
Note: These are potential steps to trigger the vulnerability, as our setup does not currently have the ability to run code to verify them dynamically.
- An attacker on the same local network as the victim runs a malicious SSDP responder, advertising a fake DIAL device.
- The victim opens the Chrome Cast menu and selects the malicious device to start a session.
- Chrome sends a POST request to the device's application URL.
- The attacker's server responds with
HTTP/1.1 201 Createdand includes a malicious header, e.g.,Location: http://127.0.0.1:8080/api/admin/delete_all. - The victim subsequently stops the cast session (either manually or because the session fails to play media).
- Chrome's browser process blindly issues an HTTP
DELETErequest tohttp://127.0.0.1:8080/api/admin/delete_all, bypassing PNA restrictions.
Suggested Fix
The Application Instance URL must be validated to ensure its host matches the expected IP address of the DIAL device.
In DialActivityManager, the validation logic should be updated to ensure the host of the app_instance_url matches the IP address of the MediaSinkInternal (the DIAL device) being interacted with, similar to the checks performed in DialDeviceData::IsValidUrl().
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 Application Instance URL returned by a DIAL device is only checked to be a valid HTTP URL, without verifying that its host matches the device's IP address.
Impact
A LAN attacker could pivot through the victim's browser to send blind DELETE requests to arbitrary targets, such as localhost or internal enterprise endpoints, bypassing CORS and Private Network Access restrictions.
What the attacker needed
Attacker on same local network; victim selects malicious Cast device; victim stops the cast session
The fix
The Application Instance URL should be validated to ensure its host matches the expected IP address of the DIAL device, similar to checks in DialDeviceData::IsValidUrl().
How it was found
- An attacker on the same local network runs a malicious SSDP responder advertising a fake DIAL device.
- The victim opens the Chrome Cast menu and selects the malicious device to start a session.
- Chrome sends a POST request to the device's application URL.
- The attacker's server responds with HTTP 201 Created and a Location header pointing to an arbitrary URL.
- The victim stops the cast session.
- Chrome issues an HTTP DELETE request to the attacker-supplied URL, bypassing PNA restrictions.
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 use Chrome to cast to a device on your local network, Chrome talks to that device using a protocol called DIAL. The device can tell Chrome a web address to use later, and Chrome does not check that this address actually belongs to the device. A bad device on the same network could give Chrome an address like localhost, and later Chrome would send a request to that address, potentially doing something harmful.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.