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

Fix security issues when copying groupfolder with advanced ACL #29362

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

CarlSchwan
Copy link
Member

Using advanced ACL, it is possible that an user has access to a
directory but not to a subdirectory, so the copying use
Common::copyFromStorage instead of Local::copyFromStorage.

We might want to create a new interface instead of using directly
OCA\GroupFolder\ACLStorageWrapper

Fix nextcloud/groupfolders#1692

Signed-off-by: Carl Schwan carl@carlschwan.eu

@skjnldsv skjnldsv added the bug label Oct 21, 2021
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

let's make a ticket for the proper solution also

Using advanced ACL, it is possible that an user has access to a
directory but not to a subdirectory, so the copying use
Common::copyFromStorage instead of Local::copyFromStorage.

Fix nextcloud/groupfolders#1692

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@PVince81 PVince81 added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 21, 2021
@CarlSchwan CarlSchwan merged commit 5d9474d into master Oct 21, 2021
@CarlSchwan CarlSchwan deleted the fix/groupfolder-copy-acl branch October 21, 2021 16:12
@CarlSchwan
Copy link
Member Author

/backport to stable22

@CarlSchwan
Copy link
Member Author

/backport to stable21

@CarlSchwan
Copy link
Member Author

/backport to stable20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Groupfolders for which a user has no reading-rights (Advanced Permissions) can still be copied and read out!
4 participants