GitHub Advisoryadvisory · Packagist
GHSA-xpff-c35g-j3cr silverstripe/framework Privilege Escalation Risk in Member Edit form
MEDIUM
Official page ↗
- Ecosystem
- Packagist
- Packages
- silverstripe/framework
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-268
- Reviewed
- 2024-05-27
Affected packages
• Packagist silverstripe/framework: >= 3.5.7-rc1, < 3.5.8 → fixed in 3.5.8
• Packagist silverstripe/framework: >= 3.6.0-rc1, < 3.6.6 → fixed in 3.6.6
• Packagist silverstripe/framework: >= 4.0.0-rc1, < 4.0.4 → fixed in 4.0.4
• Packagist silverstripe/framework: >= 4.1.0-rc1, < 4.1.1 → fixed in 4.1.1
Description
A member with the permission `EDIT_PERMISSIONS` and access to the "Security" section is able to re-assign themselves (or another member) to `ADMIN` level.
CMS Fields for the member are constructed using DirectGroups instead of Groups relation which results in bypassing security logic preventing privilege escalation.
Related
Weakness · CWE (1)
- CWE-268 Privilege Chaining weakness
References
- https://github.com/silverstripe/silverstripe-framework/commit/577138882163e4b8782ea043487944d30d88e753 web
- https://github.com/silverstripe/silverstripe-framework/commit/e409d6f673c49846086b23677aecdc3fde5fc4d5 web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-001-1.yaml web
- https://github.com/silverstripe/silverstripe-framework package
- https://www.silverstripe.org/download/security-releases/ss-2018-001 web