MEDIUM6.1
GHSA-w93w-rx52-24qh
MantisBT vulnerable to XSS via unsanitized filter field in manage_user_page.php
Quick fix
GHSA-w93w-rx52-24qh — mantisbt/mantisbt: upgrade to the fixed version with the command below.
composer require mantisbt/mantisbt:^2.5.2Details
An XSS issue was discovered in manage_user_page.php in MantisBT 2.x before 2.5.2. The 'filter' field is not sanitized before being rendered in the Manage User page, allowing remote attackers to execute arbitrary JavaScript code if CSP is disabled.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/mantisbt/mantisbt
Introduced in:
2.0.0Fixed in: 2.5.2Fix
composer require mantisbt/mantisbt:^2.5.2References
- https://nvd.nist.gov/vuln/detail/CVE-2017-12062[ADVISORY]
- https://github.com/mantisbt/mantisbt/commit/9b5b71dadbeeeec27efea59f562ac5bd6d2673b7[WEB]
- https://github.com/mantisbt/mantisbt[PACKAGE]
- https://mantisbt.org/bugs/view.php?id=23166[WEB]
- http://openwall.com/lists/oss-security/2017/08/01/1[WEB]
- http://openwall.com/lists/oss-security/2017/08/01/2[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/mantisbt/mantisbt"]}'