Advertisement
Promo

Security threats Toolkit

Attack code released for Kaminsky DNS flaw

Tom Espiner ZDNet.co.uk

Published: 24 Jul 2008 15:39 BST

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

Attack code has been released for a DNS flaw discovered by security researcher Dan Kaminsky.

The attack code has been added to the penetration-testing tool Metasploit by its creator, HD Moore, and researcher 'Druid', and was published on Wednesday.

"This exploit targets a fairly ubiquitous flaw in DNS implementations which allows the insertion of malicious DNS records into the cache of the target nameserver," the Metasploit description states.

The exploit enables a hacker to cache a malicious host entry into the target nameserver by sending random sub-domain queries to the target DNS server, coupled with spoofed replies to those queries, which have specific parts of the data packet poisoned: the authority and additional records sections.

Eventually, one of the random sub-domain queries will match, and the spoofed packet will get accepted. The malicious host entry will then get cached, due to 'bailiwick constraints', in which resolvers check they are not caching any new address for any website in any one transaction. Up until now, bailiwick constraints were a security safeguard designed to stop a certain kind of DNS poisoning: RRset poisoning.

The exploit uses a similar method to a speculative hypothesis made by researcher Halvar Flake on Monday.

Flake's proposed method starts with hackers sending "floods" of faked requests to a nameserver, which converts text domain names into numeric IP addresses. The attacker sets up a web page with tags that point to a compromised nameserver. When a user visits that web page, the browser will try to resolve to a legitimate nameserver.

However, that bona fide nameserver will then resolve the browser query to the compromised nameserver, with a specific part of the data packet poisoned. This will then poison the bona fide nameserver, and anyone who visits it from then on will unwittingly be pointed to a malicious site.

Security vendor Websense said the flaw and published exploit code amounted to a "significant event".

Read this

Comment
Comment: The man who transformed internet security

When security researcher Dan Kaminsky discovered a potentially disastrous flaw within the Domain Name System, his measured response led to the biggest-ever multiparty patch release

Read more +

"IT professionals will have their work cut out," said Carl Leonard, Websense's European security research manager. "Metasploit is widely used by malware authors."

Kaminsky's flaw has been the subject of speculation, as the researcher has not yet given out technical details, preferring instead to work with affected vendors. Kaminsky will reveal details at the Black Hat security conference in Las Vegas in August.

Leonard said Flake's hypothesis about the DNS flaw could potentially be correct, especially as exploit code has now appeared which works along the same principles.

"[Flake's hypothesis] certainly does seem plausible," said Leonard. "Everyone is geared up to see what Kaminsky has to say."

The DNS flaw caused multiple vendors to issue patches earlier this month. Websense recommended that IT professionals make sure that any affected products have been patched, that suitable workarounds have been put in place, or that service providers have taken appropriate action.

  • Email
  • Trackback
  • Clip Link
  • Print friendlyPrint with EPSON

Did you find this article useful?
4 out of 4 people found this useful


Full Talkback thread

0 comments


Company/Topic Alerts

Create a new alert from the list below:





Video icon

Video

Sentry Posts Blog

Climate research centre compromised

One of the UK's leading climate change research centres has had a security breach. The Climate Research Unit at the University of East Anglia (UEA) suffered a compromise of information,... More

1 comment

Government web-monitoring plans on hol...

Government plans to compel ISPs to process and store details of all web communications have been put on hold until after the next election. The Home Office told ZDNet UK on Wednesday... More

1 comment

Watchdog reveals illegal sale of phone...

The Information Commissioner's Office is preparing a prosecution file against a mobile operator's employees who allegedly sold on thousands of customers' details to a competitor. The... More

1 comment


Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters