Rapid7 Vulnerability & Exploit Database

SAP Solution Manager remote unauthorized OS commands execution

Back to Search

SAP Solution Manager remote unauthorized OS commands execution

Disclosed
10/03/2020
Created
03/26/2021

Description

This module exploits the CVE-2020-6207 vulnerability within the SAP EEM servlet (tc~smd~agent~application~eem) of SAP Solution Manager (SolMan) running version 7.2. The vulnerability occurs due to missing authentication checks when submitting a SOAP request to the /EemAdminService/EemAdmin page to get information about connected SMDAgents, send HTTP request (SSRF) and execute OS command on connected SMDAgent. Works stable in connected SMDAgent with Java version 1.8. Successful exploitation will allow unauthenticated remote attackers to get reverse shell from connected to the SolMan agent as the user under which it runs SMDAgent service, usually daaadm.

Author(s)

  • Yvan Genuer
  • Pablo Artuso
  • Dmitry Chastuhin
  • Vladimir Ivanov

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

;