View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 19414 | Bug reports | User / Groups / Roles | public | 2024-02-13 16:21 | 2026-10-20 17:06 |
| Reporter | DenisChenu | Assigned To | c_schmitz | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 5.6.x | ||||
| Summary | 19414: Roles management : No way to assign minimal roles by «admin user» | ||||
| Description | Since fix https://bugs.limesurvey.org/view.php?id=18977 (18977: Improper Authorization in add role function leads to privilege escalation) | ||||
| Steps To Reproduce | Steps to reproduceCreate role with "Create survey" + "Use theme"
As this user : create an user and try to give the role 'SurveyCreator' Expected resultThe user can give this roles Actual resultNo way to give this roles | ||||
| Tags | No tags attached. | ||||
| Bug heat | 20 | ||||
| Complete LimeSurvey version number (& build) | 6.4.6 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevant | ||||
| Database type & version | not relevant | ||||
| Server OS (if known) | not relevant | ||||
| Webserver software & version (if known) | not relevant | ||||
| PHP Version | not relevant | ||||
| Git branch / Pull Request URL | N/A | ||||
|
An idea to correct this situation would be to have an additional option on roles: who can assign or delete this role. with:
This settings can be only updated by superadmin/write permssion user. And only such user can update roles. |
|
|
Ping @tibor.pacalat : can you ask if such solution can be accepted in 5.X ? |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40911 |
|
|
Fixed in Release 7.7.0+261020 |
|
|
LimeSurvey: master 420131d8 2026-10-18 00:52 Details Diff |
Fixed issue 19414: Administrators without superadmin rights could not assign any role to their users Dev Assigning roles now removes the individual global permissions of the user |
Affected Issues 19414 |
|
| mod - application/controllers/UserManagementController.php | Diff File | ||
| mod - application/extensions/admin/grid/FloatingActionsWidget/actions/UserManagementMassiveActions.php | Diff File | ||
| mod - application/models/services/UserManager.php | Diff File | ||
| mod - application/views/userManagement/massiveAction/_updaterole.php | Diff File | ||
| mod - application/views/userManagement/partial/addrole.php | Diff File | ||
| mod - tests/unit/models/UserManagerServiceTest.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2024-02-13 16:21 | DenisChenu | New Issue | |
| 2024-02-13 16:24 | DenisChenu | Note Added: 79476 | |
| 2024-02-13 16:24 | DenisChenu | Bug heat | 0 => 2 |
| 2024-02-13 16:25 | DenisChenu | Note Added: 79477 | |
| 2024-07-01 09:17 | DenisChenu | Summary | No way to assign minimal roles by «admin user» => Roles management : No way to assign minimal roles by «admin user» |
| 2024-10-16 20:07 | stevelegare | Issue Monitored: stevelegare | |
| 2024-10-16 20:07 | stevelegare | Bug heat | 2 => 10 |
| 2024-10-24 11:48 | sampnot12 | Bug heat | 10 => 16 |
| 2026-10-18 00:52 | c_schmitz | Changeset attached | => LimeSurvey master 420131d8 |
| 2026-10-18 00:52 | c_schmitz | Note Added: 86529 | |
| 2026-10-18 00:52 | c_schmitz | Assigned To | => c_schmitz |
| 2026-10-18 00:52 | c_schmitz | Status | new => resolved |
| 2026-10-18 00:52 | c_schmitz | Resolution | open => fixed |
| 2026-10-18 00:52 | c_schmitz | Bug heat | 16 => 18 |
| 2026-10-20 17:06 | LimeBot | Note Added: 86580 | |
| 2026-10-20 17:06 | LimeBot | Status | resolved => closed |
| 2026-10-20 17:06 | LimeBot | Bug heat | 18 => 20 |