<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Hidden CN Iframes Are Still Prevalent</title>
	<atom:link href="http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/</link>
	<description>Website insecurity by example</description>
	<lastBuildDate>Sat, 20 Mar 2010 16:18:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: gifimg.php Malicious Scripts Removal Instructions &#124; PHP Proficient</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-6399</link>
		<dc:creator>gifimg.php Malicious Scripts Removal Instructions &#124; PHP Proficient</dc:creator>
		<pubDate>Fri, 25 Dec 2009 18:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-6399</guid>
		<description>[...] also noticed that Gumblar (and this new attack) infects sites that were previously infected with hidden malicious iframes. That iframe injection attack steals FTP credentials from configuration files of 10 popular FTP [...]</description>
		<content:encoded><![CDATA[<p>[...] also noticed that Gumblar (and this new attack) infects sites that were previously infected with hidden malicious iframes. That iframe injection attack steals FTP credentials from configuration files of 10 popular FTP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathryn A.</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-5457</link>
		<dc:creator>Kathryn A.</dc:creator>
		<pubDate>Sat, 07 Nov 2009 03:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-5457</guid>
		<description>I don&#039;t know if the problem attacking one of the servers that I visit is this particular problem but the when my browser popped up w/ a warning and a Google SafeBrowsing report, one of the links that was apparently hosting malware was visaforchina .co .uk</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if the problem attacking one of the servers that I visit is this particular problem but the when my browser popped up w/ a warning and a Google SafeBrowsing report, one of the links that was apparently hosting malware was visaforchina .co .uk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-4418</link>
		<dc:creator>Denis</dc:creator>
		<pubDate>Thu, 01 Oct 2009 08:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-4418</guid>
		<description>To prevent reinfections you should remove malware from your computer, change FTP passwords and keep them secure.

You might want to read &lt;a href=&quot;http://blog.unmaskparasites.com/2009/09/17/quicksilver-malware-network/&quot; rel=&quot;nofollow&quot;&gt;this post&lt;/a&gt; about how the malware works and why you &lt;a href=&quot;http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/&quot; rel=&quot;nofollow&quot;&gt;shouldn&#039;t save passwords in FTP clients&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>To prevent reinfections you should remove malware from your computer, change FTP passwords and keep them secure.</p>
<p>You might want to read <a href="http://blog.unmaskparasites.com/2009/09/17/quicksilver-malware-network/" rel="nofollow">this post</a> about how the malware works and why you <a href="http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/" rel="nofollow">shouldn&#8217;t save passwords in FTP clients</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dude harris</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-4383</link>
		<dc:creator>dude harris</dc:creator>
		<pubDate>Wed, 30 Sep 2009 02:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-4383</guid>
		<description>oh, no im being attacked again, help.</description>
		<content:encoded><![CDATA[<p>oh, no im being attacked again, help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dude harris</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-4382</link>
		<dc:creator>dude harris</dc:creator>
		<pubDate>Wed, 30 Sep 2009 02:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-4382</guid>
		<description>i got infected with http ://some-other-life .ru:8080/index.php- good thing i have a back up of the files on my wordpress blog and able to restore it. The problem is that the attack me reoccur. damn.</description>
		<content:encoded><![CDATA[<p>i got infected with http ://some-other-life .ru:8080/index.php- good thing i have a back up of the files on my wordpress blog and able to restore it. The problem is that the attack me reoccur. damn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noxwizard</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-2117</link>
		<dc:creator>Noxwizard</dc:creator>
		<pubDate>Thu, 13 Aug 2009 01:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-2117</guid>
		<description>Found another on one of my clients&#039; sites:
http ://b9g .at:8080/index.php</description>
		<content:encoded><![CDATA[<p>Found another on one of my clients&#8217; sites:<br />
http ://b9g .at:8080/index.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaun</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-1815</link>
		<dc:creator>Shaun</dc:creator>
		<pubDate>Mon, 27 Jul 2009 02:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-1815</guid>
		<description>A few more URLs for you:
http ://q3c .ru:8080/index.php
http ://q1e .ru:8080/index.php
http ://x8o .ru:8080/ts/in.cgi?pepsi114

We had almost every index.html, index.php and several other files infected with these iframes on our server.</description>
		<content:encoded><![CDATA[<p>A few more URLs for you:<br />
http ://q3c .ru:8080/index.php<br />
http ://q1e .ru:8080/index.php<br />
http ://x8o .ru:8080/ts/in.cgi?pepsi114</p>
<p>We had almost every index.html, index.php and several other files infected with these iframes on our server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yo P</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-1795</link>
		<dc:creator>Yo P</dc:creator>
		<pubDate>Sun, 26 Jul 2009 06:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-1795</guid>
		<description>Dear Denis,

could you explain how could this spyware injure our computer? Where should(n&#039;t) we click to (avoid) the injuries?

Thanks!</description>
		<content:encoded><![CDATA[<p>Dear Denis,</p>
<p>could you explain how could this spyware injure our computer? Where should(n&#8217;t) we click to (avoid) the injuries?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steef</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-1730</link>
		<dc:creator>Steef</dc:creator>
		<pubDate>Fri, 24 Jul 2009 12:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-1730</guid>
		<description>My client is on a holiday, so i can&#039;t change the FTP pass. Because I have to clean the site every other day, I wrote a script that does that for me. By calling the script every hour with a dronjob, the site keeps clean until she comes back.

Here&#039;s the script. I hope it&#039;s useful for other people. 
(make sure to backup your site befor using this one)

&lt;?php
$path = &quot;.&quot;;//define the path as relative

// filenames infected in Joomla sites:
list_dir($dir_handle,$path,&#039;index.php&#039;);
list_dir($dir_handle,$path,&#039;index2.php&#039;);
list_dir($dir_handle,$path,&#039;index3.php&#039;);
list_dir($dir_handle,$path,&#039;mainbody.php&#039;);
list_dir($dir_handle,$path,&#039;index.html&#039;);

function list_dir($dir_handle,$path,$filename)
{
    $dir_handle = @opendir($path) or die(&quot;unable to open $path&quot;);
    while (false !== ($file = readdir($dir_handle))) {
        $dir =$path.&#039;/&#039;.$file;
        if(is_dir($dir) &amp;&amp; $file != &#039;.&#039; &amp;&amp; $file !=&#039;..&#039; )
        {
            $handle = @opendir($dir) or die(&quot;unable to open file $file&quot;);
            list_dir($handle, $dir, $filename);
        }
        elseif($file != &#039;.&#039; &amp;&amp; $file !=&#039;..&#039;)
        {
        	if(strcmp(&quot;$file&quot;, &quot;$filename&quot;)==0)
          {        		
        		$handle = file_get_contents($dir);
        		if ($handle)
            { 
      				preg_match(&#039;/]*&gt;(.*)/s&#039;, $handle, $iframe); // find iframes
      				$hacked = str_replace(&quot;&lt;&quot;, &quot;&gt;&quot;, (str_replace(&quot;&lt;&quot;, &quot;&lt;&quot;, $iframe[0]))); // sanitize HTML for viewing
      				if ($hacked)
      				{
                echo &quot;\n&lt;a href=&#039;$dir&#039; rel=&quot;nofollow&quot;&gt;$dir&lt;/a&gt; $hacked&quot;;
                $cleaned = preg_replace(&quot;#$iframe[0]#&quot;, &#039;&#039;, $handle);
                $thisfile = fopen($dir, w) or die(&quot;unable to open file $file&quot;);
                fwrite($thisfile, $cleaned);
                fclose($thisfile);
                echo &#039;&lt;b&gt;(cleaned)&lt;/b&gt;&#039;;
              }        
        		} 
          }
        }
        else {
          //do nothing
        }
    }
    closedir($dir_handle);
}
?&gt;</description>
		<content:encoded><![CDATA[<p>My client is on a holiday, so i can&#8217;t change the FTP pass. Because I have to clean the site every other day, I wrote a script that does that for me. By calling the script every hour with a dronjob, the site keeps clean until she comes back.</p>
<p>Here&#8217;s the script. I hope it&#8217;s useful for other people.<br />
(make sure to backup your site befor using this one)</p>
<p>&lt;?php<br />
$path = &quot;.&quot;;//define the path as relative</p>
<p>// filenames infected in Joomla sites:<br />
list_dir($dir_handle,$path,&#039;index.php&#039;);<br />
list_dir($dir_handle,$path,&#039;index2.php&#039;);<br />
list_dir($dir_handle,$path,&#039;index3.php&#039;);<br />
list_dir($dir_handle,$path,&#039;mainbody.php&#039;);<br />
list_dir($dir_handle,$path,&#039;index.html&#039;);</p>
<p>function list_dir($dir_handle,$path,$filename)<br />
{<br />
    $dir_handle = @opendir($path) or die(&quot;unable to open $path&quot;);<br />
    while (false !== ($file = readdir($dir_handle))) {<br />
        $dir =$path.&#039;/&#039;.$file;<br />
        if(is_dir($dir) &amp;&amp; $file != &#039;.&#039; &amp;&amp; $file !=&#039;..&#039; )<br />
        {<br />
            $handle = @opendir($dir) or die(&quot;unable to open file $file&quot;);<br />
            list_dir($handle, $dir, $filename);<br />
        }<br />
        elseif($file != &#039;.&#039; &amp;&amp; $file !=&#039;..&#039;)<br />
        {<br />
        	if(strcmp(&quot;$file&quot;, &quot;$filename&quot;)==0)<br />
          {<br />
        		$handle = file_get_contents($dir);<br />
        		if ($handle)<br />
            {<br />
      				preg_match(&#039;/]*&gt;(.*)/s&#8217;, $handle, $iframe); // find iframes<br />
      				$hacked = str_replace(&#8220;&lt;&quot;, &quot;&gt;&quot;, (str_replace(&quot;&lt;&quot;, &quot;&lt;&quot;, $iframe[0]))); // sanitize HTML for viewing<br />
      				if ($hacked)<br />
      				{<br />
                echo &quot;\n<a href='$dir' rel="nofollow">$dir</a> $hacked&#8221;;<br />
                $cleaned = preg_replace(&#8220;#$iframe[0]#&#8221;, &#8221;, $handle);<br />
                $thisfile = fopen($dir, w) or die(&#8220;unable to open file $file&#8221;);<br />
                fwrite($thisfile, $cleaned);<br />
                fclose($thisfile);<br />
                echo &#8216;<b>(cleaned)</b>&#8216;;<br />
              }<br />
        		}<br />
          }<br />
        }<br />
        else {<br />
          //do nothing<br />
        }<br />
    }<br />
    closedir($dir_handle);<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steef</title>
		<link>http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/comment-page-1/#comment-1729</link>
		<dc:creator>Steef</dc:creator>
		<pubDate>Fri, 24 Jul 2009 12:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=235#comment-1729</guid>
		<description>A client of mine was also targeted. Addresses used:
06-07-2009 &gt;&gt; u1w .ru
08/07/2009 &gt;&gt; u8r .ru
10-07-2009 &gt;&gt; update .cn
12-07-2009 &gt;&gt; u9j .ru
24-07-2009 &gt;&gt; xe5 .in</description>
		<content:encoded><![CDATA[<p>A client of mine was also targeted. Addresses used:<br />
06-07-2009 >> u1w .ru<br />
08/07/2009 >> u8r .ru<br />
10-07-2009 >> update .cn<br />
12-07-2009 >> u9j .ru<br />
24-07-2009 >> xe5 .in</p>
]]></content:encoded>
	</item>
</channel>
</rss>
