Missing authorization in Mobile (CVE-2026-106367)
The DropDataContentProvider overrides call() without checking the caller's identity, and one command path reads a Bundle extra with untyped getSerializable(). A local app holding a temporary URI grant from a drag-and-drop could invoke that path and trigger Java deserialisation inside Chrome's browser process, potentially leading to code execution.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 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: The DropDataContentProvider class overrides ContentProvider.call() without verifying the caller's identity or permissions. A local malicious application holding a temporary URI permission grant can potentially access this endpoint and invoke unsafe Java deserialization via getSerializable(). This could allow an attacker to execute arbitrary code within the context of the unsandboxed Chrome browser process.
Affected files:
ui/android/java/src/org/chromium/ui/dragdrop/DropDataContentProvider.javaui/android/java/src/org/chromium/ui/dragdrop/DropDataProviderImpl.javaui/android/java/src/org/chromium/ui/dragdrop/DragAndDropDelegateImpl.javachrome/android/java/AndroidManifest.xml
Estimated timestamp from git blame: 2022-10-06
Potential Security Vulnerability in DropDataContentProvider
1. Root Cause
In ui/android/java/src/org/chromium/ui/dragdrop/DropDataContentProvider.java (lines 97-99), the call() method is overridden and delegates directly to the underlying implementation without validating the caller:
@Override
public @Nullable Bundle call(String method, @Nullable String arg, @Nullable Bundle extras) {
return mDropDataProviderImpl.call(method, arg, extras);
}
There are no validation checks (such as verifying the calling UID or package identity) performed before processing the method.
Inside ui/android/java/src/org/chromium/ui/dragdrop/DropDataProviderImpl.java (lines 361-365), the call method dispatches incoming commands. Under the CACHE_METHOD_NAME case ("cache"), it extracts the payload using a deprecated, untyped getSerializable call:
case CACHE_METHOD_NAME:
assumeNonNull(extras);
byte[] imageBytes = (byte[]) extras.getSerializable(BYTES_PARAM);
Calling getSerializable(String) without specifying an explicit target class triggers untyped deserialization. If the object associated with the key is a serialized Java object, the Android OS unmarshalling engine will instantiate the class using ObjectInputStream.readObject(). Because this executes inside Chrome's browser process, Chrome's full classpath is available to resolve potential deserialization gadget chains.
2. Potential Attack Flow
Although DropDataContentProvider is declared with android:exported="false" in chrome/android/java/AndroidManifest.xml (lines 1427-1431), it is configured with android:grantUriPermissions="true". An attacker could potentially bypass the export restriction and invoke call() via the following steps:
- User Gesture and Drag-and-Drop Initiation: A user initiates a drag-and-drop gesture on an image (
<img>) in Chrome and drops it onto a malicious local application registered as a drop target. - Temporary URI Grant Emission: During the drag,
DragAndDropDelegateImpl.java(lines 271-278) caches the image and generates a content URI pointing to the provider. The drag flags (View.DRAG_FLAG_GLOBAL | View.DRAG_FLAG_GLOBAL_URI_READ) cause the Android OS to allocate a temporary URI read permission to the drop-target app. - Acquiring the Binder: The malicious application accepts the drop event and requests the drag-and-drop permission grant. Because the app holds a valid temporary URI grant, Android's
ActivityManagerServiceallows it to resolve the provider's authority and obtain theIContentProviderBinder interface. - Bypassing Export Restrictions: The Android framework does not enforce read/write permission or export restrictions on
ContentProvider.call()transactions. Once the binder is acquired, the malicious app can invoke thecall()method directly. - Triggering Deserialization: The malicious application calls
ContentResolver.call(...)with the method name"cache"and a craftedBundlecontaining a serialized gadget payload under the key"bytes". WhenDropDataProviderImplretrieves the extra viagetSerializable(), the payload is deserialized in Chrome's unsandboxed browser process.
Note: These are suggested/potential steps; our tooling does not currently have the capability to execute code or verify the existence of specific gadget chains on Chrome's classpath.
3. Recommended Remediation
To address this potential issue, the following changes are recommended:
-
Caller Identity Validation: Restrict access to
DropDataContentProvider.call()by validating that the calling UID matches Chrome's own UID. Since this provider'scall()method is designed purely for internal loopback communication (viaDropDataProviderUtils.java), it should only accept calls from Chrome itself:Java if (Binder.getCallingUid() != android.os.Process.myUid()) { throw new SecurityException("Unauthorized caller"); } -
Type-Safe Bundle Access: Instead of passing the raw image bytes as a
Serializableobject and deserializing it viagetSerializable(), pass it as a standard byte array (byte[]) and retrieve it usingextras.getByteArray(BYTES_PARAM). This avoids invokingObjectInputStreamentirely.
Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf
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
Likely the provider's call() method trusted any caller and passed a Bundle extra to untyped getSerializable(), so deserialisation ran without a caller check or a fixed target type.
Impact
This could allow arbitrary code execution in Chrome's unsandboxed browser process, though the report notes the steps are potential and no gadget chain was verified.
What the attacker needed
Malicious app installed on the device; victim drags an image onto that app; temporary URI grant issued by the OS
The fix
The provider's call() should reject callers whose UID is not Chrome's own, and the image bytes should be passed as a plain byte array read with getByteArray() instead of getSerializable().
How it was found
- The user drags an image in Chrome and drops it onto a malicious local app acting as a drop target.
- Chrome caches the image and the OS gives the drop-target app a temporary read permission on the provider URI.
- The malicious app uses that grant to obtain the provider's Binder interface.
- The app calls the provider's call() method with the cache command and a crafted Bundle.
- The provider reads the extra with getSerializable(), deserialising the payload in Chrome's browser process.
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 data through components called content providers. This one was meant to be private to Chrome, but a loophole let another app on the same phone reach a function that turns stored data back into live objects, a process called deserialisation. If an attacker controls that data, the objects created can run code, here inside Chrome's own process.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.