Default Nextcloud server config and iOS Nextcloud client leak sharee searches to Nextcloud
The iOS Nextcloud client did not pass the lookup parameter when searching for sharees, so the server defaulted to querying the global Nextcloud lookup server. This leaked users' sharee search terms to an external server without their explicit action.
- Triaged in 16 hours
- Fixed in 8 days
- Disclosed after 43 days
In short this is the same as https://hackerone.com/reports/1167916 but then for iOS so please forgive the copy paste
On a clean Nextcloud setup the functionality "Search global and public address book for users" is enabled. Now when searching for a sharee to share with. The lookup parameter is not passed to the server. Resulting in https://github.com/nextcloud/server/blob/master/apps/files_sharing/lib/Controller/ShareesAPIController.php#L144 the lookup being true. So the lookup server of Nextcloud will be searched by default.
Impact
Anybody sharing trough the android app. Leaks their sharee searches to the Nextcloud lookup server. Now the server can can only see the origin Nextcloud server (or rather the IP of that). Still. This should not be leaked by default.
On the web and desktop there is first a local search. And only if the user explicitly presses the search globally the lookup server is queried. (to be fair this could also be more clear that it actually sends data to other systems)
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 iOS client omitted the lookup parameter, so the server fell back to its default of enabling the global lookup search.
Impact
Sharee search terms from iOS users could be sent to the Nextcloud lookup server, which only sees the origin server's IP, but this data should not be leaked by default.
What the attacker needed
Default Nextcloud server config; iOS Nextcloud client; user searches for a sharee
How it was found
- Use a default Nextcloud setup where global address book search is enabled
- Search for a sharee in the iOS client
- Observe that the lookup parameter is not sent, so the global lookup server is queried
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 share a file, the app searches for people to share with. Nextcloud can search a central server run by the project to find users on other servers. The iOS app forgot to tell the server 'only search locally', so every search was also sent to that central server, revealing what you typed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.