I've been using CMSMS for a few years now without any issue; it's a wonderful piece of software. Recently, though, I've run into the odd situation of someone injecting code into our index.php file. When I discovered this, I upgraded from 1.7.1 to 1.8 and applied the applicable settings from the security guide on this forum, but it happened again today. When this occurs, the site does not come up at all; rather, I get the following error message:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/stjudes/stjudesbrantford.com/index.php on line 51
I'm only glad that this is something that is quite obvious when it occurs. Replacing the index.php file with a fresh copy fixes this, but I can't understand how this is happening in the first place. I have attached a copy of the infected index.php file. Would someone mind taking a look at this? Many thanks in advance.
CMSMS 1.8 Security Issue in index.php
-
- New Member
- Posts: 5
- Joined: Mon Mar 31, 2008 7:38 pm
CMSMS 1.8 Security Issue in index.php
- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: CMSMS 1.8 Security Issue in index.php
code injection attacks like this can come in from a number of ways
a) a weakness in the CMS
b) a weakness in another script you are using
c) on improperly configured shared hosts, a weakness in a script/CPS used by SOMEBODY ELSE on your server.
You would need to identify exactly HOW those changes were made to your .php file.
a) a weakness in the CMS
b) a weakness in another script you are using
c) on improperly configured shared hosts, a weakness in a script/CPS used by SOMEBODY ELSE on your server.
You would need to identify exactly HOW those changes were made to your .php file.
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.
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.