Pimcore Perspective Editor vulnerable to stored cross-site scripting (XSS) in perspective name
The perspective name field in Pimcore Perspective Editor was vulnerable to stored cross-site scripting, allowing an attacker to inject malicious script that executes when other users view the perspective. This could let an attacker steal a user's cookie and gain unauthorised access to that account, or redirect users to malicious sites.
pimcore/perspective-editor
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 1.5.1.
Workarounds
Apply the patch https://github.com/pimcore/perspective-editor/pull/121.patch manually.
From the GitHub Advisory Database (GHSA-fq8q-55v3-2986, 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 perspective name; victim views the perspective
The fix
The issue was fixed in version 1.5.1, and a patch can also be applied 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.
Stored cross-site scripting (XSS) is when a website saves harmful code, such as a script, and later shows it to other people. Here, the name of a 'perspective' (a saved view in the Pimcore admin tool) was not cleaned properly, so a malicious script could be saved and run in another user's browser. That script could then read the user's login cookie, which is like a temporary key, and use it to act as that user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.