Pimcore Admin Classic Bundle Cross-site Scripting (XSS) in PDF previews
Published 1 Nov 2023 · Updated 16 Feb 2024
Affected package
- Affected
- <1.2.0
- Fixed in
- 1.2.0
composer require pimcore/admin-ui-classic-bundle:^1.2.0Details
Impact
This vulnerability has the potential to steal a user's cookie and gain unauthorized access to that user's account through the stolen cookie or redirect users to other malicious sites.
Proof of Concept Step 1. Go to /admin and login. Step 2. In Documents, go to home -> click on Sample Content -> click Document folder Step 3. Upload file PDF content XSS payload
Patches
Apply patches https://github.com/pimcore/pimcore/commit/757375677dc83a44c6c22f26d97452cc5cda5d7c.patch https://github.com/pimcore/admin-ui-classic-bundle/commit/19fda2e86557c2ed4978316104de5ccdaa66d8b9.patch
Workarounds
Update to version 1.2.0 or apply patches manually https://github.com/pimcore/pimcore/commit/757375677dc83a44c6c22f26d97452cc5cda5d7c.patch https://github.com/pimcore/admin-ui-classic-bundle/commit/19fda2e86557c2ed4978316104de5ccdaa66d8b9.patch
Is GHSA-jfxw-6c5v-c42f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pimcore/admin-ui-classic-bundle, and gives you the command that fixes it.
References
- Linkgithub.com/pimcore/admin-ui-classic-bundle/security/advisories/GHSA-jfxw-6c5v-c42f
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-46722
- Linkgithub.com/pimcore/admin-ui-classic-bundle/commit/19fda2e86557c2ed4978316104de5ccdaa66d8b9
- Linkgithub.com/pimcore/pimcore/commit/757375677dc83a44c6c22f26d97452cc5cda5d7c
- Packagegithub.com/pimcore/admin-ui-classic-bundle
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.