MediumGHSA-6vf6-g3pr-j83hCVE-2023-0323
pimcore is vulnerable to cross-site scripting via "title field " in data objects
Published 20 Jan 2023 · Updated 8 Nov 2023
Affected package
pimcore/pimcoreComposer
- Affected
- <10.5.14
- Fixed in
- 10.5.14
Update to the fixed version for your release line, for example:
composer require pimcore/pimcore:^10.5.14Details
Impact
The vulnerability is capable of resulting in stolen user cookies.
Proof of Concept
Login with dev account https://11.x-dev.pimcore.fun/admin/?_dc=1670962076&perspective= Go to setting --> data objects --> classes --> events Click media under genaral settings Add payload in title field. Go to data objects module and open events, xss will trigger // PoC.js "><iMg SrC="x" oNeRRor="alert(xss);">
Patches
Update to version 10.5.14 or apply this patch manually https://github.com/pimcore/pimcore/pull/13916.patch
Workarounds
Apply https://github.com/pimcore/pimcore/pull/13916.patch manually.
References
https://huntr.dev/bounties/129d6a4b-0504-4de1-a72c-3f12c4552343/
Is GHSA-6vf6-g3pr-j83h 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/pimcore, and gives you the command that fixes it.
References
- Linkgithub.com/pimcore/pimcore/security/advisories/GHSA-6vf6-g3pr-j83h
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-0323
- Linkgithub.com/pimcore/pimcore/pull/13916.patch
- Linkgithub.com/pimcore/pimcore/commit/746fac1a342841624f63ab13edcd340358e1bc04
- Packagegithub.com/pimcore/pimcore
- Linkhuntr.dev/bounties/129d6a4b-0504-4de1-a72c-3f12c4552343
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.