Incorrect authorization in Accessibility (CVE-2026-106403)
The Chrome automation extension generated accessibility action request IDs with Math.random(), a predictable generator, and stored callbacks in one global map without checking which tree a result came from. A compromised renderer could observe IDs over Mojo, predict future ones, and forge accessibility events to hijack callbacks meant for other trees such as the desktop or another tab.
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 Chrome automation extension uses Math.random() to generate request IDs for accessibility actions. A compromised renderer can observe these IDs via Mojo, predict future IDs, and forge accessibility events to hijack action callbacks intended for other origins or the desktop tree.
Affected files:
extensions/renderer/resources/automation/automation_node.js
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A potential vulnerability in the Chrome automation API allows a compromised renderer to perform cross-tree callback hijacking. The automation extension uses Math.random() to generate requestID values for tracking the results of accessibility actions. These IDs are sent to renderers via Mojo IPC. Because Math.random() is mathematically predictable, a compromised renderer can recover the PRNG state and predict future request IDs. Combined with a globally shared callback map that lacks origin verification, an attacker can intercept and resolve callbacks intended for other accessibility trees (e.g., the desktop tree or other tabs).
Technical Details
- Insecure ID Generation: In
extensions/renderer/resources/automation/automation_node.js, theaddActionResultCallbackfunction generates request IDs usingMath.random():
// Line 1970
requestID = Math.floor(Math.random() * INT32_MAX);
V8's Math.random() implementation is a non-cryptographic PRNG. Its internal state can be reconstructed after observing a small number of consecutive outputs.
-
Information Leak via Mojo: Request IDs are passed to renderer processes through the
RenderAccessibilityMojo interface (third_party/blink/public/mojom/render_accessibility.mojom), for example, via therequest_idparameter inHitTestor withinAXActionDataforPerformAction. A compromised renderer can observe these values and recover the extension V8 context's PRNG state. -
Cross-Tree Hijacking: The
actionRequestIDToCallbackmap inautomation_node.js(line 1760) is shared globally across all accessibility tree instances. When a forged accessibility event arrives with a predictedactionRequestID, theonActionResulthandler (line 2002) performs a lookup in this global map using only therequestIDas the key. There is no check to ensure that the event originated from the same tree that initiated the request.
Potential Attack Scenario
(Note: These are suggested steps; our tooling has not executed a live proof of concept.)
- An attacker compromises a renderer process hosting their website.
- The user has an accessibility extension active (e.g., ChromeVox on ChromeOS).
- The extension performs normal actions on the compromised renderer's accessibility tree, exposing several
request_idvalues via Mojo. - The attacker uses these values to reconstruct the extension's V8
Math.random()state and predicts the next sequence ofrequestIDs. - The extension performs a sensitive action (e.g., a hit test) on a privileged tree (like the desktop or another tab).
- The attacker forges an
ax.mojom.AXUpdatesAndEventsMojo message containing anax.mojom.AXEventwith the predictedaction_request_idand atargetIDfrom their own controlled tree. - The event is routed through the browser to the extension, which looks up the predicted ID in the global
actionRequestIDToCallbackmap. - The extension invokes the victim callback with the attacker's spoofed node, allowing the attacker to spoof UI content or intercept screen reader interactions.
Recommendation
Request IDs should be generated using a cryptographically secure PRNG. Replace Math.random() with crypto.getRandomValues() in automation_node.js:
const buf = new Uint32Array(1);
crypto.getRandomValues(buf);
requestID = buf[0] & 0x7FFFFFFF;
Evaluated with Chrome root at commit: 65b3256311f3ab6fb9870eaa522de7e6dd2663bb
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
Likely the combination of a non-cryptographic PRNG for request IDs and a single global callback map keyed only by request ID, with no check that the result came from the tree that made the request.
Impact
An attacker who already controls a renderer could spoof UI content or intercept screen reader interactions for other trees, though the scenario is described as suggested and not executed as a live proof of concept.
What the attacker needed
Attacker controls a renderer process; an accessibility extension is active; extension acts on the attacker's tree first
The fix
Request IDs should be generated with a cryptographically secure random generator such as crypto.getRandomValues() instead of Math.random().
How it was found
- Compromise a renderer process hosting the attacker's website.
- Have an accessibility extension active while it performs normal actions on the compromised renderer's tree, exposing request IDs via Mojo.
- Reconstruct the extension's Math.random() state from those values and predict the next request IDs.
- Wait for the extension to perform a sensitive action on a privileged tree such as the desktop or another tab.
- Forge an accessibility update message carrying the predicted request ID and a node from the attacker's own tree.
- The extension looks up the predicted ID in the global map and calls the victim callback with the attacker's spoofed node.
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.
Some code needs random-looking numbers, for example to label a request so the reply can be matched to it. Math.random() only looks random: if you watch a few of its outputs you can work out what it will produce next. Here the labels were also stored in one shared list with no note of which page asked, so a malicious page could guess a label and answer someone else's request.
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.