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

Insufficient data validation in MediaCapture (CVE-2026-11685)

On macOS, a missing check in GetUpdatedWindowId allows sequential picker session IDs to collide with valid CGWindowID numbers of other Chrome windows. If a collision occurs, the browser can bypass OS-level TCC permission checks and capture an unrelated Chrome window via the internal viz FrameSink path.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 13 days

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: On macOS, the lack of an is_source_list_delegated check in GetUpdatedWindowId allows sequential picker session IDs to collide with valid CGWindowID numbers of other Chrome windows. If a collision occurs, the browser can bypass OS-level TCC permission checks and capture an unrelated Chrome window (such as from another profile or incognito session) via the internal viz FrameSink path. This could allow an attacker to obtain a live stream of unauthorized windows.

Affected files:

  • chrome/browser/media/webrtc/native_desktop_media_list.cc
  • content/browser/media/capture/native_screen_capture_picker_mac.mm
  • content/browser/renderer_host/media/in_process_video_capture_device_launcher.cc
  • content/browser/media/capture/views_widget_video_capture_device_mac.cc
  • chrome/browser/media/webrtc/display_media_access_handler.cc

Estimated timestamp from git blame: 2024-08-15

Description

Root Cause

In chrome/browser/media/webrtc/native_desktop_media_list.cc, GetUpdatedWindowId() determines if a DesktopMediaID.id maps to one of Chrome's own windows to leverage the viz FrameSink fast-path. Because delegated-source-list capturers emit IDs from a sequential namespace (such as picker session counters), these sequential IDs can collide with real platform window IDs. To prevent type confusion, an is_source_list_delegated guard is implemented.

While the USE_AURA branch is gated properly by this check, the BUILDFLAG(IS_MAC) branch is not:

C++
#if defined(USE_AURA)
  if (!is_source_list_delegated) {
    DesktopMediaID::Id search_id = desktop_media_id.id;
    ...
  }
#elif BUILDFLAG(IS_MAC)
  if (remote_cocoa::ScopedCGWindowID::Get(desktop_media_id.id)) {   // LACKS is_source_list_delegated check
    window_id = desktop_media_id.id;
  }
#endif

When kUseSCContentSharingPicker is active on macOS 14/15+, delegated picker session IDs are generated as sequential integers representing active picker source IDs:

C++
// content/browser/media/capture/native_screen_capture_picker_mac.mm
active_picker_source_id_++;        // Increments per Open()
...
source.id = session_id;            // Assigns active_picker_source_id_
std::move(picker_callback_).Run(source);

At the same time, ScopedCGWindowID tracks all active Chrome windows globally. Because macOS CGWindowID numbers are low sequential integers, they can overlap with values from the picker session counter.

On collision, the lack of the is_source_list_delegated guard causes GetUpdatedWindowId() to find a hit via ScopedCGWindowID::Get(desktop_media_id.id) and overwrite window_id with this value. This converts a delegated picker source ID into a valid internal Chromium window_id at the picker UI layer.

Potential Impact & Bypasses

  1. TCC Bypass: In DisplayMediaAccessHandler::OnPickerDialogResults(), the presence of a non-null window_id causes Chrome to skip the system-level screen-capture permission check (TCC), assuming internal capture of an owned window is safe.
  2. Launcher Short-Circuit: During device launch in InProcessVideoCaptureDeviceLauncher::LaunchDeviceAsync(), the launcher finds desktop_id.window_id != DesktopMediaID::kNullId and routes the capture directly to the internal viz FrameSink path (ViewsWidgetVideoCaptureDeviceMac), completely bypassing the ScreenCaptureKit capture path and its safety checks.

Potential Steps to Reproduce

Note: These steps are theoretical, as our tooling has not executed a working proof of concept.

  1. Run Chrome on macOS 14+ with kUseSCContentSharingPicker active.
  2. Open multiple Chrome windows (such as an Incognito window or a window in another user profile) to register valid windows in the ScopedCGWindowID map.
  3. From an attacker-controlled page, call getDisplayMedia() repeatedly to increment active_picker_source_id_ close to the CGWindowID of one of the target windows.
  4. Once a collision is reached, have the user select any innocuous window from the macOS native picker interface.
  5. Verify if the resulting stream captures the contents of the unrelated target Chrome window rather than the user-selected window.

Suggested Fix

To prevent this type confusion, gate the macOS lookup branch in GetUpdatedWindowId() with the !is_source_list_delegated check, aligning it with the Aura implementation:

C++
#elif BUILDFLAG(IS_MAC)
  if (!is_source_list_delegated && remote_cocoa::ScopedCGWindowID::Get(desktop_media_id.id)) {
    window_id = desktop_media_id.id;
  }
#endif

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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

The macOS branch of GetUpdatedWindowId lacks the is_source_list_delegated guard that the Aura branch has, so delegated picker session IDs can be mistaken for real CGWindowID values.

Impact

This could allow an attacker to obtain a live stream of unauthorized windows, bypassing OS-level TCC permission checks, but the report notes the steps are theoretical and no working proof of concept was executed.

What the attacker needed

MacOS 14+; kUseSCContentSharingPicker active; multiple Chrome windows open; attacker-controlled page

The fix

The macOS lookup branch in GetUpdatedWindowId should be gated with the !is_source_list_delegated check, aligning it with the Aura implementation.

How it was found

  1. Run Chrome on macOS 14+ with kUseSCContentSharingPicker active.
  2. Open multiple Chrome windows (such as an Incognito window or a window in another user profile) to register valid windows in the ScopedCGWindowID map.
  3. From an attacker-controlled page, call getDisplayMedia() repeatedly to increment active_picker_source_id_ close to the CGWindowID of one of the target windows.
  4. Once a collision is reached, have the user select any innocuous window from the macOS native picker interface.
  5. Verify if the resulting stream captures the contents of the unrelated target Chrome window rather than the user-selected window.

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.

This report describes a bug in Chrome on macOS where a number used to identify a screen-sharing picker session can accidentally match the number of a different Chrome window. If that happens, Chrome may think it is capturing its own window and skip the normal macOS permission prompt, potentially letting a website see the contents of another window. The report is theoretical and no working proof of concept was executed.

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.