<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Godaddy hacked again. Another way to cure your site.</title>
	<atom:link href="http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/</link>
	<description>Blogging and Social Media for Nonprofit</description>
	<lastBuildDate>Wed, 01 Feb 2012 23:25:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Peter</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-2004</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 09 Jan 2012 20:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-2004</guid>
		<description>Glad you were able to cure it, Danny.

&quot;When it all started&quot;, i mean this code injection on a massive scale, two years ago, it was simple to cure, as it was just one piece of code injected at the first line of the .php file. You cured that, secured your site (if they did not get in through a backdoor of a shared server itself) and you were done.. But now, this type of hacking got more sophisticated. With the Timthumb backdoor, I saw how the hackers&#039; script had found one old timthumb script, and must have &quot;tagged&quot; it, as in the weeks to come, they tried to inject one file with a bit of code. Once they did that, again, they must have flagged it &quot;that they got in&quot;, they executed that code, which did a whole series of operations on my site. They actually created an entire subsite (in a /subdirectory), which was a PC virus injector (infected anyone who visited that subsite).
The moment they had that site set up, they sent out a spam email to a massive list of people, directing them to that subsite.

I got to know about it, as someone went to my actual site, found the &quot;contact me&quot; details and emailed me, warning of the infection. I was able to clean it all up in a few hours, but in the mean time, Google had already banned that subsite as malicious (I admit, they were really quick), and at the same time, secured the email spamming-backdoor from my domain.

I think the time, us webmasters, can say &quot;Oh it won&#039;t happen to me&quot;, is over. The hacking attempts are on such a massive scale, and play that close on the ball that the moment a vulnerability is discovered, as of the next days, their servers start searching for sites with that vulnerability already.

Wish us luck, protecting one&#039;s site will only become more and more difficult.

Peter</description>
		<content:encoded><![CDATA[<p>Glad you were able to cure it, Danny.</p>
<p>&#8220;When it all started&#8221;, i mean this code injection on a massive scale, two years ago, it was simple to cure, as it was just one piece of code injected at the first line of the .php file. You cured that, secured your site (if they did not get in through a backdoor of a shared server itself) and you were done.. But now, this type of hacking got more sophisticated. With the Timthumb backdoor, I saw how the hackers&#8217; script had found one old timthumb script, and must have &#8220;tagged&#8221; it, as in the weeks to come, they tried to inject one file with a bit of code. Once they did that, again, they must have flagged it &#8220;that they got in&#8221;, they executed that code, which did a whole series of operations on my site. They actually created an entire subsite (in a /subdirectory), which was a PC virus injector (infected anyone who visited that subsite).<br />
The moment they had that site set up, they sent out a spam email to a massive list of people, directing them to that subsite.</p>
<p>I got to know about it, as someone went to my actual site, found the &#8220;contact me&#8221; details and emailed me, warning of the infection. I was able to clean it all up in a few hours, but in the mean time, Google had already banned that subsite as malicious (I admit, they were really quick), and at the same time, secured the email spamming-backdoor from my domain.</p>
<p>I think the time, us webmasters, can say &#8220;Oh it won&#8217;t happen to me&#8221;, is over. The hacking attempts are on such a massive scale, and play that close on the ball that the moment a vulnerability is discovered, as of the next days, their servers start searching for sites with that vulnerability already.</p>
<p>Wish us luck, protecting one&#8217;s site will only become more and more difficult.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Diaz</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-2003</link>
		<dc:creator>Danny Diaz</dc:creator>
		<pubDate>Mon, 09 Jan 2012 19:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-2003</guid>
		<description>We actually found that if you&#039;ve got multiple base64 signatures in your code, you need to look for an auto-generation script in your code.  Our Joomla code was riddled with base64 and javascript redirection code, and we eventually found the auto-generation script that was embedded in our Joomla code to randomly insert the hacked code in-place.  It was an impressive piece of code, I should have kept it around, it did char/ascii translation from a huge string that was ascii encoded (and didn&#039;t throw any red flags).  

Good luck.
-Danny</description>
		<content:encoded><![CDATA[<p>We actually found that if you&#8217;ve got multiple base64 signatures in your code, you need to look for an auto-generation script in your code.  Our Joomla code was riddled with base64 and javascript redirection code, and we eventually found the auto-generation script that was embedded in our Joomla code to randomly insert the hacked code in-place.  It was an impressive piece of code, I should have kept it around, it did char/ascii translation from a huge string that was ascii encoded (and didn&#8217;t throw any red flags).  </p>
<p>Good luck.<br />
-Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-2002</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 09 Jan 2012 18:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-2002</guid>
		<description>Dawn,

The cleanup routine is based on the hacking code &quot;signature&quot; from 2 years ago.
it is looking for any file where the FIRST line starts with:

&lt;code&gt;&lt;?php /**/ eval(base64_decode(&lt;/code&gt;

Check the .php files on your server and see which base64 code the hackers have put in your files. IF the hacked files contain a string on the FIRST line of your .PHP file, but it does not match the above search criteria, you need to copy that piece of code and put it into my cleanup routine. Has to be an exact copy.

If your site is hosted by a commercial hosting provider, it might be good to contact their support and ask them to look at your files, and if possible cure them. As we are now 2 years after the first of these hacks came in, most hosting providers have cleanup scripts now... Might be a safier option for you, as in the mean time, hackers have diversified their hack and now inject other code in other places.

If your site was hacked through the timthumb backdoor, you will cure it in yet another way (again, your hosting provider should be able to help you)

Let me know if you need further assistance!

Peter</description>
		<content:encoded><![CDATA[<p>Dawn,</p>
<p>The cleanup routine is based on the hacking code &#8220;signature&#8221; from 2 years ago.<br />
it is looking for any file where the FIRST line starts with:</p>
<p><code>< ?php /**/ eval(base64_decode(</code></p>
<p>Check the .php files on your server and see which base64 code the hackers have put in your files. IF the hacked files contain a string on the FIRST line of your .PHP file, but it does not match the above search criteria, you need to copy that piece of code and put it into my cleanup routine. Has to be an exact copy.</p>
<p>If your site is hosted by a commercial hosting provider, it might be good to contact their support and ask them to look at your files, and if possible cure them. As we are now 2 years after the first of these hacks came in, most hosting providers have cleanup scripts now... Might be a safier option for you, as in the mean time, hackers have diversified their hack and now inject other code in other places.</p>
<p>If your site was hacked through the timthumb backdoor, you will cure it in yet another way (again, your hosting provider should be able to help you)</p>
<p>Let me know if you need further assistance!</p>
<p>Peter</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawn</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-2001</link>
		<dc:creator>Dawn</dc:creator>
		<pubDate>Mon, 09 Jan 2012 18:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-2001</guid>
		<description>Hi - I tried it - it says 0 files, but I know that I have the base64 hacks in the files. So I&#039;m not sure why it&#039;s saying none... :(</description>
		<content:encoded><![CDATA[<p>Hi &#8211; I tried it &#8211; it says 0 files, but I know that I have the base64 hacks in the files. So I&#8217;m not sure why it&#8217;s saying none&#8230; <img src='http://www.blogtips.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-1732</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Mon, 17 Oct 2011 19:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-1732</guid>
		<description>I&#039;ve been happy with Media Temple. I had moved all of my sites over there except for the one that got infected (on godaddy). http://thecompleteself.com

I&#039;m implementing your fix as we speak. If all goes well, you will no longer see a blocked site. next I need to ask Google to recheck the site.

Thanks,

matthew</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been happy with Media Temple. I had moved all of my sites over there except for the one that got infected (on godaddy). <a href="http://thecompleteself.com" rel="nofollow">http://thecompleteself.com</a></p>
<p>I&#8217;m implementing your fix as we speak. If all goes well, you will no longer see a blocked site. next I need to ask Google to recheck the site.</p>
<p>Thanks,</p>
<p>matthew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-1470</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 10 Aug 2011 22:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-1470</guid>
		<description>Chris, I will answer via email directly</description>
		<content:encoded><![CDATA[<p>Chris, I will answer via email directly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-1467</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 10 Aug 2011 21:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-1467</guid>
		<description>[edit: sorry got confused on which blogpost this comment was made... thought it was on the post to avoid malware being uploaded via .jpg files... My mistake... so forget what I wrote below.]

Chris,
No, that is not exactly how it works. Some content management systems allow users to upload files e.g. avatars. If a hacker would do that, and know where the file is stored (and hide php code in the uploaded file), and execute it, then he is in. 
So you&#039;d have to mimick a user on your site.

To simulate it, though, you can transfer the file to your site using FTP, and then execute it from the directory where you uploaded it.

hope this helps, 

Peter</description>
		<content:encoded><![CDATA[<p>[edit: sorry got confused on which blogpost this comment was made... thought it was on the post to avoid malware being uploaded via .jpg files... My mistake... so forget what I wrote below.]</p>
<p>Chris,<br />
No, that is not exactly how it works. Some content management systems allow users to upload files e.g. avatars. If a hacker would do that, and know where the file is stored (and hide php code in the uploaded file), and execute it, then he is in.<br />
So you&#8217;d have to mimick a user on your site.</p>
<p>To simulate it, though, you can transfer the file to your site using FTP, and then execute it from the directory where you uploaded it.</p>
<p>hope this helps, </p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Raymond</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-1466</link>
		<dc:creator>Chris Raymond</dc:creator>
		<pubDate>Wed, 10 Aug 2011 21:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-1466</guid>
		<description>Peter,
I have tried to upload this to the root directory at my GD Wordpress site, via Transmit, and the file never appears, just files that begin with:.pureftpd-upload. followed by a long string of digits. Files that I now cannot delete.

Is this good news, i.e., GD is preventing me from uploading executable php at root?</description>
		<content:encoded><![CDATA[<p>Peter,<br />
I have tried to upload this to the root directory at my GD WordPress site, via Transmit, and the file never appears, just files that begin with:.pureftpd-upload. followed by a long string of digits. Files that I now cannot delete.</p>
<p>Is this good news, i.e., GD is preventing me from uploading executable php at root?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-1308</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 02 Jul 2011 14:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-1308</guid>
		<description>@Umer: I fully agree with you on all accounts. It is a cure. And only a cure for the first batch of mass-infections, which happened about a year ago. Since then the infection &quot;signatures&quot; have changed.. Should be easy to change that in the script. If I would be php-programmer, I&#039;d love to make a script that prompts for the signature.

True too that this script only cures infected .php files, for base64-signatures. There are many other ways a site can get infected.

True too, this is curing, and prevention would be better. I covered a couple of those in another post, but none of them is water-tight. 
At the time of the first mass infections, the hackers clearly got in via Godaddy, and got hold of FTP login credentials. Changing the credentials helped many. But the leak did not come from the sites themselves, but from the hosting service (e.g. I never use FTP, only SFTP)...

If you ever come up with a more flexible way to cure, and a more watertight way to prevent, i&#039;d be happy to write a post about it. (and you would help many people along the way too!)

best,
Peter</description>
		<content:encoded><![CDATA[<p>@Umer: I fully agree with you on all accounts. It is a cure. And only a cure for the first batch of mass-infections, which happened about a year ago. Since then the infection &#8220;signatures&#8221; have changed.. Should be easy to change that in the script. If I would be php-programmer, I&#8217;d love to make a script that prompts for the signature.</p>
<p>True too that this script only cures infected .php files, for base64-signatures. There are many other ways a site can get infected.</p>
<p>True too, this is curing, and prevention would be better. I covered a couple of those in another post, but none of them is water-tight.<br />
At the time of the first mass infections, the hackers clearly got in via Godaddy, and got hold of FTP login credentials. Changing the credentials helped many. But the leak did not come from the sites themselves, but from the hosting service (e.g. I never use FTP, only SFTP)&#8230;</p>
<p>If you ever come up with a more flexible way to cure, and a more watertight way to prevent, i&#8217;d be happy to write a post about it. (and you would help many people along the way too!)</p>
<p>best,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umer</title>
		<link>http://www.blogtips.org/godaddy-hacked-again-another-way-to-cure/comment-page-1/#comment-1307</link>
		<dc:creator>Umer</dc:creator>
		<pubDate>Sat, 02 Jul 2011 08:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogtips.org/?p=948#comment-1307</guid>
		<description>Hi, 

I&#039;ll have to say that your solution is a cure not the prevention. 

I myself am a PHP expert and I have seen the script of fixfiles.php. It only searches for &quot;&lt;?php /**/ eval(base64_decode(&quot; in the beginning of the file and if finds, it lists that as a reported file. But there are so many other kind of malware lines which get inserted at the beginning of the file e.g. &quot;&quot; and iframes also get inserted. This script won&#039;t cure them unless we modify the script a little bit for those conditions as well. 

One can set this file execution using cron job and run it daily so whenever the site gets attacked, fixfiles script will fix that. But again, it will just be a cure not prevention. 

Godaddy is not that cause of it, there are many other sites hosted on other servers like hostgator, bluehost which are facing the same problem. 

A simple solution is to re-upload a fresh copy of your script to the server. But still there are situations where this doesn&#039;t help e.g. if the virus is in the database or in a plugin/extension etc. 

I am working on it to find the permanent cure, will get back once done. 

Thanks,
Umer</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I&#8217;ll have to say that your solution is a cure not the prevention. </p>
<p>I myself am a PHP expert and I have seen the script of fixfiles.php. It only searches for &#8220;&lt;?php /**/ eval(base64_decode(&quot; in the beginning of the file and if finds, it lists that as a reported file. But there are so many other kind of malware lines which get inserted at the beginning of the file e.g. &quot;&#8221; and iframes also get inserted. This script won&#8217;t cure them unless we modify the script a little bit for those conditions as well. </p>
<p>One can set this file execution using cron job and run it daily so whenever the site gets attacked, fixfiles script will fix that. But again, it will just be a cure not prevention. </p>
<p>Godaddy is not that cause of it, there are many other sites hosted on other servers like hostgator, bluehost which are facing the same problem. </p>
<p>A simple solution is to re-upload a fresh copy of your script to the server. But still there are situations where this doesn&#8217;t help e.g. if the virus is in the database or in a plugin/extension etc. </p>
<p>I am working on it to find the permanent cure, will get back once done. </p>
<p>Thanks,<br />
Umer</p>
]]></content:encoded>
	</item>
</channel>
</rss>

