<?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>ZENVERSE &#187; Misc.</title>
	<atom:link href="http://zenverse.net/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenverse.net</link>
	<description>Design and Web Development</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:01:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Completely Remove All Malicious Iframes on Your Website Forever</title>
		<link>http://zenverse.net/how-to-completely-remove-all-malicious-iframes-on-your-website-forever/</link>
		<comments>http://zenverse.net/how-to-completely-remove-all-malicious-iframes-on-your-website-forever/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 11:16:12 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Misc.]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[malicious]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=570</guid>
		<description><![CDATA[Last month, my site was injected with some malicious iframes linking to china websites. The codes were added to my wordpress main index.php, my theme's sidebar.php, wp-admin/default-filter.php and more. The first thing I think of was to..]]></description>
			<content:encoded><![CDATA[<p>Last month, my site was injected with some malicious iframes linking to china websites which looked like below:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p570code1'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p5701"><td class="code" id="p570code1"><pre class="html" style="font-family:monospace;">&lt;iframe src=&quot;http://xxxxxxxxxx.cn&quot; style=&quot;visibility:hidden&quot; /&gt;</pre></td></tr></table></div>

<p>The codes were added to my wordpress main index.php, my theme&#8217;s sidebar.php, wp-admin/default-filter.php and more. The first thing I think of was to contact my webhost about this because I thought the problem is on their side. Well, I am sorry. I did not contact them at last because I realised that the first thing I should do is to remove the codes from my site.</p>
<h4>Why do we need to remove them?</h4>
<ul>
<li>The codes may causes search engine like google thinks that your site is malicious since it does contains malicious codes.</li>
<li>Besides, the iframes can run some malicious process in the background which you have no idea what it is at all</li>
<li>Some iframes automatically opens a PDF document using Adobe Reader (my case), which is quite annoying</li>
</ul>
<h4>Completely removing all malicious iframes</h4>
<p>Those malicious script can run silently in the background without your knowledge. Fortunately, the malicious codes that were added to my site causes a php fatal error that prevent my site from loading. Of course I am going to remove them right away, but I have no idea how many files were actually being injected. Thus I downloaded a full backup of my wordpress directory from my webhost and extracted it into my local computer. </p>
<p>I opened <a target="_blank" href="http://www.pspad.com/">PSPad</a> (my favourite editor) and start searching the whole wordpress folder for the term &#8220;&lt;iframe&#8221; using &#8220;Search > Search/Replace in Files&#8221; feature and I got a number of results. There were roughly 5 files with malicious iframes. I carefully replaced the injected files with their original copy. (Please be very careful with your wordpress version while replacing the core files)</p>
<p>The problem has been solv&#8230;not yet. I thought the problem was solved but who knows they returned on the next day. I know it&#8217;s time to do some research about this because this time, exactly the same files were being injected.</p>
<h4>How the codes are added to my site?</h4>
<p>I spent some time googled and found that most people that suffers from this problem has FileZilla installed, including myself. Besides, almost all of them saved their FTP password and account login details in FileZilla itself. After some discussions at forum, the cause of problem might not targeting specificly at FileZilla but generally at FTP client. </p>
<p>The conclusion I got was, my computer is infected with some kind of virus/trojan that automatically scan for FTP account details from FTP client software. The injection process is most probably run by automated bots because exactly the same files were being injected every time.</p>
<h4>Prevent future attacks</h4>
<p>First thing you should do is change your FTP password. If you don&#8217;t, your site will continuously being injected no matter what you do, since someone has already got your password. If you are usng FileZilla to upload files, remove any saved account details and manually login every time. After you have finished uploading, clear all history using Edit > Clear Private Data > Tick all 4 categories > Ok.</p>
<p>My site is free from malicious iframe since then.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/how-to-completely-remove-all-malicious-iframes-on-your-website-forever/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
