Alertas do CAIS ALR-19112002a
Vulnerability in the sending requests control of Bind versions 4 and 8 allows DNS spoofing
[CAIS, 19.11.2002, revisão 01]
credits: Vagner Sacramento, DIMAp-UFRN
Ccais/RNP (Brazilian Research Network CSIRT) and Vagner Sacramento from DIMAp/UFRN (Department of Computer Science and Applied Mathematics / Federal University of Rio Grande do Norte) made some experiments with several versions of the Internet Software Consortium' s (ISC) Berkeley Internet Name Domain (Bind), demonstrating the possibility of successful DNS Spoofing attacks to versions 4 and 8.
The Bind application is one implementation of the Domain Name System (DNS) protocol, maintained by ISC. This application resolves Internet host names into IP addresses and IP addresses back into host names, receiving requests from DNS clients at port fifty-three (53).
The identified vulnerability seriously affects the operation of Internet basic services because many of them depend on DNS to perform their functionalities.
Most of name servers in the Internet are running BIND. Recent information obtained from Bill Manning of the USC/ISI indicates that more than 60% of the current DNS servers still use vulnerable and old versions of BIND.
The problem described on this advisory certifies BIND versions 4 and 8 do not prevent sending of two or more resolution requests for the same domain name allowing DNS Spoofing attacks with significant probability of success.
Bind versions 4 and 8 use procedures that allow a remote DNS Spoofing attack against DNS servers.
The attack goal is to anticipate a reply with false information to the target DNS server, making the server to store in its cache a false IP address for a certain domain name.
To better understand the identified vulnerability, consider the following scenario. When n different DNS clients send simultaneous requests to a target DNS server (running Bind 4 or Bind 8) to resolve the same domain name, the target server will forward the requests received to others DNS servers, starting from root-servers and trying to get replies for each one of the requests.
In this context, the identified vulnerability can be exploited if an attacker sends simultaneously n requests to the target DNS server using in each one a different IP source address and the same domain name. The target DNS server will send all the received requests to others DNS servers in order to resolve them. Since these requests will be processed independently, they will be assigned different identifiers (ID). As a result, this server will be waiting for n replies with different IDs for the resolution of the same domain name. The attacker then sends several replies with different IDs to the target DNS server attempting to guess one of the expected replies ID, thus applying a DNS Spoofing attack.
The success probability in the implementation of DNS Spoofing attack in BIND 4 and BIND 8 is calculated by the equation: n-request-sent/65535, where n-request-sent is the number of requests sent simultaneously to the target DNS server.
Normal operation of many Internet services depends on the proper operation of DNS servers. thus, other services could be impacted if this vulnerability is succesfully exploited. An attacker can use DNS spoofing mechanisms to apply a denial of service attack (DoS) or masquerade as a "trusted" entity.
The attacker can inject false information into a DNS cache mapping a host name to an arbitrary IP address. Some direct consequences of DNS Spoofing attacks are:
4. Systems Affected
DNS Servers running the following versions of ISC BIND:
· 4.9.11 and prior (4.9.x);
Upgrade to BIND 9.2.1, available in:
6. Actions Recommended
Some applicable recommendations regarding the security of DNS servers are:
In addition, best practices for secure configuration of DNS server referenced on a recently published document by CERT/CC: "Securing an Internet Name Server" should be considered. This document is available in:
 Internet Software Consortium;
To Vagner Sacramento that discovered the vulnerability described in this advisory during the development of his master thesis in the DIMAp/UFRN under the orientation of Prof. Thais Vasconcelos Batista and Prof. Guido Lemos de Souza Filho.
To Thiago Alves da Silva that provides support during the tests at CAIS.
Contato com o Cais:
+55 (19) 3787-3300