Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 09:05:54 AM

Pages: [1]   Go Down
  Print  
Author Topic: Hacked Site 2x in Two Months  (Read 2243 times)
cre8tivegirl
Space Explorer
***
Offline Offline

Posts: 9


« on: September 13, 2010, 07:12:12 AM »

Well, my clients site just got hacked for the 2nd time in two months last friday.  Luckily it was resolved and her site is back up and running, but she is obviously very concerned that this is going to happen again.  It was attacked by a phishing scammer installing a fake paypal site on her server.

This time around I did a thorough search of all the files on her site and saw that the .htaccess file had been modified which is probably what was allowing them to get into the site for the second time since I never even thought to look there the last time it was hacked.

We use the most recent version of WordPress and always update immediately when an update is available.  But my question is this.  What else should we look at to make sure that this doesn't happen again?

We changed all the passwords once more and as I said I went through to find any traces of suspicious files on her site server, but I am very worried about preventing another attack on her during her busiest time of year.

I am trying to figure out what program to use to read the server access logs as paypal said if we can grab any ip addresses or anything they may be able to investigate further.

Any advice anyone can give would be greatly appreciated to point me in the direction of any further vulernabilities I should be looking for or what to do to prevent it from happening again.

I still do not even know how they got into her site in the first place, but that is neither here nor there now.

Thank you!

Kathy
Logged
jacknorth
Intergalactic Cowboy
*****
Offline Offline

Posts: 54



WWW
« Reply #1 on: September 13, 2010, 08:24:21 AM »

We use the most recent version of WordPress and always update immediately when an update is available.  But my question is this.  What else should we look at to make sure that this doesn't happen again?

Check into not using wordpress
Logged
cre8tivegirl
Space Explorer
***
Offline Offline

Posts: 9


« Reply #2 on: September 14, 2010, 08:28:51 AM »

oh well gee, that was so helpful! thanks for your thoughtful response.    Hypno
Logged
rbrummett
Spacescooter Operator
*****
Offline Offline

Posts: 48



WWW
« Reply #3 on: September 14, 2010, 12:23:18 PM »

There is so many ways to hack web sites. Check your error logs. Make sure you have the latest version of PHP, ASP, or whatever server scripting language you are using and the latest database language. If you have any forms on your web site restrict them from entering HTML code and if you are retrieving fields from a database use something like mysql_real_escape_string so they don't do a SQL attack and steal data from your databases.

You might want to pick up a book on how to hack web sites so you can figure out the latest ways to hack web sites (and protect yourself from them). There is web sites where you can practice web site hacking that shows common ways hackers gain access. www.hackthissite.org for example.

And always back up your web sites so if a hacker ever defaces a logo or erases files you can replace them. I did one web site for a client where they replaced his index.html page with a photo of an American flag burning.
Logged

Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings.
http://www.divinecomics.com
http://es.divinecomics.com
katrina1
Guest
« Reply #4 on: September 15, 2010, 02:47:15 AM »

Be sure you have enabled archiving under Raw Log Manager if you are on Cpanel. You can download the logs from there and unzip them with 7zip which is free at http://7zip.com. Once you have the access log file, you need to change the name ending from .com to .txt to automatically open it in a text editor like Notepad when you click on it or you can go into notepad and just open it from there with the original name. Look for any suspicious activity like PUTs or really long URLs with mentions of Paypal or webscr in them.

Wordpress is fine and can be secured. Keep it up to date but also keep any plugins up to date. If you look at Plugins in the Wordpress admin section, it will tell you if any are out of date. Lock Wordpress down per http://wiki.lunarpages.com/Keeping_WordPress_Secure . It really works!
Logged
JoshuaK
SysAdmin Supervisor
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26



WWW
« Reply #5 on: September 15, 2010, 04:29:33 PM »

You may also want to look into using securepress plugin for wordpress from securelive.net.  I use it on my blog and it has blocked tons of hack attempts to my website.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: