Skip to content
RCE Disclosed report Beginner

REG: Content provider information leakage

The report claims that two content providers in the Android app are exported, allowing any other app on the device to access them. An attacker could use a malicious app to read data from these providers.

zeroknife Follow

Originally disclosed on HackerOne

  • Disclosed after 3 days

Issue : While analyzing your code of manifest.xml i found a issue related to content provider information leakage .

Issue description :

Your content provider settings will allowing any other app on the device to access it (AndroidManifest.xml). You should modify the attribute to [exported="false"] or set at least "signature" protectionalLevel permission if you don't want to.

where i found the issue :

provider => com.owncloud.android.providers.FileContentProvider provider => com.owncloud.android.ui.adapter.DiskLruImageCacheFileProvider

Whats the impact :

other apps can read the contents,the malformed application can be used to extract information from the content provider .

Code from your manifest.xml kinldy note that exported=true : <service android:name=".authentication.AccountAuthenticatorService" android:exported="true" > <intent-filter android:priority="100" > <action android:name="android.accounts.AccountAuthenticator" /> </intent-filter> <meta-data android:name="android.accounts.AccountAuthenticator" android:resource="@xml/authenticator" /> </service> <service android:name=".syncadapter.FileSyncService" android:exported="true" > <intent-filter> <action android:name="android.content.SyncAdapter" /> </intent-filter> <meta-data android:name="android.content.SyncAdapter" android:resource="@xml/syncadapter_files" /> </service> <provider android:name=".providers.FileContentProvider" android:authorities="@string/authority" android:enabled="true" android:exported="false" android:label="@string/sync_string_files" android:syncable="true" />

<provider android:name=".providers.UsersAndGroupsSearchProvider" android:authorities="com.nextcloud.android.providers.UsersAndGroupsSearchProvider" android:enabled="true" android:exported="false" android:label="@string/search_users_and_groups_hint" /> <activity android:name=".authentication.AuthenticatorActivity" android:exported="true" android:launchMode="singleTask" android:theme="@style/Theme.ownCloud.noActionBar" > <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="@string/oauth2_redirect_scheme" /> </intent-filter> <intent-filter> <action android:name="com.owncloud.android.workaround.accounts.CREATE" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>

references :

(1)https://www.nowsecure.com/mobile-security/ebay-android-content-provider-injection-vulnerability.html (2)http://blog.trustlook.com/2013/10/23/ebay-android-content-provider-information-disclosure-vulnerability/ (3)http://www.wooyun.org/bugs/wooyun-2010-039169

Let me know incase of any other concerns

The original report as published on HackerOne, by zeroknife. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 providers were declared as exported or lacked a restrictive permission, though the pasted manifest shows exported=false for one.

Impact

Other apps on the device could read the contents of the content providers, potentially extracting sensitive information.

What the attacker needed

Malicious app installed on the same device

The fix

The providers should be set to android:exported="false" or protected with a signature-level permission.

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.

On Android, apps can share data through components called content providers. If a provider is marked as exported, any other app on the phone can ask it for data. The report says two of this app's providers are exported, so a malicious app could read files or other information from them.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.