CVE-2017-12061
MEDIUM6.1EPSS 1.0%MantisBT XSS allows unsanitized input via admin/install.php
Published: 5/13/2022Modified: 5/30/2025
Also known as:GHSA-98xr-mmq5-vc5h
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.
Affected packages (1)
- Packagist/mantisbt/mantisbtfrom 0, < 1.3.12
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2017-12061
- PATCHhttps://github.com/mantisbt/mantisbt
- WEBhttp://openwall.com/lists/oss-security/2017/08/01/1
- WEBhttp://openwall.com/lists/oss-security/2017/08/01/2
- WEBhttps://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0
- WEBhttps://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5
- WEBhttps://mantisbt.org/bugs/view.php?id=23146
- WEBhttps://web.archive.org/web/20170811053146/http://www.securitytracker.com/id/1039030