Headline
GHSA-cx45-565q-6qx8: Subsite weakens file permissions
The subsites module can weaken edit restrictions on some files and allow a malicious user to edit files they do not have edit rights to.
This only affects projects with the subsites module installed. Regression testing should focus on custom file logic.
Be advised that this is not a case of a user being able to edit a file in subsites they do not have access to. As a reminder, all separation of content achieved with the subsites module should be viewed as cosmetic and not appropriate for security-critical applications.
Subsite weakens file permissions
Moderate severity GitHub Reviewed Published Dec 19, 2022 • Updated Dec 19, 2022
Package
composer silverstripe/subsites (Composer)
Affected versions
>= 2.0.0, < 2.6.1
Patched versions
2.6.1
Description
The subsites module can weaken edit restrictions on some files and allow a malicious user to edit files they do not have edit rights to.
This only affects projects with the subsites module installed. Regression testing should focus on custom file logic.
Be advised that this is not a case of a user being able to edit a file in subsites they do not have access to. As a reminder, all separation of content achieved with the subsites module should be viewed as cosmetic and not appropriate for security-critical applications.
References
- silverstripe/silverstripe-subsites@73f3d15
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/subsites/CVE-2022-42949.yaml
- https://www.silverstripe.org/download/security-releases/cve-2022-42949
Severity
Moderate
5.4
/ 10
CVSS base metrics
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Weaknesses
No CWEs
CVE ID
CVE-2022-42949
GHSA ID
GHSA-cx45-565q-6qx8
Source code
silverstripe/silverstripe-subsites
Checking history
See something to contribute? Suggest improvements for this vulnerability.