Cross-site Scripting (XSS) in Admin Login too many attempts notice
Published 27 Apr 2023 · Updated 16 Feb 2024
Affected package
- Affected
- <10.5.21
- Fixed in
- 10.5.21
composer require pimcore/pimcore:^10.5.21Details
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/
Is GHSA-fq95-rx4q-qgg2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pimcore/pimcore, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.