GHSA-98xr-mmq5-vc5h
MantisBT XSS allows unsanitized input via admin/install.php
Quick fix
GHSA-98xr-mmq5-vc5h — mantisbt/mantisbt: upgrade to the fixed version with the command below.
composer require mantisbt/mantisbt:^1.3.12Details
An XSS issue was discovered in admin/install.php in MantisBT before 1.3.12 and 2.x before 2.5.2. Some variables under user control in the MantisBT installation script are not properly sanitized before being output, allowing remote attackers to inject arbitrary JavaScript code, as demonstrated by the $f_database, $f_db_username, and $f_admin_username variables. This is mitigated by the fact that the admin/ folder should be deleted after installation, and also prevented by CSP.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.3.12composer require mantisbt/mantisbt:^1.3.122.0.0Fixed in: 2.5.2composer require mantisbt/mantisbt:^2.5.2References
- https://nvd.nist.gov/vuln/detail/CVE-2017-12061[ADVISORY]
- https://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0[WEB]
- https://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5[WEB]
- https://github.com/mantisbt/mantisbt[PACKAGE]
- https://mantisbt.org/bugs/view.php?id=23146[WEB]
- https://web.archive.org/web/20170811053146/http://www.securitytracker.com/id/1039030[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"]}'