Spamming issue with include.php

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
upwithit
Forum Members
Forum Members
Posts: 21
Joined: Mon Jan 05, 2009 7:23 pm

Spamming issue with include.php

Post by upwithit »

Hi -
Running a site on CMSMS v1.6.6 and I've been getting spammed.  It appears that someone has appended the following code to the end of the include.php file:


Which ends up adding a bunch of nonsensical stuff to the admin area - as of now the site itself doesn't appear to be affected.
For instance, at the top of the admin login screen, you get:

Warning: Cannot modify header information - headers already sent by (output started at /mypath/include.php:507) in /mypath/admin/login.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /mypath/admin/login.php on line 314

and if you look at the source code, there's a list of spammy links.  If I remove that piece of code from the include.php file, all this goes away.  But my question is, how do I get this to stop?
Last edited by upwithit on Wed Oct 21, 2009 2:36 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Spamming issue with include.php

Post by jmcgin51 »

you have been hacked.  Somewhere in your installation is a script that continues to append the hacker's code to your include.php file.

You need to perform a clean install and restore your database from a know-good backup.

Also, please do not include the full server path to your site when you're submitting a post.  You can replace the exact path with something like /mypath/

Otherwise it's like giving out the exact location and combination to your wall safe in your house, and all the thief has to do is figure out your address and how to jimmy the front-door lock.
Post Reply

Return to “CMSMS Core”