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

Incorrect authorization in GetUserMedia (CVE-2026-79134)

A logic flaw in Chrome's VideoCaptureManager allows a website with previously granted camera permission to start video capture while the OS screen is locked, because the internal lock state flag can become null. An attacker could silently activate the camera and receive a live video feed while the device is locked.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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: A logic flaw in VideoCaptureManager allows websites with previously granted camera permissions to start video capture while the OS screen is locked. This occurs because the internal flag tracking the screen lock state is improperly managed and can become null during a lock, bypassing the privacy protection designed to prevent background surveillance.

Affected files:

  • content/browser/renderer_host/media/video_capture_manager.cc

Estimated timestamp from git blame: 2021-07-02

Description

Chrome implements a privacy mitigation designed to prevent websites from recording video via the camera while the OS screen is locked. On desktop platforms, when the screen locks, VideoCaptureManager::OnScreenLocked is called to enforce this by eventually releasing active devices and blocking new capture requests.

However, there is a logic flaw in how VideoCaptureManager (in content/browser/renderer_host/media/video_capture_manager.cc) tracks the screen lock state via the lock_time_ member:

  1. Failure to initialize state: In VideoCaptureManager::OnScreenLocked, lock_time_ is only set if there are currently active device capture sessions (!locked_sessions_.empty()). If no cameras are in use when the screen is locked, lock_time_ remains null, meaning VideoCaptureManager fails to record that the screen is locked.
  2. Premature state clearance: In VideoCaptureManager::Close, if a session that was active when the screen locked is subsequently closed, it is removed from locked_sessions_. If locked_sessions_ becomes empty, the code immediately clears lock_time_ (setting it to null), even though the physical screen remains locked.

Because VideoCaptureManager::ConnectClient relies exclusively on lock_time_.is_null() to determine if it should block a new device start request, an attacker can bypass the protection and silently activate the physical camera while the device is secured.

Note: These steps are based on static analysis of the codebase, as our tooling cannot currently execute a live Proof of Concept.

Potential Exploit Steps

  1. An attacker controls a website that the victim has previously granted camera permissions to.
  2. The website leaves a background tab or window open, running an asynchronous JavaScript timer or waiting for a WebSocket message.
  3. The victim locks their OS screen.
  4. Depending on the state, the vulnerability manifests via one of two paths:
    • Path A: If the website had no active camera streams when the screen locked, lock_time_ remains null (bypassing the lock state entirely).
    • Path B: If the website had an active stream, it intentionally stops the track (track.stop()) shortly after the screen locks. This triggers VideoCaptureManager::Close, which empties locked_sessions_ and prematurely clears lock_time_ to null.
  5. While the screen is still securely locked, the background website calls navigator.mediaDevices.getUserMedia({video: true}).
  6. Because the site has permission, the request routes to the browser process and hits VideoCaptureManager::ConnectClient.
  7. ConnectClient checks lock_time_.is_null(). Because the value is null, the check passes, and QueueStartDevice is called.
  8. The physical camera powers on, and the attacker receives a live video feed of the victim's environment. The 15-second timeout (idle_close_timer_) is never started, so recording continues indefinitely.

Suggested Fix

The screen lock state should accurately and independently track the OS state, rather than being coupled to the presence of active sessions.

  1. Introduce a dedicated boolean (e.g., is_screen_locked_) that is set to true unconditionally in OnScreenLocked() and false in OnScreenUnlocked().
  2. Update VideoCaptureManager::ConnectClient() to check is_screen_locked_ instead of lock_time_.is_null() to block new device starts.
  3. lock_time_ and locked_sessions_ should only be used to manage the 15-second grace period (idle_close_timer_) for devices that were already running when the lock occurred.

Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff


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 screen lock state is tracked by a timestamp that is only set when a camera is already in use and is cleared when the last locked session closes, so it does not reliably reflect whether the screen is locked.

Impact

A website with existing camera permission could start video capture while the OS screen is locked and continue recording indefinitely, but the report is based on static analysis and no live proof of concept was executed.

What the attacker needed

Victim has previously granted camera permission; attacker controls a website; victim locks OS screen; background tab or window remains open

The fix

The screen lock state should be tracked by a dedicated boolean set unconditionally on lock and unlock, and ConnectClient should check that boolean instead of lock_time_.is_null().

How it was found

  1. An attacker controls a website that the victim has previously granted camera permissions to.
  2. The website leaves a background tab or window open, running an asynchronous JavaScript timer or waiting for a WebSocket message.
  3. The victim locks their OS screen.
  4. Depending on the state, the vulnerability manifests via one of two paths: Path A: If the website had no active camera streams when the screen locked, lock_time_ remains null (bypassing the lock state entirely). Path B: If the website had…
  5. While the screen is still securely locked, the background website calls navigator.mediaDevices.getUserMedia({video: true}).
  6. Because the site has permission, the request routes to the browser process and hits VideoCaptureManager::ConnectClient.

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.

Chrome tries to stop websites from using your camera when your computer screen is locked. This report found a mistake in how Chrome remembers that the screen is locked, so a website you already gave camera permission to could turn on your camera even while the screen is locked. The report is based on reading the code, not on actually testing it.

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.