<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Cатсн²² (in)sесuяitу &#187; Conference</title>
	<atom:link href="http://blog.c22.cc/category/conference/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.c22.cc</link>
	<description>Because we&#039;re damned if we do, and we&#039;re damned if we don&#039;t!</description>
	<lastBuildDate>Tue, 31 Aug 2010 15:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.c22.cc' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1b6c05a022094e3a7342e6b645c9cfce?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Cатсн²² (in)sесuяitу &#187; Conference</title>
		<link>http://blog.c22.cc</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.c22.cc/osd.xml" title="Cатсн²² (in)sесuяitу" />
	<atom:link rel='hub' href='http://blog.c22.cc/?pushpress=hub'/>
		<item>
		<title>Bigger, Better, Faster, More!</title>
		<link>http://blog.c22.cc/2010/08/10/bigger-better-faster-more/</link>
		<comments>http://blog.c22.cc/2010/08/10/bigger-better-faster-more/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 08:01:13 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[blackhat]]></category>
		<category><![CDATA[#BSidesLV]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=1815</guid>
		<description><![CDATA[Las Vegas &#8211; The entertainment capital of the world. Where your every desire is catered for, and you never have to go without. If there&#8217;s another place on earth with so many flashy lights, then I&#8217;ve certainly never heard about &#8230; <a href="http://blog.c22.cc/2010/08/10/bigger-better-faster-more/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1815&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-1817 alignright" style="margin:6px;" title="lights" src="http://c22blog.files.wordpress.com/2010/08/lights.jpg?w=207&#038;h=138" alt="" width="207" height="138" />Las Vegas &#8211; The entertainment capital of the world.</p>
<p>Where your every desire is catered for, and you never have to go without. If there&#8217;s another place on earth with so many flashy lights, then I&#8217;ve certainly never heard about it!</p>
<p>Still, When I saw that this year Blackhat had gone to 11 tracks, I couldn&#8217;t help but think they&#8217;d were going a little bit too far, even for Vegas!</p>
<p>There&#8217;s a fine line between offering good content and swamping visitors with just too much choice&#8230;  and no matter how much I try, I just can&#8217;t help but get the feeling that Blackhat Las Vegas just <a href="http://en.wikipedia.org/wiki/Jumping_the_shark" target="_blank">jumped the shark</a>!</p>
<p style="text-align:left;">I go to more than my fair share of conferences, and one thing that connects them all for me is the excitement and anticipation I get when looking over the list of speakers and talks. Picking out the ones I really want to see, the people I want to meet and the things I want to learn about, are one of the highlights of a conference for me. The build-up is almost as important as the event after all. When I saw the schedule for this years Blackhat however, I didn&#8217;t feel excited. It wasn&#8217;t because there were no good talks, because there were a lot of great talks and great speakers. It was just too much. In my mind Blackhat had hit that point where it just didn&#8217;t matter what talks people went to anymore. It was just too big, too complex, and too confusing to me. I couldn&#8217;t help but get the feeling that no matter what talk I saw, I&#8217;d always be thinking about the other 10 tracks and what I was missing out on!</p>
<p style="text-align:center;"><img class="size-medium wp-image-1816 aligncenter" style="margin-top:8px;margin-bottom:8px;" title="11tracks" src="http://c22blog.files.wordpress.com/2010/08/11tracks.png?w=344&#038;h=48" alt="" width="344" height="48" /></p>
<p style="text-align:left;">Maybe it&#8217;s just me, maybe everybody else thinks this was the best Blackhat ever. Everybody has his/her own opinion, and mine is that Blackhat <em>(at least in Vegas)</em> is dead to me. I doubt I&#8217;ll be attending next year for the new improved 12 track program <em>(they have to make it more impressive next year after all&#8230; there&#8217;s no backing down now!)</em>. If you want to find me, I&#8217;ll be sitting by the pool at <a href="http://www.securitybsides.com/BSidesLasVegas" target="_blank">BSides</a> talking to people who do this for the love of it, and not the money.</p>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/bsideslv/'>#BSidesLV</a>, <a href='http://blog.c22.cc/tag/blackhat/'>blackhat</a>, <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1815/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1815/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1815/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1815&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/08/10/bigger-better-faster-more/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/08/lights.jpg?w=300" medium="image">
			<media:title type="html">lights</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/08/11tracks.png?w=300" medium="image">
			<media:title type="html">11tracks</media:title>
		</media:content>
	</item>
		<item>
		<title>[Defcon] SHODAN for Penetration Testers</title>
		<link>http://blog.c22.cc/2010/08/02/defcon-shodan-for-penetration-testers/</link>
		<comments>http://blog.c22.cc/2010/08/02/defcon-shodan-for-penetration-testers/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 00:43:53 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[defcon]]></category>
		<category><![CDATA[shodan]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1805</guid>
		<description><![CDATA[SHODAN for Penetration Testers – Michael &#8220;theprez98&#8243; Schearer What is SHODAN SHODAN is a search engine designed to crawl server and gathering banner information from specific ports. A search engine of banners instead of content. We can use this information &#8230; <a href="http://blog.c22.cc/2010/08/02/defcon-shodan-for-penetration-testers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1805&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px;color:#494949;line-height:20px;"> </span></p>
<p style="margin:.6em 0 1.2em;padding:0;"><img style="margin-left:auto;vertical-align:middle;display:block;margin-right:auto;border:initial none initial;" src="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&amp;h=150&#038;h=150" alt="" width="150" height="150" /></p>
<p style="margin:.6em 0 1.2em;padding:0;"><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><strong>SHODAN for Penetration Testers</strong></span></span><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"> – Michael &#8220;theprez98&#8243; Schearer</span></p>
<p style="margin:.6em 0 1.2em;padding:0;"><strong>What is SHODAN</strong></p>
<p style="margin:.6em 0 1.2em;padding:0;">SHODAN is a search engine designed to crawl server and gathering banner information from specific ports.</p>
<p style="margin:.6em 0 1.2em;padding:0;">A search engine of banners instead of content.</p>
<p style="margin:.6em 0 1.2em;padding:0;">We can use this information to fingerprint the type and/or version of system</p>
<p style="margin:.6em 0 1.2em;padding:0;">
<p style="margin:.6em 0 1.2em;padding:0;"><strong>Basic Operations</strong></p>
<p style="margin:.6em 0 1.2em;padding:0;">Accessible through the website &#8211;&gt; www.shodanhq.com</p>
<p style="margin:.6em 0 1.2em;padding:0;">There are also a number of browser add-ons that allow you to search directly from a browser without using the main interface.</p>
<p style="margin:.6em 0 1.2em;padding:0;">
<p style="margin:.6em 0 1.2em;padding:0;">The search engine supports standard things such as boolean operators, as you&#8217;d expect</p>
<p style="margin:.6em 0 1.2em;padding:0;">Login &#8211;&gt; Either a free access search (a few features restricted) or create an account for full access.</p>
<p style="margin:.6em 0 1.2em;padding:0;"><em><strong>Filters</strong></em></p>
<p style="margin:.6em 0 1.2em;padding:0;">Typing &#8220;CISCO&#8221; into SHODAN will come up with a lot of results. To filter this, you can use specific filtering values.</p>
<ul>
<li>after/before
<ul>
<li>Limit results by date</li>
</ul>
</li>
<li>country
<ul>
<li>2 letter country code</li>
</ul>
</li>
<li>hostname
<ul>
<li>Filters by text in the hostname or domain</li>
</ul>
</li>
<li>net
<ul>
<li>Specific IP range or subnet</li>
</ul>
</li>
<li>os</li>
<li>port</li>
<li>SSL</li>
</ul>
<p style="margin:.6em 0 1.2em;padding:0;">Filters can be specified through the interface using the map/checkboxes. Alternatively, you can directly enter the filter text into the search box.</p>
<p style="margin:.6em 0 1.2em;padding:0;">The map is also interactive, showing the number of scanned hosts when you mouseover a country.</p>
<p style="margin:.6em 0 1.2em;padding:0;"><em>example</em>: apache country:CH &#8211;&gt; search for all systems in CH with the match on apache</p>
<p style="margin:.6em 0 1.2em;padding:0;">Knowing what the banner returns is very helpful for finding systems you want to locate.</p>
<p style="margin:.6em 0 1.2em;padding:0;"><em>Other Examples</em> :</p>
<ul>
<li>apache hostname:.nist.gov</li>
<li>iss-5.0 hostname:.edu</li>
</ul>
<p style="margin:.6em 0 1.2em;padding:0;"><strong><em>Port filtering</em></strong></p>
<ul>
<li>FTP 21</li>
<li>SSH 22</li>
<li>Telnet 23</li>
<li>HTTP 80</li>
<li>SNMP 161</li>
<li>HTTPS 443 &#8211;&gt; Requires an SSL add-on</li>
</ul>
<p style="margin:.6em 0 1.2em;padding:0;">The SSL/HTTPS searches requires an add-on. More information on the SHODAN homepage.</p>
<p style="margin:.6em 0 1.2em;padding:0;">Search history is optional and disabled by default</p>
<p style="margin:.6em 0 1.2em;padding:0;">By creating an account you can have personal history and save searches that you wish to repeat.</p>
<p style="margin:.6em 0 1.2em;padding:0;"><strong><em>Export</em></strong></p>
<p style="margin:.6em 0 1.2em;padding:0;">Can export up to 1,000 results in XML format</p>
<p style="margin:.6em 0 1.2em;padding:0;">Requires an account, and add-on</p>
<p style="margin:.6em 0 1.2em;padding:0;">
<p style="margin:.6em 0 1.2em;padding:0;">New section called Network Radar that shows newly added data.</p>
<p style="margin:.6em 0 1.2em;padding:0;">Extended searches available with add-ons</p>
<p style="margin:.6em 0 1.2em;padding:0;">
<p style="margin:.6em 0 1.2em;padding:0;"><strong>Penetration Testing</strong></p>
<p style="margin:.6em 0 1.2em;padding:0;">Originally a marketing and research tool. However things have changed.</p>
<p style="margin:.6em 0 1.2em;padding:0;">Basic knowledge of banners and status codes is important to be able to make sense of results and configure filters.</p>
<p style="margin:.6em 0 1.2em;padding:0;">When searching for web-servers or domains, a 200 OK message is the best result as no further authentication is required to access the page.</p>
<p style="margin:.6em 0 1.2em;padding:0;">
<p style="margin:.6em 0 1.2em;padding:0;"><strong>CASE Studies</strong></p>
<ul>
<li>CISCO Devices
<ul>
<li>By searching for CISCO with a 200 OK, you will find devices without authentication</li>
<li>Some of these are probably test labs&#8230;.. but not ALL of them!</li>
<li>5-6,000 of such systems on the internet</li>
</ul>
</li>
<li>Default Passwords
<ul>
<li>Search for the words &#8220;default password&#8221;</li>
<li>Find&#8230; a printer accessible from the web using the default password as displayed in the headers</li>
</ul>
</li>
<li>HAUWEI
<ul>
<li>Exclusion of all 4XX codes &#8211;&gt; We just want 200 OK</li>
<li>Most responses where all in the same Subnet</li>
<li>Lots and lots of VoIP phones public facing</li>
<li>However&#8230;. they needed a password. Most hauwei have easy to guess default passwords</li>
<li>Able to reconfigure the device&#8230;. even change the URL for software updates (want to load new firmware?)</li>
</ul>
</li>
<li>Infrastructure Exploitation&#8230; or &#8220;How to pwn an ISP&#8221;
<ul>
<li>A number of CISCO devices discovered in the earlier section</li>
<li>Allow LEVEL 15 access (full admin)</li>
<li>Included 2x CISCO 3750 and direct access to a Cisco 7606 router!</li>
<li>ISP located in the US (small regional)</li>
<li>VLAN IDs for internal networks, hotels, apartments, convention center, public backbone, etc&#8230;</li>
<li>SNMP server IP address and community strings</li>
</ul>
</li>
</ul>
<p>Other interesting info</p>
<ul>
<li>Some IIS searches
<ul>
<li>iis/5 &#8211;&gt; 362695</li>
<li>iis/4 &#8211;&gt; 9977</li>
<li>iis/3 &#8211;&gt; 381</li>
<li>iis/2 &#8211;&gt; 42</li>
<li>iis/1 &#8211;&gt; 152</li>
</ul>
</li>
<li>Wireless network cameras&#8230; with movement features
<ul>
<li>In Firefox you can do snapshots..</li>
<li>In IE you get an extra feature &#8211;&gt; CONFIG!</li>
</ul>
</li>
</ul>
<p><strong>Conclusions</strong></p>
<p>Aggregates a lot of information not already available</p>
<p style="padding-top:0;padding-right:0;padding-bottom:0;margin:.6em 0 1.2em;">Allows for some passive vulnerability analysis &#8211;&gt; based on banner version information</p>
<p style="padding-top:0;padding-right:0;padding-bottom:0;margin:.6em 0 1.2em;">Not going to take over the world, but a good tool for penetration testers</p>
<p style="padding-top:0;padding-right:0;padding-bottom:0;margin:.6em 0 1.2em;">
<p style="margin:.6em 0 1.2em;padding:0;"><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><span style="border-collapse:separate;color:#494949;font-family:Verdana, Arial, Helvetica, sans-serif;line-height:20px;font-size:12px;"> </span></span></p>
<p style="margin:.6em 0 1.2em;padding:0;"><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul style="margin:.5em 0 1em;padding:0;">
<li style="margin:.4em 0 .4em 1.5em;"><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Twitter –&gt; <a href="http://twitter.com/theprez98" target="_blank">@theprez98</a></span></span></li>
<li style="margin:.4em 0 .4em 1.5em;"><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;">Theprez98 slides –&gt; <a style="color:#5a0c07;text-decoration:none;" href="http://www.scribd.com/theprez98" target="_blank">LINK</a></span></li>
<li style="margin:.4em 0 .4em 1.5em;"><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;">SHODAN –&gt; <a style="color:#5a0c07;text-decoration:none;" href="http://www.shodanhq.com" target="_blank">LINK</a></span></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/defcon/'>defcon</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a>, <a href='http://blog.c22.cc/tag/shodan/'>shodan</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1805/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1805&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/08/02/defcon-shodan-for-penetration-testers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&#38;h=150&#38;h=150" medium="image" />
	</item>
		<item>
		<title>[Defcon] You Spent All That Money And You Still Got Owned&#8230;</title>
		<link>http://blog.c22.cc/2010/08/02/defcon-you-spent-all-that-money-and-you-still-got-owned/</link>
		<comments>http://blog.c22.cc/2010/08/02/defcon-you-spent-all-that-money-and-you-still-got-owned/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 23:36:38 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[defcon]]></category>
		<category><![CDATA[penetration testing]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1803</guid>
		<description><![CDATA[You Spent All That Money And You Still Got Owned&#8230; &#8211; Joe McCray You often run up against all sorts of defensive measures when penetration testing (Firewalls, IDs/IPS, WAF, &#8230;) and the testers still get in! Often you get in, only &#8230; <a href="http://blog.c22.cc/2010/08/02/defcon-you-spent-all-that-money-and-you-still-got-owned/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1803&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&amp;h=150&#038;h=150" alt="" width="150" height="150" /></p>
<p><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><strong>You Spent All That Money And You Still Got Owned&#8230;</strong></span></span><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"> &#8211; Joe McCray</span></p>
<p>You often run up against all sorts of defensive measures when penetration testing (Firewalls, IDs/IPS, WAF, &#8230;) and the testers still get in!</p>
<p>Often you get in, only to find that the company is already owned (enter Incident Handling mode)</p>
<p>More and more security measures are being implemented on company networks.</p>
<ul>
<li>Firewalls are commonplace (perimeter and host based)</li>
<li>Anti-virus is smarter</li>
<li>Intrusion Detection / Prevention systems are hard to detect, let alone bypass</li>
<li>NAC Solutions are making their way into networks</li>
<li>IT Hardware / Software vendors are integrating security into their SDLC</li>
</ul>
<p>Still. Companies get owned.</p>
<p>Comments like &#8220;We can&#8217;t patch those! Those are our development servers&#8221; don&#8217;t help.</p>
<p>&#8220;Always go for the quick shell&#8221; &#8211;&gt; Google dork search for anything that hints at SQL Injection, remote/local file includes.</p>
<p><strong>Identify Load-Balancers</strong></p>
<p>Figure out if it&#8217;s load balanced</p>
<p>DNS or IP load balanced &#8211;&gt; it makes a difference</p>
<p>Check the returned headers to see if things are different</p>
<ul>
<li>Server Header</li>
<li>Time/Date</li>
<li>&#8230;</li>
</ul>
<p>Use DNS queries and Netcraft.com</p>
<p>Tools to do this</p>
<ul>
<li>Load Balancer Detection &#8211; lbd.sh</li>
<li>Halberd</li>
</ul>
<p><strong>Identifying Intrusion Prevention Systems</strong></p>
<p>Most are still in detection only mode</p>
<p>See if it&#8217;s blocking&#8230;. break out CURL and try ../../../../winnt/system32/cmd.exe?d</p>
<p>Did you get blocked, is your IP banned &#8211;&gt; If so it&#8217;s an IPS in blocking mode</p>
<p>Look for RST and other hints</p>
<p>Does the IPS monitor SSL traffic &#8211;&gt; Many don&#8217;t</p>
<p><strong>Attacking through TOR</strong></p>
<p>Push attacks through TOR to help with IP-Banning</p>
<p>Clients should be blocking TOR proxies</p>
<p><strong>Identifying WAFs</strong></p>
<p>Due to PCI, there are a lot of WAFs being implemented</p>
<p>Send almost any special character it will respond</p>
<p>Often easy to identify</p>
<p>Check in return headers for hints and information.</p>
<p>Tools like wafwoof can also be used &#8211;&gt; waffun is a project being worked on currently</p>
<p>Examine / Request all possible std return codes (200, 404, 301, ..) and then see what gets returned if you try an XSS attack&#8230; are they identical?</p>
<p>Encoding is sometimes dealt with by a WAF&#8230; double encoding not so often.</p>
<p><em>Example</em>:</p>
<p>DotDefender WAF &#8211;&gt; Simple unencoded SQLi gets through. Blacklist on specific words and commands</p>
<p>Blocking the word SELECT &#8211;&gt; Easy to bypass using UNICODE</p>
<p>FIXED by the vendor &#8211;&gt; Only blocks unicode &#8211;&gt; FAIL</p>
<p><strong>SQL Injection to Metasploit</strong></p>
<p><em>SQLNinja</em></p>
<ul>
<li>Written in Perl, but still good.</li>
<li>Great from going from SQLi to shell</li>
</ul>
<p><em>SQLMAP</em></p>
<ul>
<li>Written in Python</li>
<li>Allows you to drop to a shell</li>
</ul>
<p><strong>Filter Evasion</strong></p>
<p>Client-Side filtering == BAD</p>
<p>Do not use JavaScript that does filtering without server-side checks</p>
<p>&#8220;You&#8217;re going to put all the security on the hackers laptop!&#8221;</p>
<p><strong>Restrictive Blacklist</strong></p>
<p>Blocking things like = sign doesn&#8217;t stop SQLi</p>
<p>Encoding things bypasses these blacklists</p>
<p>Rules in IDS/IPS are sometimes looking for specifics like 1=1</p>
<p>Wait&#8230; doesn&#8217;t 2=2 as well!</p>
<p>Blacklist rule-sets are a loosing proposition as encoding can bypass the rules</p>
<p><strong>Practice your kung-fu</strong></p>
<p>PHPIDS</p>
<ul>
<li>Smoketest
<ul>
<li>check your encoding and bypass techniques</li>
<li>find something that will bypass a lot of the rules</li>
</ul>
</li>
</ul>
<p>MOD_Security</p>
<ul>
<li>Also now offers a smoketest</li>
<li>Implements core ruleset, PHPIDS and Snort</li>
</ul>
<p>Lots of companies have IDS&#8230; how many actually look at it though?</p>
<p><strong>Getting in via the Client-Side</strong></p>
<p>Email a client-side exploit exported from Metasploit</p>
<p>Use reverse HTTPS to bypass some detections</p>
<p><em>SET (Social Engineering Toolkit)</em></p>
<p>&#8220;Real hackers aren&#8217;t scanning your network anymore&#8221;</p>
<p><strong>Pivoting into the LAN</strong></p>
<p>Metasploit offers a pivot</p>
<p>Compile programs so they don&#8217;t need an install, upload to remote system and run</p>
<p><strong>Common LAN Security Solutions</strong></p>
<p>No DHCP</p>
<ul>
<li>Use Static</li>
</ul>
<p>DHCP MAC Address REservations</p>
<ul>
<li>Find a system, steal MAC</li>
</ul>
<p>Port Security</p>
<ul>
<li>Find a printer&#8230;.</li>
</ul>
<p>NAC Solutions</p>
<ul>
<li>Find a non-NAC supported system</li>
</ul>
<p>See a pattern here</p>
<p>Tools like VOIPhopper are perfect for going from one VLAN to another.</p>
<p><strong>Looking around the network for a user</strong></p>
<ul>
<li>net commands on Windows are great for finding network information</li>
<li>Script output and find the Administrators</li>
<li>Escalate to SYSTEM/Administrator</li>
<li>Run commands using psexec, pskill, &#8230;</li>
<li>Kill protections, stop services</li>
</ul>
<p>Certain AV/HIDS have blacklist filenames that aren&#8217;t checked&#8230; not hashes&#8230; filenames!</p>
<p>Use the new getsystem in Metasploit</p>
<p><strong>Owning the Domain</strong></p>
<p>Use token stealing (in Metasploit / Incognito)</p>
<p>Find an admin, steal the token, win!</p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Twitter &#8211;&gt; <a href="http://twitter.com/j0emccray" target="_blank">@j0emccray</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;">Talk Information &#8211;&gt; <a href="https://www.defcon.org/html/defcon-18/dc-18-speakers.html#McCray" target="_blank">LINK</a></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;">Learn Security Online &#8211;&gt; <a href="http://www.learnsecurityonline.com/" target="_blank">LINK</a></span></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/defcon/'>defcon</a>, <a href='http://blog.c22.cc/tag/penetration-testing/'>penetration testing</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1803/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1803/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1803/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1803/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1803/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1803/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1803/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1803/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1803&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/08/02/defcon-you-spent-all-that-money-and-you-still-got-owned/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&#38;h=150" medium="image" />
	</item>
		<item>
		<title>[Defcon] Hacking Oracle From Web Apps</title>
		<link>http://blog.c22.cc/2010/07/31/defcon-hacking-oracle-from-web-apps/</link>
		<comments>http://blog.c22.cc/2010/07/31/defcon-hacking-oracle-from-web-apps/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 00:49:12 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[defcon]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[web applications]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1800</guid>
		<description><![CDATA[Hacking Oracle From Web Apps &#8211; Sumit Siddharth Exploitation techniques for exploit SQL Injection attacks on Web Applications with Oracle databases Because it&#8217;s Defcon&#8230; and we love SQL Injection! No free tools for hacking Oracle Databases from the web Even &#8230; <a href="http://blog.c22.cc/2010/07/31/defcon-hacking-oracle-from-web-apps/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1800&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&amp;h=150&#038;h=150" alt="" width="150" height="150" /></p>
<p><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><strong>Hacking Oracle From Web Apps</strong></span></span><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"> &#8211; Sumit Siddharth</span></p>
<p>Exploitation techniques for exploit SQL Injection attacks on Web Applications with Oracle databases</p>
<p>Because it&#8217;s Defcon&#8230; and we love SQL Injection!</p>
<p>No free tools for hacking Oracle Databases from the web</p>
<ul>
<li>Even commercial tools like Pangolin have outdated techniques</li>
</ul>
<p><strong>Oracle Privileges</strong></p>
<p>Oracle comes with a number of default packages. This has reduced a lot with the latest 11g release</p>
<p>By default these packages run with the privileges of the definer</p>
<p>This can be changed to the caller of the function, but must be set in the function/procedure (AUTHID CURRENT_USER)</p>
<p><em>Owning from the network is easy</em></p>
<ul>
<li>Enumerate SID</li>
<li>Enumerate common users</li>
<li>Connect to the Oracle DB</li>
<li>Exploit SQL Injection in a procedure owned by SYS</li>
<li>Become DBS</li>
<li>Execute OS Code</li>
</ul>
<p>Demonstrated by Chris Gates last year using a number of Metasploit plugins</p>
<p>In Oracle there are 2 classes of Injection</p>
<ul>
<li>PL/SQL</li>
<li>SQL
<ul>
<li>Limited</li>
<li>Doesn&#8217;t allow chained statements</li>
</ul>
</li>
</ul>
<p>OS Code execution is also not as simple as it is in Microsoft SQL Server</p>
<p>PL/SQL Injection</p>
<ul>
<li>Injection in Anonymous PL/SQL Block</li>
<li>No Restriction</li>
<li>Execute DDL/DML</li>
</ul>
<p>SQL</p>
<ul>
<li>Common SQL Injection</li>
<li>Limited capabilities</li>
<li>No chained statements</li>
</ul>
<p><strong>eExploitating </strong><strong>PL/SQL Injection</strong></p>
<p><strong> </strong>Using David Litchfield&#8217;s exploit from Blackhat DC 2010 &#8211;&gt; Enable JAVA IO Permissions</p>
<p><strong> </strong></p>
<p>OS Command Injection can then be obtained by calling a JAVA function (DBMS_JAVA_TEST) and calling a command on the local system</p>
<p><strong>Exploiting SQL Injection</strong></p>
<p>This could mean many thing&#8230; do you want data from the DB or a shell &#8211;&gt; depends on the goals of a test/attacker</p>
<p>Extraction of Data</p>
<ul>
<li>Error Messages Enabled</li>
<li>Error Messages Disabled
<ul>
<li>Union Query</li>
<li>Blind injection</li>
<li>Time delay / Heavy queries</li>
<li>Out-of-band channels</li>
</ul>
</li>
<li>Privilege escalation</li>
<li>OS Command Execution</li>
</ul>
<p>Is your SQL Injection Privileged or unprivileged?</p>
<p>Are you executing with DBA privileges or something else</p>
<ul>
<li>Privileged SQL Injection
<ul>
<li>Happens more often when the application connects to a database with DBA privs</li>
<li>SQL Injection is in a procedure owned by the DBA (regardless of the connection string)</li>
</ul>
</li>
<li>Unprivileged SQL Injection</li>
</ul>
<p>To exploit the Os we need Functions executable by public and vulnerable to :</p>
<ul>
<li>PL/SQL Injection</li>
<li>Allows PL/SQL execution as a feature</li>
<li>Buffer overflow</li>
</ul>
<p>There are a few functions known but the exploit is not publicly available</p>
<p>e.g. DBMS_JAVA_TEST (10g) buffer overflow</p>
<p>Of those known the following are popular:</p>
<ul>
<li>DBMS_EXPORT_EXTENSION</li>
<li>GET_DOMAIN_INDEX_TABLES()
<ul>
<li>Function vulnerable to PL/SQL Injection</li>
<li>Runs with definer (SYS) privileges</li>
<li>Allows privilege escalation</li>
<li>OS Command Execution</li>
</ul>
</li>
</ul>
<p>Privileges needed to execute code on the OS</p>
<ul>
<li>DBA Privileges</li>
<li>JAVA IO Privileges</li>
</ul>
<p>Versions prior to CPU April 2006 there are a number of exploits in Pangolin and CoreImpact</p>
<p>Functions to execute code on the OS</p>
<ul>
<li>DBMS_JAVA.RUNJAVA()</li>
<li>DBMS_JAVA_TEST.FUNCALL()</li>
</ul>
<p>These take an Oracle class as input and cannot be executed without JAVA IO Privileges.</p>
<p>DBA can grant himself the required privileges, however even without he can use the SYS.KUPP$PROC.CREATE.MASTER_PROCESS() function on 10g/11g to execute code on the remote OS.</p>
<p><strong>Bsqlbf 2.6</strong></p>
<p>Supports these new attack types and can be downloaded from Google Code.</p>
<p>Includes the ability to upload and execute a Metasploit payload through these vulnerabilities</p>
<p>Supports JAVA IO and DBA execution as required</p>
<p>Has a cleanup mode for nice penetration testers <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Non-interactive second order injections</strong></p>
<p>Even if a field is not injectable it could be that the code is executed if for example, an administrator views the injected code through a second vulnerable application (for example a logging tool, or administration screen).</p>
<p>The malicious user will never see the response however, as the secondary user is running the injection. This means any output will be returned to the secondary user and not the malicious user.</p>
<p>Another possible scenario is a trigger or automated nightly process that acts on the injected code when run.</p>
<p>So how can we make these non-interactive attack vectors interactive ?</p>
<p>Encode and upload a binary (Metasploit payload) to the remote server and wait for the secondary user/process to trigger the exploit &#8211;&gt; Shell &#8211;&gt; WIN</p>
<p>webraider tool implements this style of attack to upload a Metasploit module</p>
<p><strong>You&#8217;ve been hacked&#8230; so what?</strong></p>
<p>PCI compliance mandates the card data must be stored encrypted &#8211;&gt; So the output is encrypted</p>
<p>PCI doesn&#8217;t specific if the encryption happens at the DB or App level</p>
<p>If it&#8217;s at the DB level, then the App decrypts the data when requesting &#8211;&gt; Passing the encryption key means an attacker could extract them</p>
<ul>
<li>v$sql table logs statistics on shared SQL area</li>
<li>Typically stores last 500 queries &#8211;&gt; including the encryption details</li>
</ul>
<p><strong><br />
</strong></p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Blog &#8211;&gt; <a href="http://www.notsosecure.com" target="_blank">LINK</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Twitter &#8211;&gt; <a href="http://twitter.com/notsosecure" target="_blank">@notsosecure</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;">bsqlbf &#8211;&gt; <a href="http://code.google.com/p/bsqlbf-v2/" target="_blank">LINK</a></span></li>
<li>webraider &#8211;&gt; <a href="http://code.google.com/p/webraider/" target="_blank">LINK</a></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/defcon/'>defcon</a>, <a href='http://blog.c22.cc/tag/oracle/'>oracle</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a>, <a href='http://blog.c22.cc/tag/sql/'>sql</a>, <a href='http://blog.c22.cc/tag/web-applications/'>web applications</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1800/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1800/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1800/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1800&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/07/31/defcon-hacking-oracle-from-web-apps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&#38;h=150" medium="image" />
	</item>
		<item>
		<title>[Defcon] Exploiting WebSphere Application Server&#8217;s JSP Engine</title>
		<link>http://blog.c22.cc/2010/07/31/defcon-exploiting-websphere-application-servers-jsp-engine/</link>
		<comments>http://blog.c22.cc/2010/07/31/defcon-exploiting-websphere-application-servers-jsp-engine/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 23:39:05 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[defcon]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[websphere]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1797</guid>
		<description><![CDATA[Exploiting WebSphere Application Server&#8217;s JSP Engine &#8211; Ed Schaller Note: Apologies for the notes&#8230;. Ed talks REALLY fast! WebSphere Application Server IBM&#8217;s JEE Application Server One of the top 3 Not cheap &#8211;&#62; free trial available Common Network Architecture Client Browser &#8211;&#62; &#8230; <a href="http://blog.c22.cc/2010/07/31/defcon-exploiting-websphere-application-servers-jsp-engine/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1797&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&amp;h=150&#038;h=150" alt="" width="150" height="150" /></p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Exploiting WebSphere Application Server&#8217;s JSP Engine</strong> &#8211; Ed Schaller</span></p>
<p><span style="color:#999999;"><em><strong>Note</strong>: Apologies for the notes&#8230;. Ed talks REALLY fast!</em></span></p>
<p><strong>WebSphere Application Server</strong></p>
<p>IBM&#8217;s JEE Application Server</p>
<p>One of the top 3</p>
<p>Not cheap &#8211;&gt; free trial available</p>
<p><em>Common Network Architecture</em></p>
<p>Client Browser &#8211;&gt; Web Servers &#8211;&gt; WebSphere AS</p>
<p>Web server plugin &#8211;&gt; Extension module for common HTTP servers (IIS, Apache, etc&#8230;)</p>
<ul>
<li>Communicates with WAS via HTTP</li>
<li>Load Balancing</li>
<li>Fail over</li>
<li>Not Security!</li>
</ul>
<p>Plugin URL Handling</p>
<p>Not all requests get forwarded back to the WAS.</p>
<ul>
<li>Based on URL mappings in web.xml and ibm-web-ext.xmi (simple file globs)</li>
</ul>
<p>If a match occurs the request is forwarded, if not its handled by the local HTTP Server</p>
<p><strong>JSP &amp; NUL</strong></p>
<p><em>Strings</em></p>
<ul>
<li>OS under Java is written in C
<ul>
<li>NUL terminates strings</li>
<li>Cannot contain NUL</li>
</ul>
</li>
<li>Java
<ul>
<li>Counted</li>
<li>NUL Allowed</li>
</ul>
</li>
</ul>
<p>What about the JSP engine inside WAS. How does it handle NULs</p>
<ol>
<li>Locate and read file</li>
<li>Translate .jsp to .java</li>
<li>Compile</li>
<li>Run as servlet</li>
</ol>
<p>This means you can reading (some) specific files through the JSP engine. As long as it&#8217;s a valid JSP</p>
<p>What&#8217;s a valid JSP?</p>
<ul>
<li>Anything starting with &lt;%</li>
<li>HTML</li>
<li>XML</li>
<li>Most Text files</li>
<li>&#8230;.</li>
</ul>
<p>What about directories&#8230; well you can read them to?</p>
<ul>
<li>/root/dir/%00.jsp</li>
<li>/root/dir/.%00.jsp
<ul>
<li>Sometimes you need &#8220;..&#8221;</li>
</ul>
</li>
</ul>
<p><strong>Web Server Plugin &amp; NUL</strong></p>
<p>Although not intended for security, it can get in the way of insecurity!</p>
<p>%00 works great on WAS, but getting it through the C compiled plugin isn&#8217;t</p>
<p>The next challenge is how to get %00 past the plugin</p>
<p><em>Character Encodings</em></p>
<p>UTF-8 is how Java reads strings natively</p>
<ul>
<li>Multi-byte character encoding</li>
<li>Single byte values can be encoded as multiple bytes</li>
<li>Explicitly forbidden in the spec
<ul>
<li>Nobody follows the spec!</li>
</ul>
</li>
</ul>
<p>A fix for this issue was implemented&#8230; but the fix didn&#8217;t work!</p>
<p>It is however fixed in the latest JVM release (no direct patch from IBM as yet)</p>
<p>Encoding to bypass the plugin and get a NUL to the WAS &#8211;&gt; %C0%80.jsp instead of %00.jsp</p>
<p><strong>Web-INF &amp; META-INF</strong></p>
<p>Servlet specification says Return 404</p>
<p>Checked many places in WAS&#8230; but the missed one!</p>
<p>Fixed by IBM&#8230; but badly.</p>
<p>To bypass&#8230;</p>
<ul>
<li>/ctxroot/%C0%AE/WEB-INF/web.xml</li>
</ul>
<p>This also works for META-INF</p>
<p><strong>The Whole Truth</strong></p>
<p><em>JSP Strikes back</em></p>
<ol>
<li>Locate and read file</li>
<li>Translate .JSP to .JAVA</li>
<li>Compile</li>
<li>Run</li>
</ol>
<p>Doesn&#8217;t this mean we can get remote code-exec?</p>
<p>SOAP With attachments lets us read a file that we what to compile and execute</p>
<p>Anything over 32KB gets cached to a location readable&#8230;.</p>
<p>Not many SOAP services however, handle attachments!</p>
<p>This makes it a lot less useable</p>
<p><em>SOAP Encoding</em></p>
<p>This allows you to reference attachments through the href in a SOAP message</p>
<p>When used with AXIS 1, it parses the attachment and caches the larger ones to the disk</p>
<p>AXIS 1 provides an interesting feature, A client can send a fault to the server as the first request&#8230; which is parsed</p>
<p>Faults use SOAP encoding and can therefore can be used to send an attachment</p>
<p><strong>Putting it all together</strong></p>
<p>Attachment filenames are random.</p>
<p>To bypass this .:</p>
<ol>
<li>Get the directory listing first</li>
<li>Uploads the JSP</li>
<li>Get another directory listing to find the filename</li>
<li>&#8230;</li>
</ol>
<p>This process however is pretty noisy and can cause a large amount of logs.</p>
<p>An example exploit code that performs this will be made available</p>
<p><strong>Affected platforms</strong></p>
<ul>
<li>WAS runs on a lot of platforms</li>
<li>AIX and Linux tested and vulnerable</li>
<li>Case insensitive file systems are not vulnerable to %00.jsp &#8211;&gt; e.g Windows</li>
<li>&#8230;</li>
</ul>
<p><strong>Fixes</strong></p>
<p>Fixes are out for 6.x, and 7.x</p>
<p>Took IBM 2 weeks to fix this flaw (16 different variants)</p>
<p>Providing security reports as a PMR works!</p>
<p>Fix from IBM is very elegant</p>
<ul>
<li>Double checks the file being opened to make sure it&#8217;s really the end file being opened</li>
<li>WEB-INF doesn&#8217;t appear in the patch &#8211;&gt; Not so elegant</li>
</ul>
<p><strong>Workarounds</strong></p>
<ul>
<li>Disable runtime compilation and reloading of JSPs
<ul>
<li>disableJspRuntimeCompilation</li>
</ul>
</li>
<li>Block access to .jsp before WAS
<ul>
<li>Not always possible</li>
<li>JSP Extensions such as jsv, jsw, etc&#8230;.</li>
</ul>
</li>
</ul>
<p><strong>A Note on Browsers</strong></p>
<ul>
<li>Browsers may normalize the characters</li>
<li>Could cause issues with exploitation</li>
</ul>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Talk Information &#8211;&gt; <a href="https://www.defcon.org/html/defcon-18/dc-18-speakers.html#Schaller" target="_blank">LINK</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Slides &#8211;&gt; </span><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><a href="http://www.darkmist.net/~schallee/defcon18/" target="_blank">LINK</a></span></span></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/defcon/'>defcon</a>, <a href='http://blog.c22.cc/tag/ibm/'>ibm</a>, <a href='http://blog.c22.cc/tag/java/'>java</a>, <a href='http://blog.c22.cc/tag/jsp/'>jsp</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a>, <a href='http://blog.c22.cc/tag/websphere/'>websphere</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1797/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1797&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/07/31/defcon-exploiting-websphere-application-servers-jsp-engine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/dc-18-logo_smsq.png?w=150&#38;h=150" medium="image" />
	</item>
		<item>
		<title>[BSidesLV] It Melts In Your Hand: An Overview of Security (Failures) In Mobile Applications</title>
		<link>http://blog.c22.cc/2010/07/29/bsideslv-it-melts-in-your-hand-an-overview-of-security-failures-in-mobile-applications/</link>
		<comments>http://blog.c22.cc/2010/07/29/bsideslv-it-melts-in-your-hand-an-overview-of-security-failures-in-mobile-applications/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 21:45:05 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[#BSidesLV]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1795</guid>
		<description><![CDATA[It Melts In Your Hand: An Overview of Security (Failures) In Mobile Applications &#8211; Zach Lanier Mobile Application Themes Broad Observations The web pushed content to the browser Centralization of apps and data Always a push for MORE (ActiveX, applets, &#8230; <a href="http://blog.c22.cc/2010/07/29/bsideslv-it-melts-in-your-hand-an-overview-of-security-failures-in-mobile-applications/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1795&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&amp;h=130&#038;h=130" alt="" width="192" height="130" /></p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>It Melts In Your Hand: An Overview of Security (Failures) In Mobile Applications</strong> &#8211; Zach Lanier</span></p>
<p><strong><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><span style="color:#000000;font-family:Helvetica, Arial, sans-serif;font-size:medium;"><span style="border-collapse:separate;font-size:14px;line-height:normal;">Mobile Application Themes </span></span></span></span></strong></p>
<p><em><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><span style="color:#000000;font-family:Helvetica, Arial, sans-serif;font-size:medium;"><span style="border-collapse:separate;font-size:14px;line-height:normal;">Broad Observations</span></span></span></span></em></p>
<p>The web pushed content to the browser</p>
<ul>
<li>Centralization of apps and data</li>
<li>Always a push for MORE (ActiveX, applets, &#8230;)</li>
</ul>
<p>Now, everyone gets their own app!</p>
<ul>
<li>Code (not HTML) gets pushed to the endpoint</li>
<li>App for things like XKCD</li>
</ul>
<p><strong>Authorization</strong></p>
<p>Carriers only authenticate to the network. Once you&#8217;re on the carrier, it&#8217;s free access with almost no checks.</p>
<p>Third-party applications are sometimes better than carrier apps with support for better auth</p>
<p>Some stupid client-side auth issues (admin=1)</p>
<p>Many apps are syncing data between the device and cloud using simple HTTP</p>
<p>At that point it&#8217;s just like pentesting a webapp</p>
<p><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><span style="color:#000000;font-family:Helvetica, Arial, sans-serif;font-size:medium;"><span style="border-collapse:separate;font-size:14px;line-height:normal;"><br />
</span></span></span></span></p>
<p><strong><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><span style="color:#000000;font-family:Helvetica, Arial, sans-serif;font-size:medium;"><span style="border-collapse:separate;font-size:14px;line-height:normal;">Platform Security</span></span></span></span></strong></p>
<p><em>Quick Overview of the common platforms</em></p>
<p>Many disparate platforms</p>
<ul>
<li>Android, iPhone Os, RIM, WinMo, Brew, &#8230;.</li>
</ul>
<p>Different platforms handle security differently</p>
<p>Concerns</p>
<ul>
<li>Shared user accounts</li>
<li>Native Code
<ul>
<li>Obj-C, JNI)</li>
</ul>
</li>
<li>Certificate Validation
<ul>
<li>SSL, Code Signing</li>
</ul>
</li>
<li>Support for Emerging Technologies
<ul>
<li>Flash, WebKit, HTML5</li>
</ul>
</li>
</ul>
<p><em><br />
</em></p>
<p><strong><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><span style="color:#000000;font-family:Helvetica, Arial, sans-serif;font-size:medium;"><span style="border-collapse:separate;font-size:14px;line-height:normal;">Testing Techniques</span></span></span></span></strong></p>
<ul>
<li>Whitebox
<ul>
<li>Sometimes it&#8217;s trivial to get app source-code</li>
</ul>
</li>
<li>Blackbox
<ul>
<li>Acquiring application binaries</li>
<li>Reverse Engineering
<ul>
<li>Dissassembly</li>
</ul>
</li>
<li>Network Analysis
<ul>
<li>Protocol Analysis</li>
<li>Fuzzing</li>
<li>MITM</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Protocol analysis is often the easiest method. A lot of applications tunnel over HTTP and make it easier for testers.</p>
<p>Tools commonly used .:</p>
<ul>
<li>undx, coddec, JAD
<ul>
<li>decompilation</li>
</ul>
</li>
<li>Smali / baksmali
<ul>
<li>(dis)assembly, patching</li>
</ul>
</li>
<li>Native Code?
<ul>
<li>IDA with ARM support</li>
<li>Strings</li>
</ul>
</li>
</ul>
<p>adb &#8211;&gt; Android Debugging Bridge</p>
<p>Not everybody can by a RE ninja.. sometimes the easiest way is to listen to it&#8217;s traffic</p>
<p>Become the MITM using tools like WAPT, WebScarab/Paros/Burp</p>
<p>Issues include things like requirement to be on the carrier connection and string SSL Certificate checks</p>
<p>Solutions including the use of mobile broadband cards and emulators to sit on the carrier network and still run the app</p>
<p>Wifi isn&#8217;t always an option as not all phones support it, applications may not connect over Wifi</p>
<p>Intrepidus have released a tool called mallory for MITM on TCP and UDP connections. This is useful for MITM mobile device testing</p>
<p><strong><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;"><span style="color:#000000;font-family:Helvetica, Arial, sans-serif;font-size:medium;"><span style="border-collapse:separate;font-size:14px;line-height:normal;">Case Studies</span></span></span></span></strong></p>
<p><em>Foursquared </em></p>
<p><em> </em>Application for 4square</p>
<p>Usage of Basic Auth instead of OAuth</p>
<ul>
<li>Cleartext transmission of username/password</li>
</ul>
<p>4square are starting to enforce OAuth and SSL in the future</p>
<p>Why is this a problem &#8211;&gt; Most applications prefer WIFI over carrier. Easy to sniff at your local Starbucks</p>
<p><em>A Storage Application</em></p>
<p>Multi-platform application</p>
<p>Developed by a third-party, branded for major carriers</p>
<p>Problem &#8211;&gt; Simple crash in the storage quota viewer</p>
<p>Attacker needs to MITM and alter the server response &#8211;&gt; Client crashes</p>
<p>Application has DRM, but allows you to share between friends.</p>
<p>Enforcement occurs on the client-side when viewing (XML response from the server detailing DRM info) &#8211;&gt; FAIL</p>
<p><em>Embedded Device #1</em></p>
<p>Mix of HTTP and HTTPS content</p>
<p>MITM on HTTP traffic to enable hidden Admin content</p>
<p>Strict SSL Validation prevents SSL MITM</p>
<p>The big problem was command injection by injection of commands into the SSID &#8211;&gt; SSID; &lt;insert your command here&gt;</p>
<p><em>Embedded Device #2</em></p>
<p>Typical XSS flaws in interface</p>
<p>Also command injection flaw allowing access</p>
<p><em>BREW Picture Upload</em></p>
<p>Designed to upload data from the phone to the cloud</p>
<p>BREW != Smart Phone</p>
<p>- No Wifi</p>
<p>Application Directed SMS</p>
<ul>
<li>SMS Client can parse messages and identify specific control messages for distinct applications</li>
<li>Debug code: SMS instruction to change remote upload destination</li>
<li>Traffic was plaintext HTTP/SOAP</li>
</ul>
<p>Authentication uses a static token for the lifetime of the app on that device.</p>
<p>Authentication token was an MD5 hash created server-side &#8211;&gt; Able to recreate the data used to create the MD5 hash</p>
<p>Able to hijack other users accounts based on this information and creation of valid MD5s</p>
<p>POST-Mortem</p>
<ul>
<li>No SSL</li>
<li>No Real Auth Scheme
<ul>
<li>Wh would you lie about your phone number</li>
<li>If they&#8217;re on our network they&#8217;re trusted</li>
</ul>
</li>
<li>No authorization controls on the server</li>
</ul>
<p><em>RIM Picture Upload</em></p>
<p>Similar to the BREW upload</p>
<p>Extract binary using JavaLoader.exe and run it in an emulator</p>
<p>Main app in a COD file.. simple ZIP format produces files to be decompiled</p>
<p>Decompilation didn&#8217;t give a clean output.</p>
<p>What was visible was a hard-coded 3-DEs key in the Java Bytecode. All devices use the same key!</p>
<p>Every encrypted image sent out on the wire was prefixed with an auth header</p>
<p>The WebApp at the server-side was vulnerable to a number of flaws including injection, and information disclosure</p>
<p>LAX permissions: Allowed to do whatever it wanted on the device itself &#8211;&gt; What ever happened to least privilege?</p>
<p>POST-Mortem</p>
<ul>
<li>Broken, Hard-coded crypto</li>
<li>Lack of input validation</li>
<li>LAX permissions and no defense in-depth</li>
</ul>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Quine Twitter &#8211;&gt; <a href="http://twitter.com/quine" target="_blank">@quine</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;">Mallory &#8211;&gt; <a href="http://intrepidusgroup.com/insight/tattler/" target="_blank">LINK</a></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;">Mallory BH Talk &#8211;&gt; <a href="http://www.blackhat.com/html/bh-us-10/bh-us-10-briefings.html#Umadas" target="_blank">LINK</a></span></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/bsideslv/'>#BSidesLV</a>, <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/mobile/'>mobile</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1795/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1795&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/07/29/bsideslv-it-melts-in-your-hand-an-overview-of-security-failures-in-mobile-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&#38;h=130" medium="image" />
	</item>
		<item>
		<title>[BSidesLV] Fun with VxWorks</title>
		<link>http://blog.c22.cc/2010/07/29/bsideslv-fun-with-vxworks/</link>
		<comments>http://blog.c22.cc/2010/07/29/bsideslv-fun-with-vxworks/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 19:29:36 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[#BSidesLV]]></category>
		<category><![CDATA[HDM]]></category>
		<category><![CDATA[VxWorks]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1792</guid>
		<description><![CDATA[Fun with VxWorks &#8211; HDM VxWorks Basics Started off as a generic vulnerability analysis VxWorks &#8211;&#62; embedded, real-time OS. Now owned by Intel Most widely deployed embedded OS (based on 2005 info) Supports various hardware platforms Each application run as &#8230; <a href="http://blog.c22.cc/2010/07/29/bsideslv-fun-with-vxworks/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1792&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&amp;h=130&#038;h=130" alt="" width="192" height="130" /></p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Fun with VxWorks</strong> &#8211; HDM</span></p>
<p>VxWorks Basics</p>
<ul>
<li>Started off as a generic vulnerability analysis</li>
<li>VxWorks &#8211;&gt; embedded, real-time OS. Now owned by Intel</li>
<li>Most widely deployed embedded OS (based on 2005 info)</li>
<li>Supports various hardware platforms</li>
<li>Each application run as kernel threads</li>
<li>Little memory protection between applications</li>
<li>Everything runs with the highest privileges&#8230;
<ul>
<li>not necessarily the highest priority</li>
</ul>
</li>
</ul>
<p>Used in systems from VoIP phones through to Fibre Channel switches. Lots of SCADA companies us this in monitoring systems.</p>
<p>Spacecraft and cars also run it!</p>
<p>There&#8217;s not many companies that don&#8217;t ship products with VxWorks</p>
<p><strong>VxWorks Security</strong></p>
<p>Only 12 CVEs mention VxWorks</p>
<p>Only 2 CVEs refer to flaws actually in the core of VxWorks</p>
<ul>
<li>CVE-2005-3715</li>
<li>CVE-2005-3804</li>
</ul>
<p>VxWorks debug server (default port 17185) Found to be running on a number of devices in production.</p>
<p>Mentioned in 2002, 2004, 2005.. but no info on how to abuse it</p>
<p>Basic API mentioned in the dev docs</p>
<p>VxWorks source-code is available by searching on Chinese wares-sites (use Google)</p>
<p>By looking at the source-code you can see the initial comments date back to 1995</p>
<p><strong>Metasploit</strong></p>
<p>Created WDBRPC Protocol library</p>
<p>Allows for scanning of a target</p>
<ul>
<li>use auxiliary/scanner/vxworks/wdbrpc_version</li>
</ul>
<p>Allows for completing a FULL memory dump from the device</p>
<ul>
<li>use auxiliary/admin/vxworks/wdbrpc_memory_dump</li>
<li>Progress meters incase you&#8217;re dumping from a system located in China</li>
</ul>
<p>Performing strings on the full dump gives lots of great information</p>
<p>Debugger however lets you read and WRITE to memory &#8211;&gt; direct memory write to goatse everybody</p>
<p><strong>Identify affected devices</strong></p>
<p>At least 5 vendors have flubbed this</p>
<p>Only way to deactivate fully is to reflash</p>
<p>This is 2010&#8230;. finding devices by scanning the web</p>
<ul>
<li>Just scan the whole internet</li>
<li>use wdbrpc_bootline as a scanner</li>
<li>use tcpdump to capture replies</li>
<li>use a VPS with a nice provider</li>
<li>scan&#8230; scan &#8230; scan</li>
<li>parse</li>
</ul>
<p>3.1 millions IPs&#8230;. 250,000 found vulnerable!</p>
<p>Rescanned those with SNMP &#8211;&gt; active on 25% of devices</p>
<p><strong>Checking score</strong></p>
<p>Somebody must have done this before right!</p>
<p>Looking through DShield data</p>
<ul>
<li>Traffic back in 2006, somebody did a mass scan for this port</li>
<li>Nothing major since then</li>
</ul>
<p>So somebody already knew, they probably already had their fun!</p>
<p>The number of devices ave probably declined since then&#8230;.</p>
<p><strong>Exploiting the debug service</strong></p>
<p>We can read/write memory, but how do we get a shell?</p>
<p>Just like hacking old games&#8230;.</p>
<ul>
<li>Take a memory image before</li>
<li>Make config changes to enable remote admin</li>
<li>Take another snapshot</li>
<li>Rollout changes to the remote devices</li>
</ul>
<p><strong>Memory Scraping</strong></p>
<p>Locate sensitive information in memory</p>
<p>Write a scanner to find it</p>
<p>Have Fun !</p>
<p><em>Example</em>: Pulling the Admin password out of the memory (Apple Airport used to suffer from this until it was patched)</p>
<p style="text-align:center;"><strong>Advisors for all vendors goes out on August 2nd&#8230; no specific exploits until September 2nd</strong></p>
<p style="text-align:center;"><strong><span style="color:#888888;">&lt;kill the cameras&gt;</span></strong></p>
<p><em>Note</em>: In respect of the private nature of this section of the talk, I&#8217;ll leave it there. Sorry.. sometimes you&#8217;ve just gotta be there!</p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">HD Moore Twitter &#8211;&gt; <a href="http://twitter.com/hdmoore" target="_blank">@hdmoore</a></span></span></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/bsideslv/'>#BSidesLV</a>, <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/hdm/'>HDM</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a>, <a href='http://blog.c22.cc/tag/vxworks/'>VxWorks</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1792/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1792/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1792/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1792&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/07/29/bsideslv-fun-with-vxworks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&#38;h=130" medium="image" />
	</item>
		<item>
		<title>[BSidesLV] Beyond r57</title>
		<link>http://blog.c22.cc/2010/07/29/bsideslv-beyond-r57/</link>
		<comments>http://blog.c22.cc/2010/07/29/bsideslv-beyond-r57/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 18:48:00 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[#BSidesLV]]></category>
		<category><![CDATA[Egyp7]]></category>
		<category><![CDATA[Egypt]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[Meterpreter]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1790</guid>
		<description><![CDATA[Beyond r57 &#8211; Eygyp7 There are a thousand PHP shells on the web, either by design or simple stupidity. PHP Background PHP Payloads Meterpreter Background Difficulties PHP Background PHP is retarded. Objects are an afterthought (15 years later!) Sometimes they &#8230; <a href="http://blog.c22.cc/2010/07/29/bsideslv-beyond-r57/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1790&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&amp;h=130&#038;h=130" alt="" width="192" height="130" /></p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Beyond r57</strong> &#8211; Eygyp7</span></p>
<p>There are a thousand PHP shells on the web, either by design or simple stupidity.</p>
<ul>
<li>PHP Background</li>
<li>PHP Payloads</li>
<li>Meterpreter Background</li>
<li>Difficulties</li>
</ul>
<p><strong>PHP Background</strong></p>
<p>PHP is retarded. Objects are an afterthought (15 years later!)</p>
<p>Sometimes they return 1, sometimes they return true &#8211;&gt; WTF!</p>
<p><strong>PHP Payloads</strong></p>
<p>r57 (PHP Shell)&#8230; is a clusterfuck of forms. Ugly as hell.</p>
<p>It&#8217;s intended to be used on a webserver only for access to the local site. There&#8217;s not much in r57 or other shells to go beyond the local and move on to connected systems.</p>
<p>A whole bunch of r57 shells on the web currently are backdoored &#8211;&gt; base64 encoded section at the end sends a shell back to an IP in Russia.</p>
<p>c99 (PHP Shell)&#8230; pretty much the same as r57.</p>
<p>No methods to go beyond the local server.</p>
<p>Uploading a shell to a remote server leaves logs and files. If you&#8217;re not getting detected, then they&#8217;re not even trying!</p>
<p>Some of them even call home to the authors.</p>
<p>The essence of payloads is to create some form of communication</p>
<p>Simple PHP shells in Metasploit .:</p>
<ul>
<li>PHP/Exec</li>
<li>PHP/DownloadExec</li>
</ul>
<p>These do simple execution and nothing more</p>
<p>Something more useful would be a remote shell and in/out to and from the box.</p>
<ul>
<li>PHP/reverse_tcp</li>
<li>PHP/bind_tcp</li>
</ul>
<p>Most commands (except cd) don&#8217;t hold state between commands. It&#8217;s easier to deal with commands one at a time!</p>
<p>So it gets better</p>
<ul>
<li>PHP/meterpreter/reverse_tcp</li>
<li>PHP/meterpreter/bind_tcp</li>
</ul>
<p>More flexible, extensible and capable.</p>
<p>This doesn&#8217;t have to be on disk. Bypassing issues of traditional PHP shells uploading files and executing them.</p>
<p>Uses the same protocol as the traditional meterpreter. This means the same client-side connector can be used</p>
<p>Does as much as possible through PHP without calling a shell. Not everything is possible however (ps for example). Works in a chroot and doesn&#8217;t need /bin/sh</p>
<p>Anywhere PHP runs, PHP/meterpreter runs&#8230;. Windows, Linux, &#8230;.</p>
<p>In restrictive environments you can still use the meterpreter PHP shell&#8230; not limited to installed commands.</p>
<p>Programmatically automatable &#8211;&gt; Scriptable and extensions to make things easier on the fly &#8211;&gt; Use of existing scripts</p>
<p>Flexible extension system&#8230; loading external PHP (through eval)</p>
<p>Designed for modular extension.</p>
<p>The modular scripting capabilities including tcp, udp, process and file channels.</p>
<p>e.g. client.sys.config.sysinfo (not 100% the same format as std. Meterpreter)</p>
<p><strong>Challenges of writing this in PHP</strong></p>
<ol>
<li>Magic Quotes</li>
<li>Size restrictions</li>
<li>Safe mode</li>
<li>Disable_functions setting in PHP.ini</li>
<li>PHP is stupid</li>
</ol>
<p>Magic Quotes</p>
<ul>
<li>Base64 encode and decode! No need for quotes</li>
<li>increases size 1/3</li>
</ul>
<p>Size restrictions</p>
<ul>
<li>Limits (Apache 4000 bytes). Solution was to use a stager</li>
<li>Stub to load further data</li>
<li>Entire PHP meterpreter is around 8k</li>
</ul>
<p>Safe Mode</p>
<ul>
<li>Restricts opening of files unless your UID owns that file</li>
<li>No restrictions on sockets!</li>
<li>Not a big issue</li>
</ul>
<p>Disable_functions</p>
<ul>
<li>Can disable functions that we need</li>
<li>Can try a bunch of possible workaround functions
<ul>
<li>There are 14 functions that can run a command!</li>
<li>shell_exec, passthru, system, popen, &#8230;</li>
</ul>
</li>
<li>Esser&#8217;s memory corruption</li>
</ul>
<p>PHP is stupid</p>
<ul>
<li>Stream and socket resources
<ul>
<li>They don&#8217;t play well together&#8230;.</li>
</ul>
</li>
<li>Difference in output for system commands
<ul>
<li>Each of the 14 ways to exec code return different output!</li>
</ul>
</li>
<li>Operator precedence</li>
<li>Can&#8217;t assume anything newer than 4.3</li>
</ul>
<p><strong>What&#8217;s good in PHP</strong></p>
<p>Don&#8217;t need /bin/sh &#8211;&gt; chroot env still works</p>
<p>Running system commands through extensions &#8211;&gt; perl for example</p>
<p>Win32std gives you direct access to Windows system calls</p>
<p><strong>PHP Meterpreter &#8211; What Works</strong></p>
<ul>
<li>Upload/Download</li>
<li>Editing files</li>
<li>Read files</li>
<li>Process interaction (execute -i)</li>
<li>Pivoting, tcp/udp, portfwd</li>
</ul>
<p><strong>PHP Meterpreter - Not working</strong></p>
<ul>
<li>Screenshots</li>
<li>UI Fiddling</li>
<li>Incognito / token manipulation</li>
</ul>
<p><strong>PHP Meterpreter - Might work later</strong></p>
<ul>
<li>Registry editing</li>
<li>Log modification (Windows)</li>
</ul>
<p><strong>The Future</strong></p>
<p>Java Meterpreter and JSPterpreter</p>
<ul>
<li>Already have working code&#8230;&#8230; should be integrated soon</li>
</ul>
<p>ASPterpreter</p>
<ul>
<li>An unknown&#8230; need an SAP guru to take up the challenge</li>
</ul>
<p>MACterpreter/POSIX Meterpreter</p>
<ul>
<li>Most code present, not yet usable</li>
<li>Compiles!</li>
</ul>
<p>Implement Esser memory corruption exploits for use with a getsystem command in PHP meterpreter</p>
<p>New features going into the regular meterpreter will also be implemented in the PHP version if they make sense (not everything does)</p>
<p><strong>What should it be called?</strong></p>
<ul>
<li>PHP Meterpreter / PHP-terpreter</li>
<li>Meterphpter</li>
<li>phpterpreter</li>
<li>phpsucksmyballsterpreter</li>
</ul>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Egypt Twitter &#8211;&gt; <a href="https://twitter.com/egyp7" target="_blank">@egyp7</a></span></span></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/bsideslv/'>#BSidesLV</a>, <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/egyp7/'>Egyp7</a>, <a href='http://blog.c22.cc/tag/egypt/'>Egypt</a>, <a href='http://blog.c22.cc/tag/metasploit/'>Metasploit</a>, <a href='http://blog.c22.cc/tag/meterpreter/'>Meterpreter</a>, <a href='http://blog.c22.cc/tag/php/'>PHP</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1790/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1790&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/07/29/bsideslv-beyond-r57/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&#38;h=130" medium="image" />
	</item>
		<item>
		<title>[BSidesLV] Fierce v2</title>
		<link>http://blog.c22.cc/2010/07/29/bsideslv-fierce-v2/</link>
		<comments>http://blog.c22.cc/2010/07/29/bsideslv-fierce-v2/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 00:48:46 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[#BSidesLV]]></category>
		<category><![CDATA[jabra]]></category>
		<category><![CDATA[Fierce]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1787</guid>
		<description><![CDATA[Fierce v2 &#8211; Joshua &#8220;Jabra&#8221; Abraham I&#8217;m Jabra&#8230; I do a lot of programming in Perl What is Fierce? Written by Robert &#8220;rsnake&#8221; Hansen, designed to do lots of DNS recon techniques Since then, it&#8217;s been rewritten into a brand &#8230; <a href="http://blog.c22.cc/2010/07/29/bsideslv-fierce-v2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1787&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&amp;h=130&#038;h=130" alt="" width="192" height="130" /></p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Fierce v2</strong> &#8211; Joshua &#8220;Jabra&#8221; Abraham</span></p>
<p>I&#8217;m Jabra&#8230; I do a lot of programming in Perl</p>
<p>What is Fierce?</p>
<p>Written by Robert &#8220;rsnake&#8221; Hansen, designed to do lots of DNS recon techniques</p>
<p>Since then, it&#8217;s been rewritten into a brand new tool, more options, better&#8230;.</p>
<p><em>Version 2 &#8211; README</em> .:</p>
<blockquote><p><span style="font-family:monospace;font-size:medium;white-space:pre-wrap;">*******************</span></p>
<p><span style="font-family:Times;font-size:medium;"> </span></p>
<pre style="word-wrap:break-word;white-space:pre-wrap;">What is new in 2.0?
*******************
Fierce v2.0 is a complete rewrite of version 1.0. Fierce 1.0 was a combination
multiple network enumeration techniques in a single large Perl script. With
Fierce v2.0 the techniques have been abstracted from the main fierce script so
that it is easier to read, modify and maintain. This will enable faster
development and greater flexibility.

Each technique has been coverted into a Perl module that they can be used used
by the main fierce script. There are also several new techniques that been
added with version 2.0, such as virtual host detection, extension bruteforcing
and subdomain bruteforcing. Version 2.0 also included the addition of
a template based output system. We have included stdout/text, html  and xml
formats. Leveraging the xml format is very easy, since we have even built an
xml parsing module that is available on CPAN.

http://search.cpan.org/~jabra/

(click on Fierce::Parser, this will bring you to the latest version of the
 Fierce::Parser module.)</pre>
</blockquote>
<p>Fierce Version 2 is a lot more complex than the simple brute-force that was used in the earlier versions.</p>
<p>Each technique is a module that&#8217;s included in the main script. This allows you to break out the functionality you require and develop modules without changing the core of the script.</p>
<p>Allows for prefixes to be passed through the command line&#8230; If none is passed, use default list</p>
<p>Support for top-level domain brute-forcing (i.e check .co.uk, .com, .xxx, &#8230;)</p>
<p>Ability to blacklist techniques that shouldn&#8217;t be run! Good to avoid triggering alarms on things like Zone Transfer attempts</p>
<p>New technique added to find virtual-hosts based on the IP search through MSN.com</p>
<p>FindNearbyHosts &#8211;&gt; By putting in the domain and company name, you can identify PTR records that point back to the same domain</p>
<p>Code is much more readable that Fierce v1 &#8211;&gt; Even I can read it&#8230;. and I don&#8217;t know Perl <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Erin Lookups on company names to find possible domains</p>
<p>Modules that use threading are marked with a t at the start of the module name. This allows them to be easily identified.</p>
<p>Threading handled by setting a queue of tasks and iterate through them.</p>
<p><em>Note</em>: This talk was 100% live demo&#8230; no slides. Much respect for that! Checkout the video for the true Fierce v2 Experience</p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Links</strong>:</span></p>
<ul>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:small;"><span style="border-collapse:collapse;font-size:13px;line-height:19px;">Joshua Abraham Twitter &#8211;&gt; <a href="https://twitter.com/jabra" target="_blank">@jabra</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;"><span style="font-size:small;">Blog &#8211;&gt; <a href="http://www.spl0it.org/" target="_blank">LINK</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;"><span style="font-size:small;">Fierce (CPAN) &#8211;&gt; <a href="http://search.cpan.org/~jabra/" target="_blank">LINK</a></span></span></li>
<li><span style="color:#444444;font-family:'Segoe UI', 'Lucida Grande', Arial;">Fierce v2 SVN &#8211;&gt; http://svn.assembla.com/svn/fierce/fierce2/trunk/</span></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/bsideslv/'>#BSidesLV</a>, <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/fierce/'>Fierce</a>, <a href='http://blog.c22.cc/tag/jabra/'>jabra</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1787/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1787/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1787/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1787&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/07/29/bsideslv-fierce-v2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&#38;h=130" medium="image" />
	</item>
		<item>
		<title>[BSidesLV] Fuck Tools</title>
		<link>http://blog.c22.cc/2010/07/29/bsideslv-fuck-tools/</link>
		<comments>http://blog.c22.cc/2010/07/29/bsideslv-fuck-tools/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 23:34:41 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[#BSidesLV]]></category>
		<category><![CDATA[rapid7]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">https://c22blog.wordpress.com/?p=1784</guid>
		<description><![CDATA[Fuck Tools &#8211; frank^2 Doing stuff on your own makes you learn stuff. Tools Rule They make things easier They make things faster They make it so that you don&#8217;t have to learn the deep details but&#8230;. They make it &#8230; <a href="http://blog.c22.cc/2010/07/29/bsideslv-fuck-tools/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1784&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img style="vertical-align:middle;display:block;margin-left:auto;margin-right:auto;" src="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&amp;h=130&#038;h=130" alt="" width="192" height="130" /></p>
<p><span style="font-family:'Segoe UI', 'Lucida Grande', Arial;font-size:13px;border-collapse:collapse;color:#444444;line-height:19px;"><strong>Fuck Tools</strong> &#8211; frank^2</span></p>
<p>Doing stuff on your own makes you learn stuff.</p>
<p>Tools Rule</p>
<ul>
<li>They make things easier</li>
<li>They make things faster</li>
<li>They make it so that you don&#8217;t have to learn the deep details</li>
</ul>
<p>but&#8230;.</p>
<ul>
<li>They make it so you don&#8217;t know the deep details</li>
<li>They also force you to think in a very controlled environment</li>
<li>Tools are sometimes too focused</li>
</ul>
<p>At the end you end up with a bunch of tools that don&#8217;t do quite what you need unless you string them all together</p>
<p>Why write your own tool? You could be smarter, you could be cleverer, or the tool might not exist.</p>
<p>So you could write your own tool&#8230;</p>
<p>But that could be SLOW, maybe you don&#8217;t have the experience either&#8230; do you have the right resources to accomplish this?</p>
<p><strong>So what do you do?</strong></p>
<p>By developing a tool you&#8217;re learning things. Some things stay in memory after all.</p>
<p>This means next time you&#8217;ll be better, quicker!</p>
<p>plus you get to learn how the program, flaw and tool really works. Knowledge is power.</p>
<p>Knowing the ins and outs of how to exploit something will always be better than knowing how to use a tool.</p>
<p><strong>Why?</strong></p>
<p>Because you want to learn</p>
<p>A toolkit cluster fuck is much less elegant than a custom coded script to do the job</p>
<p>Other tools are buggy</p>
<p>Why wait for another sucker to write your tool?</p>
<p><strong>Why shouldn&#8217;t you?</strong></p>
<p>Because sometime reinventing the wheel isn&#8217;t worth it?</p>
<p>How will your tool be better? Maybe it won&#8217;t!</p>
<p><strong>Do It Yourself vs riding that tool</strong></p>
<p>OllyDBG vs PyDBG</p>
<p>Stuck in the boundaries of what the coder wants, vs doing what you want!</p>
<p>PyDBG lets you control what you want and how you want to do it.</p>
<p>PyDBG simple presents you with the tools by which to perform debugging, then expects YOU to write what you want next!</p>
<p>You get to learn how programs really run</p>
<p>You open your mind!</p>
<p><strong>Fuzzers vs Peach v You</strong></p>
<p>If you download a fuzzer you&#8217;re doing it wrong!</p>
<p>If you run another persons fuzzer, you&#8217;re finding the same bugs he found</p>
<p>Peach however lets you tailor what you want to fuzz and how you want to do it.</p>
<p>But Peach is still a tool, doing its things, its way</p>
<p>There are all sorts of bugs that fuzzers won&#8217;t find&#8230; Maybe it&#8217;s best to write your own fuzzer?</p>
<p><em>Fuzzers</em>: Great for low hanging fruit</p>
<p><em>Peach</em>: When you&#8217;re looking for fuzzable bugs</p>
<p><em>You</em>: When you want to be a ninja</p>
<p><strong>Metasploit</strong></p>
<p>How does point-click-own make you a better tester!</p>
<p>Metasploit gives you a lot of other features&#8230; use them</p>
<p>Great framework for creating shellcode and creating PoC</p>
<p>Metasploit can help you become a ninja</p>
<p><strong>The Bottom Line</strong></p>
<p>There&#8217;s a fine line between using a tool and writing your own</p>
<p>When there&#8217;s no time and resources to learn or there&#8217;s nothing to learn, then just use a tool</p>
<p>When you have the time, want to learn and be a ninja, write your own tool</p>
<p style="text-align:center;"><strong>If you learn how a task is solved, instead of learning how a tool works you&#8217;ll be better for it!</strong></p>
<br />Filed under: <a href='http://blog.c22.cc/category/conference/'>Conference</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/bsideslv/'>#BSidesLV</a>, <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/rapid7/'>rapid7</a>, <a href='http://blog.c22.cc/tag/security/'>Security</a>, <a href='http://blog.c22.cc/tag/tools/'>tools</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1784/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1784/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1784/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1784/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1784/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1784/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1784/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1784/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1784/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1784/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1784/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1784/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1784/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1784/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1784&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/07/29/bsideslv-fuck-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/07/bsides_logo_onwhite2.jpg?w=192&#38;h=130" medium="image" />
	</item>
	</channel>
</rss>