<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Fnode Online &#187; DNS bug</title>
	<atom:link href="http://www.fnode.com/tag/dns-bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnode.com</link>
	<description>A Network Systems &#38; Technology Blog</description>
	<lastBuildDate>Fri, 01 Jan 2010 19:57:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DNS Cache Poisoning Bug</title>
		<link>http://www.fnode.com/2008/08/dns-cache-poisoning-bug/</link>
		<comments>http://www.fnode.com/2008/08/dns-cache-poisoning-bug/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 11:52:39 +0000</pubDate>
		<dc:creator>Nish Vamadevan</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[DNS bug]]></category>

		<guid isPermaLink="false">http://www.nishv.com/?p=324</guid>
		<description><![CDATA[When a Name Server looks up a domain for the IP address, it stores the information into the cache so it doesn’t have to look it up every single time a request is made. For example, if someone looks for www.nishv.com the DNS server will look up the domain and stores the IP address 72.52.178.35 [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>When a Name Server looks up a domain for the IP address, it stores the information into the cache so it doesn’t have to look it up every single time a request is made. For example, if someone looks for www.nishv.com the DNS server will look up the domain and stores the IP address 72.52.178.35 into the cache for a given time so it doesn’t have to look up that domain again for a given period of time.</p>
<p>DNS cache poisoning (also known as DNS cache pollution) is a maliciously created or unintended situation that provides data to a DNS Server that did not originate from authoritative DNS sources.</p>
<p>It happens when an attacker sends malicious data in response to a DNS query. For example, DNS query for www.nishv.com can be redirected to another website.</p>
<p>This method is taking the phishing scam to another level, you might be visiting your bank’s website but without you realising it, you will actually be putting in all the login information into some hackers servers which made it look exactly like the bank’s website. Yes, this is very serious!</p>
<p><strong>How do you patch it?</strong></p>
<p>On the client side (we are talking about Microsoft Windows here), your machines should have been patches automatically if you set the Auto-Update option. If not, I recommend you check the available updates and patch it as soon as possible.</p>
<p>If you use a DNS Server, my recommendation is to use the following command to figure out whether it has been patched or not. If it is not, STOP using it and have a look at this post on <a href="http://www.fnode.com/2008/03/opendns/" target="_self">OpenDNS</a> for more info.</p>
<p><strong>Use the following DIG command on UNIX</strong></p>
<p><code><br />
dig +short @{name-server-ip} porttest.dns-oarc.net txt<br />
dig +short @ns1.example.com porttest.dns-oarc.net txt<br />
dig +short @208.67.222.222 porttest.dns-oarc.net txt<br />
</code></p>
<p>and you should get a result similar to this&#8230;</p>
<p><code><br />
nishv@nishv.com [~]# dig +short @208.67.222.222 porttest.dns-oarc.net txt<br />
porttest.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net.<br />
"208.67.217.8 is GREAT: 26 queries in 2.1 seconds from 26 ports with std dev 20119"<br />
</code><br />
Or something like this&#8230;<br />
<code><br />
nishv@nishv.com [~]# dig +short @4.2.2.2 porttest.dns-oarc.net txt<br />
porttest.y.x.w.v.u.t.s.r.q.p.o.n.m.l.k.j.i.h.g.f.e.d.c.b.a.pt.dns-oarc.net.<br />
"209.244.4.25 is GOOD: 26 queries in 1.9 seconds from 26 ports with std dev 3880"<br />
</code></p>
<p>If you don’t get <strong>GREAT</strong> or <strong>GOOD</strong> and gets something like <strong>POOR</strong>, you should immediately stop using it.</p>
<p>If you manage that DNS server, patch it or decommission it!</p>
<p><strong>This is how to check on Windows</strong></p>
<p>Open up command prompt by going <strong>Start</strong> --&gt; <strong>Run</strong> --&gt; <strong>CMD</strong> or on Vista typing <strong>CMD</strong> on the <em>Start Search</em> box</p>
<p><code><br />
nslookup -type=txt -timeout=30 porttest.dns-oarc.net<br />
nslookup -type=txt -timeout=30 porttest.dns-oarc.net ns1.your-isp.com<br />
nslookup -type=txt -timeout=30 porttest.dns-oarc.net NS-SERVER-IP<br />
</code></p>
<p>You must see the <strong>GREAT</strong> or <strong>GOOD</strong>, if not your DNS Server is compromised.</p>
<p style="text-align: center;"><a href="http://www.fnode.com/wp-content/uploads/nslookup1.jpg"><img class="size-medium wp-image-362 aligncenter" title="nslookup1" src="http://www.fnode.com/wp-content/uploads/nslookup1-300x150.jpg" alt="" width="300" height="150" /></a></p>
<p style="text-align: center;">
<p>You can see Dan Kaminsky&#8217;s presentation below&#8230;</p>
<p style="text-align: center;"><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/B0dHDD9fFM4&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/B0dHDD9fFM4&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnode.com/2008/08/dns-cache-poisoning-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
