Vulnerability & Exploit Database

Back to search

Mailcleaner Remote Code Execution

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.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/linux/http/mailcleaner_exec

Authors

  • Mehmet Ince <mehmet [at] mehmetince.net>

References

Targets

  • Python payload
  • Command payload

Platforms

  • python
  • unix

Architectures

  • python
  • cmd
  • python
  • cmd

Reliability

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