{"id":"CVE-2017-12061","published":"2017-08-01T15:00:00Z","modified":"2024-08-05T18:28:15Z","title":"An XSS issue was discovered in admin/install.php in MantisBT before 1.3.12 and 2.x before 2.5.2","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02937,"percentile":0.87434,"provenance":"source"},"cwes":[],"references":[{"url":"http://openwall.com/lists/oss-security/2017/08/01/1","tags":["x_refsource_CONFIRM"]},{"url":"https://mantisbt.org/bugs/view.php?id=23146","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securitytracker.com/id/1039030","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0","tags":["x_refsource_CONFIRM"]},{"url":"http://openwall.com/lists/oss-security/2017/08/01/2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":17.49}]},"affected":[{"ecosystem":"Packagist","package":"mantisbt/mantisbt","vulnerableRanges":["<1.3.12",">=2.0.0, <2.5.2"],"patched":["1.3.12","2.5.2"],"from":["GHSA-98xr-mmq5-vc5h"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting issue in admin/install.php of MantisBT, affecting versions before 1.3.12 and the 2.x line before 2.5.2, where user-controllable installation variables such as $f_database, $f_db_username, and $f_admin_username are output without proper sanitisation. A remote attacker can inject arbitrary JavaScript through these variables, though the risk is mitigated because the admin/ folder should be removed after installation and a Content Security Policy also prevents the injection.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:04Z"},"euvd":{"id":"EUVD-2017-3647","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mantisbt-mantisbt-cve-2014-9571","parents":[{"from":"CVE-2014-9571","to":"CVE-2017-12061","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["admin/install.php"],"commits":["https://github.com/mantisbt/mantisbt/commit/132cd6d041f8ef5811e4eca8bdb516c893ebb52e","https://github.com/mantisbt/mantisbt/commit/6d47c047f71c9e2293320ea5b8d94284a8e15939","https://github.com/mantisbt/mantisbt/commit/17f9b94f031ba93ae2a727bca0e68458ecd08fb0","https://github.com/mantisbt/mantisbt/commit/c73ae3d3d4dd4681489a9e697e8ade785e27cba5"],"basis":"shared function","functions":["print_test"]}]}],"packageHistory":[{"cve":"CVE-2017-7615","published":"2017-04-16","fixed":"2.3.1","kev":false},{"cve":"CVE-2017-7897","published":"2017-04-18","fixed":"2.3.2","kev":false},{"cve":"CVE-2017-7620","published":"2017-05-21","fixed":"2.4.1","kev":false,"link":{"from":"CVE-2017-7620","to":"CVE-2017-12061","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:mantisbt/mantisbt","fromFixed":"2.4.1","toFixed":"2.5.2","daysApart":72},{"kind":"version-step","provenance":"source","package":"Packagist:mantisbt/mantisbt","fromFixed":"1.3.11","toFixed":"1.3.12","daysApart":72}]}},{"cve":"CVE-2017-12061","published":"2017-08-01","fixed":"2.5.2","kev":false},{"cve":"CVE-2017-12062","published":"2017-08-01","fixed":"2.5.2","kev":false},{"cve":"CVE-2018-13055","published":"2018-08-03","fixed":"2.15.1","kev":false},{"cve":"CVE-2018-14504","published":"2018-08-03","fixed":"2.15.1","kev":false}],"package":"Packagist:mantisbt/mantisbt"}}