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

Fixed users with permissions not allowed to change ACL #10764

Closed
wants to merge 1 commit into from

Conversation

roland-d
Copy link
Contributor

@roland-d roland-d commented Jun 9, 2016

Related to #10763

Summary of Changes

A user with permission to make ACL changes is denied access because the check is incomplete. The user that is part of the Administrator group or a child thereof can login and edit the permissions in Articles for example. However when this user tries that the access is denied because the access check is only done on the global level, not on the actual component level.

Testing Instructions

  1. Login with a user that is part of the Administrator or subgroup of this
  2. Go to Content -> Articles
  3. Click on the Options button
  4. Click on the Permission tab
  5. Try to change a permission, there will be no visible answer from the server (unless Do not redirect in a JSON call but return a JSON string #10763 is applied)
  6. Apply the patch
  7. Change a permission
  8. The permission is now changed

A little help from my friends @andrepereiradasilva and @infograf768

@roland-d roland-d added this to the Joomla 3.6.0 milestone Jun 9, 2016
@infograf768
Copy link
Member

@roland-d
Although this works fine, it lets a user change the permissions of his own group.

@infograf768
Copy link
Member

It also lets a user change the permissions of his parent group.

@brianteeman
Copy link
Contributor

@infograf768 I think a user should be able to change permissions of their own group ONLY if it is to a more restrictive setting but definitely not to give them access to something that was previously denied. They definitely should not be able to change permissions of parents - that would defeat the objective of an ACL system.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10764.

@infograf768
Copy link
Member

infograf768 commented Jun 10, 2016

@brianteeman

I think a user should be able to change permissions of their own group ONLY if it is to a more restrictive setting but definitely not to give them access to something that was previously denied.

If you have multiple users in the same group, one of these could decide of a change that would apply not only to himself but all members of that group. This should only imho be the privilege of the Parent Group (With ACL access) or superuser.

We also have another bug which is a security problem and I will create an issue for it:

A member of a subgroup of administrator (with access to user manager) with less permissions than the administrator group can make himself administrator when editing himself in Users Manage....
See #10775

@infograf768
Copy link
Member

I will propose a patch.

@infograf768
Copy link
Member

@brianteeman
Can you set this one as release blocker? At least until it is completed or replaced by andrepereiradasilva#53 which would anyway also be a release blocker until completed.

@andrepereiradasilva
Copy link
Contributor

@roland-d this should also be solved in #10793

@infograf768
Copy link
Member

@roland-d
I suggest to close this one in favour of #10793 (which needs tests) 😃

@roland-d roland-d closed this Jun 12, 2016
@roland-d roland-d deleted the fix-acl-access-denied branch June 12, 2016 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants