Skip to content

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Oct 25, 2021

Backport #29260: Respect user enumeration settings in user status lists

So far, the functions to find user statuses listed didn't respect user
enumeration settings (shareapi_allow_share_dialog_user_enumeration
and shareapi_restrict_user_enumeration_to_group core app settings).

Fix this privacy issue by returning an empty list in case
shareapi_allow_share_dialog_user_enumeration is unset or
shareapi_restrict_user_enumeration_to_group is set.

In the long run, we might want to return users from common groups if
shareapi_restrict_user_enumeration_to_group is set. It's complicated
to implement this in a way that scales, though. See the discussion at
#27879 (review)
for details.

Also, don't register the user_status dashboard widget at all if
shareapi_allow_share_dialog_user_enumeration is unset or
shareapi_restrict_user_enumeration_to_group is set.

Fixes: #27122

Signed-off-by: Jonas Meurer [email protected]

So far, the functions to find user statuses listed didn't respect user
enumeration settings (`shareapi_allow_share_dialog_user_enumeration`
and `shareapi_restrict_user_enumeration_to_group` core app settings).

Fix this privacy issue by returning an empty list in case
`shareapi_allow_share_dialog_user_enumeration` is unset or
`shareapi_restrict_user_enumeration_to_group` is set.

In the long run, we might want to return users from common groups if
`shareapi_restrict_user_enumeration_to_group` is set. It's complicated
to implement this in a way that scales, though. See the discussion at
#27879 (review)
for details.

Also, don't register the user_status dashboard widget at all if
`shareapi_allow_share_dialog_user_enumeration` is unset or
`shareapi_restrict_user_enumeration_to_group` is set.

Fixes: #27122

Signed-off-by: Jonas Meurer <[email protected]>
@mejo- mejo- added 3. to review Waiting for reviews privacy labels Oct 25, 2021
@mejo- mejo- added this to the Nextcloud 21.0.6 milestone Oct 25, 2021
@mejo- mejo- force-pushed the fix/user_status_enumeration_21 branch from 9556e08 to e838e63 Compare October 25, 2021 09:38
@LukasReschke LukasReschke merged commit 9fc4bd5 into stable21 Oct 25, 2021
@LukasReschke LukasReschke deleted the fix/user_status_enumeration_21 branch October 25, 2021 12:52
@blizzz blizzz mentioned this pull request Nov 3, 2021
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews privacy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants