Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect user enumeration settings in user status lists #29260

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Oct 15, 2021

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 jonas@freesources.org

@mejo-
Copy link
Member Author

mejo- commented Oct 15, 2021

After discussion with @nickvergessen, we decided to take this simpler approach for now to fix the underlying privacy issue #27879.

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned integration tests to ensure this is not flipped back at some point would be a nice topping to the PR

@mejo- mejo- force-pushed the fix/user_status_enumeration2 branch 3 times, most recently from 114662e to 0a7bb12 Compare October 19, 2021 09:14
@mejo- mejo- force-pushed the fix/user_status_enumeration2 branch 2 times, most recently from 2170dd6 to cc40020 Compare October 19, 2021 10:09
Copy link
Member

@LukasReschke LukasReschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆒

@mejo- mejo- force-pushed the fix/user_status_enumeration2 branch 4 times, most recently from 85eb760 to 6e30710 Compare October 20, 2021 08:29
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 <jonas@freesources.org>
Signed-off-by: Jonas Meurer <jonas@freesources.org>
@mejo- mejo- force-pushed the fix/user_status_enumeration2 branch from 6e30710 to 65cfe9d Compare October 20, 2021 09:34
@nickvergessen nickvergessen merged commit 8ae93a7 into master Oct 20, 2021
@nickvergessen nickvergessen deleted the fix/user_status_enumeration2 branch October 20, 2021 10:27
@mejo-
Copy link
Member Author

mejo- commented Oct 20, 2021

/backport to stable22

@mejo-
Copy link
Member Author

mejo- commented Oct 20, 2021

/backport to stable21

@mejo-
Copy link
Member Author

mejo- commented Oct 20, 2021

/backport to stable20

@backportbot-nextcloud
Copy link

The backport to stable21 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable20 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable22 failed. Please do this backport manually.

LukasReschke added a commit that referenced this pull request Oct 25, 2021
Backport #29260: Respect user enumeration settings in user status lists
LukasReschke added a commit that referenced this pull request Oct 25, 2021
Backport #29260: Respect user enumeration settings in user status lists
LukasReschke added a commit that referenced this pull request Oct 25, 2021
Backport #29260: Respect user enumeration settings in user status lists
@skjnldsv skjnldsv mentioned this pull request Oct 25, 2021
25 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.

user_status "last statuses" widget leaks account names
3 participants