<?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>(-) HatSecurity.com &#187; dns exploit</title>
	<atom:link href="http://hatsecurity.com/tag/dns-exploit/feed/" rel="self" type="application/rss+xml" />
	<link>http://hatsecurity.com</link>
	<description>../something for all Hats</description>
	<lastBuildDate>Thu, 30 Dec 2010 05:49:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>New tool simplifies DNS exploitation further</title>
		<link>http://hatsecurity.com/2008/08/01/new-tool-simplifies-dns-exploitation-further/</link>
		<comments>http://hatsecurity.com/2008/08/01/new-tool-simplifies-dns-exploitation-further/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 17:56:21 +0000</pubDate>
		<dc:creator>Tahir</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[dns exploit]]></category>
		<category><![CDATA[IDS/IPS]]></category>

		<guid isPermaLink="false">http://hatsecurity.com/?p=104</guid>
		<description><![CDATA[DNS Multiple Race Exploiter simiplifies exploitation of the latest DNS vulnerability and even attempts to poison patched servers. According to the author: Patched DNS servers randomize the UDP source port number, however, that will not eliminate the flaw; it will only increase the time required to poison the cache. Poisoning unpatched systems would take a period seconds, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.securebits.org/dnsmre.html" target="_blank"><span style="color: #aa77aa;">DNS Multiple Race Exploiter</span></a> simiplifies exploitation of the latest <a href="http://hatsecurity.com/2008/07/09/dns-the-biggest-security-patch-release-in-internet-history/">DNS vulnerability</a> and even attempts to poison patched servers. According to the author:</p>
<blockquote><p>Patched DNS servers randomize the UDP source port number, however, that will not eliminate the flaw; it will only increase the time required to poison the cache. Poisoning unpatched systems would take a period seconds, however, poisoning patched systems would take a period of hours.</p></blockquote>
<p>Unlike the previously released <a href="http://hatsecurity.com/2008/07/25/metasploit-dns-explot-dan-kaminsky/" target="_blank">tools</a> that work on poisioning uncached &#8220;NS&#8221; and &#8220;A&#8221; records, this tool can overwrite any A record by using a CNAME response. </p>
<p>The tool uses a static TTL of 0x7BEDABED in all spoofed replies, which should be sufficient to create an IDS/IPS signature to protect against the script kiddies out there.</p>
<blockquote><p><span lang="EN">cname_rr = (struct cname_RR *) (payload + sizeof(struct dns_hdr) + hostname-&gt;size + sizeof(struct query_RR));<br />
cname_rr-&gt;name = htons(0xC00C);<br />
cname_rr-&gt;type = htons(0&#215;0005);<br />
cname_rr-&gt;clss = htons(0&#215;0001);<br />
<strong>cname_rr-&gt;ttl = htonl(0x7BEDABED);<br />
</strong>cname_rr-&gt;length = htons(entryname-&gt;size);</p>
<p></span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://hatsecurity.com/2008/08/01/new-tool-simplifies-dns-exploitation-further/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vietnam&#8217;s No.2 webhost restores services after security breach</title>
		<link>http://hatsecurity.com/2008/07/31/vietnams-number-two-domain-registrar-nears-restoration-of-services/</link>
		<comments>http://hatsecurity.com/2008/07/31/vietnams-number-two-domain-registrar-nears-restoration-of-services/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 13:22:20 +0000</pubDate>
		<dc:creator>Tahir</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[dns exploit]]></category>
		<category><![CDATA[domain hijack]]></category>

		<guid isPermaLink="false">http://hatsecurity.com/?p=98</guid>
		<description><![CDATA[PA Vietnam, a Vietnam Government affiliate and the second largest hosting company in the country, saw over 10,000 websites being crippled after the provider&#8217;s .COM and .NET Top Level Domains (TLDs) were hijacked by attackers on Sunday, 27th of July. The crippled websites used the provider&#8217;s domain name servers (DNS) that were registered under the hijacked domains.  According to VNCERT, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pavietnam.vn/" target="_blank">PA Vietnam</a>, a Vietnam Government affiliate and the <a href="http://www.thanhniennews.com/education/?catid=4&amp;newsid=40677" target="_blank">second largest</a> hosting company in the country, saw over <a href="http://www.thanhniennews.com/education/?catid=4&amp;newsid=40739" target="_blank">10,000 websites</a> being crippled after the provider&#8217;s .COM and .NET Top Level Domains (TLDs) were hijacked by attackers on Sunday, 27th of July. The crippled websites used the provider&#8217;s domain name servers (DNS) that were registered under the hijacked domains. </p>
<p>According to VNCERT, the country&#8217;s National Computer Emergency Response Team:</p>
<blockquote><p>“It’s believed the hackers broke in through a hole in DNS to control the administration,”<br />
-VNCERT Technical Branch Chief &#8211;  Do Ngoc Duy Trac.<span id="more-98"></span></p></blockquote>
<p>The good news is that PA Vietnam has been able to restore <a href="http://www.thanhniennews.com/education/?catid=4&amp;newsid=40739" target="_blank">90% of the websites</a> that lost connectivity as a result of this attack by shifting to a different DNS.</p>
<p>This attack is definitely not related to the recent <a href="http://hatsecurity.com/2008/07/09/dns-the-biggest-security-patch-release-in-internet-history/" target="_blank">DNS vulnerability</a> as there was a switch in domain name registrars; archived whois records for PAVietnam.com can be found <a href="http://www.whois.ws/domain_archive-com/pavietnam.com/" target="_blank">here</a>. A quick glance at the whois records and it is transferred over from Enom to OnlineNIC.</p>
<p>Was this really yet another DNS hole or just an insider attack? Feel free to post your views.</p>
]]></content:encoded>
			<wfw:commentRss>http://hatsecurity.com/2008/07/31/vietnams-number-two-domain-registrar-nears-restoration-of-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Metasploit: DNS exploit code now available</title>
		<link>http://hatsecurity.com/2008/07/25/metasploit-dns-explot-dan-kaminsky/</link>
		<comments>http://hatsecurity.com/2008/07/25/metasploit-dns-explot-dan-kaminsky/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 11:33:09 +0000</pubDate>
		<dc:creator>Tahir</dc:creator>
				<category><![CDATA[compliance]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[dns exploit]]></category>
		<category><![CDATA[exploit]]></category>

		<guid isPermaLink="false">http://hatsecurity.com/?p=49</guid>
		<description><![CDATA[Metasploit team has published two modules that exploit the recently announced DNS flaw. These are named &#8220;DNS BailiWicked Host Attack&#8221; for injecting individual uncached host records into the target nameserver&#8217;s cache, and &#8220;DNS BailiWicked Domain Attack&#8221; for replacing a target domain&#8217;s nameserver records in a target nameserver&#8217;s cache. The above two modules require you run [...]]]></description>
			<content:encoded><![CDATA[<p>Metasploit team has published two modules that exploit the recently announced <a href="http://hatsecurity.com/2008/07/09/dns-the-biggest-security-patch-release-in-internet-history/" target="_blank">DNS flaw</a>. These are named &#8220;<a href="http://www.caughq.org/exploits/CAU-EX-2008-0002.txt" target="_blank"><strong>DNS BailiWicked Host Attack</strong></a>&#8221; for injecting individual uncached host records into the target nameserver&#8217;s cache, and &#8220;<a href="http://www.caughq.org/exploits/CAU-EX-2008-0003.txt" target="_blank"><strong>DNS BailiWicked Domain Attack</strong></a>&#8221; for replacing a target domain&#8217;s nameserver records in a target nameserver&#8217;s cache.</p>
<p>The above two modules require you run Metasploit Framework from the &#8220;trunk&#8221; development branch which is currently only supported on the Linux platform.</p>
<p>Here&#8217;s more from the <a href="http://blog.metasploit.com/2008/07/bailiwicked.html" target="_blank">official blog</a>:</p>
<blockquote><p>The first flaw is that since DNS (over UDP) is connectionless, it can easily be spoofed. The original primary mitigation against this was to make use of a 16-bit transaction ID which is used to correlate requests and replies that the attacker would have to guess in order to correctly spoof a reply packet. This makes spoofing harder, but not an insurmountable task; you just need to be able to send a whole lot of packets to eventually get one right at match the transaction ID chosen for the request packet.</p>
<p>The second flaw was that additional records would be inserted into the cache which were included in replies from another nameserver. This is core protocol functionality, however the original problem was somewhat mitigated by creating the in-bailiwick constraints that essentially limits the domain space for additional records that could be sent in the replies to hostnames from a given domain. Sounds reasonable; this prevents nameservers from doing malicious things to records in domains that they weren&#8217;t queried for or aren&#8217;t authoritative for, while still allowing nameservers who are authoritative for a domain to update the records they need to.</p>
<p>When you combine the attacks for these two flaws however, and introduce nameserver query recursion, an attacker can essentially cause the target nameserver to make as many queries as the attacker wants while also pretending to be the authoritative nameserver and spoofing the responses, achieving the birthday attack against the transaction ID and successfully updating the nameserver record for a domain to point to a malicious nameserver address. You can also use this trick to inject cache entries for individual hostname records as long as those hostnames are both not already cached, and also in-bailiwick.</p></blockquote>
<p><span id="more-49"></span></p>
<p><strong><em>Update </em></strong>- both the above mentioned Metasploit modules have been updated for improved reliability (and effectiveness!). Support for FreeBSD, NetBSD, BSDi and Mac OS X has been added. Here&#8217;s more from the <a href="http://blog.metasploit.com/2008/07/bailiwicked-automatic-tuning.html" target="_blank">official blog</a>:</p>
<blockquote><p>The bailiwicked modules (host and domain) were updated today to include the ability to predict the time window between the outgoing request from the target nameserver and the response from the real nameserver(s). This measurement is used to tune the number of spoofed replies sent by the exploit. The result is a big increase in exploit reliability, especially when the target domain has a ton of nameservers (Yahoo has eight) or changes its responsiveness during the test (BIND tends to slow down when it has a full cache). The new self-tuning code is activated with the XIDS option is set to &#8217;0&#8242;, which is now the default. FreeBSD and Mac OS X support are still in the works, but should be functional sometime this weekend. The timing analysis feature can also be access through a new command (&#8216;racer&#8217;). In the examples below, the first command tests the timing between the nameserver at 192.168.0.2 and the metasploit.com DNS servers. The second command tests the timing between the nameserver 4.2.2.3 (a public DNS server) and the metasploit.com DNS servers. You can see by the results that the timing differences are significant:</p>
<p>msf auxiliary(bailiwicked_host) &gt; <strong>racer 192.168.0.2 metasploit.com</strong><br />
[*] <strong>race calc: 50 queries | min/max/avg time: 0.05/0.23/0.09 | min/max/avg replies: 6/121/49</strong></p>
<p>msf auxiliary(bailiwicked_host) &gt; <strong>racer 4.2.2.3 metasploit.com</strong><br />
[*] <strong>race calc: 50 queries | min/max/avg time: 0.02/0.17/0.05 | min/max/avg replies: 1/29/6</strong></p>
<p>In the first case (192.168.0.2), the average number of queries we can send before the real server replies is around 49, which means about 80 fake responses. In the second example, the average is only 6, which means about 12 fake responses. To be conservative, these modules take the average, multiple it by 1.5, then divide it by the number of nameservers. This leads to a fairly accurate timing estimate and quicker attacks.</p></blockquote>
<p>Update (July 29 &#8211; 11AM +4GMT) &#8211; I just saw a <a href="http://www.infobyte.com.ar/demo/evilgrade.htm"><span style="color: #aa77aa;">demo</span></a> of <a href="http://www.infobyte.com.ar/developments.html" target="_blank">ISR-evilgrade</a> by <a href="http://www.infobyte.com.ar/"><span style="color: #aa77aa;">Infobyte Security Research</span></a>, a toolkit that works in conjunction with the above mentioned Metasploit exploit modules, to exploit software products that carry out automatic updates of the binaries over insecure channels, using MITM techniques (Hint: DNS!).</p>
<p>The first release of the toolkit contains exploits for Sun Java, Winzip, Winamp, Mac OS X, OpenOffice, iTunes, Linkedin Toolbar, DAP, Notepad++, and Speedbit.</p>
<p>It is interesting to note that Mac OS X <a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;taxonomyName=macintosh_os&amp;articleId=9110907&amp;taxonomyId=123" target="_blank">does not have a patch</a> for the DNS vulnerability as of this writing.</p>
]]></content:encoded>
			<wfw:commentRss>http://hatsecurity.com/2008/07/25/metasploit-dns-explot-dan-kaminsky/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

