Skip to content
Info disclosure Disclosed report Beginner

Account hijacking possible through ADB backup feature

The Android app allowed ADB backups by default, so an attacker with physical access to an unlocked device could extract the app's sandbox files, including a preferences file containing the username and password. This could lead to account cloning.

trotmaster Follow

Originally disclosed on HackerOne

  • Triaged in 8 hours
  • Fixed in 14 hours
  • Disclosed after 20 hours

It was found that if an attacker had access to an unlocked phone, they could take any data from the application's sandbox through ADB's backup feature.

Normally ADB backup allows applications to be backed up to the cloud. This means that if a user replaces or wipes their phone, they can restore app settings.

This feature is on by default and needs to be explicitly disabled in the manifest <application allowBackup="false"

If enabled (or not explicitly disabled), then the backup feature can also be used over USB (details here: http://nelenkov.blogspot.co.uk/2012/06/unpacking-android-backups.html). This means that the shell user, which can not normally access files in the sandboxes of applications, can read and write to them.

In the case of the Faceless Android app, it meant that if an attacker had access to an unlocked android device, then they could recover all the files from Faceless' sandbox to their PC. This includes the im.delight.faceless_preferences.xml file which holds the username and password

This could then be restored to another device, allowing for account cloning.

The original report as published on HackerOne, by trotmaster. 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

The app did not explicitly disable Android's backup feature, leaving allowBackup at its default enabled state.

Impact

An attacker with physical access to an unlocked device could extract credentials and clone the account on another device.

What the attacker needed

Physical access to an unlocked Android device; USB debugging enabled or ADB access

The fix

The app should explicitly set allowBackup to false in its manifest to prevent backup extraction.

How it was found

  1. Obtain an unlocked Android device with the app installed.
  2. Connect the device to a PC via USB and use ADB backup to extract the app's data.
  3. Locate the preferences file containing the username and password.
  4. Restore the backup to another device to clone the account.

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 store private data in a sandbox that other apps cannot read. The backup feature, if left enabled, lets someone with a USB cable and developer tools copy that data off the phone. Here the backup included a file with the user's login details, so an attacker with the unlocked phone could take over the account.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Faceless

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.