Pimcore Cross-site Scripting (XSS) in Static Routes name field
The name field of Static Routes in Pimcore is vulnerable to cross-site scripting, allowing an attacker to inject script that runs in another user's browser. This could let the attacker steal a user's cookie and gain unauthorised access to that account, or redirect users to malicious sites.
pimcore/pimcore
Originally disclosed on huntr
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.
Patches
Update to version 10.5.21 or apply this patch manually: https://github.com/pimcore/pimcore/commit/07a2c95be524c7e20105cef58c5767d4ebb06091.patch
Workarounds
Apply patches manually: https://github.com/pimcore/pimcore/commit/07a2c95be524c7e20105cef58c5767d4ebb06091.patch
References
https://huntr.dev/bounties/564cb512-2bcc-4458-8c20-88110ab45801/
From the GitHub Advisory Database (GHSA-mhpj-7m7h-8p6x, 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
What the attacker needed
Ability to set a Static Routes name; victim views the affected page
The fix
It was fixed in version 10.5.21, or by applying the linked 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 when a website displays user-supplied text without making it safe, so a malicious snippet of code runs in another person's browser. Here, the name of a Static Route (a saved URL pattern in Pimcore) is shown without proper escaping. An attacker who can set that name could run code in the browser of anyone who views it, potentially stealing their login cookie.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.