Skip to content
Info disclosure Disclosed report Intermediate CVE-2021-32653

Default settings leak federated cloud id to lookup server of all users

With default settings, a Nextcloud server still sends requests to the lookup server whenever a user updates their profile, even when no profile fields are marked as published. This means the federated cloud ID of every user is shared with the lookup server unless an administrator explicitly disables it.

rtod Follow

Originally disclosed on HackerOne

Bounty$350 Low View original
  • Triaged in 3 days
  • Fixed in 18 days
  • Paid in 18 days
  • Disclosed after 48 days

So with the default settings Nextcloud still sends requests to the lookup server if users update their profile. Even if none of the fields are set to 'published'. I must admit this is somewhat of a surprise as there is no reason for this. As long as the visibility of none of the fields change and none of them are published.

The background job is inserted in the function https://github.com/nextcloud/server/blob/master/apps/lookup_server_connector/lib/UpdateLookupServer.php#L62

And the DELETE that is executed https://github.com/nextcloud/server/blob/master/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php#L156

Looking at the lookup server code it seems to actually do the delete. Still users of course can't verify what is running there. So we have to assume the worst case scenario where the lookup server has a list of a significant portion of all the nextcloud users out there.

Impact

The nextcloud server is still sharing the federated cloud id of every user to the lookupserver. Unless an admin explicitly disables the lookupserver. Even if non of the fields are set to published.

The original report as published on HackerOne, by rtod. 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 profile-update code schedules a lookup-server sync job unconditionally, without checking whether any profile field is actually set to be published.

Impact

The lookup server may accumulate a list covering a significant portion of all Nextcloud users, and users cannot verify what that server actually does with the data.

What the attacker needed

Default Nextcloud configuration; user updates their profile

The fix

Admins can explicitly disable the lookup server to stop the sharing.

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.

Nextcloud is a self-hosted file-sharing service. A 'federated cloud ID' is a user's address that lets other Nextcloud servers find and connect to them, a bit like an email address. The report says that even when a user chooses not to publish any profile details, the server still quietly tells a central 'lookup server' about that user's address, so the lookup server can build a list of many users.

What is Info disclosure?

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

More by rtod

View all

33 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.