Rapid7 Vulnerability & Exploit Database

SAP NetWeaver HostControl Command Injection

Back to Search

SAP NetWeaver HostControl Command Injection

Disclosed
08/14/2012
Created
05/30/2018

Description

This module exploits a command injection vulnerability in the SAPHostControl Service, by sending a specially crafted SOAP request to the management console. In order to deal with the spaces and length limitations, a WebDAV service is created to run an arbitrary payload when accessed as a UNC path. Because of this, the target host must have the WebClient service (WebDAV Mini-Redirector) enabled. It is enabled and automatically started by default on Windows XP SP3, but disabled by default on Windows 2003 SP2.

Author(s)

  • Michael Jordon
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Windows

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/windows/http/sap_host_control_cmd_exec
msf exploit(sap_host_control_cmd_exec) > show targets
    ...targets...
msf exploit(sap_host_control_cmd_exec) > set TARGET < target-id >
msf exploit(sap_host_control_cmd_exec) > show options
    ...show and set options...
msf exploit(sap_host_control_cmd_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

;