MEDIUM5.4
GHSA-cx45-565q-6qx8
SilverStripe Subsite weakens file permissions
Quick fix
GHSA-cx45-565q-6qx8 — silverstripe/subsites: upgrade to the fixed version with the command below.
composer require silverstripe/subsites:^2.6.1Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/subsites
Introduced in:
2.0.0Fixed in: 2.6.1Fix
composer require silverstripe/subsites:^2.6.1References
- https://nvd.nist.gov/vuln/detail/CVE-2022-42949[ADVISORY]
- https://github.com/silverstripe/silverstripe-subsites/commit/73f3d15bfb90ba779dd5498fcc5ae4ab292d6272[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/subsites/CVE-2022-42949.yaml[WEB]
- https://github.com/silverstripe/silverstripe-subsites[PACKAGE]
- https://www.silverstripe.org/download/security-releases[WEB]
- https://www.silverstripe.org/download/security-releases/cve-2022-42949[WEB]