Rapid7 Vulnerability & Exploit Database

Symantec Messaging Gateway Remote Code Execution

Back to Search

Symantec Messaging Gateway Remote Code Execution



This module exploits the command injection vulnerability of Symantec Messaging Gateway product. An authenticated user can execute a terminal command under the context of the web server user which is root. backupNow.do 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. But given parameters, such a SSH ip address, port and credentials are validated before executing terminal command. Thus, you need to configure your own SSH service and set the required parameter during module usage. This module was tested against Symantec Messaging Gateway 10.6.2-7.


  • Mehmet Ince <mehmet@mehmetince.net>






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/symantec_messaging_gateway_exec
msf exploit(symantec_messaging_gateway_exec) > show targets
msf exploit(symantec_messaging_gateway_exec) > set TARGET < target-id >
msf exploit(symantec_messaging_gateway_exec) > show options
    ...show and set options...
msf exploit(symantec_messaging_gateway_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