Multiple sites hacked! Line 225 index.php - Anyone else?

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
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

Multiple sites hacked! Line 225 index.php - Anyone else?

Post by ncd »

Hi there,

I've updated my sites to the latest version, 1.10.3 yet I'm getting repetitive security breaches - once hacked, this error message is displayed:

Code: Select all

Parse error: syntax error, unexpected T_STRING in /home/yeser5/public_html/index.php on line 225
It's adding a bunch of malicious code on line 219, in the php tag, right after $smarty->_eval('?...

Screen shot attached.

I have no idea what all that is, but it don't look good! >:D

About 5 of my sites, on 3 different servers, have all had this hack a couple of times in the last few weeks... config and index have been set to chmod 644 - I try to set them to 444, but filezilla wont accept it - is there another way? Or is that not the issue?

Obviously putting the original index file back up fixes it, but I'd love to know how to prevent it. I update ftp and admin passwords regularly...

Anyone come across this or have any suggestions?

Thanks!
Attachments
malicious-code.jpg
Last edited by ncd on Tue May 01, 2012 9:08 am, edited 2 times in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by ncd »

Thanks Rolf!
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by Wishbone »

It was nice of the hackers to comment their code.
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by ncd »

Ha! I know...

It's organised crime that we're dealing with!
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by ncd »

Hi,

Just wondering if anyone has come across this yet?

It's happened a few more times since.

Apart from upgrading is there anything else I should be doing?

Can the sever be hacked via the CMS admin? If users don't logout is it exposed? Is there a setting to enable sessions for the admin so if they don't logout the session will end?

Thanks.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by calguy1000 »

If you have completely cleaned your sites... and some are still getting hacked, then the hack is probably coming from a file on your server either a file that exists on your site(s) placed there by a hacker.... or a site that exists on somebody elses site on the same host.

a: Clean your sites
b: Do system verification
- understand ALL of the errors, double check all of the files (even the images)
c: Tighten up all permissions
- Don't ask what permissions should be, they should be tight but the exact permission level depends on how the system is configured and the functionality you need.
d: Make a backup of everything (once it is clean)

if it happens again after you've cleaned up again, report it to your host or system administrator.
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.
ncd
Forum Members
Forum Members
Posts: 57
Joined: Tue Sep 29, 2009 1:12 am

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by ncd »

Ok great - thanks for that will give it a go!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Multiple sites hacked! Line 225 index.php - Anyone else?

Post by Rolf »

ncd wrote:Ha! I know...

It's organised crime that we're dealing with!
LOL ;D
ncd wrote:Just wondering if anyone has come across this yet?
Yes, I seen it before. Like Calguy said, there is somewhere a file at your server that is changing your files.
So you aren't hacked *again*, but you are *still* hacked...

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”