Insufficient policy enforcement in WebXR (CVE-2026-13910)
A logic flaw in WebXR DOM Overlay hit testing lets a malicious subframe bypass cross-origin input suppression. An attacker could receive select events and pointer poses over embedded third-party content, leaking interaction data.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential logic flaw in WebXR DOM Overlay hit testing allows a malicious subframe to bypass cross-origin input suppression. The implementation fails to suppress events for Out-of-Process Iframes (OOPIFs) and incorrectly compares origins against the outermost main frame instead of the XR session's origin. This could allow an attacker to sniff pointer coordinates and interactions over embedded third-party content.
Affected files:
third_party/blink/renderer/modules/xr/xr_input_source.ccthird_party/blink/renderer/modules/xr/xr_session.cc
Estimated timestamp from git blame: 2022-04-22
Description
The WebXR DOM Overlay specification requires that when a user's pointer intersects with cross-origin content relative to the XR session's document, controller poses and select events must be suppressed. This prevents a site from sniffing user input (e.g., precise pointer positions or click timing) over embedded third-party content.
There is a potential vulnerability in XRInputSource::ProcessOverlayHitTest() (third_party/blink/renderer/modules/xr/xr_input_source.cc) where the cross-origin detection logic fails in two scenarios, allowing input events to be leaked to the WebXR session owner.
1. OOPIF Bypass (Failing Open on Null Document) When the hit test intersects an iframe, the code attempts to retrieve its document:
HTMLFrameElementBase* frame = DynamicTo<HTMLFrameElementBase>(hit_element);
if (frame) {
Document* hit_document = frame->contentDocument();
if (hit_document) {
// ... suppression logic ...
}
}
// Visibility defaults to true if we fall through
state_.is_visible = true;
For Out-of-Process Iframes (OOPIFs), the internal frame representation is a RemoteFrame. Because HTMLFrameOwnerElement::contentDocument() attempts to cast the frame to a LocalFrame, it returns nullptr for OOPIFs. The if (hit_document) check fails, the suppression logic is skipped, and the input source remains visible.
2. Incorrect Reference Origin Check
If the hit frame is same-process, the code evaluates hit_frame->IsCrossOriginToOutermostMainFrame(). This compares the hit frame's origin against the top-level outermost main frame, which is incorrect. If the WebXR session is running in a subframe (Origin B) embedded by a top-level document (Origin A), the attacker at Origin B can embed Origin A content in their overlay. The check will compare Origin A to Origin A, return false, and fail to suppress the input, even though Origin A is cross-origin to the XR session owner (Origin B).
Potential Reproduction Steps
Note: These are suggested steps for reproduction as our analysis tooling does not execute code to verify a live proof of concept.
- A benign top-level site (
https://host.example) embeds an attacker subframe (https://attacker.example) and delegates WebXR permissions:<iframe src="..." allow="xr-spatial-tracking; fullscreen">. - The attacker frame requests an
immersive-arsession with thedom-overlayfeature enabled. - Inside the attacker's DOM overlay root, they embed a sensitive cross-origin iframe. This could be an OOPIF (
https://sensitive.example) or the top-level host (https://host.example/sensitive). - The user physically taps or interacts with the area over the embedded iframe during the AR session.
- Because of the logic flaws described above, the attacker frame successfully receives
selectevents and non-nulltargetRaySpaceposes corresponding to the user's interaction with the cross-origin content.
Suggested Fix
- Handle RemoteFrames: Modify the logic to recognize
RemoteFrameintersections. If aRemoteFrameis hit, it is inherently cross-process (and thus cross-origin), so input events should be suppressed immediately without requiring acontentDocument(). - Correct Origin Comparison: Instead of checking
IsCrossOriginToOutermostMainFrame(), the hit frame's security origin should be compared against the security origin of theExecutionContext(theDocument) that owns theXRSession.
Evaluated with Chrome root at commit: a1e33f5848218e21d4a16ae2c1bc94e815c30c7f
Results 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 code fails to suppress input for out-of-process iframes because their document is null, and it compares origins against the outermost main frame instead of the XR session's own document.
Impact
An attacker could sniff pointer coordinates and interactions over embedded third-party content, but the report notes the reproduction steps are suggested and not verified with a live proof of concept.
What the attacker needed
Victim uses a WebXR AR session; attacker controls a subframe with delegated XR; victim taps over embedded cross-origin content
The fix
The logic should recognise RemoteFrame intersections and suppress input immediately, and compare the hit frame's origin against the XR session's own document origin.
How it was found
- A benign top-level site embeds an attacker subframe and delegates WebXR permissions.
- The attacker frame requests an immersive-ar session with the dom-overlay feature enabled.
- Inside the attacker's DOM overlay root, they embed a sensitive cross-origin iframe.
- The user physically taps or interacts with the area over the embedded iframe during the AR session.
- The attacker frame receives select events and non-null targetRaySpace poses for the interaction.
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.
WebXR lets websites show augmented reality overlays. When a user taps on content from another website inside that overlay, the browser is supposed to hide the tap details from the site running the AR session. This report found two coding mistakes that let the site see those taps anyway.
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.