Observable discrepancy in Animation (CVE-2026-106180)
The legacy prefixed webkitRequestAnimationFrame API passes uncoarsened high-resolution timestamps to JavaScript callbacks, bypassing the TimeClamper that limits standard requestAnimationFrame to 100 microseconds. This could expose a timing side-channel within the renderer process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The legacy vendor-prefixed window.webkitRequestAnimationFrame API delivers uncoarsened, high-resolution timestamps to JavaScript callbacks. This bypasses the standard TimeClamper resolution coarsening (which limits standard requestAnimationFrame to 100 microseconds). Consequently, this exposes a potential side-channel timing mechanism within the renderer process.
Affected files:
third_party/blink/renderer/core/page/page_animator.ccthird_party/blink/renderer/core/dom/frame_request_callback_collection.ccthird_party/blink/renderer/core/loader/document_load_timing.cc
Estimated timestamp from git blame: 2023-10-25
Root Cause Analysis
In PageAnimator::ServiceScriptedAnimations (third_party/blink/renderer/core/page/page_animator.cc), two frame timestamps are computed. The standard, non-prefixed requestAnimationFrame path is explicitly coarsened via TimeClamper (typically to 100 microseconds) to mitigate high-resolution timer leaks (a core defense-in-depth mitigation against microarchitectural timing attacks like Spectre).
However, the legacy prefixed webkitRequestAnimationFrame path does not apply clamping or quantization before passing the timestamp to the callback. Specifically, in third_party/blink/renderer/core/page/page_animator.cc:
controller->SetCurrentFrameLegacyTimeMs(
loader->GetTiming()
.MonotonicTimeToPseudoWallTime(monotonic_time_now)
.InMillisecondsF());
MonotonicTimeToPseudoWallTime calculates the time using a constant offset captured at navigation start without any quantization or clamping:
base::TimeDelta DocumentLoadTiming::MonotonicTimeToPseudoWallTime(
base::TimeTicks monotonic_time) const {
if (monotonic_time.is_null() || reference_monotonic_time_.is_null())
return base::TimeDelta();
return monotonic_time + reference_wall_time_ - reference_monotonic_time_;
}
Because reference_wall_time_ and reference_monotonic_time_ are constants captured raw at navigation start, the output preserves the full sub-millisecond precision (up to 1-microsecond resolution on most platforms) of base::TimeTicks (shifted by a constant offset).
Potential Trigger Path
Because our automated analysis tools do not have the capability to execute code, the following is a potential/suggested trigger sequence based on a static analysis of the codebase:
-
Web content registers a frame callback using the exposed legacy API:
JavaScript window.webkitRequestAnimationFrame(callback); -
In
LocalDOMWindow::webkitRequestAnimationFrame, the callback is registered with the legacy flag set to true (frame_callback->SetUseLegacyTimeBase(true)). -
During the next frame,
PageAnimator::ServiceScriptedAnimationscalculates the uncoarsened pseudo-wall-time and stores it incurrent_frame_legacy_time_ms_on theScriptedAnimationController. -
In
FrameRequestCallbackCollection::ExecuteFrameCallbacks(third_party/blink/renderer/core/dom/frame_request_callback_collection.cc), the collection checks the legacy flag and passes the raw uncoarsened timestamp straight to JavaScript:C++ if (callback->GetUseLegacyTimeBase()) callback->Invoke(high_res_now_ms_legacy); // Uncoarsened legacy timestamp else callback->Invoke(high_res_now_ms); // Clamped/coarsened timestamp
This behavior potentially allows a page to recover the main-thread frame ticks with sub-millisecond precision, bypassing the intended TimeClamper constraints.
Suggested Fix
Apply time-coarsening / clamping to the legacy timing base similarly to the standard timeline path. In PageAnimator::ServiceScriptedAnimations, clamp monotonic_time_now before passing it to MonotonicTimeToPseudoWallTime, or align current_frame_legacy_time_ms_ with the clamped current_frame_time_ms_ if the legacy offset is not strictly required. Alternatively, deprecate and completely phase out the legacy webkitRequestAnimationFrame API.
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.
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 legacy webkitRequestAnimationFrame path does not apply the TimeClamper coarsening that the standard requestAnimationFrame path uses, so it passes raw sub-millisecond timestamps to JavaScript.
Impact
A page could recover main-thread frame ticks with sub-millisecond precision, potentially enabling a timing side-channel, though the report is based on static analysis and does not demonstrate an exploit.
What the attacker needed
Victim visits a malicious page; browser supports webkitRequestAnimationFrame
The fix
The legacy timing base should be clamped or coarsened like the standard path, or the legacy API should be deprecated and phased out.
How it was found
- Web content registers a frame callback using window.webkitRequestAnimationFrame.
- The callback is registered with the legacy flag set to true.
- During the next frame, PageAnimator::ServiceScriptedAnimations calculates the uncoarsened pseudo-wall-time.
- FrameRequestCallbackCollection::ExecuteFrameCallbacks checks the legacy flag and passes the raw uncoarsened timestamp to JavaScript.
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.
Browsers normally reduce the precision of timers that web pages can read, so that attackers cannot use tiny timing differences to spy on other parts of the system. This report says an old, prefixed animation function still gives out full-precision timestamps, which could let a page measure very small time gaps. The report is based on reading the code, not on running an exploit.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.