MEDIUM6.1
GHSA-3qv7-98vm-xx2v
MantisBT cross-site scripting (XSS) vulnerability through crafted PATH_INFO
Quick fix
GHSA-3qv7-98vm-xx2v — mantisbt/mantisbt: upgrade to the fixed version with the command below.
composer require mantisbt/mantisbt:^2.17.1Details
A cross-site scripting (XSS) vulnerability in the View Filters page (view_filters_page.php) and Edit Filter page (manage_filter_edit_page.php) in MantisBT 2.1.0 through 2.17.0 allows remote attackers to inject arbitrary code (if CSP settings permit it) through a crafted PATH_INFO. NOTE: this vulnerability exists because of an incomplete fix for CVE-2018-13055.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/mantisbt/mantisbt
Introduced in:
2.1.0Fixed in: 2.17.1Fix
composer require mantisbt/mantisbt:^2.17.1References
- https://nvd.nist.gov/vuln/detail/CVE-2018-16514[ADVISORY]
- https://github.com/mantisbt/mantisbt/commit/66091a42626631a3063774eb0fb8a4218ab22fd4[WEB]
- https://github.com/mantisbt/mantisbt[PACKAGE]
- https://github.com/mantisbt/mantisbt/blob/006cd0cd90c37097e1a065fd3e59ce2534490834/core/filter_form_api.php#L2779[WEB]
- https://mantisbt.org/bugs/view.php?id=24731[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"]}'