Multiple Vendors Vulnerable to DNS Cache Poisoning

Notification Type: IBM Internet Security Systems Protection Alert
Notification Date: July 17, 2008
Notification Version: 1.3
   
Name: Multiple Vendors Vulnerable to DNS Cache Poisoning
Public disclosure/
In the wild date:
July 8, 2008 (vuln disclosure), July 23 (public exploit code)
CVE:

CVE-2008-1447

Description:

Multiple vendor DNS protocol implementations could allow a remote attacker to poison the DNS cache.  Patches that resolve the vulnerability on the DNS may be rendered ineffective if the DNS is behind a NAT device that does not randomize ports.

Public exploit code was made available on July 24, 2008.  At the time of this update, neither X-Force nor IBM MSS has witness any active exploitation nor the integration of this exploit into any exploit toolkits.

 

ISS Coverage

Product Content Version
Proventia Network IDS
Proventia Network IPS
Proventia Network MFS
Proventia Server (Linux)
RealSecure Network
RealSecure Server Sensor
28.100
Proventia Desktop
Proventia Server IPS (Windows)
x.x.x.2240
Propagation Techniques ISS Protection Available

remote exploit

DNS_Cache_Poison_Subdomain_Attack
DNS_Cache_Poison*


HTTP_GET_SQL_UnionSelect

Aug 12, 2008
Nov 13, 2007
July 17, 2008
(updated)
May 29, 2003

* Please contact IBM ISS Customer support and reference private KBA 4904 to obtain important information about configuring this signature.

Detailed Description

Business Impact:

This DNS vulnerability may allow an attacker to obtain sensitive information about clients using the DNS server and may redirect Internet traffic from those clients to any server of the attacker's choosing.  These servers may masquerade as legitimate servers and may trick the victim into entering confidential information or downloading malicious software.

CVSS Base Score: 6.4
  Access Vector: Network
Access Complexity: Low
Authentication: None
Confidentiality Impact: Partial
Integrity Impact: Partial
Availability Impact: Partial
Adjusted Temporal Score: 5.3
  Exploitability: Functional
Remediation Level: Official-Fix
Report Confidence: Confirmed
Affected Products: For a full list of affected versions, see references below.
Technical Description:

Multiple vendor DNS protocol implementations could allow a remote attacker to attempt DNS cache poisoning. The DNS client service fails to provide an adequate amount of entropy when performing DNS queries. An attacker could exploit this vulnerability to poison the DNS cache, which could allow the attacker to obtain sensitive information and redirect Internet traffic to any server of the attacker's choosing.

Even if security patches are applied to DNS servers, the port randomization incorporated by these patches may be ineffective if the DNS resides behind a firewall or router that performs network address translation (NAT) using sequential source ports.

When a host on a computer network selects a source port for a UDP request, it selects a port that is unique for that host. When a one-to-many hiding NAT device receives that request and translates it, it may have to assign a new source port, because the NAT device has to assign unique ports for all of the hosts on the internal network. Few NAT devices on the market randomly select UDP source ports. Therefore, when patched DNS clients and servers are used behind NAT, they may still be vulnerable to attack. The source port entropy introduced by the recent patches is canceled out by the NAT device.

Remediation:

Various vendors have supplied patches to fix the core DNS issue.  See References for details on these patches.

X-Force encourages organizations to ensure the appropriate vendor-supplied patches have been applied. However, if the DNS server is behind a NAT device that does not randomly select source ports, the server may still be vulnerable after patching it.

Some secure NAT devices do exist. Linux boxes running ipchains usually preserve the UDP source port selections made by clients running behind them, which preserves the randomness introduced by the client. An OpenBSD machine running pf will assign a new random UDP port for each transaction.  Unpatched DNS servers behind NAT devices that behave like this may not be vulnerable.

A NAT that selects cryptographically random source ports can help protect a vulnerable application running behind it that selects ports predictably.  Conversely, a NAT that selects ports sequentially breaks the security of applications behind it that depend on random port selection. In short, the recommended mitigation strategy may depend significantly on the NAT in use.

Although several reports have indicated that there are enterprise-class NAT devices that do not randomize ports, no patches were available at the time of this alert's publication.

Since the exploit details of this attack are now public, X-Force encourages customers to attempt to mitigate this threat before vendor updates are available. 

One mitigation technique is to move caching internal DNS servers that are behind NAT into a DMZ where they can be directly assigned a unique Internet IP address. Another possibility is to direct all queries from internal name servers to a temporary forwarding server placed in the DMZ until updates for the NAT device are available. In the later case, it is important that to make sure that recursion is disabled on the internal servers. If not, the internal servers may query directly to servers out on the Internet.

References

XFDB: http://xforce.iss.net/xforce/xfdb/43334
Microsoft: http://www.microsoft.com/technet/security/Bulletin/MS08-037.mspx

Revision History

1.0 Initial publication.
1.1 Added information about public exploit availability and a reference to the KBA that describes how to configure the DNS_Cache_Poison signature.
1.2 Added new signature information.  An older signature is known to pick up certain attacks.
1.3 Updated signature information.


About IBM Internet Security Systems
IBM Internet Security Systems is the trusted security advisor to thousands of the world's leading businesses and governments, providing pre-emptive protection for networks, desktops and servers. An established leader in security since 1994, the IBM Proventia® integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shielding customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force® research and development team – the unequivocal world authority in vulnerability and threat research. The Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the Internet Security Systems Web site at www.iss.net or call 800-776-2362.