<?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>SourceSec Security Research &#187; News</title>
	<atom:link href="http://www.sourcesec.com/category/news/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sourcesec.com</link>
	<description>Security research and vulnerability assesment</description>
	<lastBuildDate>Tue, 19 Jan 2010 05:15:53 +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>Which Routers Are Vulnerable to the D-Link HNAP Exploit?</title>
		<link>http://www.sourcesec.com/2010/01/18/which-routers-are-vulnerable-to-the-d-link-hnap-exploit/</link>
		<comments>http://www.sourcesec.com/2010/01/18/which-routers-are-vulnerable-to-the-d-link-hnap-exploit/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 22:50:34 +0000</pubDate>
		<dc:creator>craig</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[d-link]]></category>
		<category><![CDATA[HNAP]]></category>
		<category><![CDATA[Routers]]></category>

		<guid isPermaLink="false">http://www.sourcesec.com/?p=204</guid>
		<description><![CDATA[ZDNet and PCWorld have both run articles regarding our recent disclosure of the D-Link HNAP vulnerability. As with other postings and reports, there seems to be some confusion as to which routers and models are affected. 
D-Link has made some statements that we&#8217;d like to offer rebuttals to, as we either suspect them to be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://news.zdnet.co.uk/security/0,1000000189,39994509,00.htm">ZDNet</a> and <a href="http://www.pcworld.com/businesscenter/article/186996/dlink_issues_fixes_for_router_vulnerabilities.html">PCWorld</a> have both run articles regarding our recent <a href="http://www.sourcesec.com/2010/01/09/d-link-routers-one-hack-to-own-them-all/">disclosure</a> of the D-Link HNAP vulnerability. As with other postings and reports, there seems to be some confusion as to which routers and models are affected. </p>
<p>D-Link has made some statements that we&#8217;d like to offer rebuttals to, as we either suspect them to be incorrect or find them to be downright confusing. The below quotations are from the ZDNet article:</p>
<blockquote><p>The model that D-Link said is not in the European market is DI-524 (C1). In addition, that model does not support HNAP, the company noted.</p></blockquote>
<p>Yes, the DI-524 hardware version C1 does in fact support HNAP. It was one of the first D-Link routers to do so. Install the most recent firmware release (version 3.23). HNAP is clearly there and vulnerable.</p>
<blockquote><p>The non-existent model is DIR-628 (B2), as only A hardware has ever been released for that device.</p></blockquote>
<p>Correct, the DIR-628 hardware version B2 does not exist; that&#8217;s bad on us. The version we tested was actually A2 not B2 as we erroneously reported. I find it odd that D-Link doesn&#8217;t seem to have even tested their A-series DIR-628s though. If they had, they would have found that they were vulnerable.</p>
<blockquote><p>Finally, model DIR-655 (A1, firmware 1.30EA) runs a restricted firmware version related to East Asia and therefore irrelevant for Europe.</p></blockquote>
<p>There seems to be some expectation from D-Link and others that we have tested every firmware version for every D-Link router in existence. That is simply not possible for us to do. We tested three different D-Link routers with four different firmware versions that spanned a period of three years and two continents, and they were all vulnerable. But that is all that we have tested, and therefore all that we can confirm. Just because we didn&#8217;t test European firmware doesn&#8217;t mean that it is or isn&#8217;t vulnerable. It just means that we didn&#8217;t test it.</p>
<blockquote><p>The networking company said on Monday that the problem, discovered by security researchers SourceSec, affects three of its wireless routers: DIR-855 (hardware version A2), DIR-655 (versions A1 to A4) and DIR-635 (version B).</p></blockquote>
<p>Interestingly, D-Link told PCWorld that there were five routers affected: the DIR-855, DIR-655, DIR-635, DIR-615, and the DI-634. </p>
<p>Now, we <em>know</em> that the DI-524 and DIR-628 are vulnerable. We have also had reports that the DIR-300 is vulnerable (though we can&#8217;t confirm this). Yet D-Link does not mention any of them in their list of vulnerable routers. So are there three router models affected? Or five? Or more? Has D-Link performed comprehensive testing on their routers? Or are these just the ones that they&#8217;ve tested so far? I can assure you that the DIR-628 and DI-524 need to be added to this list; which others are missing?</p>
<blockquote><p>In addition, just running the exploit code was not enough to compromise D-Link routers, it said. &#8220;It is important to note that running the code on its own is not sufficient to hack into the router: only the software tool provided seems to achieve this result,&#8221; said the D-Link statement.</p></blockquote>
<p>OK, now<em> I&#8217;m</em> confused &#8211; running the code won&#8217;t hack the router, but running the software will? It&#8217;s a bash script: the code <em>is</em> the software (Einhorn is Finkle&#8230;Finkle is Einhorn&#8230;). Any piece of software that can make Web requests can be used to exploit the vulnerability. Web browser? Check. Netcat? Yup. Wget? Sure! Curl? Definitely! I&#8217;m not sure what D-Link is trying to say here.</p>
<p>And finally, there&#8217;s the inevitable passing of the buck:</p>
<blockquote><p>
&#8220;By publicising their tool, and giving specific instructions, the authors of the report have publicly outlined how the security can be breached, which could have had serious repercussions for our customers,&#8221; said the D-Link statement.</p></blockquote>
<p>Yes, of course. It&#8217;s not D-Link&#8217;s fault for selling vulnerable routers to their customers. It&#8217;s obviously our fault for informing their customers of the vulnerability. Shame on us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sourcesec.com/2010/01/18/which-routers-are-vulnerable-to-the-d-link-hnap-exploit/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>D-Link Captcha Redux</title>
		<link>http://www.sourcesec.com/2009/05/20/d-link-captcha-revisited/</link>
		<comments>http://www.sourcesec.com/2009/05/20/d-link-captcha-revisited/#comments</comments>
		<pubDate>Thu, 21 May 2009 04:39:01 +0000</pubDate>
		<dc:creator>cheffner</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://www.sourcesec.com/?p=177</guid>
		<description><![CDATA[A few sites have picked up on our D-Link captcha bypass post, and we&#8217;re seeing a lot of people who mis-understand the vulnerability, and the purpose of captchas in general. I&#8217;d like to address some of the comments that we&#8217;ve seen, and to clarify a few points:
[the captcha is] not really broken.  It’s circumvented, [...]]]></description>
			<content:encoded><![CDATA[<p>A few sites have picked up on our D-Link captcha bypass post, and we&#8217;re seeing a lot of people who mis-understand the vulnerability, and the purpose of captchas in general. I&#8217;d like to address some of the comments that we&#8217;ve seen, and to clarify a few points:</p>
<blockquote><p>[the captcha is] not really broken.  It’s circumvented, but not broken.</p></blockquote>
<p>Agreed; we&#8217;re still looking into some OCR engines that might be used to break the captcha completely. Perhaps a more fitting title would have been &#8220;D-Link Captcha <em>Implementation</em> Partially Broken&#8221;.</p>
<blockquote><p>It turns out all that&#8217;s required to access the router&#8217;s setup page is the hash, so the feature provides an easy way for anyone within range to access the panel that controls all kinds of sensitive settings and contains the WPA password.</p></blockquote>
<p>No, you cannot access the full router control panel with this vulnerability. Only a few pages (basically any XML page) honour authentication without captcha, one of which is the WPS activation page. Once WPS is activated, anyone within WiFi range can access the network, and <em>then</em> they can access the router control panel.</p>
<blockquote><p>If you use a dictionary or simple alphanumerc passphrase then it can&#8217;t be brute forced unless they pass the CAPTCHA too.<br />
Yes, it&#8217;s very annoying on web pages. But on a router page you might use once a month? It&#8217;s not such a bad idea.</p></blockquote>
<p>Actually, if you look at the <a href="http://blog.washingtonpost.com/securityfix/2008/06/malware_silently_alters_wirele_1.html">threat</a> that the captcha is <a href="http://www.dlink.com/press/pr/?prid=500">supposed</a> to prevent, it is a terrible idea. A captcha does not provide security, it only attempts to prove that whoever performed a given HTTP request was a person. Yes, captchas may block automated attacks (assuming that the bot cannot break the captcha, which they have been <a href="http://blogs.zdnet.com/security/?p=1418">known to do</a>), but remember that the threat consists of a trojan running on the client&#8217;s PC that is used to attack the router. What&#8217;s stopping the malware from sending the image back to the attacker who can then read it and tell the trojan what it says? Yes, as shocking as it may seem, <a href="http://www.hackersarepeopletoo.com/">hackers are people too</a>.</p>
<p><span id="more-177"></span></p>
<blockquote><p>For this to work the attacker has to 1. be in your wifi range and 2. be wired into a pc on your lan i.e have a physical connection&#8230;Truth is, if you use the full length hexadecimal wpa2 key it will take a long, long time for anyone to crack your wifi.</p></blockquote>
<p>To address first point, yes, the attacker does have to be within WiFi range; thankfully, it cannot be used to perform an entirely remote attack. I think it is important to keep in mind however, that besides the proximity requirement, a WiFi compromise is as dangerous (if not more so) than an attacker changing your router settings. Think about it; if he does get some malware on your PC, he only has access to one machine on the network, may not have sufficient permissions to do what he wants, and at the very least will have to upload a bunch of tools to your PC in order to propagate through the rest of your network. With your WPA key in hand, he can put as many of his own machines on your network as he wants.</p>
<p>As for the second point, please refer to my earlier point regarding the threat that the captchas are supposed to prevent. The attacker does not need a physical connection to your network; he just needs <em>you</em> to have one. The &#8220;truth is&#8221; that this can also be exploited via pure JavaScript (i.e., no trojans on your PC). Why would an attacker take the time to crack a 63-character WPA2 key when he can get you to click on a link and hand it to him?</p>
<blockquote><p>Compromised web page is not wifi related, hence this is separate.</p></blockquote>
<p>Technically, this is correct; there is no WiFi vulnerability per-se. However, the Web page vulnerability allows an attacker to bypass any WiFi security that you have in place, so I wouldn&#8217;t say that they are completely un-related.</p>
<blockquote><p>most routers by default dont allow you to access the config from the WAN port, only if you are on the LAN</p></blockquote>
<p>This is not a WAN issue. The attacker is in your browser or on your PC, which is on the LAN, hence, he has access to the router config page on the LAN side.</p>
<blockquote><p>I thought most new routers require you to set them up properly to work and no longer “work out of the box” to prevent default password.</p></blockquote>
<p>I wish! That actually would have been the proper response to such threats, had D-Link really wanted to make their routers more secure. To my knowledge, no consumer-grade router requires any type of configuration before they&#8217;ll work.</p>
<blockquote><p>Honestly, If you have any advanced education you should be using OpenWRT or DDWRT and not the crap firmware in these routers.</p></blockquote>
<p>Be careful what you <a href="http://milw0rm.com/exploits/7389">wish for</a>.</p>
<blockquote><p>I would like to see a proof of concept. I do know that the salt hash is easily attainable in a txt file on the router.. however I forget the local url that retrieves it.</p></blockquote>
<p>The salt is a JavaScript variable located in the router&#8217;s index page (http://192.168.0.1/). We are not releasing any code at this time, however, the attack is easily re-producible:</p>
<ol>
<li>Go to http://192.168.0.1/ and view the page source; locate the salt value (search the source for &#8220;salt&#8221;).</li>
<li>Using the nicely-commented send_login JavaScript function in that same page, generate the MD5 hash for the User account with a blank password (which is the default).</li>
<li>Visit this URL: http://192.168.0.1/post_login.xml?hash=&lt;insert the hash you calculated here&gt;</li>
<li>Visit this URL: http://192.168.0.1/wifisc_add_sta.xml?method=pbutton&amp;wps_ap_ix=0</li>
</ol>
<p>If you have WPA enabled, your WPS light (located on the side of the D-Link) will start flashing. Any WPS-capable WiFi card can now connect directly to your WiFi network. If you aren&#8217;t using WPA, then anyone can connect directly to your WiFi network anyway. If you want to test the pure JavaScript variant of this attack, you&#8217;ll have to perform some <a href="http://www.jumperz.net/">anti-DNS pinning</a> in order to read the salt value from the index page. While Firefox is kinda-sorta immune to anti-DNS pinning (only because it takes two minutes to perform in FF), IE and Opera users are prime targets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sourcesec.com/2009/05/20/d-link-captcha-revisited/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ChicagoCon 2009s</title>
		<link>http://www.sourcesec.com/2009/04/29/chicagocon-2009s/</link>
		<comments>http://www.sourcesec.com/2009/04/29/chicagocon-2009s/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 01:36:58 +0000</pubDate>
		<dc:creator>craig</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[chicagocon]]></category>
		<category><![CDATA[EthicalHacker]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[Routers]]></category>

		<guid isPermaLink="false">http://www.sourcesec.com/?p=64</guid>
		<description><![CDATA[We&#8217;re just now putting the finishing touches on our presentation for the ChicagoCon 2009s security conference coming up next week. We will be discussing some of the &#8220;more serious issues&#8221; that we mentioned when we released our Hacking SOHO Routers paper late last year. In addition to releasing some new tools, our presentation topics include [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.chicagocon.com"><img class="alignright" title="ChicagoCon 2009s" src="http://www.chicagocon.com/images/stories/3monitors_rotate_ccw.png" alt="" width="168" height="63" /></a>We&#8217;re just now putting the finishing touches on our presentation for the <a href="http://www.chicagocon.com/2009s/conference.html">ChicagoCon</a> 2009s security conference coming up next week. We will be discussing some of the &#8220;more serious issues&#8221; that we mentioned when we released our <a href="http://www.sourcesec.com/2008/11/09/hacking-the-routers-soho-router-security/">Hacking SOHO Routers</a> paper late last year. In addition to releasing some new tools, our presentation topics include router reconnaissance, alternative attacks against WPA/WEP encryption, and how to hack a router with a stick of gum.</p>
<p>As always, there are going to be a lot of other great talks there too; tickets are still available and are only $100 for the conference, so if you&#8217;re going to be in the Chicago area May 8th and 9th, we hope you&#8217;ll stop by!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sourcesec.com/2009/04/29/chicagocon-2009s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
