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 SOAP requests to the /EemAdminService/EemAdmin page to get information about connected SMDAgents, send HTTP request (SSRF), and execute OS commands on connected SMDAgent. Works stable in connected SMDAgent with Java version 1.8. Successful exploitation of the vulnerability enables unauthenticated remote attackers to achieve SSRF and execute OS commands from the agent connected to SolMan as a user from which the SMDAgent service starts, usually the 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 auxiliary/admin/sap/cve_2020_6207_solman_rce
msf auxiliary(cve_2020_6207_solman_rce) > show actions
    ...actions...
msf auxiliary(cve_2020_6207_solman_rce) > set ACTION < action-name >
msf auxiliary(cve_2020_6207_solman_rce) > show options
    ...show and set options...
msf auxiliary(cve_2020_6207_solman_rce) > run 

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

;