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.cccontent/browser/xr/service/vr_service_impl.ccdevice/vr/android/arcore/arcore_impl.ccdevice/vr/android/arcore/arcore_device.cccontent/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:
- Missing Feature Flag Validation: The browser process does not check the
kWebXRIncubationsbase::Feature flag before granting theFRONT_FACINGfeature. It relies solely on whether the underlying device (e.g., ARCore) supports it (device/vr/android/arcore/arcore_device.cc:47unconditionally lists it inkSupportedFeatures). - Permission Logic Flaw: In
content/browser/xr/service/vr_service_impl.cc,VRServiceImpl::OnPermissionResultsForFeaturesvalidates requested features usingXrPermissionResults::HasPermissionsFor. The implementation ofXrPermissionResults::GetPermissionFor(content/browser/xr/service/xr_permission_results.cc:98) fails to mapFRONT_FACINGto a specific permission (returningstd::nullopt).HasPermissionsForincorrectly interprets thisnulloptas 'always granted' (lines 57-60) once the base session permission (e.g., theARpermission) 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.
- An attacker compromises a renderer process (e.g., via a V8 vulnerability).
- The compromised renderer ensures it has transient user activation (e.g., triggered concurrently with a user click).
- The renderer crafts a raw Mojo IPC message to
device::mojom::VRService::RequestSession, requesting an immersive AR session (kImmersiveAr) and includingFRONT_FACING(enum value 17) in therequired_featuresarray. - The browser process receives the request and, since
FRONT_FACINGis supported by the device (ARCore), it proceeds without checking thekWebXRIncubationsfeature flag. - The browser prompts the user for the base
ARpermission (or uses a previously granted permission). - Because
content::XrPermissionResults::GetPermissionForreturnsstd::nulloptforFRONT_FACING, the browser assumes no additional permissions are required and marks the feature as granted. - The session is dispatched to the ARCore runtime, which configures the device to activate the front-facing (selfie) camera.
- The attacker uses other WebXR features (like
HIT_TESTorLIGHT_ESTIMATION, which also returnstd::nulloptand 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
- Map Permission: Update
content::XrPermissionResults::GetPermissionFor(content/browser/xr/service/xr_permission_results.cc) to explicitly mapFRONT_FACINGto a relevant permission (e.g.,blink::PermissionType::VIDEO_CAPTUREor a new specific permission) rather than returningstd::nullopt. - Validate Feature Flags: The browser process (e.g., in
VRServiceImpl::RequestSessionorXRRuntimeManagerImpl) should explicitly checkbase::Featureflags (likekWebXRIncubations) 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.
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
- An attacker compromises a renderer process.
- The compromised renderer ensures it has transient user activation.
- The renderer sends a raw Mojo IPC message to request an immersive AR session including FRONT_FACING.
- The browser process proceeds without checking the experimental feature flag.
- The browser prompts for or uses the base AR permission.
- 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.