Skip to content
Info disclosure Advisory Advanced CVE-2026-17800

Side-channel information leakage in MediaRecording (CVE-2026-17800)

The MediaRecorder API exposes an uncoarsened high-precision timecode through BlobEvent, allowing an attacker to build a fine-grained timer by calling requestData synchronously. This timer could be used as a primitive for microarchitectural timing side-channel attacks such as Spectre.

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 MediaRecorder API exposes a high-precision timecode attribute via BlobEvent without applying the standard security coarsening mandated for the web platform. This allows an attacker to construct a high-resolution timer by invoking requestData() synchronously, bypassing anti-Spectre mitigations designed to limit clock resolution. The raw microsecond-precision values can be abused as a primitive for microarchitectural timing side-channel attacks.

Affected files:

  • third_party/blink/renderer/modules/mediarecorder/media_recorder.cc

Estimated timestamp from git blame: 2024-10-01

Vulnerability Details

Standard web platform security policy dictates that exposed timestamps (like DOMHighResTimeStamp) must be artificially coarsened (typically to 100µs, or 5µs in cross-origin isolated contexts) and jittered. This is implemented in Blink via Performance::MonotonicTimeToDOMHighResTimeStamp and ClampTimeResolution to prevent fine-grained timing measurements required for attacks like Spectre.

The MediaRecorder API violates this policy by exposing uncoarsened base::TimeTicks data through the BlobEvent.timecode attribute. When a recording is active, the MediaRecorder::CreateBlobEvent function samples the system clock using base::TimeTicks::Now() and computes the elapsed duration as a raw double via .InMillisecondsF().

C++
// third_party/blink/renderer/modules/mediarecorder/media_recorder.cc
void MediaRecorder::CreateBlobEvent(Blob* blob) {
  const base::TimeTicks now = base::TimeTicks::Now();
  double timecode = 0;
  if (!blob_event_first_chunk_timecode_.has_value()) {
    blob_event_first_chunk_timecode_ = now;
  } else {
    timecode =
        (now - blob_event_first_chunk_timecode_.value()).InMillisecondsF();
  }

  ScheduleDispatchEvent(MakeGarbageCollected<BlobEvent>(
      event_type_names::kDataavailable, blob, timecode));
}

Because the MediaRecorder::requestData() API executes synchronously through to CreateBlobEvent, an attacker can trigger deterministic, on-demand clock reads without yielding to the event loop. This effectively provides a reliable, microsecond-accurate stopwatch in JavaScript.

Potential Exploitation Steps

(Note: These are potential steps based on static analysis. We do not currently have a running PoC for this issue.)

  1. An attacker silently creates a synthetic media stream via const stream = document.createElement('canvas').captureStream();.
  2. The attacker instantiates a MediaRecorder with the stream and calls recorder.start().
  3. The attacker calls recorder.requestData(). This synchronously flushes buffers and calls CreateBlobEvent, setting the blob_event_first_chunk_timecode_ baseline using TimeTicks::Now().
  4. The attacker immediately executes their microarchitectural target operation (e.g., executing a Spectre gadget or timing a cache access).
  5. The attacker immediately calls recorder.requestData() a second time. This synchronously captures a second TimeTicks::Now() snapshot immediately after the sensitive operation.
  6. The browser dispatches two dataavailable events to the JavaScript context. The attacker reads the timecode attribute from the second BlobEvent to retrieve the uncoarsened microsecond-precision measurement of their operation, successfully bypassing the standard time clamp.

Suggested Fix

Ensure that the timecode generated in MediaRecorder::CreateBlobEvent is properly clamped using the execution context's Performance interface before exposing it to the DOM. Alternatively, do not expose a relative timecode at all, or route the calculation through Performance::MonotonicTimeToDOMHighResTimeStamp().

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.

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 MediaRecorder code computes the BlobEvent timecode directly from raw system clock ticks without passing it through the platform's standard time-coarsening function.

Impact

An attacker could obtain a high-resolution timer that bypasses anti-Spectre clock coarsening, which may enable microarchitectural timing side-channel attacks; the report notes no running proof of concept exists yet.

What the attacker needed

Victim visits attacker-controlled page; browser supports MediaRecorder and canvas captureStream; attacker can run JavaScript in the page

The fix

The timecode should be clamped through the execution context's Performance interface, or the relative timecode should not be exposed at all.

How it was found

  1. Create a synthetic media stream from a canvas.
  2. Instantiate a MediaRecorder with that stream and start recording.
  3. Call requestData to synchronously set the first timecode baseline.
  4. Run the target operation that needs to be timed.
  5. Call requestData again to capture a second timestamp.
  6. Read the timecode from the second dataavailable event to obtain the elapsed time.

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.

Web browsers deliberately make their JavaScript timers less precise so that attackers cannot measure tiny differences in how long operations take. Those tiny differences can leak secret data through side channels, a class of attack where timing or other indirect signals reveal information. Here, a media recording feature returned a very precise timestamp, giving attackers a stopwatch that is more accurate than the browser normally allows.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.