Date: Fri, 9 Aug 2002 16:37:31 -1000 From: FORENSICS.ORG Security CoordinatorTo: bugtraq@ Subject: The Large-Scale Threat of Bad Data in DNS
It is a commonly-held belief today, even amongst information security professionals, that it doesn't matter if DNS hijacking occurs, because it doesn't impact the security of SSL -- if a client is hijacked through "bad data" in DNS and redirected to a malicious attacker instead of the authentic SSL-secured server, the client will be informed of this fact because the SSL protocol authenticates the identity of the server reliably through the use of PKI certificates. There's no way for an attacker to spoof the SSL identity of the authentic server without stealing that server's secret key which corresponds to the public key contained within the server's PKI certificate as issued by a Certificate Authority (CA) such as Verisign. It is generally believed that secret keys are hard to steal, and that keeping secret keys secret is easy, so nobody should be especially worried about a DNS hijacker and "bad data" in DNS as long as they always use SSL or similar encryption and authentication software and protocols to protect sensitive communications on the Internet.
Two recent software bugs discovered by researchers and reported on BugTraq, both of which impact Microsoft Internet Explorer as well as certain other software (a definitive list won't exist for some time, as there are many variations of the attack techniques and even the researchers themselves acknowledge that they haven't explored very many of the variations or looked into whether or not other software may also be vulnerable to these attacks) tear apart the belief that "bad data" in DNS is not a severe threat because of the existence of SSL and other standards that give everyone the security that DNS can not.
Mike Benham [
Adam Megacz [
There ARE protections available to everyone impacted by "bad data" in DNS.
The first protection is knowledge. 1) SSL can no longer be presumed to provide automatic server identity authentication; especially not when Internet Explorer is used. 2) Any domain name can resolve to an address that points at computers behind your firewall if your firewall doesn't have the ability to filter out this type of RFC 1918 "bad data" in DNS lookups; as a result, any URL can cause any Web browser to attack computers behind the firewall -- INCLUDING your own computer: 127.0.0.1 is the loopback adapter address present in every TCP/IP-enabled computer which causes the computer to refer to itself without knowledge of its own name or address, and this address can ALSO be configured as "bad data" in any DNS zone resource record. 3) Sending code, including script, over the network is a very risky practice that should be discouraged; even when digital signatures are used to authenticate the trustworthiness of such code, these signatures do not provide a guarantee of safety and software bugs (or key theft) can render them useless -- automatic trust should never be granted to code that travels over the network and better tools for human users to use for making trust determinations should be deployed wherever possible.
The second protection is software patches. 1) Web browsers and other software vulnerable right now to the various "bad data" DNS threats need to be fixed or uninstalled. 2) DNS resolvers should properly implement RFC 1918 and reject private network addresses received from any DNS server not located on the same private network. 3) Firewalls need to be upgraded with the ability to properly implement RFC 1918 AND filter out 127.0.0.1 RR's (not mentioned explicitly in RFC 1918) 4) ISP's need to update the resolvers they have deployed in the DNS servers they operate on behalf of customers so that they will never relay "bad data", which would ideally include 5) DEPLOY DNSSEC! (see reference [5] below)
The third protection is enhanced security policy for Internet infrastructure operators. 1) Enforce a new common-sense policy for DNS and DNSSEC (which is not currently designed to prevent "bad data" if that "bad data" is entered on purpose by an attacker who legitimately, or through key or credential theft, has control of a DNS zone) which says that IP address can't be misappropriated without permission by anyone who registers a domain name; instead, everyone who wishes to map a domain name to an IP address should be required to obtain permission first from the authority who has been assigned control (and responsibility) for managing the IP address block that contains the IP address. 2) Require, as a condition of participating in the DNS (or DNSSEC) that legitimate, verifiable contact information be registered with the appropriate authority (IANA, ARIN, RIPE, etc.) for the legal entity that has been assigned, and has accepted, responsibility (and possibly legal liability) for each address block. 3) Exclude from participation in DNS (or DNSSEC) any IP address that belongs to an address block that is under the control of anonymous or unverifiable entities.
Comments or suggestions on these issues are welcome. We seek to facilitate a properly-secured Internet that takes into consideration the reality of software bugs and implements minimal security policy to provide common-sense safeguards for all users. With respect to DNS, and its eventual successor DNSSEC, it can no longer be tolerated by Internet users that the DNS makes no attempt to restrict the spread of "bad data". Existing RFC's need to be implemented properly, new operational procedures need to be developed, and bad software that contains DNS-based security bugs needs to be patched promptly by all vendors.
On a related subject, everyone involved in the process of computer security vulnerability discovery, disclosure, and software bug fixes should take a moment to familiarize themselves with the internet draft of the Responsible Vulnerability Disclosure Process, and in particular note the important role of a third-party "coordinator" in cases where any party involved in the process needs help communicating with any other party to ensure proper handling and comprehensive understanding of complex technical materials:
0.txt
Most vulnerability disclosures occur today without comprehensive cross-vendor research facilitated by a coordinator. Our group of forensic experts makes its members available to function as Security Coordinators to any party who needs this type of technical assistance.
Thank you for your time and attention to these important matters.
Jason Coombs [
FORENSICS.ORG Security Coordinator