Exploit database

Vulnerability

CVE-2014-8598

Vulnerability details

Score
6.4
Severity
medium

CVSS 2.0 · NVD

Vector string

AV:N/AC:L/Au:N/C:P/I:P/A:N

Description

The XML Import/Export plugin in MantisBT 1.2.x does not restrict access, which allows remote attackers to (1) upload arbitrary XML files via the import page or (2) obtain sensitive information via the export page. NOTE: this issue can be combined with CVE-2014-7146 to execute arbitrary PHP code.

CVE Program

Exploit source choices

2 sources
MantisBT XmlImportExport Plugin PHP Code Injection Vulnerability
MSF-multi--http--mantisbt_php_execMetasploitPHP / remote

This module exploits a post-auth vulnerability found in MantisBT versions 1.2.0a3 up to 1.2.17 when the Import/Export plugin is installed. The vulnerable code exists on plugins/XmlImportExport/ImportXml.php, which receives user input through the "description" field and the "issuelink" attribute of an uploaded XML file and passes to preg_replace() function with the /e modifier. This allows a remote authenticated attacker to execute arbitrary PHP code on the remote machine. This version also suffers from another issue. The import page is not checking the correct user level of the user, so it's possible to exploit this issue with any user including the anonymous one if enabled.

2014-11-08mantisbt_php_exec.rb