Rapid7 Vulnerability & Exploit Database

Mailcleaner Remote Code Execution

Back to Search

Mailcleaner Remote Code Execution

Disclosed
12/19/2018
Created
03/19/2019

Description

This module exploits the command injection vulnerability of MailCleaner Community Edition product. An authenticated user can execute an operating system command under the context of the web server user which is root. /admin/managetracing/search/search endpoint takes several user inputs and then pass them to the internal service which is responsible for executing operating system command. One of the user input is being passed to the service without proper validation. That cause a command injection vulnerability.

Author(s)

  • Mehmet Ince <mehmet@mehmetince.net>

Platform

Python,Unix

Architectures

python, cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/mailcleaner_exec
msf exploit(mailcleaner_exec) > show targets
    ...targets...
msf exploit(mailcleaner_exec) > set TARGET < target-id >
msf exploit(mailcleaner_exec) > show options
    ...show and set options...
msf exploit(mailcleaner_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;