Anonymous file drop page ignores user profile visibility restrictions
The anonymous file drop upload page displays the folder owner's profile photo and full name even when the owner has restricted those fields to local or contacts visibility. An attacker with the public upload link can therefore see personal information that the owner intended to keep private.
- Triaged in 8 hours
- Fixed in 5 months
- Disclosed after 8 months
User profile on Nextcloud server by url like https://<server.domain>/index.php/settings/user includes personal information: photo, name, email address. For each listed fields user can select the visibility settings: local, contacts, public. It is expected that these settings will work in all places of the Nextcloud server.
But if you use an anonymous download folder as written in documentation https://docs.nextcloud.com/server/stable/user_manual/files/file_drop.html then the profile visibility settings on upload page are ignored. For example, if you specify the photo and fullname to be shown only for local or contacts Nextcloud server users, they will still be displayed on the upload page available publicly by the link. Even in the documentation itself, the name is covered with black mask because it refers to a specific user.
This is not the behavior of the application that is expected when the settings for visibility of photo and fullname only to local users are selected. In order to not disclose this information to anonymous public users, it is better to use the profile parameter on the file upload page too: hide non-public user info; show, for example, only the name of the folder without a photo and name of owner of folder. Disclosure of personal data can occur even without knowledge of owner of folder, because if he provided access to his folder for other registered Nextcloud users of the same server, they can next share folder for upload by share link without his participation and knowledge. No too good for enterprise uses where Nextcloud can sync user profiles with company's directory services which usually should be restricted for public access.
Impact
Information disclosure of user profile data
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 file drop upload page renders the folder owner's profile fields without applying the owner's per-field visibility settings.
Impact
Personal data such as the owner's photo and full name could be disclosed to anonymous users, and this can happen even if the owner did not create the public link themselves.
What the attacker needed
A public file drop link; owner restricted profile fields
The fix
The upload page should apply the same profile visibility rules and hide non-public user information, for example showing only the folder name.
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 lets you set who can see your profile photo and name: only people on the same server, only your contacts, or everyone. A file drop is a public upload page that anyone with the link can use. The report says that page shows your photo and name anyway, even if you chose to hide them from the public.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.