GitHub Advisoryadvisory · Packagist
GHSA-98xr-mmq5-vc5h MantisBT XSS allows unsanitized input via admin/install.php
MEDIUM
Official page ↗
- Aliases
- CVE-2017-12061
- Ecosystem
- Packagist
- Packages
- mantisbt/mantisbt
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2025-05-30
Affected packages
• Packagist mantisbt/mantisbt: < 1.3.12 → fixed in 1.3.12
• Packagist mantisbt/mantisbt: >= 2.0.0, < 2.5.2 → fixed in 2.5.2
Description
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.
Related
Alias · CVE (1)
- CVE-2017-12061 An XSS issue was discovered in admin/install.php in MantisBT before 1.3.12 and 2.x before 2.5.2. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- 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