pimcore is vulnerable to cross-site scripting via "title field " in data objects
A stored cross-site scripting vulnerability existed in Pimcore's data object title field, allowing an attacker to inject a payload that executes when the data object is opened. This could lead to stolen user cookies.
pimcore/pimcore
Originally disclosed on huntr
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 ">{{media:0}}
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/
From the GitHub Advisory Database (GHSA-6vf6-g3pr-j83h, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application did not properly sanitise user input in the title field before rendering it in the data objects module.
What the attacker needed
Dev account access; victim opens the affected data object
The fix
The vulnerability was fixed in version 10.5.14 and by applying the provided patch.
How it was found
- Log in with a dev account to the Pimcore admin panel.
- Navigate to Settings > Data Objects > Classes > Events.
- Click on 'media' under general settings.
- Insert a malicious payload into the title field.
- Go to the Data Objects module and open 'events' to trigger the XSS.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a stored cross-site scripting (XSS) bug. An attacker can put malicious code into a field that is saved and later shown to other users, so when they view it, the code runs in their browser and can steal their login cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.