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.ccchrome/android/java/src/org/chromium/chrome/browser/browserservices/permissiondelegation/InstalledWebappPermissionManager.javachrome/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:
-
Java Layer Flattening: In
InstalledWebappPermissionManager.java, the methodhasAndroidLocationPermissionchecks for eitherACCESS_COARSE_LOCATIONorACCESS_FINE_LOCATION. If either is granted, it returnstrue(chrome/android/java/src/org/chromium/chrome/browser/browserservices/permissiondelegation/InstalledWebappPermissionManager.java:244). This boolean state is converted to a singleContentSetting.ALLOWvalue, losing the distinction between coarse and fine access. -
C++ Bridge Inflation: In
installed_webapp_bridge.cc, theGetInstalledWebappPermissionsmethod receives this setting. ForGEOLOCATION_WITH_OPTIONS, it unconditionally sets both theapproximateandprecisefields of theGeolocationSettingtokAllowedif the incoming setting isALLOW(chrome/browser/webapps/installable/installed_webapp_bridge.cc:94-98). -
Provider Leakage: The
InstalledWebappProvideris registered with high precedence inHostContentSettingsMap. The delegation logic is active ifisRunningTwa()is true, which currently relies onApplicationStatus.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
- On an Android 12+ device, install a TWA wrapper app for origin
https://example.comthat requests location permissions. - Launch the TWA. When the OS location prompt appears, select 'Approximate' (ensure 'Precise' is toggled off) and 'While using the app'.
- Ensure Chrome itself has system-level 'Precise' location access.
- Open
https://example.comin a regular Chrome tab. - Put the TWA and the Chrome tab in split-screen mode. Focus the TWA pane so it becomes the last focused activity.
- 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} ); - 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
- Modify
InstalledWebappPermissionManager.javato distinguish between coarse and fine location grants (e.g., by returning an integer or a pair of booleans instead of a single boolean). - Update
InstalledWebappBridge::GetInstalledWebappPermissionsin C++ to correctly populate theapproximateandprecisefields of theGeolocationSettingstruct based on the actual Android permission state. - Tighten the
isRunningTwa()check or theInstalledWebappProviderlogic 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.
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
- Install a TWA wrapper app for an origin that requests location permissions on Android 12+.
- Launch the TWA and select 'Approximate' when the OS location prompt appears.
- Ensure Chrome itself has system-level 'Precise' location access.
- Open the same origin in a regular Chrome tab.
- Put the TWA and the Chrome tab in split-screen mode and focus the TWA pane.
- 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.