Forum Moderators: phranque

Message Too Old, No Replies

How to prevent a site from being hacked!?

Technical or otherwise tips would be useful !

         

ideavirus

3:54 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



Hello,

I have been facing this problem of one of my sites being hacked twice and I need to take proper and immediate action to prevent that from happening again. I need your help in the form of some useful tips to combat these junk heads.

Some of the steps, I have already taken, Like :

1. Changing the passwords/phrases and making them alpha-neumerical.
2. Password protecting some of the directories.
3. Removing those unnecessary files.
4. Blocking ceratin IP's from ceratin countries.

I don't know, what other steps can be taken to keep it safe from hackers.

Any Technical or Non-Technical - Common sense Approach tips from some experienced and technical webmasters would be very helpful for me.

Thank you very much in advance.

Cheers

[edited by: ideavirus at 4:22 pm (utc) on Aug. 1, 2003]

petertdavis

4:08 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



Are you running any insecure scripts? PhpBB, for example, is a script that gets hacked regularly. If you're using an insecure script, you should either upgrade the script to remove the holes, or switch to a better script.

ideavirus

2:50 am on Aug 2, 2003 (gmt 0)

10+ Year Member



No, I am not using phpBB at all. Infact, I prefer vB for any kind of forums. Rather, i use miniBB when the forums are not that necessary.

Any helpful advice would be useful.

thanks

Jenstar

2:56 am on Aug 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<side note>
phpbb boards generally only have a problem getting cracked when people are running versions 2.0.0 or older (2.0.5 is the current version) or when people forget to delete the install files after completing the installation. Unfortunately, many people don't upgrade (2.0.0 is a couple of years old now) or don't delete those files, which is why people hear about them getting cracked.

BTW, cracked is when they are attacked through the boards itself (through an exploit or the install files), while hacked is when the server itself is hacked.
</side note>

petertdavis

3:06 am on Aug 2, 2003 (gmt 0)

10+ Year Member



Sorry, it's just nearly impossible to make a relevant comment without knowing specifics. My comment about phpBB was just a stab in the dark, it could be any of a thousand and one other things. Generally, as Jenstar mentions regarding the phpBB, keep everything (not just scripts, but the OS as well) on your server up to date.

jamesa

3:12 am on Aug 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you've already been rooted (meaning someone gained root access to your system) then you got to burn the system. Set up a new server, migrate your data and kill the old. Once you've been compromised you can't trust anything on the system anymore. Hackers will replace common utilities, like 'cd' and 'ls' with trojaned versions - there's just no way of knowing how many backdoors they've created.

Some general guidlines:
- run only the software you need and lock down everything else.
- keep up with security patches on the OS and the software you do run.
- never send your admin or root password in the clear. Use SSH, SFTP, and HTTPS if you have a web-based control panel or even phpMyAdmin, etc.
- have a solid backup and recovery plan.

You really might benefit from getting a security guru to help you lock it down. Good luck.

ideavirus

5:16 am on Aug 2, 2003 (gmt 0)

10+ Year Member



jamesa - Thanks for those tips. Changing the box after getting hacked once does sound rationalistic for me. However, i am still on shared server and still picking up momentum in terms of traffic and popularity.

My admin did check the logs to investigate, how it all happened and did get a lot of clues and the actual IP of the system used to perform such a misadventure.we informed his ISP also about it.

Lucky me, my host takes backups every night and now, my admin makes two copies of my site backups, just in case.

Okay, i have another question : These hackers generally leaves the names of their groups when they hack sites. with those names on hand, is it possible to do much better tracking of the culprit? or can i squeeze any more info using such info?

Thank you for the advice.
Cheers