Exported Activity In Android Application Allowing Access to Payments Information
An exported Android activity in a payment app could be launched by any other app on the device, giving direct access to payment invoice and credit card screens. The author demonstrated this by building a separate app that opened the activity without the user ever opening the original app.
Published on medium.com
Hi Everyone, My name is Muhanad Israiwi. I’m a Bug Bounty Hunter and Penetration Testing professional.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the sensitive payment activities were declared with android:exported set to true, so any app on the device could start them without authentication or permission checks.
Impact
Any app on the phone could open the exported payment activities and view the user's payment information and previous bills, which could lead to fraud or identity theft.
What the attacker needed
Malicious app installed on the same device; victim has the target app installed
The fix
The activity should be set to android:exported=false unless it truly needs to be exported, and if it does, access should be limited to trusted apps.
How it was found
- Run static analysis on the APK with MobSF to find exported activities.
- Install the app on an emulator and create an account.
- Connect to the device with adb shell.
- Use the am start command to launch the exported payment activity directly.
- Observe that the payment bills screen opens without going through the app.
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 write-up has not been written yet. The Original tab links to the source.
Android apps are made of screens called activities. Some activities are marked 'exported', which means any other app on the phone can open them. If a sensitive screen like a payment page is exported without protection, a malicious app can jump straight to it and show the user's private information.
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.