Massive, coordinated DNS patch released

A security researcher has responsibly disclosed a fundamental flaw within the Domain Name System (DNS), the addressing scheme behind the common names used on the Internet. Currently, it may be possible to guess these transaction ID values in advance and assert a malicious server as the authoritative DNS server for a popular bank or e-commerce site.

Dan Kaminsky, director of penetration testing services for IO Active, found the DNS flaw earlier this year. Rather than sell the vulnerability, as some researchers have done, Kaminsky decided instead to gather the affected parties and discuss it with them first. Without disclosing any technical details, he said, "the severity is shown by the number of people who've gotten onboard with this patch."

He declined to name the flaw as that would give away details.

On March 31, Kaminsky said 16 researchers gathered at Microsoft to see whether they understood what was going on, as well as what would be a fix to affect the greatest number of people worldwide, and when they would issue this fix.

Toward addressing the flaw, Kaminsky said the researchers all decided to conduct a synchronized, multivendor release. As part of that, Microsoft in its July Patch Tuesday released MS08-037. Cisco Systems, Sun Microsystems, and BIND are also expected to roll out patches later on Tuesday.

The coordinated release covers a wide variety of vendors. Art Manion of US-CERT (United States Computer Emergency Readiness Team) said vendors with DNS servers have been contacted, and there's a longer list of additional vendors that have DNS clients. That list includes AT&T, Akamai, Juniper Networks, Netgear, Nortel, and ZyXEL. Not all of the DNS client vendors have announced patches or updates. Manion also confirmed that other nations with CERTs have also been informed of this vulnerability.

Most systems will be patched automatically. However, those that are not will have 30 days to be patched manually before additional details are made public.

This issue also affects Internet service providers used by home users. In the coming days, ISPs are expected to apply the patch to their systems. Hardware routers used by home users should not be affected.

Kaminsky said he will release details in time for Black Hat 2008, on August 7 and 8 in Las Vegas. However, Microsoft in its security bulletin said its patch uses strongly random DNS transaction IDs, random sockets for UDP (User Datagram Protocol) queries, and updates the logic used to manage the DNS cache."

Kaminsky did confirm that the patches released today will increase DNS randomness: "Where we had 16-bit before, we now have 32 bits."

To check to see if your system is vulnerable, Kaminsky has provided a DNS checker.

Researcher offers insight into DNS flaw

At Tuesday's press conference, Kaminsky refused to provide details about the flaw, preferring to give additional vendors and administrators affected at least 30 days to create or implement the patches.

But within the conference call, during the question-and-answer session, some details and clarifications emerged.

DNS servers translate a popular name such as CNET.com into its numeric IP address. There are 13 principal servers and many subservers located throughout the world to speed the process of IP resolution. Usually a DNS look-up query is assigned a random translation ID, but Kaminsky observed that when a vulnerable DNS server is able to perform recursive DNS queries, it was possible to guess the transaction ID and redirect the result.

DNS queries currently offer a transaction ID that is one of 65,000 possible values. The ID is supposed to be there on every legitimate response. But Kaminsky and others noticed that some weren't particularly random. What has been discovered is that 65,000 is just not enough, said Kaminsky.

Every query has a transaction ID between 0 and 65,000, and the reply must contain the transaction ID. Thus, it may be possible to guess these transaction ID values in advance and insert a malicious server as the authoritative DNS server for a popular bank or e-commerce site.

After applying the patch, Kaminsky said, the transaction ID would now contain the correct transaction ID plus the correct source port, a random identifier located at a different layer in the IP packet. He said when discussing remediation of the flaw the only place they could go for additional randomness within the current infrastructure was the source port. This would increase the size of the translation ID from, say, 16 bits to 32 bits, he said.

The IP protocol has a system for sending small messages and there are various headers. He said think of the source port in this case as a return address on an envelope; it's extra data in addition to the message you are sending. He said you can sign your name on the letter itself. You can also sign your name on the envelope as well. The patch does something similar with the translation IDs.

Kaminsky said he will release more details in time for Black Hat 2008, to be held August 7 and 8 in Las Vegas.

In the meantime he's set a high standard for responsible vulnerability disclosure.

Talkback

Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

Terms of Service - As a ZDNet registrant, and by using this service, you indicate that you agree to our Terms and Conditions and have read and understand our Privacy Policy.

Tech Blueprint

ZDNet Australia Live

Further to the comments from James, I can add that most botnets will test the bandwidth of the end host before they take control of that ...

4 minutes ago by patrickbutler on National Botnet Network coming: Earthwave

ZDNet reports Microsoft launches its own social service http://t.co/VJS5BkwF

by http://t.co/vmlLt4bh: Travel Tech Q and A: Skyscanner's Ewan Gray: Ewan Gray, Skyscanner's director for Asia P... http://t.co/4bfDRXo4

Travel Tech Q and A: Skyscanner's Ewan Gray http://t.co/CtNlVWN7

Travel Tech Q and A: Skyscanner's Ewan Gray: Ewan Gray, Skyscanner's director for Asia Pacific, shares some of h... http://t.co/ZxjpmqiM

Seriously, every business is slow to start off, that's common sense. But the NBN is attempting to replace an incumbent monopoly. So wait ...

24 minutes ago by Beta on NBN users opt for 100Mbps

Microsoft is serious about open source: 10 proof points http://t.co/iv2ji74q

Ok, for all of those that are complaining about price lets look at it this way, Australia started using copper wiring back in the late 18...

30 minutes ago by Kalthae on NBN users opt for 100Mbps

Ah so you have an anti-NBN website then...ok!

40 minutes ago by Beta on NBN users opt for 100Mbps

@ Doubt, I think you should be a policy advisor to Tony Abbott. I can see it now pre-election 2013, Press Club - Journo: Mr Abbott, yo...

41 minutes ago by Beta on NBN users opt for 100Mbps

@beachking, that's why the first N in NBN is of importance, because while this may come as a shock, the universe does not revolve around ...

47 minutes ago by Beta on NBN users opt for 100Mbps

Err the words give it away "world class"... it's not Huawei class, China class or India class, it's world class! World Class from Farlex...

50 minutes ago by Beta on NBN users opt for 100Mbps

How many billions of dollars have they spent for these 3500 connections? Whats the return in profit? How long are they going to keep subs...

54 minutes ago by Dazza152 on NBN users opt for 100Mbps

Accelerator targets 'clean-tech' start-ups http://t.co/p9VPCzCa

RT @vexnews: NBN users opt for highest speed plan http://t.co/8eUvvVvQ

OutsourcingLive: #Outsourcing is still on the rise http://t.co/5U6R431A ^NK http://t.co/B8HtVvAD

In Facebook IPO fiasco the 'smart money' got burnt - ZDNet (blog): TIMEIn Facebook IPO fiasco the 'smart money' ... http://t.co/3iD1g6lG

So thats $2000 per premise just to replace the NTU...wow. Somebody is making a fortune on that work

1 hour ago by Coops1 on NBN's Tassie upgrade to cost $1.3 million

But will we actually get 100mps Internet speeds often overstated RT@vexnews: NBN users opt for highest speed plan http://t.co/1uTiHXrd

RT @JamesVickery: NBN users opt for 100Mbps http://t.co/atP8fi1L

I guess fixed connections are not for the free spirits amongst us. Long live choice, it seems prepaid wireless for you is the go.

1 hour ago by Doubt on NBN users opt for 100Mbps

more cloud TV recording services tumble in wake of court victory for copyright monopolies - http://t.co/FEWm6Z7Y

Mike Quigley | Only 3500 NBN customers with active fibre services to date http://t.co/6eB525Ur via #auspol NBN very expensive failure

The take up figures are all a bit meaningless until NBN hits the big population centres.

1 hour ago by Doubt on NBN users opt for 100Mbps

Allow me to take your money if you are keen to give it away, a Western Union transfer is ok.

1 hour ago by Doubt on NBN users opt for 100Mbps

NBN users opt for highest speed plan http://t.co/8eUvvVvQ

The choice of connecting to fibre rests entirely in your hands, if you are so desperate to have a fibre connection, pack your bags and mo...

1 hour ago by Doubt on NBN users opt for 100Mbps

Funny argument the term "world class" , what does that mean when considering data networks. If NBN rolled out fibre but use Huawei equipm...

1 hour ago by Doubt on NBN users opt for 100Mbps

http://t.co/ZWOl5p8F

I agree it would (will) be nice to have a common platform. People are funny creatures and like to have choice. Some may feel they get bet...

1 hour ago by Doubt on NBN users opt for 100Mbps

Mr Quigley has to be politically aware, as does any CEO.

1 hour ago by Doubt on NBN users opt for 100Mbps

In essence the waiver of charges by NBN appears to be a subsidy to smaller or more remote areas. Idea! Setup a number of smaller service ...

1 hour ago by Doubt on NBN users opt for 100Mbps

http://t.co/JWINuozI

Remember, these are the high speeds that Mr Abbott believes you guys don't want.... http://t.co/Jtqnwb2M

Three tips for businesses to support connected customers http://t.co/to8fCl1N via @zite

Which Windows will make for a better tablet? http://t.co/wxr95itf via @zite

Cloud based TV recording services in Australia shutdown after negative ruling. http://t.co/9zlnSVJd

AD on azure, is all about APPS .. http://t.co/EMdsrHZF

children porn video

4 hours ago by nmhcqogu on Google to encrypt searches by default

#Biometric bugs too dangerous for public? http://t.co/IdIBiRUJ (via @zdnetau by @mukimu)

#Outsourcing is still on the rise http://t.co/ANaHIofI ^NK

#NBN users opt for 100Mbps
http://t.co/SmMFpItP #auspol

IBM's Intelligent Clusters - an old idea done well: IBM's pre-configured, pre-tested clusters take the uncertain... http://t.co/Z64vEYiL

33 must-have business and marketing iPad apps from Docstoc http://t.co/Bu7BhFRv

when and if NBN gets to Cairns FNQ, it is going to be a big white elephant tooo costly and to much of a monthly commitment. I am qui...

6 hours ago by beachking on NBN users opt for 100Mbps

Dell Secureworks talks with ZDNet about Android's biggest #security flaws - http://t.co/08kaKg6R #infosec RT @dellenterprise

33 must-have business and marketing iPad apps from Docstoc http://t.co/0XqdwbAN

33 must-have business and marketing iPad apps from Docstoc http://t.co/pf1m0CNP

RT @sergicles: Google vs Oracle, that was a quick one. http://t.co/AFIEf8vG Oracle trolling pw4ned

RT @MobiMediaMarket: Mobile Devices Were Wrecking My Health. Here's How I Plan to Change That. - ZDNet (blog) http://t.co/zMWCOZOr #mobiledevices

B.S Artist ? (M.A Oxford )

8 hours ago by Abel Adamski on NBN FUD: will Abbott ever learn?

Mobile Devices Were Wrecking My Health. Here's How I Plan to Change That. - ZDNet (blog) http://t.co/zMWCOZOr #mobiledevices

"@ECCOUNCIL: Cybercrime golden age over in two years? http://t.co/PiR0zeF1 #infosec #hack #cybersecurity"

Cool: NZ will host part of Square Km Array http://t.co/a2mz3DC5. Sad: @smh couldn't bring themselves to acknowledge it http://t.co/l90oLuYp

Build your own smartphone stand http://t.co/I0avWsRO

This story has been voted 12000 times in the last 24 hours!

1 day ago, Is Bill Gates a great leader?

This story has been voted 10 times in the last 24 hours!

3 days ago, CeBIT 2012 opens: photos

This story has been voted 15 times in the last 24 hours!

3 days ago, Lenovo ThinkPad 3G tablet (32GB)

Facebook Activity

Keep up with ZDNet Australia

ZDNet Events Calendar

ZDNet Events Calendar