<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: 0day inject Exploit for Wordpress 2.3 - xssworm.com - all version vulnerable with no patch</title>
	<link>http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/</link>
	<description>Application Vulnerability Information Portal</description>
	<pubDate>Sun, 23 Nov 2008 19:19:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: xssworm</title>
		<link>http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/#comment-12</link>
		<dc:creator>xssworm</dc:creator>
		<pubDate>Wed, 14 Nov 2007 09:05:44 +0000</pubDate>
		<guid>http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/#comment-12</guid>
		<description>Reply to daves post above is below.

thank u for reply dave it is appreciated and plesae subscribe! we need more of this insight here at xssworm

On Nov 14, 2007 10:51 AM, dave-san wrote:

    Comments inline..

    XSS Worm XSS Security Information Portal wrote:
    &#62; *0day XSS Exploit for Wordpress 2.3* – wp-slimstat 0.92 – [xssworm.com ]
    &#62;
    &#62; Source:
    &#62; http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/
    &#62;
    &#62; There is a serious holes in wordpress 2.3 that can be used with XSS by a
    &#62; blackhat hacker to attack the wordpress administrator and steal cookies from
    &#62; blogmins. This attack is known as 0day because it has just been reported to
    &#62; public and this is first day of public vulnerability, and *0day means
    &#62; 'published.*'
    &#62; Proof of concept:
    &#62;
    &#62; http://wordpress-web-blog.com/wp-admin/index.php?page=wp-slimstat/wp-slimstat.php?panel=1&#38;fi=/feed/&#38;ff=1&#38;ft= shellcode&#62;
    &#62;

    Hmm.. XSS shellcode? That's a new one for me. I'll take this to mean the
    injected script. From your post, I don't think you mean "shellcode" in
    the traditional sense.

    &#62; This attack to be used against wordpress web blog blogmin to steal
    &#62; blogosphere token to hack blogs. Of course we have included exploit code for
    &#62; this bug at the below.
    &#62;
    &#62; We have looked at coding for wp-slimstat but we cannot see any problem with
    &#62; input validating. Maybe some of the xssworm.com readers can show us where
    &#62; problem is in the php code because we cannot see any porblem here:
    &#62;
    &#62; –snips:
    &#62;
    &#62; C:\temp&#62;findstr GET wp-slimstat.php
    &#62; $myFilterField = intval( $_GET['ff'] );
    &#62; $myFilterType = intval( $_GET['ft'] );
    &#62; $myFilterString = $_GET['fi'];
    &#62; $myFilterInterval = $_GET['fd'];
    &#62; $myFilterField = intval( $_GET['ff'] );
    &#62; $myFilterType = intval( $_GET['ft'] );
    &#62; $myFilterString = $_GET['fi'];
    &#62; $myFilterInterval = $_GET['fd'];
    &#62; '.(!empty($myFilterString)?'— ..a&#62; href="?page='.$_GET['page'].'&#38;panel='.$_GET["panel"].'"&#62;'.__('Reset
    &#62; filters', 'wp-slimstat').'&lt;/a&gt;':").'
    &#62; 
    &#62; 
    &#62; ';
    &#62;

    It's late, and I might have missed something, but from the above, I
    don't see where the vulnerable parameter is being written back to the
    HTML response. Therefore, I don't think there is enough code in the
    lines above to locate the entire issue (though it looks like other
    parameters are vulnerable too). You mentioned:

     ft=

    So, in this example, "ft" is the vulnerable parameter. Trace what
    happens in code with that parameter after it receives input. I'd guess
    that there is something like..

      echo ''. $myFilterType .' more...

    or

      echo ''.$_GET["ft"].'..

    Perhaps take a look at where they missed the output formatting/encoding
    for HTML. I may be so bold as to suggest that the lack of output
    encoding is the major reason that XSS exists.

    &#62; –snips
    &#62;
    &#62; With programmor using $_GET variable from user into echo into html output
    &#62; maybe php automatic GET validation filtering is not working for security? We
    &#62; are not programmers of php so we cannot see any porblems here as bug are too
    &#62; complex to understand.
    &#62; Many thanks for your comments on this vulnerability in wordpress 2.4

    ..edit
-- snip --


Thank you for these points Dave, I am replying:

With the XSS we can say it is shellcode because shellcode is the code injected into process or programme that contain bad validation of input - we say shellcode because it contains system call to execute shell commands - i think so?

XSS vulnerability is bad validation of input also (and output as you said in bold)

and with injected code and web 2.0 and fat rich clients (like in the USA) we can make java scripts with reverse shell to desktop with XSS
&#38; get interactive control over fat clients and make them do things and we can write interpreter and make it 'shell' if you want it easy (-;

So XSS is input validation bug just like buffer overflow and we inject code that will be interactive 'shell' and execute action or command on behalf of user so XSS injection code = shellcode. Only differences in what you consider 'shell', 'command', 'action', 'user', no?

With the code is posted we cannot see any bugs either but as you say maybe fundamentals

output $_GET['variable']

is this a vulnerability? I am not programmer but I have heard said that input validation is sometimes maybe the cause of vulnerabilities.

Thanks vaj.</description>
		<content:encoded><![CDATA[<p>Reply to daves post above is below.</p>
<p>thank u for reply dave it is appreciated and plesae subscribe! we need more of this insight here at xssworm</p>
<p>On Nov 14, 2007 10:51 AM, dave-san wrote:</p>
<p>    Comments inline..</p>
<p>    XSS Worm XSS Security Information Portal wrote:<br />
    &gt; *0day XSS Exploit for Wordpress 2.3* – wp-slimstat 0.92 – [xssworm.com ]<br />
    &gt;<br />
    &gt; Source:<br />
    &gt; <a href="http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/" rel="nofollow">http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/</a><br />
    &gt;<br />
    &gt; There is a serious holes in wordpress 2.3 that can be used with XSS by a<br />
    &gt; blackhat hacker to attack the wordpress administrator and steal cookies from<br />
    &gt; blogmins. This attack is known as 0day because it has just been reported to<br />
    &gt; public and this is first day of public vulnerability, and *0day means<br />
    &gt; &#8216;published.*&#8217;<br />
    &gt; Proof of concept:<br />
    &gt;<br />
    &gt; <a href="http://wordpress-web-blog.com/wp-admin/index.php?page=wp-slimstat/wp-slimstat.php?panel=1&amp;fi=/feed/&amp;ff=1&amp;ft=" rel="nofollow">http://wordpress-web-blog.com/wp-admin/index.php?page=wp-slimstat/wp-slimstat.php?panel=1&amp;fi=/feed/&amp;ff=1&amp;ft=</a> shellcode&gt;<br />
    &gt;</p>
<p>    Hmm.. XSS shellcode? That&#8217;s a new one for me. I&#8217;ll take this to mean the<br />
    injected script. From your post, I don&#8217;t think you mean &#8220;shellcode&#8221; in<br />
    the traditional sense.</p>
<p>    &gt; This attack to be used against wordpress web blog blogmin to steal<br />
    &gt; blogosphere token to hack blogs. Of course we have included exploit code for<br />
    &gt; this bug at the below.<br />
    &gt;<br />
    &gt; We have looked at coding for wp-slimstat but we cannot see any problem with<br />
    &gt; input validating. Maybe some of the xssworm.com readers can show us where<br />
    &gt; problem is in the php code because we cannot see any porblem here:<br />
    &gt;<br />
    &gt; –snips:<br />
    &gt;<br />
    &gt; C:\temp&gt;findstr GET wp-slimstat.php<br />
    &gt; $myFilterField = intval( $_GET[&#8217;ff&#8217;] );<br />
    &gt; $myFilterType = intval( $_GET[&#8217;ft&#8217;] );<br />
    &gt; $myFilterString = $_GET[&#8217;fi&#8217;];<br />
    &gt; $myFilterInterval = $_GET[&#8217;fd&#8217;];<br />
    &gt; $myFilterField = intval( $_GET[&#8217;ff&#8217;] );<br />
    &gt; $myFilterType = intval( $_GET[&#8217;ft&#8217;] );<br />
    &gt; $myFilterString = $_GET[&#8217;fi&#8217;];<br />
    &gt; $myFilterInterval = $_GET[&#8217;fd&#8217;];<br />
    &gt; &#8216;.(!empty($myFilterString)?&#8217;— ..a&gt; href=&#8221;?page=&#8217;.$_GET[&#8217;page&#8217;].&#8217;&amp;panel=&#8217;.$_GET[&#8221;panel&#8221;].&#8217;&#8221;&gt;&#8217;.__(&#8217;Reset<br />
    &gt; filters&#8217;, &#8216;wp-slimstat&#8217;).&#8217;&#8216;:&#8221;).&#8217;<br />
    &gt;<br />
    &gt;<br />
    &gt; &#8216;;<br />
    &gt;</p>
<p>    It&#8217;s late, and I might have missed something, but from the above, I<br />
    don&#8217;t see where the vulnerable parameter is being written back to the<br />
    HTML response. Therefore, I don&#8217;t think there is enough code in the<br />
    lines above to locate the entire issue (though it looks like other<br />
    parameters are vulnerable too). You mentioned:</p>
<p>     ft=</p>
<p>    So, in this example, &#8220;ft&#8221; is the vulnerable parameter. Trace what<br />
    happens in code with that parameter after it receives input. I&#8217;d guess<br />
    that there is something like..</p>
<p>      echo &#8221;. $myFilterType .&#8217; more&#8230;</p>
<p>    or</p>
<p>      echo &#8221;.$_GET[&#8221;ft&#8221;].&#8217;..</p>
<p>    Perhaps take a look at where they missed the output formatting/encoding<br />
    for HTML. I may be so bold as to suggest that the lack of output<br />
    encoding is the major reason that XSS exists.</p>
<p>    &gt; –snips<br />
    &gt;<br />
    &gt; With programmor using $_GET variable from user into echo into html output<br />
    &gt; maybe php automatic GET validation filtering is not working for security? We<br />
    &gt; are not programmers of php so we cannot see any porblems here as bug are too<br />
    &gt; complex to understand.<br />
    &gt; Many thanks for your comments on this vulnerability in wordpress 2.4</p>
<p>    ..edit<br />
&#8211; snip &#8211;</p>
<p>Thank you for these points Dave, I am replying:</p>
<p>With the XSS we can say it is shellcode because shellcode is the code injected into process or programme that contain bad validation of input - we say shellcode because it contains system call to execute shell commands - i think so?</p>
<p>XSS vulnerability is bad validation of input also (and output as you said in bold)</p>
<p>and with injected code and web 2.0 and fat rich clients (like in the USA) we can make java scripts with reverse shell to desktop with XSS<br />
&amp; get interactive control over fat clients and make them do things and we can write interpreter and make it &#8217;shell&#8217; if you want it easy (-;</p>
<p>So XSS is input validation bug just like buffer overflow and we inject code that will be interactive &#8217;shell&#8217; and execute action or command on behalf of user so XSS injection code = shellcode. Only differences in what you consider &#8217;shell&#8217;, &#8216;command&#8217;, &#8216;action&#8217;, &#8216;user&#8217;, no?</p>
<p>With the code is posted we cannot see any bugs either but as you say maybe fundamentals</p>
<p>output $_GET[&#8217;variable&#8217;]</p>
<p>is this a vulnerability? I am not programmer but I have heard said that input validation is sometimes maybe the cause of vulnerabilities.</p>
<p>Thanks vaj.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xssworm</title>
		<link>http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/#comment-11</link>
		<dc:creator>xssworm</dc:creator>
		<pubDate>Wed, 14 Nov 2007 09:01:08 +0000</pubDate>
		<guid>http://xssworm.blogvis.com/13/xssworm/0day-inject-exploit-for-wordpress-23-xsswormcom-all-version-vulnerable-with-no-patch/#comment-11</guid>
		<description>Andrew submits some comments! We have reply below:

-- andrews message --

On 13 Nov 07, at 18:08, XSS Worm XSS Security Information Portal wrote:
&#62; We have looked at coding for wp-slimstat but we cannot see any
&#62; problem with
&#62; input validating. Maybe some of the xssworm.com readers can show us
&#62; where
&#62; problem is in the php code because we cannot see any porblem here:

OK, I'll bite...


&#62; href="?page='.$_GET['page'].'&#38;panel='.$_GET["panel"].'"&#62;'.__('Reset
&#62; filters', 'wp-slimstat').'&lt;/a&gt;':").'
&#62; 
&#62; 
&#62; ';

Those all look like you could escape from the tag attribute with a
well-placed double quote, assuming that there's no preprocessing on
$_GET.
 
-- snip --

Yes that is perfect answer, thank you :) 

we cannot tell for certain but there is no preprocessing on $_GET variable in this php instance</description>
		<content:encoded><![CDATA[<p>Andrew submits some comments! We have reply below:</p>
<p>&#8211; andrews message &#8211;</p>
<p>On 13 Nov 07, at 18:08, XSS Worm XSS Security Information Portal wrote:<br />
&gt; We have looked at coding for wp-slimstat but we cannot see any<br />
&gt; problem with<br />
&gt; input validating. Maybe some of the xssworm.com readers can show us<br />
&gt; where<br />
&gt; problem is in the php code because we cannot see any porblem here:</p>
<p>OK, I&#8217;ll bite&#8230;</p>
<p>&gt; href=&#8221;?page=&#8217;.$_GET[&#8217;page&#8217;].&#8217;&amp;panel=&#8217;.$_GET[&#8221;panel&#8221;].&#8217;&#8221;&gt;&#8217;.__(&#8217;Reset<br />
&gt; filters&#8217;, &#8216;wp-slimstat&#8217;).&#8217;&#8216;:&#8221;).&#8217;<br />
&gt;<br />
&gt;<br />
&gt; &#8216;;</p>
<p>Those all look like you could escape from the tag attribute with a<br />
well-placed double quote, assuming that there&#8217;s no preprocessing on<br />
$_GET.</p>
<p>&#8211; snip &#8211;</p>
<p>Yes that is perfect answer, thank you <img src='http://xssworm.blogvis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>we cannot tell for certain but there is no preprocessing on $_GET variable in this php instance</p>
]]></content:encoded>
	</item>
</channel>
</rss>
