Forum Moderators: phranque
Does anyone know what it is, how it gets on our site, and what it's purpose may be? I have gotten rid of it so far by reuploading the index page. Thanks.
Are you on cheap or free web hosting? Seems to me I've heard of some free web hosts inserting ad network code into the pages of their customers.
They can't access financials since this is hosted remotely. I'll post the code here if I find it again.
..............................
they advised changing the FTP access password immediately, which I did. To date there has not been another occurence
The hosting company then fixed the hole which was the real cause of the problem, leaving the impression that it was an FTP password leak which was the actual cause (ie. your fault, not theirs). :)
OK, I may be too cynical, and yes you should change all your passwords immediately too - but this kind of thing is more often to do with server-side scripts which have not been kept up to date, leaving the attacker access through which they can attach code to various files (eg. index.html) on the server.
Back to the original question: are you running a content management script? Is it up to date (fully-patched)? Are you on a shared or dedicated server? If it is a static site, then ask your host to move it to a different physical server, or change hosts.
The hosting company then fixed the hole which was the real cause of the problem, leaving the impression that it was an FTP password leak which was the actual cause (ie. your fault, not theirs).
.....................
Who can gain access to an FTP data stream?
- Employees of your ISP
- Employees of your hosting provider
- Employees of a hotel where you might have stayed, and used their Internet access
- Employees of an Internet cafe where you might have accessed your site from
- Employees of any company that transported your data packets (e.g. backbone providers, etc.)
For "employees", above, really, substitute "anyone who has physical access", or might have hacked-into such facilities remotely.
Nobody should be using FTP to update their website, nor Telnet to access a Linux shell. Use SFTP and SSH.
If you are forced to use FTP, change passwords OFTEN.
I think it may have to do with the Live.com crawler inserting code automatically. I may have agreed to this at some point without knowing it.
It specifies 'Microsoft Data serives Remote Data.dat' I'm still trying to find a support number at Live.com to discuss this. Makes a nasty off colored pixel at the top of page, and an initial browser warning. I chickened out on posting the complete code here, I don't want anyone else hacking in.
-Pink Floyd
I think it may have to do with the Live.com crawler inserting code automatically. I may have agreed to this at some point without knowing it.
Nobody can insert code automatically on YOUR site, unless you gave them the means to do so.
This might be done by:
- some sort of plugin you installed in your web server, CMS, etc. (unlikely, but possible)
- a frame or layer on your page that loads content from an external site. In this case, remove the frame or layer, and/or the reference to the external site.
What server software are you using? It wouldn't be IIS would it? A very old version of IIS? There's a 1999 security alert that might relate to this, but I don't use IIS so it doesn't make much sense to me.
Do you have any ActiveX components on your page?