Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I work for a company that setup a website, this one thelinearshop.com (warning this site contains malware so don't go there if you are concerned), before I started working for them. The site uses OSCommerce. It now looks like someone was able to infect it with a malware link and jumble the site itself and when I visit the site I get a warning page from Google with the choice to leave, go to http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&hl=en-US&site=http://thelinearshop.com/ for info on why it is getting blocked, or to ignore the issue.

I have looked at the site and someone definitely hacked it. I have never run into this before and I am not sure how to proceed in order to get this fixed. I know I need to get the virus out but I am also concerned that whoever set the site up used an older version of OSCommerce and that it must not be very secure. Is that the case?

share|improve this question
    
Using Apache? How about mod_security? –  Tim Post Aug 6 '10 at 15:17
    
It turns out the hosting company was hacked. –  RandomBen Aug 10 '10 at 15:03
add comment

3 Answers 3

up vote 5 down vote accepted

Your best bet, if it is possible, is to set up a development version of their site and try to upgrade it to a newer version of OSCommerce and see if it works properly. I don't use OSCommerce but I would think they would offer upgrade scripts or something similar to help automate the process. Assuming it works properly I would then upgrade the live site to the new version. That way you are sure you have all of the latest patches and have closed whatever hole(s) were originally exploited.

Once you've cleaned up the site create a Google Webmaster account for this website if you haven't already. In there you can request that Google check the site again and have them remove the unsafe website label from their listings.

share|improve this answer
add comment

I've been through this before thanks to old versions of Joomla, phpBB, and OSCommerce. In all cases, I was called in to mop up after someone else forgot (or neglected) to do upgrades. In one case, a rogue test install of Joomla (with no intention of ever going live) was to blame. Regardless, once one of these exploits gets out there, the "bad guys" are going to "sniff" everything they can find to exploit your systems.

I took the low-tech approach in all cases. First, I put up an "under construction" page that was clean to protect my IE users from getting infected. Second, I searched for the bad code....it's usually pretty obvious what it is. The good news is that these guys are generally lazy and automated...so it's normally just a few lines of javascript, nearly always in the same spot. Remove it....automate if you have to. Third, update EVERYTHING that's open source....no matter how new it might be. Create a system that you can follow going forward to ensure updates don't get missed again. Fourth, if you don't have analytics on your site, install it and set it up for daily reports. These sort of intrusions sometimes show up as strange traffic spikes that can't be explained. Finally, put it up (maybe even somewhere else) and test it thoroughly.

share|improve this answer
    
+1 for always update! Don't update, sit and wait for the hack –  tim.baker Nov 15 '13 at 10:45
add comment

Glad to see your problem is fixed, but to add my two penneth....

I went through this myself in the middle of 2009, I started reading the malware and hacked sites forum on googles webmaster central.

I usually find there are three main sources of infection:

  1. The hosting company has been hacked.
  2. Users who have found their home pc's have been hacked, as a result had ftp/password details stolen.
  3. Out of date/insecure code.

Couple of pieces of advice I don't think have been mentioned:

  • If you are paying for any services relating to your website (like adwords) make sure you disable these whilst you resolve your problem. Otherwise it's throwing money down the drain!

  • Don't forget to check your .htaccess file - mine was ripped to shreds when I was hacked.

share|improve this answer
    
One last peice to add, MySQL injection is a major cause –  tim.baker Nov 15 '13 at 10:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.