CVE-2021-43863
📋 TL;DR
This vulnerability in the Nextcloud Android app allows malicious apps on the same Android device to bypass permission controls and access Nextcloud user data. It affects users running Nextcloud Android app versions before 3.18.1. The vulnerability combines SQL injection and insufficient permission controls in content providers.
💻 Affected Systems
- Nextcloud Android app
📦 What is this software?
Nextcloud by Nextcloud
⚠️ Risk & Real-World Impact
Worst Case
Malicious app on same device can access all Nextcloud user data including files, credentials, and sensitive information stored by the app, potentially leading to data theft or account compromise.
Likely Case
Malicious apps with basic permissions can read Nextcloud app data, potentially accessing cached files, user information, and app configuration data.
If Mitigated
With proper Android app sandboxing and no malicious apps installed, risk is minimal as exploitation requires local app access.
🎯 Exploit Status
Exploitation requires installing a malicious app on the same device as Nextcloud app. No public exploit code has been released.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 3.18.1
Vendor Advisory: https://github.com/nextcloud/android/security/advisories/GHSA-vjp2-f63v-w479
Restart Required: Yes
Instructions:
1. Open Google Play Store on Android device. 2. Search for Nextcloud app. 3. If update available, tap Update. 4. Alternatively, download from Nextcloud website and install manually. 5. Restart the Nextcloud app after update.
🔧 Temporary Workarounds
No workarounds available
allThe vendor states there are no known workarounds aside from upgrading to patched version.
🧯 If You Can't Patch
- Uninstall Nextcloud Android app from affected devices
- Restrict installation of unknown apps on Android devices and only install apps from trusted sources
🔍 How to Verify
Check if Vulnerable:
Check Nextcloud Android app version in Android Settings > Apps > Nextcloud > App info. If version is below 3.18.1, device is vulnerable.
Check Version:
Android: Settings > Apps > Nextcloud > App info shows version
Verify Fix Applied:
Verify Nextcloud Android app version is 3.18.1 or higher in Android Settings > Apps > Nextcloud > App info.
📡 Detection & Monitoring
Log Indicators:
- Unusual access patterns to Nextcloud content providers from other apps
- Permission denial logs for FileContentProvider or DiskLruImageCacheFileProvider
Network Indicators:
- No network indicators - this is a local Android vulnerability
SIEM Query:
Not applicable - local Android app vulnerability
🔗 References
- https://github.com/nextcloud/android/commit/627caba60e69e223b0fc89c4cb18eaa76a95db95
- https://github.com/nextcloud/android/security/advisories/GHSA-vjp2-f63v-w479
- https://hackerone.com/reports/1358597
- https://github.com/nextcloud/android/commit/627caba60e69e223b0fc89c4cb18eaa76a95db95
- https://github.com/nextcloud/android/security/advisories/GHSA-vjp2-f63v-w479
- https://hackerone.com/reports/1358597