php scripts being accessed within the modules directory...[SOLVED]
php scripts being accessed within the modules directory...[SOLVED]
Over the last few days the following page/script has been accessed:
/modules/FileManager/postlet/counter/index.php
by an external site that has NO links to my site, and no Google ads so it cant be coming from them either.
Could this be some sort of security issue, or could there be a legitimate reason?
Incidently, the site in question (http://oreap.org) does use cms as well, but dont know if thats just coincidence.??
/modules/FileManager/postlet/counter/index.php
by an external site that has NO links to my site, and no Google ads so it cant be coming from them either.
Could this be some sort of security issue, or could there be a legitimate reason?
Incidently, the site in question (http://oreap.org) does use cms as well, but dont know if thats just coincidence.??
Last edited by davids355 on Sat Aug 29, 2009 7:25 pm, edited 1 time in total.
Re: php scripts being accessed within the modules directory
(xxxxxx) has viruses... DO NOT GO THERE
I'm betting there is a problem here if it uses CMSMS as well....
Jeremy
I'm betting there is a problem here if it uses CMSMS as well....
Jeremy
Last edited by Rolf on Mon Apr 02, 2012 8:21 am, edited 1 time in total.
Reason: removed hacked code/links
Reason: removed hacked code/links
Re: php scripts being accessed within the modules directory from remote site
What steps do I take from here then?
See attached images of recent came from stats from yesterday and today

See attached images of recent came from stats from yesterday and today

Re: php scripts being accessed within the modules directory from remote site
Do you have an IP-address of that site in your stats? You can block it...What steps do I take from here then?
Grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: php scripts being accessed within the modules directory from remote site
done that this morning! hopefully that should sort it
Re: php scripts being accessed within the modules directory from remote site
Have been doing some research into this issue, I navigate to the directory that is being accessed by this site:
/modules/FileManager/postlet/
there is a lot of files in this directory, some suspicious, in particular massmail2.php which sounds very suspicious!!
You can see the script here :
http://www.shareworld.co.uk/modules/Fil ... smail2.php
When I check this directory against a full cms filelist there are only 8 files in that directory but on my server there are 22 files.
Seems my site may have been compromised.
Questions:
What should I do?
Can I delete files in this directory?
Can I investigate further??
/modules/FileManager/postlet/
there is a lot of files in this directory, some suspicious, in particular massmail2.php which sounds very suspicious!!
You can see the script here :
http://www.shareworld.co.uk/modules/Fil ... smail2.php
When I check this directory against a full cms filelist there are only 8 files in that directory but on my server there are 22 files.
Seems my site may have been compromised.
Questions:
What should I do?
Can I delete files in this directory?
Can I investigate further??
Re: php scripts being accessed within the modules directory from remote site
What it the version.. have an .htaccess file? what is it... what is the server ... please post all the info you can get, logs and all...
Cheers
Jeremy
Cheers
Jeremy
Re: php scripts being accessed within the modules directory from remote site
Ok, Im just going out now so I will post all the info when I get back.
When you say logs what do you mean?
If you give me instructions Il do it.
Just to give a little info, I am running centOS server, latest addition of cms, I have htaccess file (just been trying to impliment security into it as per cms wiki on security but getting errors.
When I get back in a few hours I will post extensive info...
When you say logs what do you mean?
If you give me instructions Il do it.
Just to give a little info, I am running centOS server, latest addition of cms, I have htaccess file (just been trying to impliment security into it as per cms wiki on security but getting errors.
When I get back in a few hours I will post extensive info...
Re: php scripts being accessed within the modules directory from remote site
Error logs, access logs, any server logs you can get about this... Hope this helpsdavids355 wrote: ... When you say logs what do you mean?...
Cheers
Jeremy
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: php scripts being accessed within the modules directory from remote site
Most modules shouldn't need to be executing php scripts directly...
TinyMCE and FileManager may be two exceptions though.
However, you may want to look at copying the .htaccess file from uploads into the modules directory
and then tweaking it for those exceptions.
Note to Sil: Lets remove these entrypoints.
TinyMCE and FileManager may be two exceptions though.
However, you may want to look at copying the .htaccess file from uploads into the modules directory
and then tweaking it for those exceptions.
Note to Sil: Lets remove these entrypoints.
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.
Re: php scripts being accessed within the modules directory
OK here goes:
I have cmsmadesimple latest version (1.6.4)
Modules:
bmenu
captcha
cgextensions
cgsimplesmarty
cmsmailer
comments
customcontent
faqx
filemanager
forum
frontendusers
glossary
menumanager
modulemanager
mysqldump
news
nusoap
pifaq
printing
questions
rsstohtml
search
selfregistration
thememanager
tinymce
treemanager
(most of these are latest versions)
Server: CentOS dedicated root server
Here are the pages in question that arnt in the origional file sturcture:
massmail2.php
[PATH TO UPLOAD DIRECTORY]w.php.php3
dc.pl
ext_javaupload.php
I have cmsmadesimple latest version (1.6.4)
Modules:
bmenu
captcha
cgextensions
cgsimplesmarty
cmsmailer
comments
customcontent
faqx
filemanager
forum
frontendusers
glossary
menumanager
modulemanager
mysqldump
news
nusoap
pifaq
printing
questions
rsstohtml
search
selfregistration
thememanager
tinymce
treemanager
(most of these are latest versions)
Server: CentOS dedicated root server
Here are the pages in question that arnt in the origional file sturcture:
massmail2.php
Code: Select all
xxxxxxxxxxxxxxxxxxxx
Code: Select all
xxxxxxxxxxxxxxxxxxxxx
dc.pl
Code: Select all
xxxxxxxxxxxxxxxxxxxx
Code: Select all
xxxxxxxxxxxxxxxxxxxxx
Last edited by Rolf on Mon Apr 02, 2012 8:24 am, edited 1 time in total.
Reason: removed hacked code/links
Reason: removed hacked code/links
Re: php scripts being accessed within the modules directory
Last edited by Rolf on Mon Apr 02, 2012 8:25 am, edited 1 time in total.
Reason: removed hacked code/links
Reason: removed hacked code/links
Re: php scripts being accessed within the modules directory
CONTINUED:
page-structure.php
Logs:
access log (is it ok to post this?):
xxx
Anything else you need please let me know...
page-structure.php
Code: Select all
xxxxxxxxxxxxxxxxxxxxxx
Logs:
access log (is it ok to post this?):
xxx
Anything else you need please let me know...
Last edited by Rolf on Mon Apr 02, 2012 8:26 am, edited 1 time in total.
Reason: removed hacked code/links
Reason: removed hacked code/links
Re: php scripts being accessed within the modules directory from remote site
Sorry about the massive posts, just giving as much info as pos. Calguy, looked at htaccess file in uploads, take it that just denies direct access to all php scripts right? So Id have to copy that to modules but then allow access only to filemanager? Having said that, the issue does seem to be with file manager...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: php scripts being accessed within the modules directory from remote site
uhm, what version of CMSMS are you running?
the postlet stuff was removed from CMSMS long ago.
the postlet stuff was removed from CMSMS long ago.
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.