Skip to content
Access control Advisory Advanced CVE-2026-8583

Insufficient policy enforcement in WebXR (CVE-2026-8583)

The browser process fails to validate experimental feature flags and permission mappings for the WebXR FRONT_FACING feature, so a compromised renderer can request it directly via Mojo IPC. This allows an attacker to activate the user's selfie camera and collect derived sensor data without explicit consent for front-facing camera use.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 43 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A compromised renderer can bypass Blink feature gates and request the experimental FRONT_FACING WebXR feature via a direct Mojo IPC call. The browser process fails to properly validate permissions or feature flags for this capability, treating it as automatically granted once the base AR permission is obtained. This allows an attacker to secretly activate the user's selfie camera and extract derived sensor data without explicit consent.

Affected files:

  • content/browser/xr/service/xr_permission_results.cc
  • content/browser/xr/service/vr_service_impl.cc
  • device/vr/android/arcore/arcore_impl.cc
  • device/vr/android/arcore/arcore_device.cc
  • content/browser/xr/service/browser_xr_runtime_impl.cc

Estimated timestamp from git blame: 2026-01-13

Summary

A security vulnerability exists in the WebXR implementation where the experimental FRONT_FACING camera feature can be activated by a compromised renderer without proper permission checks or validation of experimental feature flags in the browser process. This allows a malicious site to activate the user's front-facing (selfie) camera and obtain derived sensor data (such as light estimation and hit test results) without explicit consent for front-facing camera usage.

Technical Details

WebXR sessions can request various features, including FRONT_FACING (using the device's front-facing camera). This feature is experimental and gated in the Blink renderer by RuntimeEnabledFeatures::WebXRFrontFacingEnabled (tied to the kWebXRIncubations flag in third_party/blink/renderer/modules/xr/xr_utils.cc:281).

However, if a compromised renderer bypasses the Blink-side checks and directly requests a session via the VRService::RequestSession Mojo interface, the browser process (content/browser/xr/service/vr_service_impl.cc) fails to re-validate whether this feature is enabled for the origin or require specific user consent.

The flaw occurs in two places in the browser process:

  1. Missing Feature Flag Validation: The browser process does not check the kWebXRIncubations base::Feature flag before granting the FRONT_FACING feature. It relies solely on whether the underlying device (e.g., ARCore) supports it (device/vr/android/arcore/arcore_device.cc:47 unconditionally lists it in kSupportedFeatures).
  2. Permission Logic Flaw: In content/browser/xr/service/vr_service_impl.cc, VRServiceImpl::OnPermissionResultsForFeatures validates requested features using XrPermissionResults::HasPermissionsFor. The implementation of XrPermissionResults::GetPermissionFor (content/browser/xr/service/xr_permission_results.cc:98) fails to map FRONT_FACING to a specific permission (returning std::nullopt). HasPermissionsFor incorrectly interprets this nullopt as 'always granted' (lines 57-60) once the base session permission (e.g., the AR permission) has been obtained.

The base AR permission prompt shown to users ("wants to create a 3D map of your surroundings and track camera position") implies the use of the rear camera. It does not clearly communicate that the front-facing camera will be used, which has different privacy implications (tracking the user's face).

When FRONT_FACING is granted through this bypass, the ARCore implementation (device/vr/android/arcore/arcore_impl.cc:846) configures the AR session to use AR_CAMERA_CONFIG_FACING_DIRECTION_FRONT via ArSession_setCameraConfig.

Potential Attack Steps

Note: These steps are suggested based on code analysis; a working proof of concept has not yet been executed.

  1. An attacker compromises a renderer process (e.g., via a V8 vulnerability).
  2. The compromised renderer ensures it has transient user activation (e.g., triggered concurrently with a user click).
  3. The renderer crafts a raw Mojo IPC message to device::mojom::VRService::RequestSession, requesting an immersive AR session (kImmersiveAr) and including FRONT_FACING (enum value 17) in the required_features array.
  4. The browser process receives the request and, since FRONT_FACING is supported by the device (ARCore), it proceeds without checking the kWebXRIncubations feature flag.
  5. The browser prompts the user for the base AR permission (or uses a previously granted permission).
  6. Because content::XrPermissionResults::GetPermissionFor returns std::nullopt for FRONT_FACING, the browser assumes no additional permissions are required and marks the feature as granted.
  7. The session is dispatched to the ARCore runtime, which configures the device to activate the front-facing (selfie) camera.
  8. The attacker uses other WebXR features (like HIT_TEST or LIGHT_ESTIMATION, which also return std::nullopt and are auto-granted) to extract derived environmental and facial tracking data from the user.

Impact

An attacker can activate the front-facing camera (visible to the user but not explicitly authorized for selfie use) and obtain derived sensor data (LIGHT_ESTIMATION spherical harmonics, HIT_TEST results against the environment/face) without the user's explicit consent for front-facing camera usage. While raw camera pixels require the CAMERA_ACCESS feature (which correctly maps to VIDEO_CAPTURE), the unauthorized activation of the selfie camera and the collection of derived data violates user privacy boundaries.

Suggested Fix

  1. Map Permission: Update content::XrPermissionResults::GetPermissionFor (content/browser/xr/service/xr_permission_results.cc) to explicitly map FRONT_FACING to a relevant permission (e.g., blink::PermissionType::VIDEO_CAPTURE or a new specific permission) rather than returning std::nullopt.
  2. Validate Feature Flags: The browser process (e.g., in VRServiceImpl::RequestSession or XRRuntimeManagerImpl) should explicitly check base::Feature flags (like kWebXRIncubations) for experimental WebXR features before accepting them from a renderer, regardless of whether the underlying hardware runtime supports them.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 browser process does not re-validate experimental feature flags or map the FRONT_FACING feature to a specific permission, treating a missing permission mapping as automatically granted.

Impact

An attacker could activate the front-facing camera and obtain derived sensor data without explicit consent for selfie camera use, though raw camera pixels still require the CAMERA_ACCESS feature.

What the attacker needed

Compromised renderer process; transient user activation; base AR permission granted or prompted

The fix

The browser should map FRONT_FACING to a specific permission and explicitly check experimental feature flags before accepting such features from a renderer.

How it was found

  1. An attacker compromises a renderer process.
  2. The compromised renderer ensures it has transient user activation.
  3. The renderer sends a raw Mojo IPC message to request an immersive AR session including FRONT_FACING.
  4. The browser process proceeds without checking the experimental feature flag.
  5. The browser prompts for or uses the base AR permission.
  6. The browser treats FRONT_FACING as granted because its permission mapping is missing, and the session activates the front-facing camera.

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 create augmented reality experiences using your phone's camera. Normally, the browser checks whether a feature is allowed and asks for your permission. Here, a malicious website that has already taken over part of the browser could skip those checks and turn on your selfie camera without asking specifically for that.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.