Cross-site Scripting (XSS) in Admin Login too many attempts notice
A cross-site scripting vulnerability existed in the admin login page's 'too many attempts' notice. An attacker could inject malicious JavaScript that would execute in a victim's browser, potentially stealing session cookies and impersonating the user.
pimcore/pimcore
Originally disclosed on huntr
Impact
Malicious JavaScript has access to all the same objects as the rest of the web page, including access to cookies and local storage, which are often used to store session tokens. If an attacker can obtain a user's session cookie, they can then impersonate that user.
Furthermore, JavaScript can read and make arbitrary modifications to the contents of a page being displayed to a user. Therefore, XSS in conjunction with some clever social engineering opens up a lot of possibilities for an attacker.
Patches
Update to version 10.5.21 or apply this patch manually https://github.com/pimcore/pimcore/commit/66f1089fb1b9bcd575bfce9b1d4abb0f0499df11.patch
Workarounds
Apply patch https://github.com/pimcore/pimcore/commit/66f1089fb1b9bcd575bfce9b1d4abb0f0499df11.patch manually.
References
https://huntr.dev/bounties/cf3901ac-a649-478f-ab08-094ef759c11d/
From the GitHub Advisory Database (GHSA-fq95-rx4q-qgg2, 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 session cookie and impersonate them, and could also modify page contents to facilitate social engineering.
What the attacker needed
Admin login page reachable; victim views the crafted notice
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 a flaw where a website shows user-supplied text without cleaning it, so an attacker can slip in JavaScript code. When another person views that page, the code runs in their browser as if the site itself had written it. Here the login page's warning about too many attempts could be abused to run such code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.