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

Insufficient validation of untrusted input in PDF (CVE-2026-17690)

A malicious app set as the default digital assistant could trigger Chrome to navigate to a crafted inline PDF URL that points to Chrome's private FileProvider paths, causing Chrome to grant the assistant persistent read access to sensitive files such as exported password CSVs. The assistant could then read and exfiltrate those files.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A malicious app set as the default digital assistant can potentially trigger navigation in Chrome to a crafted inline PDF URL targeting Chrome's private ChromeFileProvider roots. During an assist session, PdfCoordinator grants the assistant app persistent read permission to this unvalidated URI. This could allow the assistant to exfiltrate sensitive files, such as exported password CSVs and NetLog session data.

Affected files:

  • chrome/browser/ui/android/pdf/internal/java/src/org/chromium/chrome/browser/pdf/PdfCoordinator.java
  • chrome/browser/ui/android/pdf/java/src/org/chromium/chrome/browser/pdf/PdfUtils.java
  • chrome/browser/ui/android/pdf/java/src/org/chromium/chrome/browser/pdf/PdfPage.java
  • chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java

Estimated timestamp from git blame: 2025-05-15

Root Cause Analysis

In Chrome for Android, the inline PDF viewer uses PdfCoordinator to manage PDF documents. When an assist session is initiated (e.g., when the digital assistant is programmatically or manually triggered), Chrome overrides onProvideAssistContent and delegates the request to the active page. For PdfPage, this invokes PdfCoordinator.requestAssistContent:

Java
public @Nullable String requestAssistContent(String filename, boolean isWorkProfile) {
    if (mUri == null) return null;
    ...
    var assistantPackageName = PackageUtils.getDefaultAssistantPackageName(mActivity);
    if (assistantPackageName != null) {
        mActivity.grantUriPermission(
                assistantPackageName, mUri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
    }
    return structuredData;
}

There is a similar flow in PdfCoordinator.getFileUri:

Java
public @Nullable Uri getFileUri(boolean isWorkProfile, @Nullable String targetPackage) {
    if (mUri == null) return null;
    ...
    if (targetPackage != null) {
        mActivity.grantUriPermission(
                targetPackage, mUri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
    }
    ...
}

This creates a vulnerability because mUri is populated from an externally supplied URL without validating its scheme, authority, or path. PdfUtils.getUriFromFilePath parses the path into a URI and returns any content:// or file:// scheme verbatim:

Java
public static @Nullable Uri getUriFromFilePath(String pdfFilePath) {
    Uri uri = Uri.parse(pdfFilePath);
    String scheme = uri.getScheme();
    if (UrlConstants.CONTENT_SCHEME.equals(scheme) || UrlConstants.FILE_SCHEME.equals(scheme)) {
        return uri;
    }
    ...
}

Because Chrome defines ChromeFileProvider with grantUriPermissions="true" in its AndroidManifest.xml, the Android OS allows Chrome to issue self-grants for its own files. By navigating Chrome to a crafted chrome-native://pdf/ URL targeting Chrome's own FileProvider roots (configured in file_paths.xml, exposing directories such as passwords/ and net-export/), a malicious assistant app can coerce Chrome into granting it access to highly sensitive, browser-private data.


Potential Trigger Path

Note: These are potential, theoretical steps constructed from static code analysis; our automated tools do not have the capability to run code or verify runtime behavior.

  1. Preconditions: The user is on Android 12+ (with SDK extension >= 13) or Android 15+. The user has configured the attacker's app as their default Digital Assistant.
  2. Navigation Trigger: The assistant app launches Chrome with an explicit ACTION_VIEW intent containing a crafted data URL: chrome-native://pdf/link?url=content%3A%2F%2Fcom.android.chrome.FileProvider%2Fpasswords%2FChrome%2520Passwords.csv
  3. Intent Acceptance: IntentHandler.isUrlUnsafe (in IntentHandler.java line 1090) explicitly allows the chrome-native://pdf/ URL to pass without restriction.
  4. Page Construction: TabImpl evaluates PdfUtils.isPdfNavigation which extracts the nested content:// URL. Since it is a content:// scheme, Chrome constructs a PdfPage and sets its filepath to the attacker-supplied ChromeFileProvider URI.
  5. URI Assignment: PdfCoordinator assigns mUri = PdfUtils.getUriFromFilePath(mPdfFilePath). Even if the PDF rendering engine subsequently fails to load the file because it is not a valid PDF, mUri remains assigned to the targeted private CSV.
  6. Assist Content Request: The assistant app programmatically triggers an assist session. The Android system calls ChromeActivity.onProvideAssistContent, which calls PdfPage.requestAssistContent once the EnterpriseInfo cache resolves.
  7. Permission Grant: PdfCoordinator.requestAssistContent retrieves the assistant's package name and calls mActivity.grantUriPermission on the target mUri. Android records a persistent READ grant for the malicious assistant package.
  8. Exfiltration: The assistant app reads the URI via getContentResolver().openInputStream(uri), exfiltrating the private passwords.

Suggested Fix

Validate the authority of mUri before calling grantUriPermission. Specifically, PdfCoordinator should verify that the URI to be shared does not point to Chrome's own internal authorities (e.g., <manifest_package>.FileProvider) unless explicitly authorized for sharing. Alternatively, PdfUtils should reject any local content:// or file:// URIs that resolve to Chrome's private directory structures during URL parsing.

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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.

Raised in root component due to access or custom field issues on 1279895

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, Chrome did not validate the scheme, authority, or path of the URI taken from an externally supplied PDF URL before granting read permission to the default assistant.

Impact

The assistant app could read and exfiltrate sensitive browser-private files such as exported password CSVs and NetLog session data, though the report notes the steps are theoretical and not runtime-verified.

What the attacker needed

Android 12+ with SDK extension 13 or Android 15+; Attacker app set as default digital assistant; User has exported passwords or NetLog data

The fix

Chrome should validate the URI authority before granting permission, rejecting any URI that points to Chrome's own internal FileProvider unless explicitly authorised for sharing.

How it was found

  1. Set the attacker's app as the default digital assistant on a supported Android version.
  2. The assistant launches Chrome with an explicit view intent containing a crafted chrome-native PDF URL that embeds a content URI pointing to Chrome's private FileProvider path.
  3. Chrome accepts the chrome-native PDF URL and constructs a PDF page whose file path is the attacker-supplied content URI.
  4. The PDF coordinator assigns the private content URI to its internal URI field even if the PDF fails to render.
  5. The assistant triggers an assist session, causing Chrome to grant the assistant persistent read permission on that URI.
  6. The assistant reads the private file through the content resolver and exfiltrates it.

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 share files with each other using special links called content URIs, and the system can grant temporary read permission to another app. Here, Chrome accepted a link that pointed at its own private files and then gave the default assistant app lasting permission to read them. That means a malicious assistant could quietly copy things like a password export.

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.