Skip to content
Access control Advisory Advanced CVE-2026-13897

Insufficient policy enforcement in Chromecast (CVE-2026-13897)

The Chromecast browser grants microphone and camera permissions based on a container-wide flag rather than the requesting origin. An attacker who can navigate the container to their own page could silently capture audio and video.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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.

Overview: CastWebViewDefault grants media access permissions (microphone/camera) based solely on a per-WebView flag, ignoring the requesting frame's security origin. Because cross-origin top-level navigations within a Cast application reuse the same WebContents container, an attacker can navigate the container to their origin and inherit these media permissions. This bypasses the origin-aware allowlist in CastPermissionManager and could allow silent audio and video capture.

Affected files:

  • chromecast/browser/cast_web_view_default.cc
  • chromecast/browser/cast_permission_manager.cc
  • chromecast/cast_core/runtime/browser/runtime_application_service_impl.cc
  • chromecast/browser/mojom/cast_web_service.mojom
  • chromecast/browser/cast_content_browser_client.cc
  • chromecast/browser/cast_web_contents_impl.cc

Estimated timestamp from git blame: 2022-06-09

Summary

In the Chromecast browser implementation, the CastWebViewDefault class fails to validate the requesting security origin when granting media access permissions. Permissions for DEVICE_AUDIO_CAPTURE (microphone) and DEVICE_VIDEO_CAPTURE (camera) are granted if the WebView-wide allow_media_access flag is set, regardless of the origin of the frame making the request. This allows cross-origin navigations within an authorized container to inherit powerful permissions.

Vulnerability Details

When a web page calls navigator.mediaDevices.getUserMedia(), the request is sent over IPC to the browser's MediaStreamManager. To authorize the initial request, MediaStreamUIProxy calls RequestMediaAccessPermission directly on the WebContentsDelegate (bypassing the central PermissionController).

In the Cast runtime, the WebContentsDelegate is implemented by CastWebViewDefault. In chromecast/browser/cast_web_view_default.cc, the RequestMediaAccessPermission and CheckMediaAccessPermission methods determine whether to grant access using only the params_->allow_media_access member or a global feature flag. The security_origin parameter provided to these methods is completely ignored.

This container-bound permission model becomes a vulnerability during top-level navigations. If a Cast application requests a new URL (e.g., via window.top.location), CastWebViewDefault::OpenURLFromTab explicitly loads the new URL into the existing WebContents to prevent opening multiple windows. Because the container is reused, the allow_media_access flag remains true.

Consequently, the origin-based allowlist implemented in CastPermissionManager::IsRequestingOriginAllowed is never consulted for the initial media grant. An attacker who can trigger a navigation within a media-enabled app can silently access the microphone and camera without user interaction.

Potential Steps to Trigger

Note: These are potential steps derived from static code analysis, as our tooling agent does not currently have the ability to run code or execute a live proof-of-concept.

  1. A user launches a legitimate Cast application that is configured to require media access (setting allow_media_access = true on the CastWebView).
  2. The attacker exploits an open redirect or XSS vulnerability within the legitimate application, executing JavaScript that causes the top-level frame to navigate to https://attacker.com/malicious.html.
  3. The navigation request flows to CastWebViewDefault::OpenURLFromTab, which calls LoadURL on the existing WebContents.
  4. The attacker's page loads and executes navigator.mediaDevices.getUserMedia({ audio: true, video: true }).
  5. The request arrives at CastWebViewDefault::RequestMediaAccessPermission in the browser process.
  6. The method checks params_->allow_media_access, evaluates it as true (since it is tied to the container, not the origin), and immediately grants the request.
  7. The attacker receives a live audio and video stream from the Chromecast device.

Suggested Fix

Modify CastWebViewDefault::RequestMediaAccessPermission and CheckMediaAccessPermission to validate the security_origin against the application's base URL, similar to the logic found in CastPermissionManager::IsRequestingOriginAllowed. Alternatively, route the initial media access permission check through the PermissionController so that the robust origin and feature enforcement logic in CastPermissionManager is properly applied to getUserMedia requests.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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. 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 media permission check ignores the requesting security origin and relies only on a per-WebView flag that persists across navigations.

Impact

An attacker could silently capture audio and video from the Chromecast device, but the report notes this is based on static analysis and no live proof-of-concept was run.

What the attacker needed

A legitimate Cast app with media access; an open redirect or XSS in that app; victim launches the app

The fix

The media permission check should validate the security origin against the application's base URL or route through the PermissionController.

How it was found

  1. A user launches a legitimate Cast application configured to require media access.
  2. The attacker uses an open redirect or XSS in the app to navigate the top-level frame to their page.
  3. The navigation is loaded into the existing WebContents via OpenURLFromTab.
  4. The attacker's page calls getUserMedia for audio and video.
  5. The permission request reaches RequestMediaAccessPermission, which checks the container flag and grants it.
  6. The attacker receives a live audio and video stream.

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 a website asks to use your microphone or camera, the browser should check which website is asking. In this Chromecast browser, the check only looked at whether the app was allowed to use media at all, not which page was asking. So if an attacker could make the app load their page, that page would get microphone and camera access without asking you.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.