Incorrect authorization in WebXR (CVE-2026-79258)
The WebXR DOM Overlay hit test only recognised iframe and frame elements as cross-origin embedders, so an attacker could embed a victim site with an object, embed or fencedframe tag and the cross-origin suppression was skipped. The attacker could then read the high-precision AR pointer pose and select events while the user interacted with the embedded page, allowing tap coordinates over the victim UI to be reconstructed.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The WebXR DOM Overlay cross-origin input suppression is bypassed when a victim site is embedded using <object>, <embed>, or <fencedframe>. A dynamic cast to HTMLFrameElementBase during hit testing fails for these elements, skipping the cross-origin check and exposing the user's high-precision AR pointer pose and click events to the attacker.
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: Unknown (Google3 checkout)
1. Summary of the Issue (Meant for Human Triage)
A potential security vulnerability exists in the WebXR DOM Overlay implementation in Chromium. To prevent information leaks, the WebXR DOM Overlay specification mandates that when a user's controller/hand pointer ray intersects cross-origin content (such as an embedded iframe), the input source must be made invisible to the embedding (attacker) page. This prevents the parent page from tracking the high-precision 6-DoF pointing pose or sniffing interaction timing, which could otherwise be used for keylogging or click-jacking attacks against the embedded victim page.
In XRInputSource::ProcessOverlayHitTest, the code attempts to enforce this by performing a hit test against the DOM and checking if the intersected element hosts cross-origin content. However, the logic relies on a dynamically downcasting the hit element to HTMLFrameElementBase.
While this base class covers standard <iframe> and <frame> tags, it completely misses other tags capable of hosting cross-origin content, such as <object>, <embed>, and <fencedframe>. Because these elements instead inherit directly from HTMLFrameOwnerElement (or via HTMLPlugInElement) and not from HTMLFrameElementBase, the cast returns nullptr. The code then assumes the hit was safe, skips the cross-origin subtree walk entirely, and falls through to set state_.is_visible = true.
As a result, if an attacker embeds a process-isolated target site using <object data="https://victim.example"> or <fencedframe src="https://victim.example"> inside a DOM Overlay, they can completely bypass the suppression. This leaks precise, per-frame target-ray/grip space poses and interaction events (select, beforexrselect) while the user is interacting with the embedded element, allowing the attacker to deduce exact tap coordinates over the victim UI. The primary shipping surface for this is Android Chrome via ARCore.
2. Suggested Proof-of-Concept & Detailed Execution Flow
The following steps trace how an attacker would potentially trigger this vulnerability, based on code analysis:
Prerequisites & Setup
-
Attacker Page Creation: The attacker creates a web page and defines a container element to serve as the DOM Overlay root (e.g.,
<div id="overlay-container">). -
Victim Embedding: Inside the container, the attacker embeds a process-isolated, cross-origin target site using an
<object>or<fencedframe>tag. For instance:<object id="target" data="https://victim.example/login"></object>. -
Session Request: The attacker's JavaScript requests an immersive AR WebXR session, specifying the DOM Overlay feature and providing the container element as the root:
JavaScript navigator.xr.requestSession('immersive-ar', { requiredFeatures: ['dom-overlay'], domOverlay: { root: document.getElementById('overlay-container') } }); -
User Consent: The user is prompted for AR permissions (a standard prompt for AR capabilities). The user accepts.
-
Frame Loop: The attacker registers a
requestAnimationFramecallback to continuously pollxrFrame.getPose()and adds event listeners forselectstart,select,selectend, andbeforexrselecton the overlay root or the embedded object.
Interaction & Event Generation
6. User Interaction: The user physically aligns their AR pointer ray (or touches the screen on ARCore-enabled mobile devices) such that it intersects the rendered <object> containing the cross-origin victim page.
7. Backend State Update: The OpenXR/ARCore backend registers the interaction and supplies the pointer's 2D coordinate via the overlay_pointer_position property.
8. Session Processing: On the next animation frame, XRSession::OnInputStateChangeInternal (third_party/blink/renderer/modules/xr/xr_session.cc:2511) receives the input state from the device backend.
9. Hit Test Invocation: Because DOM Overlay is enabled and an overlay_pointer_position exists, XRSession invokes input_source->ProcessOverlayHitTest(overlay_element_, input_state).
Hit Test Resolution
10. Hit Test Construction: Inside XRInputSource::ProcessOverlayHitTest (third_party/blink/renderer/modules/xr/xr_input_source.cc:502), the pointer position is converted into a gfx::PointF.
11. Hit Test Execution: A hit test is requested via event_handling_util::HitTestResultInFrame (line 510). Crucially, the request flags (HitTestRequest::kTouchEvent | HitTestRequest::kReadOnly | HitTestRequest::kActive) do not include kAllowChildFrameContent.
12. Layout Navigation: The hit test traverses the layout tree and reaches LayoutEmbeddedContent::NodeAtPoint (third_party/blink/renderer/core/layout/layout_embedded_content.cc:221), which handles HTMLObjectElement (LayoutEmbeddedObject) and HTMLFencedFrameElement (LayoutIFrame).
13. Skip Child Frame Contents: Because kAllowChildFrameContent was omitted, result.GetHitTestRequest().AllowsChildFrameContent() returns false (hit_test_request.h:95), causing skip_contents to evaluate to true (layout_embedded_content.cc:228).
14. Embedder Resolution: Consequently, NodeAtPoint bypasses the child frame's document and calls NodeAtPointOverEmbeddedContentView (layout_embedded_content.cc:234).
15. Inner Element Population: This delegates to LayoutReplaced::NodeAtPoint and subsequently LayoutObject::UpdateHitTestResult (layout_object.cc:4272), which retrieves the DOM node via GetNode() and populates the HitTestResult.
16. Return to ProcessOverlayHitTest: Back in xr_input_source.cc:515, result.InnerElement() successfully returns the embedder DOM element (the HTMLObjectElement or HTMLFencedFrameElement).
The Under-Broad Cast Bypass
17. Dynamic Cast Attempt: At xr_input_source.cc:525, the code attempts to determine if the hit element hosts cross-origin content by attempting a dynamic downcast:
cpp HTMLFrameElementBase* frame_element = DynamicTo<HTMLFrameElementBase>(hit_element);
18. Type Trait Evaluation: DynamicTo (casting.h:174) invokes IsA<HTMLFrameElementBase>(hit_element). Because HTMLFrameElementBase is a subclass of Element, it delegates to DowncastTraits<HTMLFrameElementBase>::AllowFrom (html_frame_element_base.h:94).
19. Tag Name Verification: The DowncastTraits specialization checks if the element's tag name is either kFrameTag (<frame>) or kIFrameTag (<iframe>).
20. Cast Failure: HTMLObjectElement has the tag name kObjectTag, and HTMLFencedFrameElement has kFencedframeTag. Because neither matches, AllowFrom returns false.
21. Inheritance Divergence: Architecturally, this happens because HTMLObjectElement inherits from HTMLPlugInElement -> HTMLFrameOwnerElement, and HTMLFencedFrameElement inherits directly from HTMLFrameOwnerElement. Neither descends from HTMLFrameElementBase.
22. Null Return: IsA fails, and DynamicTo evaluates to nullptr. frame_element is now nullptr.
Cross-Origin Logic Skipped
23. Security Check Bypassed: Because frame_element is null, the conditional block if (frame_element) (xr_input_source.cc:527) evaluates to false.
24. No Subtree Walk: The code completely skips the intended logic: it does not call ContentFrame() to retrieve the embedded document, does not walk the frame subtree, and does not check IsCrossOriginToOutermostMainFrame().
25. Visibility State Set: Execution falls through the if block to line 575:
cpp // If we get here, the touch didn't hit a cross origin frame. Set the // controller spaces visible. state_.is_visible = true;
The input source is marked visible, incorrectly assuming the pointer is not over cross-origin content.
Data Exfiltration
26. Pose Updating: Later in the frame update loop, XRInputSource::CreateOrUpdateFrom (xr_input_source.cc:85) checks state_.is_visible. Since it is true, it populates mojo_from_input_, input_from_pointer_, gamepad, and hand tracking data with the live, high-precision AR device poses.
27. API Return: In the attacker's requestAnimationFrame loop, their call to xrFrame.getPose(inputSource.targetRaySpace, refSpace) successfully retrieves the 6-DoF target ray transform.
28. Event Dispatch: Furthermore, XRInputSource::UpdateButtonStates() (xr_input_source.cc:437) evaluates state_.is_visible as true. It proceeds to dispatch selectstart, select, selectend, and beforexrselect events targeting the <object> or <fencedframe> element, which bubble up to the attacker's overlay root.
29. Tapjacking / Keylogging Achieved: By correlating the exact X/Y coordinate derived from the target ray pose with the timing of the select events and the known position of the <object> element, the attacker perfectly reconstructs the user's touch/pointer coordinates inside the victim's cross-origin UI (e.g., sniffing keystrokes on an embedded virtual keyboard).
Suggested Fix
Change the dynamic cast target in XRInputSource::ProcessOverlayHitTest from HTMLFrameElementBase to HTMLFrameOwnerElement. HTMLFrameOwnerElement is the common base class for <iframe>, <frame>, <object>, <embed>, and <fencedframe>. It defines the ContentFrame() accessor natively. This ensures all possible cross-origin embedding tags are captured and subjected to the origin subtree walk.
HTMLFrameOwnerElement* frame_element =
DynamicTo<HTMLFrameOwnerElement>(hit_element);
3. Technical Verification Details (Automated Audit Logs - Reviewers may skip this section)
The vulnerability report claims a WebXR DOM Overlay cross-origin input suppression bypass for out-of-process iframes (RemoteFrames). The report specifically asserts that this bypass occurs because
XRInputSource::ProcessOverlayHitTestusesHTMLFrameElementBase::contentDocument(), which returnsnullptrfor aRemoteFrame, causing the cross-origin check to be skipped.However, this specific issue does not exist in the current Chromium codebase. Inspecting
third_party/blink/renderer/modules/xr/xr_input_source.cc, the logic has already been fixed. The code now correctly usesframe_element->ContentFrame()instead ofcontentDocument(). Additionally, it explicitly walks the frame tree and checksif (node->IsRemoteFrame()) { is_cross_origin = true; break; }, which properly handles out-of-process iframes and enforces the cross-origin input suppression.Since the bug described in the report has already been patched and can no longer be triggered as described, this report is rated as Not Exploitable / Bug (S4).
(Zero-Day Aside: While the reported mechanism is fixed for
<frame>and<iframe>, the underlying security boundary remains broken for other cross-origin embedders. If an attacker uses an<object data="https://victim.example">or<fencedframe>tag, hit-testing resolves to anHTMLObjectElementorHTMLFencedFrameElement. Because these inherit directly fromHTMLFrameOwnerElementand notHTMLFrameElementBase,DynamicTo<HTMLFrameElementBase>(hit_element)returnsnullptr, completely skipping the cross-origin check and exposing the controller's pose and select events. Nonetheless, the provided report describes an outdated, patched codebase.)
Audit Trace Confirmation:
- The hit testing traversal was confirmed via tracing
event_handling_util::HitTestResultInFrame->LayoutEmbeddedContent::NodeAtPoint. The request flags explicitly omitkAllowChildFrameContentinxr_input_source.cc:506. Consequently,result.GetHitTestRequest().AllowsChildFrameContent()evaluates to false, causingskip_contentsto force traversal toNodeAtPointOverEmbeddedContentView, setting the returnedInnerElement()to the embedder node itself. - The class hierarchy was confirmed via the Blink code:
HTMLObjectElementinheritsHTMLPlugInElement->HTMLFrameOwnerElement->HTMLElement.HTMLFencedFrameElementinheritsHTMLFrameOwnerElement->HTMLElement. Neither class is a descendant ofHTMLFrameElementBase. - The behavior of
DynamicTo<HTMLFrameElementBase>was confirmed viathird_party/blink/renderer/platform/wtf/casting.h:174. The type trait check invokesDowncastTraits<HTMLFrameElementBase>::AllowFromdefined inhtml_frame_element_base.h:94-104, which explicitly relies onHasTagName(html_names::kFrameTag) || HasTagName(html_names::kIFrameTag). Since<object>and<fencedframe>do not match these tags, the cast evaluates tonullptr. - The consequence is confirmed in
xr_input_source.cc:575, wherestate_.is_visible = true;is executed via fall-through when the cast evaluates to null. - Environmental reachability: The feature
DOM_OVERLAYis active by default for AR sessions on Android/ARCore and does not require experimental flags, as verified againstxr_system.cc:178andxr_session.cc:2511.
Evaluated with Chrome root at commit: 8c517fbcbb533e59ec9cedac868c8a9bdc30beb2
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 hit test downcasts the hit element to HTMLFrameElementBase, which only matches iframe and frame tags, so other cross-origin embedders such as object, embed and fencedframe fall through and the input source is marked visible.
Impact
The attacker could reconstruct the user's exact tap coordinates inside the victim's cross-origin UI, potentially sniffing keystrokes on an embedded virtual keyboard; the report notes the main shipping surface is Android Chrome via ARCore, and the audit log states the originally reported iframe mechanism is already patched, leaving only the object and fencedframe path.
What the attacker needed
Victim uses AR-capable Android Chrome; victim accepts the AR permission prompt; victim points at the embedded page; attacker page embeds victim via object or fencedframe
The fix
The dynamic cast should target HTMLFrameOwnerElement, the common base for iframe, frame, object, embed and fencedframe, so every cross-origin embedder goes through the origin subtree walk.
How it was found
- Create a page with a container element to act as the DOM Overlay root.
- Embed a cross-origin victim site inside that container using an object or fencedframe tag.
- Request an immersive AR session with the dom-overlay feature and the container as root.
- The user accepts the AR permission prompt.
- Register an animation frame loop polling getPose and add listeners for select and beforexrselect events.
- The user points the AR ray at the embedded victim page, and the attacker reads the pose and select events.
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.
In augmented reality web pages, the browser is meant to hide where your pointer is pointing whenever it lands on another website shown inside the page, so the outer page cannot watch you. Here the check only recognised two kinds of embedded page (iframe and frame) and ignored other ways of embedding a site, so the outer page kept receiving precise pointer positions and tap events. That let it work out exactly where the user tapped inside the other site.
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.