Photopost site hacked
Yesterday my host performed an emergency shutdown of my site because a large number of malicious php files had appeared in my Data directories. Here is a list of the files :-
I have deleted the suspect files and my site is now up but how to stop this happening again? Site is running standalone 7.1, all latest files.
You would need to find out where the malicious thing is happening. The files are appearing in the data directory because it is 777 permissions so I assume whatever attack is happening is scanning your server folders for directories to try and place files in.
If your integrated with vb then vb mods are the number one cause of this.
My data directories are 755 as per my host's policy, and it's a standalone, no integration, no mods. I'm assuming that the malicious files were uploaded somehow since they appeared in the data directories, but I haven't figured out how as yet.
These are my allowable file types :
and the Flash uploader is on.
I had this .htaccess file in the data directory:
ErrorDocument 404 //the_zone/data/include.php
That doesn't appear in the current build as far as I can see, maybe a relic from previous versions? I've removed it anyway, doesn't seem to have affected anything. Could that have been a problem?
You can not upload a php file through our application nor would they appear in every last directory the same files over and over. Over the years here I know you have a vbulletin mod which has a security issue and causing files to be uploaded to any directory it can find on the server which is uploadable to. Like years ago Michael had the same exact issue you had and he researched his issue and found it was some flashchat mod he was using on his site for vbulletin.
Basically you need to find out where your security hole is. We know its not Photopost. We typecast all variables for security and there is even code in our application that only allows image files to be uploaded so you can not rename some php file to an image name and upload or even upload a straight php file. You can try and see what I mean.
There is one common denominator with the few people who have reported this issue over the years. They all run vbulletin and they all have various vbulletin mods installed.
Sorry Chuck, but I do not run vbulletin and never have done. Must be mixing me up with someone else! I'm just trying to understand how these files could get onto my site, not apportioning blame here :cool:
Well I did not say you had vbulletin only guessing here since those are the only reports we have had and I am suming up what was found out. I did not see a site link above so I can not tailor any response specifically to your site. ;)
Anyway to sum up what I have already said. The type of attack that I have seen over the years is this. A suspect program that has a security flaw allows a user to get in and scan your site folders for folders that are writable and they drop in specific files that can assist them in trying to get full access. You will find these types of files in any directory on your server that is writable to it.
Aside from that without lots more info I can not say more than that. Do you have any of these files? Have you checked your other directories?
I've checked and can't find any suspect files in any directories, so will have to hope it doesn't happen again. Meanwhile I've posted a question in the "How do I" section.
Okay no problem
|All times are GMT -5. The time now is 10:29 AM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0