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

Insufficient validation of untrusted input in CustomTabs (CVE-2026-13863)

Chrome for Android's handling of Trusted Web Activity intents with a specific client mode bypasses Digital Asset Links verification and grants attacker-supplied URIs read and write access. A malicious app could use this to read or modify Chrome's private cached files, such as PDFs and network logs.

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.

Overview: A potential confused deputy vulnerability exists where a malicious Android app can trick Chrome into granting it READ and WRITE access to Chrome's internal FileProvider. By sending a crafted intent with the NAVIGATE_NEW mode and attacker-supplied URIs in EXTRA_FILE_HANDLING_DATA, the attacker bypasses Digital Asset Links verification. Chrome blindly grants permissions to these URIs, exposing sensitive private files like cached PDFs and network export logs.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/content/WebAppLaunchHandler.java
  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java

Estimated timestamp from git blame: 2025-10-03

Overview

A potential confused deputy vulnerability has been identified in Chrome for Android's handling of Trusted Web Activity (TWA) intents. A malicious application can obtain persistent READ and WRITE URI permissions for Chrome's private FileProvider paths by exploiting WebAppLaunchHandler's processing of the EXTRA_FILE_HANDLING_DATA bundle.

Vulnerability Details

When Chrome handles a TWA intent with the EXTRA_LAUNCH_HANDLER_CLIENT_MODE set to 3 (NAVIGATE_NEW), it invokes WebAppLaunchHandler.launchNewIntent(). This specific client mode bypasses the standard Digital Asset Links (DAL) verification check that normally restricts sensitive operations to verified origins.

Inside launchNewIntent(), Chrome extracts a list of URIs from the EXTRA_FILE_HANDLING_DATA bundle. This data is supplied by the calling intent and is not validated by Chrome before use. The handler iterates through these URIs and calls mActivity.grantUriPermission() for each one, granting the calling package (the attacker's app) both READ and WRITE access.

Java
// WebAppLaunchHandler.java
if (fileData != null && !fileData.uris.isEmpty()) {
    for (Uri uri : fileData.uris) {
        mActivity.grantUriPermission(
                packageName,
                uri,
                Intent.FLAG_GRANT_READ_URI_PERMISSION
                        | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
    }
    newIntent.putExtra(EXTRA_FILE_HANDLING_DATA, fileData.toBundle());
}

An attacker can provide URIs that point to Chrome's own internal FileProvider (e.g., content://com.android.chrome.FileProvider/pdfs/...). Because Chrome is the owner of this FileProvider and its AndroidManifest.xml configures it with android:grantUriPermissions="true", the Android framework successfully processes Chrome's request to grant these permissions to the attacker's package.

Impact

By obtaining READ and WRITE access to Chrome's FileProvider, a malicious app can exfiltrate sensitive user data stored in Chrome's private cache directories. Paths exported in file_paths.xml include:

  • cache/pdfs/: Cached PDF files.
  • cache/net-export/: Network export logs.
  • cache/Offline Pages/archives/: Offline page archives.

The granted permissions persist until the device is rebooted.

Potential Attack Steps

(Note: These are suggested steps based on code analysis, as this agent cannot run live proofs-of-concept).

  1. A malicious application installed on the device binds to Chrome's CustomTabsService and obtains a CustomTabsSessionToken via newSession(). This associates the session with the attacker's package name.
  2. The app sends an initial ACTION_VIEW intent to Chrome with a valid HTTPS URL, the session token, and EXTRA_LAUNCH_AS_TRUSTED_WEB_ACTIVITY=true. This starts the TWA process.
  3. The app then sends a follow-up intent to the same activity (using FLAG_ACTIVITY_SINGLE_TOP) with the following extras:
    • EXTRA_LAUNCH_AS_TRUSTED_WEB_ACTIVITY = true
    • EXTRA_LAUNCH_HANDLER_CLIENT_MODE = 3 (NAVIGATE_NEW)
    • EXTRA_FILE_HANDLING_DATA = [Bundle containing target Chrome FileProvider URIs, e.g., content://com.android.chrome.FileProvider/pdfs/sensitive.pdf]
  4. BaseCustomTabActivity receives this new intent and routes it to WebAppLaunchHandler.handleNewIntent().
  5. Because clientMode == NAVIGATE_NEW, DAL verification is bypassed, and launchNewIntent() is called.
  6. Chrome iterates over the attacker-supplied URIs and calls grantUriPermission() for the attacker's package name.
  7. The malicious app uses Android's ContentResolver to read from or write to the granted URIs, successfully exfiltrating or modifying private data.

Suggested Fix

In WebAppLaunchHandler.launchNewIntent(), validate the URIs provided in EXTRA_FILE_HANDLING_DATA before calling grantUriPermission(). Specifically, Chrome should verify that the URIs do not belong to its own FileProvider authority (e.g., com.android.chrome.FileProvider). Additionally, consider whether grantUriPermission is even necessary if the URIs already belong to the calling package.

Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8


Results 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. Please feel free to reach out to me if you have concerns or feedback.

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 code grants URI permissions for attacker-supplied URIs without validating that they do not point to Chrome's own FileProvider, and the specific client mode skips the usual Digital Asset Links verification.

Impact

A malicious app could read or modify sensitive files in Chrome's private cache, and the permissions persist until the device is rebooted.

What the attacker needed

Malicious app installed on the device; Chrome for Android present; no user interaction beyond app installation

The fix

Chrome should validate the URIs in EXTRA_FILE_HANDLING_DATA before granting permissions, ensuring they do not belong to its own FileProvider authority.

How it was found

  1. The malicious app binds to Chrome's CustomTabsService and obtains a session token.
  2. It sends an initial ACTION_VIEW intent with a valid HTTPS URL, the session token, and the trusted web activity extra.
  3. It sends a follow-up intent with the same activity, setting the client mode to NAVIGATE_NEW and supplying a bundle of target Chrome FileProvider URIs.
  4. Chrome routes the intent to WebAppLaunchHandler, bypasses Digital Asset Links verification because of the client mode, and calls launchNewIntent().
  5. Chrome grants read and write URI permissions for each attacker-supplied URI to the attacker's package.
  6. The malicious app uses ContentResolver to read from or write to the granted URIs.

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.

Android apps can ask other apps to share specific files by granting temporary permission to a file address (a URI). Here, Chrome was tricked into granting such permission for its own private files to an untrusted app, because it did not check who was asking. That let the attacker read or change files Chrome kept for itself.

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.