
Originally Posted by
PsiPro
As a web host I get at least one of these e-mails a month.
"My virus scanner says there is a virus on your server!" or "Why is there suddenly this run bar on my website?" etc.. etc...
I can tell you 9.9999billion times out of 10billion times this is not the case. The problem is almost always an out of date commercial (or worse free) script that has a known vulnerability. The people infecting your site undoubtedly have a bot that will re-infect your site until the security hole is patched.
Now if you do not have a script, php, perl, python, whatever on your site. Another person on the server has the vulnerable script, and your host made a bad choice in configuring the server.
Your web host can do a bit to protect your sites. The first and most important thing is to run scripts under the user account. Its an easy fix and will only allow an account to damage itself, at which point the host can legitimately say you did this to yourself. Providing you do not have any world writable files (and with user executed scripts you shouldn't), your account would be safe from other accounts on the server.
The second method is a good set of Mod_Sec rules. These rules are designed to protect you from yourself. When a malicious user puts in a URL that looks suspicious (such as a SQL or CMDline injection) they will get an error page, and inevitably be blocked by the firewall.
The point of the story, update your scripts, and make sure your host is doing enough to protect you.