Cross-site Scripting (XSS) in Document Types
The Name field in the Document Types module of Pimcore's settings was not properly secured, allowing cross-site scripting. An attacker could steal a user's cookie to gain unauthorised access to their account or redirect them to malicious sites.
pimcore/pimcore
Originally disclosed on huntr
Impact
Unsecured Name field in Document Types module in Settings.
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.
Patches
Update to version 10.5.19 or apply this patch manually https://github.com/pimcore/pimcore/pull/14645.patch
Workarounds
Apply https://github.com/pimcore/pimcore/pull/14645.patch manually.
References
https://huntr.dev/bounties/e0829fea-e458-47b8-84a3-a74476d9638f/
From the GitHub Advisory Database (GHSA-3223-w774-99fq, 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
Impact
An attacker could steal a user's cookie and gain unauthorised access to that user's account through the stolen cookie or redirect users to other malicious sites.
What the attacker needed
Access to the Document Types settings; victim views the affected field
The fix
The issue was fixed in version 10.5.19; users should update or apply the provided patch manually.
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.
Cross-site scripting (XSS) is a flaw where a website displays user-supplied text without cleaning it, so an attacker can insert code that runs in other users' browsers. Here, the Name field in a settings area did not sanitise input, so a malicious script could run when someone viewed that field. This could let an attacker steal the victim's login cookie and take over their account.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.