MEDIUM4.3
GHSA-v68g-62v9-39w5
Unpublished, protected files can be published via shortcode
Quick fix
GHSA-v68g-62v9-39w5 — silverstripe/assets: upgrade to the fixed version with the command below.
composer require silverstripe/assets:^1.10.1Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/assets
Introduced in:
1.0.0Fixed in: 1.10.1Fix
composer require silverstripe/assets:^1.10.1References
- https://nvd.nist.gov/vuln/detail/CVE-2022-29858[ADVISORY]
- https://github.com/silverstripe/silverstripe-assets/commit/5f6a73b010c01587ffbfb954441f6b7cbb54e767[WEB]
- https://forum.silverstripe.org/c/releases[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/assets/CVE-2022-29858.yaml[WEB]
- https://huntr.dev/bounties/90e17d95-9f2f-44eb-9f26-49fa13a41d5a[WEB]
- https://www.silverstripe.org/blog/tag/release[WEB]
- https://www.silverstripe.org/download/security-releases[WEB]
- https://www.silverstripe.org/download/security-releases/cve-2022-29858[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/silverstripe/assets"]}'