2021-12-31 13:45:20 +00:00
|
|
|
id: vmware-detect
|
2021-09-28 20:02:26 +00:00
|
|
|
|
|
|
|
info:
|
2021-12-31 13:45:20 +00:00
|
|
|
name: VMware Detection
|
2021-09-28 20:02:26 +00:00
|
|
|
author: elouhi
|
|
|
|
severity: info
|
|
|
|
description: Sends a POST request containing a SOAP payload to a vCenter server to obtain version information
|
|
|
|
reference:
|
|
|
|
- https://www.pwndefend.com/2021/09/23/exposed-vmware-vcenter-servers-around-the-world-cve-2021-22005/
|
2021-09-29 13:32:51 +00:00
|
|
|
- https://svn.nmap.org/nmap/scripts/vmware-version.nse
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: tech,vcenter,vmware
|
2021-09-29 18:49:32 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-09-28 20:02:26 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /sdk/ HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
|
|
<soap:Header>
|
|
|
|
<operationID>00000001-00000001</operationID>
|
|
|
|
</soap:Header>
|
|
|
|
<soap:Body>
|
|
|
|
<RetrieveServiceContent xmlns="urn:internalvim25">
|
|
|
|
<_this xsi:type="ManagedObjectReference" type="ServiceInstance">ServiceInstance</_this>
|
|
|
|
</RetrieveServiceContent>
|
|
|
|
</soap:Body>
|
|
|
|
</soap:Envelope>
|
|
|
|
|
2021-09-29 13:26:43 +00:00
|
|
|
matchers-condition: and
|
2021-09-28 20:02:26 +00:00
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
2021-09-29 13:26:43 +00:00
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2021-10-01 14:18:03 +00:00
|
|
|
- 'ha-folder-root'
|
|
|
|
- 'RetrieveServiceContentResponse'
|
2021-12-31 13:45:20 +00:00
|
|
|
condition: or
|
2021-09-29 13:26:43 +00:00
|
|
|
|
2021-09-29 18:49:32 +00:00
|
|
|
- type: word
|
2021-12-31 13:45:20 +00:00
|
|
|
part: header
|
2021-09-29 18:49:32 +00:00
|
|
|
words:
|
|
|
|
- "text/xml"
|
|
|
|
|
2021-09-28 20:02:26 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- "<name>(.*?)</name>"
|
|
|
|
- "<version>(.*?)</version>"
|
2021-10-01 14:18:03 +00:00
|
|
|
- "<build>(.*?)</build>"
|
|
|
|
- "<osType>(.*?)</osType>"
|
|
|
|
- "<productLineId>(.*?)</productLineId>"
|
|
|
|
- "<apiType>(.*?)</apiType>"
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a004730450221009f903b04dfb035af861717060428d7be35ac0124afa6e2abd18624e3161b7e21022051e0ee1bba394974db7dc5468adccbcdc79e7b9c352b62bab25fa8aebf895c23:922c64590222798bb761d5b6d8e72950
|