{"id":"MSF-multi--http--mantisbt_php_exec","name":"MantisBT XmlImportExport Plugin PHP Code Injection Vulnerability","description":"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.","cves":["CVE-2014-7146","CVE-2014-8598"],"author":"Egidio Romano, Juan Escobar, Christian Mehlmauer","published":"2014-11-08","platform":"PHP","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/ab00b9e7e08b1fdc68bdba12de6db2aa4436815e/modules/exploits/multi/http/mantisbt_php_exec.rb","path":"modules/exploits/multi/http/mantisbt_php_exec.rb","revision":"ab00b9e7e08b1fdc68bdba12de6db2aa4436815e","filename":"mantisbt_php_exec.rb","vulnerabilities":[{"id":"CVE-2014-7146","state":"PUBLISHED","title":null,"titleSource":null,"description":"The XmlImportExport plugin in MantisBT 1.2.17 and earlier allows remote attackers to execute arbitrary PHP code via a crafted (1) description field or (2) issuelink attribute in an XML file, which is not properly handled when executing the preg_replace function with the e modifier.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-7146","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-7146"},"updatedAt":"2024-08-06T12:40:19.040Z","retrievedAt":"2026-11-26T22:39:56.024Z","stale":false,"error":null},{"id":"CVE-2014-8598","state":"PUBLISHED","title":null,"titleSource":null,"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-8598","cvss":{"version":"2.0","baseScore":6.4,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-8598"},"updatedAt":"2024-08-06T13:25:59.956Z","retrievedAt":"2026-11-27T04:03:03.642Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--mantisbt_php_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--mantisbt_php_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--mantisbt_php_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--mantisbt_php_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}