Several of my sites have recently been hacked. Someone was able to add a JavaScript line at the bottom of each page of the site.
The server is Windows Server 2003, and Cold Fusion 8 and MySQL 5.x are installed and running on it.
A look at the code on each page shows that none of the pages have been changed. JavaScript is not in the code files themselves. This makes me think that this is an IIS problem, but I am not sure and cannot find anything that could do this in IIS.
The added JavaScript redirects the user to another page only if they come from Google, or at least it works this way.
Any help on how someone was able to accomplish this, as well as remove it, would be greatly appreciated.
Another way to pose a question thanks to @Jeffrey Hantin
How do you systematically change the output from IIS without changing individual pages?
EDIT . A few more tests showed that only .cfm pages add extra javascript. A new .cfm was added, and js was there, but .html was not there.
Edit2: Turns out it was a cold problem. One way or another, the OnRequestEnd.cfm pages were created on sites and added that js.
source
share