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.javachrome/browser/ui/android/pdf/java/src/org/chromium/chrome/browser/pdf/PdfUtils.javachrome/browser/ui/android/pdf/java/src/org/chromium/chrome/browser/pdf/PdfPage.javachrome/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:
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:
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:
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.
- 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.
- Navigation Trigger: The assistant app launches Chrome with an explicit
ACTION_VIEWintent containing a crafted data URL:chrome-native://pdf/link?url=content%3A%2F%2Fcom.android.chrome.FileProvider%2Fpasswords%2FChrome%2520Passwords.csv - Intent Acceptance:
IntentHandler.isUrlUnsafe(inIntentHandler.javaline 1090) explicitly allows thechrome-native://pdf/URL to pass without restriction. - Page Construction:
TabImplevaluatesPdfUtils.isPdfNavigationwhich extracts the nestedcontent://URL. Since it is acontent://scheme, Chrome constructs aPdfPageand sets its filepath to the attacker-suppliedChromeFileProviderURI. - URI Assignment:
PdfCoordinatorassignsmUri = PdfUtils.getUriFromFilePath(mPdfFilePath). Even if the PDF rendering engine subsequently fails to load the file because it is not a valid PDF,mUriremains assigned to the targeted private CSV. - Assist Content Request: The assistant app programmatically triggers an assist session. The Android system calls
ChromeActivity.onProvideAssistContent, which callsPdfPage.requestAssistContentonce theEnterpriseInfocache resolves. - Permission Grant:
PdfCoordinator.requestAssistContentretrieves the assistant's package name and callsmActivity.grantUriPermissionon the targetmUri. Android records a persistent READ grant for the malicious assistant package. - 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
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
- Set the attacker's app as the default digital assistant on a supported Android version.
- 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.
- Chrome accepts the chrome-native PDF URL and constructs a PDF page whose file path is the attacker-supplied content URI.
- The PDF coordinator assigns the private content URI to its internal URI field even if the PDF fails to render.
- The assistant triggers an assist session, causing Chrome to grant the assistant persistent read permission on that URI.
- 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.