Cross-site Scripting (XSS) in Ecommerce Pricing Rules name field
A cross-site scripting vulnerability exists in the 'name' field of Ecommerce Pricing Rules. An attacker could steal a user's cookie and gain unauthorised access to their account or redirect them 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/e88fa79de7b5903fb58ddbc231130b04d937d79e.patch
Workarounds
Apply patch https://github.com/pimcore/pimcore/commit/e88fa79de7b5903fb58ddbc231130b04d937d79e.patch manually.
References
https://huntr.dev/bounties/41edf190-f6bf-4a29-a237-7ff1b2d048d3/
From the GitHub Advisory Database (GHSA-cjv6-w5hf-5wr6, 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 the name field of a pricing rule; victim views the affected pricing rule
The fix
The vulnerability was fixed in version 10.5.21; 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 when a website lets an attacker insert harmful code into a page that other people view. Here, the 'name' field of a pricing rule did not properly clean what users typed, so an attacker could put code there. When another user viewed that rule, the code ran in their browser, potentially letting the attacker steal their login cookie (a small piece of data that keeps you logged in) 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.