<?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>Cupfighter.net &#187; Cisco</title>
	<atom:link href="http://www.cupfighter.net/index.php/tag/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cupfighter.net</link>
	<description>A blog by Schuberg Philis colleagues</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:27:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>BlackHatEU : Hacking Cisco Enterprise WLANs</title>
		<link>http://www.cupfighter.net/index.php/2010/04/blackhateu-cisco-enterprise-wlan/</link>
		<comments>http://www.cupfighter.net/index.php/2010/04/blackhateu-cisco-enterprise-wlan/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 15:38:23 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Barcelona]]></category>
		<category><![CDATA[Blackhat]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Conference]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=991</guid>
		<description><![CDATA[By Enno Rey &#38; Daniel Mende erey@ernw.de dmende@ernw.de When implementing Cisco Wireless network infrastructure Enno and Daniel got the impression that, security wise, these systems smell. First part of the presentation focuses on what a typical implementation looks like. There are three generations: 1.    Structured Wireless-Aware Networks (SWAN) 2.    Based on managed APs and LWAPP [...]]]></description>
			<content:encoded><![CDATA[<p>By Enno Rey &amp; Daniel Mende<a href="http://www.cupfighter.net/wp-content/uploads/2010/04/cisco.jpeg"><img class="alignright size-full wp-image-993" title="Cisco Logo" src="http://www.cupfighter.net/wp-content/uploads/2010/04/cisco.jpeg" alt="Cisco Logo" width="154" height="94" /><br />
</a>erey@ernw.de<br />
dmende@ernw.de</p>
<p>When implementing Cisco Wireless network infrastructure Enno and Daniel got the impression that, security wise, these systems smell.</p>
<p>First part of the presentation focuses on what a typical implementation looks like.</p>
<p>There are three generations:<br />
1.    Structured Wireless-Aware Networks (SWAN)<br />
2.    Based on managed APs and LWAPP (After acquiring Airport)<br />
3.    Cisco Unified Wireless Network</p>
<p>The talk focuses on generation one and three.<br />
<span id="more-991"></span><br />
The are a couple of attack paths: traffic in transit, cryptographics and against components.</p>
<p>First up is SWAN. It mainly runs on WLCCP protocol messages, this protocol is proprietary, so the patents are needed to discover the inner workings and the deviations from the patent.</p>
<p>The key management is arranged by Cisco’s proprietary key management framework called Cisco Centralized Key Management (CCKM). This framework allows the key material for clients from one access point to the other.</p>
<p>One of the properties of the protocol is the selection of the WDS Masters that controls all communication between the APs.<br />
He communication  between the APs is authenticated by means of LEAP. The security of LEAP is debatable at best. And Cisco’s fix, deriving two additional keys based on the first key is debatable too.</p>
<p>Management interfaces are the Achilles’ heel of many systems.</p>
<p>So what do you need for a practical attack against APs? If you can get to the AP’s management interface, you can identify it by identifying WLCCP speakers, sniff the intra AP traffic and crack the LEAP secret. Then you can evict the WDS master if necessary.</p>
<p>Daniel next demoed the attack. He used Loki to sniff the backbone interface to identify the WDS master. Loki can now be used to create a new WDS master but inserting a new WDS master. The master priority is configurable up to 254, but the protocol can handle a value to 255, so you can always win this election.<br />
Next Loki can be used to brute force the detected WDS password and the revealed password can be used to derive the additional security keys.</p>
<p>Even though there are some parts of the crypto space that smells, Enno and Daniel where not able to find practical exploits here.</p>
<p>Management interfaces however are another story.</p>
<p>SNMP is a good friend, especially if people forget to reset their community strings. The SNMP interface does not allow you to reset passwords of existing users, but it does allow you to create administrative users.</p>
<p>The web interface of Cisco WLAN management tooling is web based, with all the classical web based attacks like Cross Site Scripting.</p>
<p>Enno demoed a web based attack. Intercepting a request to the web based interface with burpsuite and rewriting the request he was able to trigger a buffer overflow in the wireless management appliance. This makes you wander what would happen if you run a fuzzer against it.</p>
<p>Key points to take away:<br />
•    “Enterprise WLAN solutions” might be complex beasts<br />
•    There many be not so obvious vulnerabilities<br />
•    Use common sense when deploying<br />
•    The problems outlined are not Cisco specific</p>
<p>The majority of problems are based on management interface. They should never be publicly exposed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2010/04/blackhateu-cisco-enterprise-wlan/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Confidence 2009.02 – Router Exploitation – Felix “FX” Lindner</title>
		<link>http://www.cupfighter.net/index.php/2009/11/confidence0902-router-exploitation/</link>
		<comments>http://www.cupfighter.net/index.php/2009/11/confidence0902-router-exploitation/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 13:55:12 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Confidence 2009.02]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[confidence0902]]></category>
		<category><![CDATA[Felix Lindner]]></category>
		<category><![CDATA[FX]]></category>
		<category><![CDATA[IOS]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=791</guid>
		<description><![CDATA[Unlike the last time I was actually on time for Felix’ talk. Due to last nights activity I was surprised that he was on time himself. Again his slides included the Blackhat-O-Meter. The first part of his presentation explained why routers are interesting targets (they are in the core), but also why routers are not [...]]]></description>
			<content:encoded><![CDATA[<p>Unlike the <a title="Felix' Blackhat Presentation" href="http://www.cupfighter.net/index.php/2009/07/blackhat-talk-router-exploitation-by-felix-fx-lindner/">last time</a> I was actually on time for Felix’ talk. Due to last nights activity I was surprised that he was on time himself. Again his slides included the Blackhat-O-Meter.</p>
<p>The first part of his presentation explained why routers are interesting targets (they are in the core), but also why routers are not actually exploited that much. One of the reasons is that the attack surface of router is quite small because routers don’t expose that much services to a truly remote attacker and are rarely used as clients.</p>
<p>The exception to the rule is “cisco-sa-20070124-crafted-ip-option” which is a remotely exploitable bug that causes a stack overflow on the router. Since “nobody ever updates router software” this vulnerability is still very much alive.</p>
<p>But routers need to support more and more, like IPv6, VoIP, XML configuration interface, luckily most services off.</p>
<p>Writing exploits for Cisco IOS is hard because it is not a real OS, but a single ELF binary. It is not based on a real OS we know hoe to exploit. Its only option to recover from a critical fault is a full reboot.</p>
<p>Another thing that makes exploitation hard is the memory layout. It is different from each single IOS version that it out there, and there are quite a few, currently there are over 270,000 different IOS images known by Cisco and you cannot get the version number remotely.</p>
<p><span id="more-791"></span>Best bet for getting a reliable return address for router exploitation is Rommon, the routers bios which loads the IOS and then remains in memory. It is at a fix address and there are big pools of the same versions present on the internet.</p>
<p>Unlike his talk at BlackHat Felix actually showed how the crafted ip option exploit can be used to get working reliable exploit. But since IOS is not an OS you need to get away with it without killing the router. If the stack is not completely overwritten, the return registers remain in tack and thus can be used to reliably return. His method has one drawback, in order for it to work, you need to know the version, but it is not remotely identifiable.</p>
<p>As an alternative there are code similarities in IOS images, but this still has problems.</p>
<p>Felix also made progress on shell code, he showed code that would cause the password evaluation function to always return true.</p>
<p>How do you protect your router?<br />
•    Have faith.<br />
•    Don’t allow people to talk to your router<br />
•    Protect your routing protocols<br />
•    Don’t run services on routers<br />
•    Treat your service cards as the linux machines they are</p>
<p>Running Rancid helps, modification of the data structures show up here.</p>
<p>Turn crash dumping on, this will make sure you keep evidence of any attacks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2009/11/confidence0902-router-exploitation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blackhat talk: Router exploitation by Felix &#8220;FX&#8221; Lindner</title>
		<link>http://www.cupfighter.net/index.php/2009/07/blackhat-talk-router-exploitation-by-felix-fx-lindner/</link>
		<comments>http://www.cupfighter.net/index.php/2009/07/blackhat-talk-router-exploitation-by-felix-fx-lindner/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 01:19:13 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Blackhat]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Felix Lindner]]></category>
		<category><![CDATA[FX]]></category>
		<category><![CDATA[Router]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=391</guid>
		<description><![CDATA[I arrived late, but talk hadn&#8217;t started unfortunately it did mean standing room only. FX had a cool feature in his presentation; every slide was accompanied by a BlackHat-O-Meter. Works like the base and acid scale. Corporate suite-and-tie types should stay with slides that have the meter all the way on the top, CISSP should [...]]]></description>
			<content:encoded><![CDATA[<p>I arrived late, but talk hadn&#8217;t started unfortunately it did mean standing room only.</p>
<p>FX had a cool feature in his presentation; every slide was accompanied by a BlackHat-O-Meter. Works like the base and acid scale. Corporate suite-and-tie types should stay with slides that have the meter all the way on the top, CISSP should be able to grasp the details of slides that are ranked somewhere in the middle, real Hackers could also grasp bottom of the scale slides.</p>
<p>FX&#8217;s first words are comforting, there is not so much real world router ownage going on. Mis-configuration, insider attacks, etc. are much more common.</p>
<p>However, infrastructures are what you want to own, so why don&#8217;t we see this more often? Because practical exploits are hard.</p>
<p><span id="more-391"></span>There are not much vulnerabilities in routers. In 2008 only 14 vulnerabilities where published for Cisco IOS. Juniper only reported a memory leak and a OpenSSL issue. Nothing was disclosed by Nortel Networks.</p>
<p>Because of the mindset of the people that report these issues, vulnerabilities are often classified as functional issues; e.g. &#8220;malformed packet crashes router&#8221;</p>
<p>Why are routers often not vulnerable?</p>
<ul>
<li>Most routers don&#8217;t run network services. If they do, find a new network administrator.</li>
<li>Those functionalities exposed are pretty secure or too simple to be vulnerable. FX: &#8220;RIP is so simple Cisco can&#8217;t even fuck it up&#8221;</li>
<li>However if you are in the same multicast domain, the router is in trouble.</li>
<li>&#8220;You should not accept any routing information from unknown hosts.&#8221;</li>
<li>Routers are rarely used as clients.</li>
</ul>
<p>However, the landscape changes:</p>
<ul>
<li>IP v6</li>
<li>VoIP</li>
<li>Lawfull interception</li>
<li>SSL VPN</li>
<li>Web service routing</li>
<li>XML-PI</li>
<li>Web Service Management</li>
</ul>
<p>All these servers either make the router inspect and manipulate packets (ipv6 has per router headers) or let services run on routers.</p>
<p>Luckily adoption is still slow. Network admins don&#8217;t want application level functionality on their devices.</p>
<p><span style="text-decoration: underline;"><strong>Router Transit vulnerabilities</strong></span></p>
<p>This is the hackers dream: A vulnerability that gets triggered as and when a packet gets forwarded. However this is hard because routers try to avoid inspecting traffic because it takes CPU cycles. Some traffic must however be inspected like IPv6 and Source Routed packets.</p>
<p>Exploiting a Juniper router is easier then exploiting a Cisco IOS device, because Junos is basically FreeBSD. Exploiting a Cisco Service card is also easier because they also run Linux.</p>
<p>Easy ones: Unix based routers (e.g. ADSL routers, Junipers)</p>
<p>The Hard One: Cisco IOS because it is a single large binary program (ELF) running directly on the main CPU.</p>
<p>Accoording to the Cisco COC website, there are current 272722 different IOS images all with a different memory layout. This makes reliable exploitation very hard. Cisco&#8217;s chaotic build process causes more memory entropy then ASLR.</p>
<p>FX showed that using various techniques you can actually execute code on a router using the Rommon router bios code that is still loaded on the router from when it booted up. Rommon is aways loaded in the same location and there are far less versions of Rommon. Plus, nobody ever updates it. Unfortunatly you can only guess the rommon version and not remotely fingerprint it.</p>
<p>So back to the drawing board. Analysis of newer IOS binaries shows that there are similarities between IOS versions so the same exploit might be possible with IOS. Currently the pro’s and con’s of using IOS vs. Rommon are:</p>
<p>Rommon: 30% change of success, cannot be fingerprinted</p>
<p>IOS: approx 15% change of success, can be fingerprinted</p>
<p>But you also need to get away with exploiting a router and inserting shell code without stopping the router. This is hard because the single binary image does not have a pre-emptive scheduler an the memory layout is unknown.</p>
<p>FX showed techniques for this as well, which will involve a second stage loader. This is however still work in progress.</p>
<p>Protection: So what can we do against it?</p>
<ul>
<li>Prevent the router from receiving traffic</li>
<li>Protect protocol update.</li>
<li>Don&#8217;t run stuff on routers.</li>
<li>Monitor service modules independently.</li>
<li>Use RANCID to monitor configuration changes</li>
<li>Configure Core Dumping (http://cir.recurity-labs.com wiki)</li>
<li>Complain to Cisco and other vendors about stable upgrade paths.</li>
</ul>
<p>It is scary to think that the best protection we have against Cisco attacks is the security through obscurity created by Cisco&#8217;s hampered build process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2009/07/blackhat-talk-router-exploitation-by-felix-fx-lindner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slowloris and Nkiller2 vs. the Cisco CSS load balancer</title>
		<link>http://www.cupfighter.net/index.php/2009/06/slowloris-css/</link>
		<comments>http://www.cupfighter.net/index.php/2009/06/slowloris-css/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 20:55:52 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Load Balancer]]></category>
		<category><![CDATA[NKiller]]></category>
		<category><![CDATA[Schuberg Philis]]></category>
		<category><![CDATA[Slowloris]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=185</guid>
		<description><![CDATA[Today I spent most of my time analyzing the Slowloris and Nkiller2 denial of service (DoS) tools together with my colleague Gert Kremer. Slowloris (name after the slow moving primates is a httpd DoS tool written by RSnake of ha.ckers. It works by tying up the httpd worker processes by slowly sending more and more [...]]]></description>
			<content:encoded><![CDATA[<p>Today I spent most of my time analyzing the Slowloris and Nkiller2 denial of service (DoS) tools together with my colleague Gert Kremer.</p>
<p>Slowloris (name after the <a title="Wikipedia article" href="http://en.wikipedia.org/wiki/Slow_loris" target="_blank">slow moving primates</a> is a <a title="Original source of Slowloris" href="http://ha.ckers.org/slowloris/" target="_blank">httpd DoS tool written by RSnake of ha.ckers</a>. It works by tying up the httpd worker processes by slowly sending more and more headers of an httpd request.</p>
<p>Nkiller2 is a TCP/IP DoS attack tool which was published in <a title="Phrack magazine" href="http://www.phrack.org/issues.html?issue=66&amp;id=9#article" target="_blank">issue 66 of Phrack magazine</a>. It works by tying up httpd worker processes by requesting a file then stalling, mimicking the behavior of a client with full TCP/IP receive buffers.</p>
<p>Cisco CSS is a <a title="Cisco CSS" href="http://www.cisco.com/en/US/products/hw/contnetw/ps792/" target="_self">load balancer produced by Cisco</a>.</p>
<p>In nearly all of the infrastructures built by my employer Schuberg Philis, the web servers are located behind a load balancer. In most cases a Cisco CSS. Because some of our customers were worried, I set out together with my colleague Gert Kremer to see if having a CSS load balancer in front of the web server provides any protection.</p>
<p><strong>Slowloris</strong></p>
<p>First we just had to try and find out what Slowloris did with an unprotected Apache server. The first video shows what happens when you run slowloris against a webserver. The window on the top left shows the number of apache processes, the top right window shows the scoreboard. This shows what the http processes are actually doing. The bottom window shows the slowloris output.</p>
<p><strong>Slowloris vs Apache (No load balancer)</strong><br />
<p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p></p>
<p>When slowloris is using 100 sockets, you can see 100 httpd workers in state “R”, meaning it is reading requests. The same is the case when running with 200 and 250 sockets. When running with 300 sockets the apache worker processes pool is exhausted and the web server can no longer service requests.</p>
<p><strong>Slowloris vs Apache behind a Cisco CSS load balancer</strong><br />
<p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p></p>
<p>Slowloris is running against the webserver with 3000 sockets (should be more then enough). As you can see on the top two windows the load balancer does not forward any of the incomplete requests to the webserver. We have stress tested the loadbancer up to 10,000 sockets and it had no effect on the loadbancer.</p>
<p><strong>NKiller</strong></p>
<p><strong>Nkiller vs Apache (No load balancer)<br />
</strong><p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p></p>
<p>In the video we see for windows. Top left and right show the number of apache processes and the apache dashboard. The middle window displays the NKiller output and the bottom window TCPdump.</p>
<p>When NKiller starts we see the it exhausts the httpd workers processes by putting them in a state where they are hanging while writing their reply back to the client.<br />
<strong>Nkiller vs Apache behind a CSS load balancer<br />
</strong><p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p><strong><br />
</strong><em></em></p>
<p>When NKiller was used against a server protected by a Cisco CSS load balancer the packets received from the load balancer do not match the expections of the Nkiller tool and the tool crashed producing a segmentation fault.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2009/06/slowloris-css/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

