Backup Vulnerabilities Android Mobile Application
The Android app had backups enabled, so an attacker with physical access and USB debugging could extract the app's internal files without root. This is especially dangerous if the app also stores sensitive data insecurely.
hello everyone today I will share about Android Backup Vulnerabilities, this is one of the findings that I often find when doing pentest on android applications, especially on mobile applications. I made this article because it was quite inspired by this blog, Now lets just go straight to the discussion.
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
The app's manifest sets android:allowBackup to true, which permits adb backup to extract the app's private data.
Impact
An attacker with physical access and USB debugging enabled could extract the app's internal files without root, which is especially harmful if the app also stores data insecurely.
What the attacker needed
Physical access to the device; USB debugging enabled; app has allowBackup=true
The fix
The app should set android:allowBackup to false in its manifest.
How it was found
- Unpack the app and open AndroidManifest.xml to check the allowBackup value.
- Connect the device with adb over USB or wireless.
- Run adb backup for the app package, setting a password.
- Convert the .ab file to .tar with Android Backup Extractor using the password.
- Extract the tar to view the app's internal files.
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 can be set to allow their private data to be backed up. If that setting is on, someone with the phone in hand and developer options enabled can copy the app's files to a computer. Those files may contain passwords or other private information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.