{"id":1180,"date":"2010-02-08T00:01:52","date_gmt":"2010-02-08T08:01:52","guid":{"rendered":"http:\/\/www.wambooli.com\/blog\/?p=1180"},"modified":"2010-02-07T09:54:38","modified_gmt":"2010-02-07T17:54:38","slug":"this-sites-hack-adventure","status":"publish","type":"post","link":"https:\/\/www.wambooli.com\/blog\/?p=1180","title":{"rendered":"This Site&#8217;s Hack Adventure"},"content":{"rendered":"<p>It appears that I&#8217;ve plugged the leak that was causing this blog to be hacked. I hope.<br \/>\n<!--more--><br \/>\nIt began on Friday morning, when I received an email from &#8220;Linuxlove&#8221; who wrote:<\/p>\n<blockquote><p>Tried going to your blog to read the latest Wambooli news but all of the Wambooli blog is cut off by AVG which claims that your blog has a virus &#8220;JS\/Downloader.Agent&#8221;.<\/p><\/blockquote>\n<p>And it did! I dumped the raw version of the blog&#8217;s homepage and saw the telltale signs of the JS\/Downloader.<\/p>\n<p>JS\/Downloader is a chunk of Javascript code that&#8217;s encrypted, appearing as several lines of hexadecimal numbers or sometimes a long string of values. Then there are a few lines to process that code.<\/p>\n<p>The processed code becomes HTML instructions that redirects the page to somewhere else on the Internet. Somewhere nasty.<\/p>\n<p>There were also about 250 links added with the hack, invisible links, links that went out to various pirate sites for downloading movies.<\/p>\n<p>I use WordPress for my blog, though I&#8217;ve customized it somewhat. I saw that the JS\/Downloader was installed in the Header file, so it was easy to remove the malicious code.<\/p>\n<p>Friday evening, however, the JS\/Downloader script was re-installed. I removed it again and took a more serious look at what could be causing it.<\/p>\n<p>The first thing I noticed was that two users on the blog had been promoted to Administrator status. They were probably bots, but who knows? I deleted the users and the problems have stopped. So far.<\/p>\n<p>I&#8217;ve also changed all the passwords used by the site, as well as the site&#8217;s security keys. The only further step I can take should the attack repeat itself, is to re-install all the software from a fresh version. I am poised to do that should another attack happen \u2014 especially because I have no ideas how the users were able to gain administrator access. It might be an exploit that&#8217;s still vulnerable.<\/p>\n<p>I&#8217;d like to thank Linuxlove for sending me the email and pointing out the compromised site. According to the <a href=\"http:\/\/www.daniweb.com\/news\/story258407.html#\" target=\"else\">HoneyGrid report<\/a>:<\/p>\n<blockquote><p>71% of Web sites with malicious code are legitimate sites that have been compromised.<\/p><\/blockquote>\n<p>It is my hope that the Wambooli blog never become one of that 71 percent. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>It appears that I&#8217;ve plugged the leak that was causing this blog to be hacked. I hope.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1180","post","type-post","status-publish","format-standard","hentry","category-main"],"_links":{"self":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1180"}],"version-history":[{"count":3,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1180\/revisions"}],"predecessor-version":[{"id":1183,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1180\/revisions\/1183"}],"wp:attachment":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}