This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-fbc52844-684f-4664-a48b-136c7cee57ef XWIKI-22897 Open

Explicitly set rights, show the rights that are set

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-56904d54-b60f-4898-88c9-112df5aff5a4 git-n-pissed created this issue on 20/Feb/25 06:57
 
Summary: Explicitly set rights, show the rights that are set
Issue Type: cid:jira-generated-image-avatar-fbc52844-684f-4664-a48b-136c7cee57ef Improvement
Affects Versions: 16.10.3
Assignee: Unassigned
Attachments: image-2025-02-19-23-39-50-014.png
Components: Security
Created: 20/Feb/25 06:57
Priority: cid:jira-generated-image-static-major-e05b8459-adae-45f6-af21-07fae8cff870 Major
Reporter: git-n-pissed
Description:

The "User & Rights" page uses a non-standard control in the form of a ternary checkbox.  This control is non-standard because a checkbox is typically either checked, or unchecked, but this control adds a third state which is a red X.  This means that at a glance, a user cannot see what rights are assigned to a user or group because a "default" configuration will be used if the checkbox is not checked.  Worse, the default rights (shown in the picture below) have many boxes unchecked, a state that I believe most users familiar with the much more common binary checkbox would believe indicates the right is not assigned.

 

43344_image-2025-02-19-23-39-50-014.png

 

The "Register" right is of particular concern since its default state is unchecked, but the default right is "Allowed".  Since, also by default, new users are assigned to the "XWikiAllGroup", a legit user created by admin would by default have the ability to register a new rogue user without admin being aware.

 

For clarity and security purposes, I would highly recommend never using controls that mask what any settings are, especially those related to rights and permissions.  Having default settings is fine (and welcome), so long as they are explicit.