Sensitive files/ data exists post deletion of user account
After a user deleted their account in the Nextcloud Android app, the app's private preferences file and cached images remained on the device, still containing the user's email address, server name and a push notification token. An attacker with access to the device or its storage could read these leftover details.
Originally disclosed on HackerOne
- Triaged in 5 days
- Fixed in 9 months
- Paid in 11 months
- Disclosed after 11 months
Summary by the program
Advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-xcj9-3jch-qr2r
The report
In the latest android app ,I created an account in the name of [email protected]. After few activities,deleted the account . Files containing user emails and tokens still exist.Relevant files not deleted upon deletion of account.
Content of files post deletion of account: generic_x86:/data/data/com.nextcloud.client/shared_prefs # ls FirebaseAppHeartBeat.xml WebViewChromiumPrefs.xml com.google.android.gms.appid.xml com.nextcloud.client_preferences.xml migrations.xml variant-emoji-manager.xml
generic_x86:/data/data/com.nextcloud.client/shared_prefs # cat com.nextcloud.client_preferences.xml
<?xml version='1.0' encoding='utf-8' standalone='yes' ?> <map> <boolean name="keysMigration" value="true" /> <string name="select_oc_account">[email protected]@us.cloudamo.com</string> <boolean name="autoUploadPathUpdate" value="true" /> <boolean name="autoUploadInit" value="true" /> <int name="prefs_uploader_behaviour" value="1" /> <boolean name="storagePathFix" value="true" /> <boolean name="autoUploadEntriesSplitOut" value="true" /> <boolean name="keysReinit" value="true" /> <string name="pushToken">euwTiu9CT3CvQNHqNVZPIk:APA91bHqkGjFhx-BiCEH_NcRnaEvrp21tbxvjOKhHrQ1mUTCW3Dp46X90YinSDcjfVXytTcT9CLQBcrOv5J_EfSGM7GbZrZAyeKC1xOtgNBLkFeo4_EqX7LqVW-ezuG_rou1y2Ux8ah5</string> <float name="grid_columns" value="3.0" /> <string name="storage_path">/storage/emulated/0/Android/media/com.nextcloud.client</string> <boolean name="legacyClean" value="true" /> <string name="upload_from_local_last_path">/storage/emulated/0/Pictures</string> <int name="lastSeenVersionCode" value="30160190" /> </map>Images folder generic_x86:/data/data/com.nextcloud.client/shared_prefs # cd /storage/emulated/0/Pictures generic_x86:/storage/emulated/0/Pictures # ls 2131099731.jpg 2131099732.jpg 2131099733.jpg
Impact
This information could be misused as sensitive token related ,images,user related details exist inspite of user account being deleted.
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 account deletion flow removed the account but did not clear the app's shared preferences file or cached media on the device.
Impact
Leftover email, server name, push token and cached images could be misused by someone with access to the device storage, though the report does not show a remote attack.
What the attacker needed
Local access to device storage; user has deleted an account
How it was found
- Create an account in the Android app and use it for a while.
- Delete the account from within the app.
- Inspect the app's shared_prefs directory and the Pictures folder on the device.
- Observe that the preferences file and cached images are still present with user data.
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.
When you delete an account in an app, you expect the app to also wipe the data it saved about you on the phone. Here the app kept a settings file holding your email, server address and a push token, plus some cached pictures. Anyone who can look at the phone's storage could still see that information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.