Skip to content
Info disclosure Disclosed report Beginner

Retrieval and alteration of exposed media on Android Oreo

Downloaded media files in the Nextcloud Android app are stored in a shared folder accessible to any other app on the device. A malicious third-party app could read, modify, or delete these files, and modified files are automatically re-uploaded to the server.

doragon Follow

Originally disclosed on HackerOne

Medium 5.9 View original
  • Disclosed after 6 months

Good afternoon.

Any media downloaded from the cloud server within the Android app is subject to third party modification and server re-upload without explicit user consent.

This happens at least on Android Oreo, as data is automatically stored on shared folder /sdcard/Android/media/com.nextcloud.client/nextcloud/ACCOUNT/.

This report could be probably divided in two as one aspect is data confidentially while the other one is data integrity, which could be solved separately.

Impact

Local media availability is impacted if device is not web connected as third app can delete any downloaded assets

Local media confidentiality is impacted as any third app can access any downloaded assets, even if Nextcloud lock is set up.

Local media confidentiality is impacted as any third app can alter any downloaded assets, even if Nextcloud lock is set up. Once the user open up NC app, content get automatically reuploaded to sever.

As it seems NEW content does not get uploaded nor DELETED content get removed, it seems that Nextcloud app maintain a local sync setup and this setup could be used for metadata control to at least prevent/control data re-upload.

if Nextcloud lock is setup, it would also good to at least provide a minimal confidentiality setup so that data gets encrypted PER default and decrpyted on tmp folder only on click (which is required to open assets with PDF/other app).

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

Likely the app stored downloaded media in a world-readable shared directory instead of app-private storage.

Impact

Any third-party app on the device could read, alter, or delete downloaded media, and altered files could be re-uploaded to the server, affecting confidentiality and integrity.

What the attacker needed

Malicious app installed on device; user downloads media via Nextcloud app

The fix

The reporter suggests encrypting downloaded media by default, decrypting only temporarily when opened.

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.

On Android, some folders are shared between all apps, so any app can read or write files there. The Nextcloud app saved downloaded files in such a shared folder, meaning a malicious app could read or change them without permission. When the user opened Nextcloud again, changed files were sent back to the server.

What is Info disclosure?

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

More by doragon

View all

3 more disclosed reports, best first.

More from Nextcloud

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.