[Solved]Site hacked cannot find source

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
KJHunt
Forum Members
Forum Members
Posts: 33
Joined: Tue Aug 15, 2006 2:33 pm

[Solved]Site hacked cannot find source

Post by KJHunt »

CMS Version 1.4.1 "Spring Garden"
Server Operating System (server_os): Linux 2.6.9-89.0.11.ELsmp On i686
Server Software (server_software): Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.7a FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 
Server Database (server_db_type):  MySQL (mysql)
Server Database Version (server_db_version): 5.0.90


One of my sites http://www.riding-centre.com is showing malicious code in Google Cache and I cannot find out where it is coming from.

All the site files have been fully scanned for malwear and are showing clean.  When the source code is viewed in the site there is no evidence of any infection.

Can anyone help me on this as it is wreaking my head for 2 weeks now and no resolution in sight. Thanks
Last edited by KJHunt on Wed Mar 02, 2011 3:52 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Site hacked cannot find source

Post by calguy1000 »

we no longer support 1.4.1

Restore your site from a known good backup
then Upgrade.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
KJHunt
Forum Members
Forum Members
Posts: 33
Joined: Tue Aug 15, 2006 2:33 pm

Re: Site hacked cannot find source

Post by KJHunt »

Hi calguy1000
The problem is that as I cannot find any malwear in any of the file I dont know what is good and what is not.  Is there any way to find out where the malicious code in the Google Cache is coming from?
Thanks.
edented
Forum Members
Forum Members
Posts: 23
Joined: Sat Aug 29, 2009 4:24 am

Re: Site hacked cannot find source

Post by edented »

Try google? They have a whole 'how to' section about this.
Also, upgrading to the current cmsms version would likely be a wise thing to do for security reasons.
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm
Location: Marlow, UK

Re: Site hacked cannot find source

Post by scooper »

We had something similar on one of our sites a while back. The code being injected into your page is only being served if the server recognises the User Agent as Googlebot.

Using the 'User Agent Switcher' extension for Firefox when I visit your site with the user agent set to 'Googlebot' I get lots of links to some dubious sites at the top of the page. If I visit the page with the user agent set to Firefox or IE then I just get the normal page. You'll probably see the same if you use Google Webmaster tools to view what the google bot uses.

Sneaky aren't they.

In our case the code had been added to one of the default files that get called from all pages (so index.php or stylesheet.php or something similar) I don't remember which one exactly I'm afraid. You should be able to find out by doing a diff on your install.

You should (obviously) update to the latest version and keep your installation up to date. There's also some useful reading on security on these forums that's well worth taking a look at.

Let me know how you get on and if you need a hand. Good luck.

s.
User avatar
KJHunt
Forum Members
Forum Members
Posts: 33
Joined: Tue Aug 15, 2006 2:33 pm

Re: Site hacked cannot find source

Post by KJHunt »

Hi Scooper
Sounds like you might be onto it there - I will check the files (although Malwarebytes could not find anything).

When I upgrade the cms version will it cause any problems for imported (customised templates and stylesheets)?
Kieran
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm
Location: Marlow, UK

Re: Site hacked cannot find source

Post by scooper »

KJHunt wrote: I will check the files (although Malwarebytes could not find anything).
In the instance we had the code was just checking the user agent and pulling in html data from a remote server - so there won't be any malware signature to check in the file itself - just a couple of extra lines of php.  I would recommend doing a diff of your files against a fresh version of 1.4.1 to make sure that there's nothing else going on and to try and understand what's happened.
KJHunt wrote: When I upgrade the cms version will it cause any problems for imported (customised templates and stylesheets)?
You should be fine - but of course you should always backup backup backup.
User avatar
KJHunt
Forum Members
Forum Members
Posts: 33
Joined: Tue Aug 15, 2006 2:33 pm

Re: [Solved] Site hacked cannot find source

Post by KJHunt »

[Solved] Site hacked cannot find source
Post Reply

Return to “CMSMS Core”