Inappropriate implementation in Cast (CVE-2026-17798)
The DIAL media route provider's origin allowlist lookup is case-sensitive, so requesting a known app with different casing returns an empty origin list, which the media router treats as allowing all origins. An attacker could use this to discover local DIAL devices and potentially launch apps with attacker-controlled data.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
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: The DIAL media route provider uses a case-sensitive lookup for its origin allowlist. Requesting a known app with incorrect casing (e.g., "youtube" instead of "YouTube") results in an empty origin list, which the media router interprets as allowing all origins, potentially exposing restricted local devices to unauthorized websites.
Affected files:
chrome/browser/media/router/providers/dial/dial_media_route_provider.cccomponents/media_router/browser/media_sinks_observer.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A logic error exists in DialMediaRouteProvider::GetOrigins that allows malicious websites to bypass origin restrictions for well-known DIAL applications (such as YouTube, Netflix, Hulu, etc.). By using a case variation of the application name in a media source string (e.g., cast-dial:youtube instead of cast-dial:YouTube), an attacker can cause the browser to treat the application as having no origin restrictions. This enables an unauthorized origin to discover local DIAL devices and potentially prompt the user to launch applications with attacker-controlled payload data.
Vulnerability Details
In chrome/browser/media/router/providers/dial/dial_media_route_provider.cc, the GetOrigins function uses a base::flat_map to store an allowlist of origins for specific DIAL application names:
std::vector<url::Origin> DialMediaRouteProvider::GetOrigins(
const std::string& app_name) {
static const base::NoDestructor<
base::flat_map<std::string, std::vector<url::Origin>>>
origin_allowlist({
{"YouTube", {...}},
{"Netflix", {...}},
// ...
});
auto origins_it = origin_allowlist->find(app_name);
if (origins_it == origin_allowlist->end()) {
return std::vector<url::Origin>();
}
return origins_it->second;
}
The base::flat_map string lookup is case-sensitive. When a website requests a DIAL source with a variation in casing (e.g., lowercase "youtube"), the lookup fails and the function returns an empty std::vector<url::Origin>.
In the Chromium Media Router architecture, an empty origin list is interpreted as the source being allowed for all origins, rather than denying access. This logic is implemented in components/media_router/browser/media_sinks_observer.cc:
void MediaSinksObserver::OnSinksUpdated(
const std::vector<MediaSink>& sinks,
const std::vector<url::Origin>& origins) {
// ...
if (origins.empty() || std::ranges::contains(origins, origin_)) {
OnSinksReceived(sinks);
} else {
OnSinksReceived(std::vector<MediaSink>());
}
}
Many DIAL-capable devices (such as smart TVs) handle application paths case-insensitively (treating /apps/youtube the same as /apps/YouTube). Consequently, an attacker can successfully discover and interact with these services despite the intended origin restrictions.
Potential Attack Steps
(Note: These are suggested steps based on static analysis; our tooling agent cannot execute code to verify this end-to-end.)
- An attacker hosts a malicious website on a non-allowlisted origin.
- The website uses the HTML5 Presentation API to initiate a Cast session with a case-manipulated DIAL media source URL, including attacker-controlled POST data:
const request = new PresentationRequest("cast-dial:youtube?clientId=1234&dialPostData=malicious_payload"); - The browser extracts the app name
"youtube"and discovers local DIAL devices supporting the app (as the devices often match case-insensitively). DialMediaRouteProvider::GetOrigins("youtube")fails to find a match in the allowlist and returns an empty origin list.MediaSinksObserver::OnSinksUpdatedinterprets the empty list as "allow all origins" and makes the discovered local devices visible to the attacker's origin via the Cast dialog.- The user, seeing their own device in the dialog, clicks it.
DialActivityManager::LaunchAppconstructs a DIAL launch HTTP POST request to the device, including the attacker'sdialPostDatapayload, successfully launching the app with malicious data.
Suggested Fix
There are two primary ways to fix this:
- Case-Insensitive Lookup: Modify
DialMediaRouteProvider::GetOriginsto perform a case-insensitive lookup, or normalize theapp_nameto a known case before querying theorigin_allowlist. Abase::flat_mapwithbase::CompareCase::INSENSITIVE_ASCIIcould be used. - Restrict Unknown Apps: If the intent is that only apps in the allowlist should be discoverable/launchable via the Presentation API,
GetOriginsshould not return an empty list for unknown apps, orMediaSinksObservershould have a clearer mechanism to distinguish "deny all" from "allow all". However, if arbitrary DIAL apps are meant to be supported without an explicit allowlist, the first fix (case-insensitive lookup for the protected apps) is necessary.
Evaluated with Chrome root at commit: b7d0c4d810da1b31400f198c70d9720fc8f0e5a0
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.
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 origin allowlist lookup is case-sensitive, and an empty result is misinterpreted as 'allow all' rather than 'deny all'.
Impact
An unauthorized origin could discover local DIAL devices and potentially prompt the user to launch applications with attacker-controlled payload data; the report notes these steps are based on static analysis and were not executed end-to-end.
What the attacker needed
Victim visits attacker's website; victim has a DIAL-capable device on the network; victim clicks the device in the Cast dialog
The fix
The lookup should be made case-insensitive or the app name normalised, and the code should distinguish 'deny all' from 'allow all' for unknown apps.
How it was found
- An attacker hosts a malicious website on a non-allowlisted origin.
- The website uses the HTML5 Presentation API to initiate a Cast session with a case-manipulated DIAL media source URL, including attacker-controlled POST data.
- The browser extracts the app name and discovers local DIAL devices supporting the app.
- The origin lookup fails to find a match and returns an empty origin list.
- The media sinks observer interprets the empty list as allowing all origins and makes the devices visible to the attacker's origin.
- The user clicks their device in the dialog, and the browser sends a launch request including the attacker's payload.
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 browser feature lets websites find and control nearby smart TVs and streaming sticks. The browser is supposed to only let certain trusted websites talk to certain apps on those devices, but a mistake in how it checks the app name means a website can get around that restriction by changing the capitalisation of the name. This could let a malicious site see your local devices and try to launch apps on them with data it controls.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.