Kaminsky details DNS flaw

Security researcher Dan Kaminsky has offered more details about a fundamental flaw in the Domain Name System and the extent of the vulnerability.

Dan Kaminsky
(Credit: Kaminsky's blog)

In a presentation at the Black Hat security conference in Las Vegas on Wednesday in the US, Kaminsky gave details of how a successful DNS cache poisoning attack could be launched by taking advantage of the flaw.

Kaminsky explained that transaction IDs, which are supposed to prevent "bad guys" from assigning their own IP address numbers to any domain, are ineffective as security measures. An attacker could flood a DNS server with multiple, slightly varied requests for a domain, such as "1.foo.com" or "2.foo.com."

As transaction IDs can only be a number between 0 and 65535, and the attacker can launch multiple requests, eventually the attacker could spoof a domain by matching the ID through chance.

Once this domain is spoofed, the attacker can flood a name server with spoofed replies to poison its cache for the domain being attacked - for example, "foo.com." Requests for foo.com would direct a user to a site of the attacker's choosing.

This vulnerability can be exploited by using multiple vectors of attack, according to Kaminsky. Web browsers can be forced to look up what the attacker wants, as links, images, and ads can cause a DNS look-up. Mail servers will look up what an attacker wants when performing functions such as a spam check, or when trying to deliver a bounce, newsletter, or bona fide e-mail response.

Kaminsky warned that it is also possible to pollute top-level domains such as .com, .net and .org.

"When the bad guy poisons .com, he gets all requests, even requests he didn't know in advance he wanted," Kaminsky said in his presentation. "He gets to decide what he'll poison forever."

Using encryption such as SSL can mitigate the risks posed by the DNS flaw, according to Kaminsky. However, he warned that SSL only has limited implementation at present and brings its own certification issues. People still log onto sites even if its SSL certificate has expired, he said.

Multiple vendors have brought out patches for their products to mitigate the risks associated with the flaw, mainly based around randomizing port numbers. Kaminsky said this had been effective. Nominum has been patched, Bind implementations have been patched, and Microsoft automatic updates have "swept through lots and lots of users."

Kaminsky said that 70 per cent of Fortune 500 companies have tested and patched mail servers successfully, while 61 percent have patched nonmail servers.

However, Cambridge University security expert Richard Clayton told ZDNet.com.au sister site ZDNet.co.uk that patching and randomization were effective only up to a point.

"You can randomize the identifier for the packet, and you can randomize the port number, but the bad news about randomization is the birthday paradox," Clayton said. "If you have 20 people in a room, the chances are that two of them will share the same birthday.

That's the problem, if you're choosing at random and an attacker is choosing at random. If you are using two-to-the-sixteen (65536) samples, and an attacker is sending samples at the rate of the square root of two to the sixteen, which is two to the eight (256), the attacker has a 50 percent chance of success."

While randomisation mitigates the problem, essentially it just "(puts) off the dreadful day when the attacker can send packets fast enough to overcome entropy", Clayton said.

Clayton said that a "real" fix would be to have the server notice when it was receiving a lot of requests which were not quite correct, become "suspicious," and only communicate using TCP, which can't be spoofed. A further fix would be to have carriers communicate using DNSSEC, a form of DNS which is encrypted, Clayton said.

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

I think the CBA point here is fairly much moot now. There was some, limited, argument for it before the NBN began, but as many people hav...

13 minutes ago by seven_tech on NBN cost-benefit analyses are so 2011

NBN's Tassie upgrade to cost $1.3 million: NBN Co will spend $1.3 million on replacing outdated network technolo... http://t.co/LCq84LB0

Govt urges telcos to team up against NBN Co: The Department of Broadband, Communications and the Digital Economy... http://t.co/E6axgFc2

Refund for some Facebook investors http://t.co/stdpGowE

Finding PCI-compliant cloud providers #in http://t.co/atLHOabj via @zdnetaustralia

Refund for some Facebook investors http://t.co/tUUxRbJd

RT @zdnetaustralia: Is Windows Phone really the third challenger to Android and iOS? http://t.co/2V9xgN6d

Cloud inefficiency - Bad habits are hard to break | ZDNet http://t.co/j4pda3KC

30 servers to 7: BUPA redoes virtualisation http://t.co/EPL5pPpl via @zdnetaustralia

Refund for some Facebook investors http://t.co/TdKeV7y0

Research key to good apps: Westpac CIO http://t.co/tqHNyHs5

by http://t.co/vmlLt4bh: Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook... http://t.co/TZuND7bC

Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook's troubled initial publ... http://t.co/tmiz9zwu

Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook's troubled initial publ... http://t.co/g1t9N5Pb

IT Priorities: servers and storage http://t.co/E1U97jCk

RT @rladvisory: Video - Rob Livingstone @EVOLVECloud 'Getting cloud adoption right' - @zdnetaustralia http://t.co/G6GwvJCp http://t.co/nJrIY3vA @rladvisory

What's happening now with storage and servers? We delved into the area in our IT Priorities webinar series. http://t.co/XmLAsln8 ^ST

RT @rladvisory: ZDNet Video of my recent Executive Keynote presentation delivered at the EVOLVE.Cloud conference entitled...: http://t.co/2h9hEno2

IT Priorities: servers and storage: In November 2011, ZDNet Australia published the results of its IT Priorities... http://t.co/uOxpN90t

IT Priorities: servers and storage http://t.co/iQ6oT7qe

Accelerator targets 'clean-tech' start-ups http://t.co/8kGTxJGp via @zdnetaustralia

Westpac board goes paperless with iPads http://t.co/kdm26Ewr via @zdnetaustralia

Cloud TVRs stop in wake of TV Now ruling http://t.co/2hLRUvt6 via @zdnetaustralia

RT @WauloK: Two cloud-based TV recording services have been suspended after Optus TV Now. http://t.co/VomMRrRs // @techwebcast Beem is dead.

ZDNet Patch Monday ep137 - Removing the anonymity from Anonymous: http://t.co/E6Tn8vJr

ZDNet Patch Monday ep138 - Anonymous 'crippled': where to for hacktivism?: http://t.co/lbKew6Bo

ZDNet Patch Monday ep139 - War talk dominates AusCERT 2012: http://t.co/rUm22Zjm

ZDNet Patch Monday ep135 - iiNet wards off AFACT, but what next?: http://t.co/0xVdYm6i

ZDNet Patch Monday ep136 - Blackhole crimeware as a service here to stay: http://t.co/evnCUlsX

GoogleTV will revolutionize television once viewers understand it http://t.co/c4lEyb3a

Reading this article is like stepping back in time. If I was Paul Berryman I would hang my head in shame. How embarrassing!!! I can’t b...

2 hours ago by MikeSkoey on 30 servers to 7: BUPA redoes virtualisation

Phone cloning, maybe, but bill duplication? Tech-heads give verdict
http://t.co/aw5SNigN
#ozpolitics

The registration sticker provided a visual reminder to the driver to renew regardless of what happened to the renewal letter. The experie...

2 hours ago by dccharron on NSW ditches rego stickers for tech

"xfire: Why is telecommunications being treated different to roads, water and electricity?" Good question, my guess is AUS is far behind...

2 hours ago by ngoctranminh on Five pros and cons of the NBN

“@zdnetaustralia: Is Windows Phone really the third challenger to Android and iOS? http://t.co/Tr7ASra0 ”. It's different but fast and good

Can HP bounce back? http://t.co/TSlWjmrA

Thanks for the response Luke, Given that the quotes are accurate, then the person in charge of the Vic Health App needs to find another j...

3 hours ago by butterflyeffecs on Android fragmentation steers Vic Health

Social business in Australia http://t.co/aBuXFy40 . Australian businesses still laging behind with social business. Time to catch up!

Can Windows Phone bring a new challenge? #WindowsPhone http://t.co/m82nU7hK

Nice analogy. Another factor is whether you can find 50 people with powerful enough weapons. Minassian's argument is essentially that the...

3 hours ago by Mukimu on National Botnet Network coming: Earthwave

RT @digitaltasmania: @ZDNetAustralia #NBN's Tassie upgrade to cost $1.3m http://t.co/1nTbLUJv -Countdown begins for 1st Oppn. MP to misconstrue per unit cost

It's nice to see Tas finally get some decent internet connectivity, for too long Tas has been stooged on decent internet connectivity but...

3 hours ago by Jingles on NBN's Tassie upgrade to cost $1.3 million

Who is Luke Hartsuyker? He must be the Apprentice FUDster. As PaulPC has already said regional consumers want, deserve and are entitled...

4 hours ago by dickster on Regional review highlights NBN, mobile

Its good to see the NBN keeping up with the latest equipement & letting the people benefit from it. After all thats why it was a trial, ...

4 hours ago by fibretech on NBN's Tassie upgrade to cost $1.3 million

Shadow Minister for Regional Communications Luke Hartsuyker has got it wrong. Regional consumers want improved mobile services AND the NB...

5 hours ago by PaulPC on Regional review highlights NBN, mobile

Just remember that Google haven't broken any laws here, they're just doing what all their other multinational competitiors do; minimise t...

5 hours ago by Pachanga on Much ado about Google's tax

ルイヴィトン バッグ : http://www.lovebagjp.com/ Louis Vuitton bags, Louis Vuitton pretension nose about,Louis Vuitton daydre...

5 hours ago by bundLourb on Reservoir blogs: Fan fakes Tarantino diary

シャネル バッグ : http://www.bagssalejp.org/ Chanel trap,chanel shekels,gucci bags,direct purse,poor recent Louis Vuitton keep...

7 hours ago by bybrinkLync on Reservoir blogs: Fan fakes Tarantino diary

I guess but in both cases, dead body!

17 hours ago by Doubt on National Botnet Network coming: Earthwave

I think it's for the very reasons you mention in your first paragraph that there is no CBA. With the ideological differences and vested ...

18 hours ago by RealismBias on NBN cost-benefit analyses are so 2011

Good points; but how do you establish consensus about the terms of reference of a cost-benefit analysis? What is to be included? How far ...

18 hours ago by Gwyntaglaw on NBN cost-benefit analyses are so 2011

I live in a small country town & have done since 2002. When I got to this town it had no mobile phone & no broadband. The only reason w...

19 hours ago by fibretech on Regional review highlights NBN, mobile

Hi there, just became alert to your blog through Google, and found that it is really informative. I am going to watch out for brussels. I...

19 hours ago by Uttedsips on Fujitsu Stylistic ST5011

Like most things in life, the devil is in the details. If a cost benefit analysis included a societal element, I'm certain nobody on eit...

19 hours ago by RealismBias on NBN cost-benefit analyses are so 2011

The coalition has done nothing else but keep changing their view over the last 2 years. -first it was "there is nothing wrong with the ...

19 hours ago by djz on NBN cost-benefit analyses are so 2011

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

23 hours ago, Is Bill Gates a great leader?

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

2 days ago, CeBIT 2012 opens: photos

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

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

Facebook Activity

Keep up with ZDNet Australia

ZDNet Events Calendar

ZDNet Events Calendar