Missing authorization in Animation (CVE-2026-106365)
The experimental EventTrigger API allows attaching native event listeners to cross-origin WindowProxy objects without Same-Origin Policy checks, creating a side channel to observe timing of sensitive events like keystrokes in cross-origin same-process frames. An attacker could use this to leak information via a high-resolution timing oracle.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: The experimental EventTrigger API allows attaching native event listeners to cross-origin WindowProxy objects without Same-Origin Policy (SOP) checks. This creates a side channel where an attacker can observe the precise timing of sensitive events (like keystrokes) on cross-origin same-process frames. This constitutes a potential cross-origin information leak (XS-Leak).
Affected files:
third_party/blink/renderer/core/animation/event_trigger.ccthird_party/blink/renderer/core/animation/event_trigger_options.idlthird_party/blink/renderer/core/animation/animation_trigger.cc
Estimated timestamp from git blame: 2025-10-10
Description
There is a potential Same-Origin Policy (SOP) bypass in the experimental Web Animations EventTrigger API (currently behind the --enable-experimental-web-platform-features flag). The vulnerability allows a malicious page to observe the timing of events (e.g., keydown, focus) occurring within a cross-origin iframe that shares the same renderer process.
Technical Details
- Dictionary Unwrapping: The
EventTriggerOptionsdictionary expects anEventTarget. If an attacker passes a cross-originWindowProxy(e.g.,window.frames[0]), the V8 bindings convert this usingNativeValueTraits<EventTarget>::NativeValue. BecauseWindowinherits fromEventTarget, the cross-originWindowProxypasses the structural type check (HasInstance) and is successfully unwrapped into a C++LocalDOMWindow*pointer. Crucially, dictionary unwrapping does not perform cross-origin access checks. - Direct C++ Listener Registration: The unwrapped
LocalDOMWindow*is passed toEventTrigger::Createand stored. When an animation is added,EventTrigger::DidAddAnimationcreates a C++NativeEventListener(TriggerEventListener) and registers it by callingevent_target_->addEventListener(...)directly in C++. - Bypassing Security Interceptors: This direct C++ call bypasses the V8
[CrossOrigin]interceptors that normally block JavaScript from callingwindow.addEventListener()on cross-origin windows. Furthermore, when the event fires,TriggerEventListener(being a native listener) does not perform the origin validation checks that aJSBasedEventListenerwould normally perform before invocation.
As a result, the attacker's animation state is synchronously modified whenever the targeted event occurs in the cross-origin window.
Potential Exploitation Steps
Note: These are suggested steps based on static analysis, as our tooling cannot currently execute code to provide a working proof of concept.
- An attacker hosts a page and embeds a victim site in an
iframe(e.g., a same-site, cross-origin frame on Desktop, or a cross-origin frame on Android where strict site isolation might be relaxed). - The attacker uses JavaScript to instantiate a trigger:
let trigger = new EventTrigger({ eventType: 'keydown', eventTarget: window.frames[0] }); - The attacker creates a dummy Web Animation and attaches it:
trigger.addAnimation(anim, 'play', 'none'); - As the user interacts with the victim iframe (e.g., typing a password), the native
keydownevents fire. - The
TriggerEventListenercatches these events and updates the attacker's animation state (e.g., changing it from 'paused' to 'running'). - The attacker uses
requestAnimationFrameto poll the animation'splayState, recording the exact timing of each keystroke to create a high-resolution timing oracle (XS-Leak).
Suggested Fix
Add an explicit security check before registering the event listener or when creating the EventTrigger.
For example, in EventTrigger::Create or EventTrigger::DidAddAnimation, verify that the current execution context has permission to access the event_target_. This can be done by checking if the target is a DOMWindow and utilizing BindingSecurity::ShouldAllowAccessTo to enforce the Same-Origin Policy before allowing the trigger to be constructed or the listener to be attached.
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
Results from 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.
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 EventTrigger API's dictionary unwrapping and direct C++ listener registration bypass the cross-origin access checks that normally prevent JavaScript from adding event listeners to cross-origin windows.
Impact
An attacker could observe the precise timing of sensitive events like keystrokes on cross-origin same-process frames, potentially leaking information such as passwords, but the exploit requires the experimental flag to be enabled and may be limited by site isolation.
What the attacker needed
Experimental flag enabled; victim site embedded in iframe; same renderer process; user interacts with iframe
The fix
The fix should add an explicit security check, such as using BindingSecurity::ShouldAllowAccessTo, before registering the event listener or creating the EventTrigger.
How it was found
- An attacker hosts a page and embeds a victim site in an iframe.
- The attacker uses JavaScript to instantiate a trigger with the cross-origin window as the event target.
- The attacker creates a dummy Web Animation and attaches it to the trigger.
- As the user interacts with the victim iframe, native keydown events fire.
- The TriggerEventListener catches these events and updates the attacker's animation state.
- The attacker uses requestAnimationFrame to poll the animation's playState, recording the exact timing of each keystroke.
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.
Websites are normally not allowed to read or interact with content from other websites (this is the Same-Origin Policy). This report found a bug in an experimental browser feature that let a malicious website listen to events (like key presses) happening inside another website embedded in an iframe, by bypassing that policy. The attacker could then measure the timing of those events to guess what the user is typing.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.