Re: Warning webmasters ! Possible new virus
Very interesting. It is good that you were able to find the problem files and correct it, as the usual goal of this type of attack is to compromise the computers of anyone who visits your site. (The page that is loaded for visitors typically attempts to identify the browser they are using, and targets known weaknesses in the browser to plant malware)
The question I have is, what did you do to prevent this from happening again? You mention that you believe this is a virus (unlikely, but for argument's sake...) so have you run any antivirus scans of the server? If it is in fact a virus, the program will simply reinsert the code after a set delay. That is the "self-replicating" element that makes a virus a virus.
Most likely, this was a drive by attack - someone saw your server, scanned it for vulnerabilities, found one (or more) and uploaded the attack code. There are vulnerabilities in older versions of WordPress that could make this possible, for example. Have you taken steps to find weak spots on your server and correct the issue? And have you made the server admin aware of the problem as soon as you noticed it so they could investigate the compromise?
There is at least one software application known to researchers that actively crawls the web, looking for servers running services with known weaknesses. The software is configured to exploit the detected weaknesses to gain write access to the server, and alter pages in the way you describe, planting an iframe to load a page that attacks your users. This is all done automatically. The software is able to bypass many protections by using common user agents, and by passing the server a seemingly appropriate referrer string. In one scan by such a bot, the bot seemed to simulate visits from a search engine. Each visit would crawl the site from link to link, mimicking a human visitor. Each subsequent scan had a referrer that made it appear as if the traffic was coming from a search engine, with the query becoming more specific (If the site was about blue widgets, the first scan had a referrer from MSN with the keyword florida, next one was florida widgets, and then florida blue widgets, becoming more specific as the bot saw more of the site)
__________________
The best way to learn anything, is to question everything.
Last edited by wige; 07-02-2008 at 11:03 AM.
|