MEDIUM4.8
GHSA-4w6c-3hcx-rfj5
MantisBT vulnerable to XSS through config_option parameter in adm_config_report.php
Quick fix
GHSA-4w6c-3hcx-rfj5 — mantisbt/mantisbt: upgrade to the fixed version with the command below.
composer require mantisbt/mantisbt:^1.3.9Details
A cross-site scripting (XSS) vulnerability in the MantisBT Configuration Report page (adm_config_report.php) allows remote attackers to inject arbitrary code (if CSP settings permit it) through a crafted 'config_option' parameter. This is fixed in 1.3.9, 2.1.3, and 2.2.3.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/mantisbt/mantisbt
Introduced in:
0Fixed in: 1.3.9Fix
composer require mantisbt/mantisbt:^1.3.9Packagist/mantisbt/mantisbt
Introduced in:
2.1.0Fixed in: 2.1.3Fix
composer require mantisbt/mantisbt:^2.1.3Packagist/mantisbt/mantisbt
Introduced in:
2.2.0Fixed in: 2.2.3Fix
composer require mantisbt/mantisbt:^2.2.3References
- https://nvd.nist.gov/vuln/detail/CVE-2017-7309[ADVISORY]
- https://github.com/mantisbt/mantisbt/commit/0243375e32bc24878e309f3d6ef6d8cfb3e2f278[WEB]
- https://github.com/mantisbt/mantisbt/commit/c9e5b1d0404503022605459552faeaf610bf15ae[WEB]
- https://github.com/mantisbt/mantisbt/commit/e881dd79df422033bbea88914fc0a717fae40358[WEB]
- https://github.com/mantisbt/mantisbt[PACKAGE]
- http://openwall.com/lists/oss-security/2017/03/30/4[WEB]
- http://www.mantisbt.org/bugs/view.php?id=22579[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"]}'