Topic: Exploits and Known Issues (Read 1880 times)
Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 619
5660 credits Members referred : 0
www.dg9.org
« on: Jun 19, 2008, 05:56:10 am »
Hey, I have faced something similar of a problem before, and it's a known php script vulnerability. My quick fix before don't seem to work for all situations so Im going to present it here in case someone else has a better solution.
The exploit is a the r57shell.php file installed on the server replacing your index.php file or other files. It is also sometimes named differently but the exploit is still the same. Once it is installed, if someone browses through an infected site. The visitor is automatically is infected by a trojan for windows machine.
So do you guys have any ideas in preventing this known issue once and for all?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #1 on: Jun 19, 2008, 09:57:34 am »
The only way for this to happen is by having write permissions in the server. This can be done either by a script that writes and has some bug, or by an XSS vurnerability.
In most cases this type of hacking happens to the whole server. One quick solution is to chown all the files to the root user. This way even if there is the vurnerability there is no way to write the index.php or other file in the server.
In any way you should contact your hosting company as this is probably their problem
Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 619
5660 credits Members referred : 0
www.dg9.org
« Reply #2 on: Jun 25, 2008, 06:53:29 am »
Would changing the index address other than the index for example via htaccess could at least stop this kind of attempt affect the operation of the site? At least if a server wide attack is made and all files affected are index files, at least your htaccess calls a different named index for your site.
Although it isn't a complete fix to the real problem, at least for the continued operation of a site...
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #3 on: Jun 25, 2008, 11:00:53 am »
You don't need to do that. After all this will make your work harder when you are about to install open source software in your sites (where index.php will be always there...)
Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 619
5660 credits Members referred : 0
www.dg9.org
« Reply #4 on: Jun 26, 2008, 10:09:03 am »
Thanks for the tip Nik, I'' look into that pretty soon, I've been bugged about this since last year, although I had a quick fix, some other hosts do have a different way of handling scripts.