Skip to content

CVE-2017-12061 MantisBT XSS allows unsanitized input via admin/install.php

MediumCVSS 6.1 EPSS 2.9%
Published
Updated
Exploit status
No public exploit known
Technology
PHP

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
mantisbt >= 1.3.0, < 1.3.12; >= 2.0.0, < 2.5.2 1.3.12, 2.5.2 Fixed
mantisbt(Packagist) < 1.3.12; <= 1.3.11; = 2.3.0; = 2.3.1 +8 more 1.3.12, 2.5.2 Fixed

Affected products

ProductAffected versionsFixed in
mantisbt(Packagist) < 1.3.12 1.3.12
mantisbt(Packagist) >= 2.0.0, < 2.5.2 2.5.2
mantisbt(Packagist) = 2.3.0 No fix listed
mantisbt(Packagist) = 2.3.1 No fix listed
mantisbt(Packagist) = 2.3.2 No fix listed
mantisbt(Packagist) = 2.3.3 No fix listed
mantisbt(Packagist) = 2.4.0 No fix listed
mantisbt(Packagist) = 2.4.1 No fix listed
mantisbt(Packagist) = 2.4.2 No fix listed
mantisbt(Packagist) = 2.5.0 No fix listed
mantisbt(Packagist) = 2.5.1 No fix listed
mantisbt >= 1.3.0, < 1.3.12 1.3.12
mantisbt >= 2.0.0, < 2.5.2 2.5.2
mantisbt(Packagist) <= 1.3.11 No fix listed

References