Unpublished, protected files can be published via shortcode
The advisory, in context
Silverstripe silverstripe/assets through 1.10 is vulnerable to improper access control that allows protected images to be published by changing an existing image short code on website content. Draft protected images can be published by changing an existing image shortcode on website content to match the ID of the draft protected image and then publishing the website content.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
From 1.0.0 before 1.10.1
Fixed in 1.10.1
66 explicitly affected versions
1.0.0, 1.0.1, 1.0.1-rc1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1.0, 1.1.0-rc1, 1.1.0-rc2, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.10.0, 1.10.0-beta1, 1.10.0-rc1, 1.2.0, 1.2.0-beta1, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.0, 1.3.0-rc1, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.0, 1.4.0-rc1, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 1.4.7, 1.4.8, 1.5.0, 1.5.0-alpha1, 1.5.0-rc1, 1.5.0-rc2, 1.5.1, 1.5.2, 1.5.3, 1.6.0, 1.6.0-beta1, 1.6.0-rc1, 1.6.1, 1.7.0, 1.7.0-beta1, 1.7.0-rc1, 1.7.1, 1.8.0, 1.8.0-beta1, 1.8.0-rc1, 1.9.0, 1.9.0-alpha1, 1.9.0-beta1, 1.9.0-rc1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.10.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0",
"1.0.1",
"1.0.1-rc1",
"1.0.2",
"1.0.3",
"1.0.4",
"1.0.5",
"1.0.6",
"1.0.7",
"1.1.0",
"1.1.0-rc1",
"1.1.0-rc2",
"1.1.1",
"1.1.2",
"1.1.3",
"1.1.4",
"1.1.5",
"1.10.0",
"1.10.0-beta1",
"1.10.0-rc1",
"1.2.0",
"1.2.0-beta1",
"1.2.1",
"1.2.2",
"1.2.3",
"1.2.4",
"1.2.5",
"1.3.0",
"1.3.0-rc1",
"1.3.1",
"1.3.2",
"1.3.3",
"1.3.4",
"1.3.5",
"1.4.0",
"1.4.0-rc1",
"1.4.1",
"1.4.2",
"1.4.3",
"1.4.4",
"1.4.5",
"1.4.6",
"1.4.7",
"1.4.8",
"1.5.0",
"1.5.0-alpha1",
"1.5.0-rc1",
"1.5.0-rc2",
"1.5.1",
"1.5.2",
"1.5.3",
"1.6.0",
"1.6.0-beta1",
"1.6.0-rc1",
"1.6.1",
"1.7.0",
"1.7.0-beta1",
"1.7.0-rc1",
"1.7.1",
"1.8.0",
"1.8.0-beta1",
"1.8.0-rc1",
"1.9.0",
"1.9.0-alpha1",
"1.9.0-beta1",
"1.9.0-rc1"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2022-29858
- https://github.com/silverstripe/silverstripe-assets/commit/5f6a73b010c01587ffbfb954441f6b7cbb54e767
- https://forum.silverstripe.org/c/releases
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/assets/CVE-2022-29858.yaml
- https://huntr.dev/bounties/90e17d95-9f2f-44eb-9f26-49fa13a41d5a
- https://www.silverstripe.org/blog/tag/release
- https://www.silverstripe.org/download/security-releases
- https://www.silverstripe.org/download/security-releases/cve-2022-29858