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

Incorrect authorization in Browser (CVE-2026-106313)

A malicious Android file picker app can return a schemeless URI in ClipData, bypassing Chrome's scheme-based security checks. This allows a malicious website to read Chrome's private data files via the JavaScript File API.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 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 security team.

Overview: SelectFileDialog.java uses scheme comparisons to identify content:// and file:// URIs for security validation, allowing a malicious app acting as a file picker to bypass these checks by providing a schemeless URI in ClipData. This results in the unvalidated, sensitive path being sent to the browser process, which grants the renderer read access. A malicious website can then use the JavaScript File API to read and exfiltrate Chrome's private data.

Affected files:

  • ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java

Estimated timestamp from git blame: 2022-06-17

Overview

There is a potential vulnerability in how Chrome on Android handles file selection results from third-party applications. SelectFileDialog.java implements security checks to prevent malicious file picker apps from tricking Chrome into reading its own sensitive data (like /data/data/...). However, these checks rely on examining the URI scheme. By returning a ClipData item containing a schemeless URI, a malicious app can completely bypass these security validations, leading to arbitrary local file read access for the renderer process.

Vulnerability Details

When a user interacts with an <input type="file" multiple> element on a web page, Chrome dispatches an Intent.ACTION_GET_CONTENT. If the user selects a malicious file picker app, that app can return a crafted Intent containing ClipData with a schemeless URI pointing to a sensitive Chrome file, e.g., Uri.parse("/data/data/com.android.chrome/shared_prefs/com.android.chrome_preferences.xml").

In ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java, the method onIntentCompleted processes the ClipData. It iterates through the items and checks for permissions, but this check is guarded by a scheme verification:

Java
if (ContentResolver.SCHEME_CONTENT.equals(filePathArray[i].getScheme()))

Because the malicious URI has no scheme, getScheme() returns null, and the permission check is bypassed.

The URIs are then passed to GetDisplayNameTask.doInBackground(). Here, the code decides which directory safety check to apply (isPathUnderAppDir or isContentUriUnderAppDir) based on the scheme:

Java
if (ContentResolver.SCHEME_FILE.equals(mUris[i].getScheme())) {
    if (isPathUnderAppDir(mUris[i].getSchemeSpecificPart(), mContext)) return null;
    mFilePaths[i] = mUris[i].getSchemeSpecificPart();
} else {
    if (ContentResolver.SCHEME_CONTENT.equals(mUris[i].getScheme())
            && isContentUriUnderAppDir(mUris[i], mContext)) return null;
    mFilePaths[i] = mUris[i].toString();
}

For a schemeless URI, both SCHEME_FILE and SCHEME_CONTENT equality checks fail. Execution falls through to the else block, bypasses the isContentUriUnderAppDir check, and directly assigns the raw, unvalidated path (mUris[i].toString()) to mFilePaths[i].

This unvalidated absolute path is passed via JNI to the browser process (SelectFileDialogImpl::OnMultipleFilesSelected). The browser process then calls ChildProcessSecurityPolicyImpl::GrantReadFile, explicitly granting the sandboxed renderer process permission to read the file. Finally, the JavaScript on the malicious website receives a File object and can use FileReader.readAsText() to read and exfiltrate the sensitive data.

Potential Steps to Reproduce

Note: These are suggested steps to trigger the vulnerability. Our tooling agent cannot run code to produce a working PoC.

  1. An attacker publishes a malicious Android app that registers to handle ACTION_GET_CONTENT intents.
  2. The user visits an attacker-controlled webpage in Chrome for Android.
  3. The webpage prompts the user to select files using an <input type="file" multiple> element.
  4. The user selects the attacker's malicious app from the Android intent chooser.
  5. The malicious app returns an Activity.RESULT_OK intent. The intent has a null Data field but includes a ClipData object. One of the ClipData items contains the schemeless URI: Uri.parse("/data/data/com.android.chrome/shared_prefs/com.android.chrome_preferences.xml").
  6. Chrome processes the intent, bypasses the directory safety checks due to the missing scheme, and passes the path to the native browser process.
  7. The browser process grants the renderer read access to the file.
  8. The attacker's webpage uses FileReader or fetch() on the resulting File object to read the contents of com.android.chrome_preferences.xml and sends it to their server.

Suggested Fix

In GetDisplayNameTask.doInBackground(), all URIs should be subjected to the isPathUnderAppDir check, regardless of their scheme. If a URI's string representation or resolved path falls under the application's data directory, it should be rejected. Alternatively, the code should explicitly reject any URI that does not possess an expected scheme (file or content).

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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. 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 code uses URI scheme comparisons to decide which security check to apply, so a URI with no scheme bypasses both checks and is treated as a safe file path.

Impact

A malicious website could read Chrome's private data files, such as preferences, and exfiltrate them to an attacker's server.

What the attacker needed

Victim installs malicious file picker app; victim visits attacker webpage; victim selects malicious app in file chooser

The fix

The code should apply the isPathUnderAppDir check to all URIs regardless of scheme, or explicitly reject URIs without an expected scheme.

How it was found

  1. Attacker publishes a malicious Android app that registers to handle ACTION_GET_CONTENT intents.
  2. User visits an attacker-controlled webpage in Chrome for Android.
  3. Webpage prompts the user to select files using an <input type="file" multiple> element.
  4. User selects the attacker's malicious app from the Android intent chooser.
  5. Malicious app returns an Activity.RESULT_OK intent with a null Data field but a ClipData object containing a schemeless URI.
  6. Chrome processes the intent, bypasses directory safety checks, and passes the path to the native browser process, which grants the renderer read access.

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.

Chrome on Android lets other apps act as file pickers. Chrome checks the type of file address (called a URI) to block access to its own private files. A malicious app can give an address without a type, so the check is skipped and Chrome hands over its private data to a website.

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.