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

Incorrect authorization in WebAppInstalls (CVE-2026-79213)

A logic flaw in Chrome's Trusted Web Activity permission delegation on Android promotes an approximate location grant to precise access. An attacker could obtain high-accuracy GPS coordinates in a regular Chrome tab without a permission prompt, bypassing the user's explicit choice.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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: Chrome's Trusted Web Activity (TWA) permission delegation flattens Android 12+ location precision controls, incorrectly promoting approximate grants to precise access. This potentially allows web origins to bypass permission prompts and access high-accuracy GPS data in regular tabs despite the user selecting approximate-only access for the corresponding TWA app.

Affected files:

  • chrome/browser/webapps/installable/installed_webapp_bridge.cc
  • chrome/android/java/src/org/chromium/chrome/browser/browserservices/permissiondelegation/InstalledWebappPermissionManager.java
  • chrome/browser/webapps/installable/installed_webapp_provider.cc

Estimated timestamp from git blame: 2025-09-09

Summary

A logic flaw in the Trusted Web Activity (TWA) permission delegation system on Android causes 'Approximate' location permissions to be incorrectly promoted to 'Precise' location permissions. When a user grants only approximate location access to a TWA wrapper app, the delegation bridge in Chrome treats this as a full grant for both approximate and precise location. This allows the web origin to obtain high-accuracy GPS data via Chrome's internal geolocation service in regular tabs, bypassing the user's explicit choice.

Root Cause Analysis

The issue exists in how location permissions are processed as they flow from the Android OS through the Java layer and into the C++ bridge:

  1. Java Layer Flattening: In InstalledWebappPermissionManager.java, the method hasAndroidLocationPermission checks for either ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION. If either is granted, it returns true (chrome/android/java/src/org/chromium/chrome/browser/browserservices/permissiondelegation/InstalledWebappPermissionManager.java:244). This boolean state is converted to a single ContentSetting.ALLOW value, losing the distinction between coarse and fine access.

  2. C++ Bridge Inflation: In installed_webapp_bridge.cc, the GetInstalledWebappPermissions method receives this setting. For GEOLOCATION_WITH_OPTIONS, it unconditionally sets both the approximate and precise fields of the GeolocationSetting to kAllowed if the incoming setting is ALLOW (chrome/browser/webapps/installable/installed_webapp_bridge.cc:94-98).

  3. Provider Leakage: The InstalledWebappProvider is registered with high precedence in HostContentSettingsMap. The delegation logic is active if isRunningTwa() is true, which currently relies on ApplicationStatus.getLastTrackedFocusedActivity() (chrome/android/java/src/org/chromium/chrome/browser/browserservices/permissiondelegation/InstalledWebappPermissionManager.java:57). In multi-window or split-screen scenarios, if a TWA was the last focused activity, a regular Chrome tab on the same origin can inherit these inflated permissions.

Since the permission check passes for 'precise' access, Chrome proceeds to use its own system-level privileged location access to fulfill the request, providing high-accuracy coordinates to the origin.

Potential Steps to Reproduce

  1. On an Android 12+ device, install a TWA wrapper app for origin https://example.com that requests location permissions.
  2. Launch the TWA. When the OS location prompt appears, select 'Approximate' (ensure 'Precise' is toggled off) and 'While using the app'.
  3. Ensure Chrome itself has system-level 'Precise' location access.
  4. Open https://example.com in a regular Chrome tab.
  5. Put the TWA and the Chrome tab in split-screen mode. Focus the TWA pane so it becomes the last focused activity.
  6. In the Chrome tab, execute JavaScript to request high-accuracy location:
    JavaScript
    navigator.geolocation.getCurrentPosition(
        (pos) => console.log(pos), 
        (err) => console.error(err), 
        {enableHighAccuracy: true}
    );
    
  7. Observe that the Chrome tab potentially receives high-accuracy coordinates without a permission prompt, and navigator.permissions.query({name:'geolocation'}) reports that precise access is allowed.

Suggested Fix

  1. Modify InstalledWebappPermissionManager.java to distinguish between coarse and fine location grants (e.g., by returning an integer or a pair of booleans instead of a single boolean).
  2. Update InstalledWebappBridge::GetInstalledWebappPermissions in C++ to correctly populate the approximate and precise fields of the GeolocationSetting struct based on the actual Android permission state.
  3. Tighten the isRunningTwa() check or the InstalledWebappProvider logic to ensure that delegated permissions do not inappropriately leak into standard Chrome tabs.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


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.

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

The Java layer collapses coarse and fine location permissions into a single boolean, and the C++ bridge then sets both approximate and precise fields to allowed whenever that boolean is true.

Impact

A web origin could potentially receive high-accuracy GPS coordinates without a permission prompt, bypassing the user's approximate-only choice, though the report notes this depends on split-screen focus conditions.

What the attacker needed

Android 12+ device; TWA wrapper app installed; User grants approximate location only; Chrome has precise location access

The fix

The permission manager should distinguish between coarse and fine location grants, the C++ bridge should populate approximate and precise fields correctly, and the TWA check should be tightened to prevent leakage into regular tabs.

How it was found

  1. Install a TWA wrapper app for an origin that requests location permissions on Android 12+.
  2. Launch the TWA and select 'Approximate' when the OS location prompt appears.
  3. Ensure Chrome itself has system-level 'Precise' location access.
  4. Open the same origin in a regular Chrome tab.
  5. Put the TWA and the Chrome tab in split-screen mode and focus the TWA pane.
  6. In the Chrome tab, run JavaScript to request high-accuracy location and observe the result.

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.

When you install an Android app that wraps a website, the app can share its location permission with Chrome. The bug means that if you only allowed approximate location, Chrome still treats it as precise location. A website could then get your exact GPS position without asking again.

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.