PHP Parse Error

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
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

PHP Parse Error

Post by mnapiork »

I've been running two sites with CMS Made Simple for about a year now without any problems and suddenly both websites are giving me the below error.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\hosting\webhost4life\member\mnapiork\yum\index.php on line 77

Any ideas?
Last edited by mnapiork on Wed Jul 23, 2008 5:31 pm, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: PHP Parse Error

Post by Dee »

Strange - it's impossible to tell what's going on though, without knowing which version of CMS Made Simple you're using or seeing the code of that index.php around line 77....
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

Re: PHP Parse Error

Post by mnapiork »

I'm running $CMS_VERSION = "1.2.3";

I don't know if my host overwrote a file or whether someone hacked into my account and changed something.  I'm just curious whether anyone else using CMS Made Simple is experiencing this.
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

Re: PHP Parse Error

Post by mnapiork »

This is what is written around line 77 of index.php.  Is this normal?

Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: PHP Parse Error

Post by Dee »

No, that doesn't look like the normal code that should be in the file - download the 1.2.3 cms package and upload it again, overwriting the files on the server. While at it, after that I'd make a backup and upgrade to 1.3.1 ;)
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

Re: PHP Parse Error

Post by mnapiork »

Thanks.  I guess someone hacked into my account and added code.
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

Re: PHP Parse Error

Post by mnapiork »

It's actually a javascript function just after the closing tag.  See below:

Code: Select all

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Last edited by Rolf on Mon Apr 02, 2012 8:11 am, edited 1 time in total.
Reason: removed hacked code/links
Pierre M.

Re: PHP Parse Error

Post by Pierre M. »

mnapiork wrote: Thanks.  I guess someone hacked into my account and added code.
Sure. See erase-destroy : http://forum.cmsmadesimple.org/index.ph ... #msg114458
And remember not to run obsolete, known unsecure, unsupported versions.

Pierre M.
mnapiork
Forum Members
Forum Members
Posts: 36
Joined: Tue Nov 28, 2006 6:33 pm

Re: PHP Parse Error

Post by mnapiork »

Well, I was hacked for sure!

Somehow the hacker figured out my ftp username and password and inserted malicious code into the index pages of my sites and also deleted many other index pages completely.

My antivirus picked this up in the index file of one of my sites: Trojan program Trojan-Clicker.HTML.IFrame.rw

I viewed the ftp connection log files and the IP address was from Russia (77.221.133.198).

I still would like to figure out how the hacker got in.  It's really bugging me!!!
Pierre M.

Re: PHP Parse Error

Post by Pierre M. »

mnapiork wrote: I still would like to figure out how the hacker got in.
As you were using an obsolete, known unsecure, unsupported version the cracker had only to chose a well known exploit.
Keep exposed software uptodate and see http://wiki.cmsmadesimple.org/index.php ... mall_Guide

Pierre M.
iberkner

Re: PHP Parse Error

Post by iberkner »

I just want to put it out there that of my sites got hacked as well by the same crooks.  Would love to know who and how...
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Last edited by Rolf on Mon Apr 02, 2012 8:11 am, edited 1 time in total.
Reason: removed hacked code/links
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: PHP Parse Error

Post by Dr.CSS »

It's a know vulnerability that has been fixed, hope you updated to latest ver...
Post Reply

Return to “CMSMS Core”