No permission set on Activities [Android App]
Several activities in the Android app were exported without a permission requirement, so any other app on the device could launch them. This could let a malicious app bypass security checks or access a user's private information.
Originally disclosed on HackerOne
- Disclosed after 3 days
Android app version: 1.0.0
Issue Details:
The following activities are exported and it does not have a permission set.
- com.owncloud.android.ui.activity.FileDisplayActivity
- com.owncloud.android.ui.activity.ReceiveExternalFilesActivity
- com.owncloud.android.authentication.AuthenticatorActivity
- com.owncloud.android.ui.activity.ShareActivity
This could allow any malicious application to initiate the above mentioned activities thus bypassing security checks or getting private information of any user.
Recommendation:
Set the permission for the above mentioned activities or either set android:exported=false (which allows the activities to be launched by only components of the same app or the same uid)
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 listed activities were declared as exported in the app manifest without an accompanying permission requirement.
What the attacker needed
Malicious app installed on device
The fix
The activities should be protected with a permission or declared as not exported so only the app itself can launch them.
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 are made of pieces called activities, each a screen. An activity marked 'exported' can be started by other apps on the phone. If it has no permission protecting it, any app can open it, even one the user never meant to trust.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.