QUOTE (lisa @ Dec 21 2005, 08:34 PM)
QUOTE (Nobody @ Dec 21 2005, 03:16 PM)
I had something similar happen a few months ago. I noticed my directories were 777, so I changed them to 755. However, when I rebuilt the site, all of the directory permissions changed back to 777. Any ideas why that happened?
In mt-config.cgi, change (and uncomment):
HTMLPerms 0644
UploadPerms 0644
HTMLUmask 0133
DirUmask 0022
Then MT will use those permissions when you rebuild and not revert to 777.
QUOTE
Also, there may be a bigger evil going on with my site. Recently I stumbled upon a subdirectory in my /archives/ that held gigs(!) of bittorrent files. Scattered throughout the top level and archive directories of my blog were wayward .php files that I never placed there. They had names like download.php, update.php, etc.--PHP "control" files that apparently allowed torrent sharing for those unknown-to-me hidden files on my site. I was able to delete the .php files, but I can't delete the actual downloadables or the directories they are within. Am I alone in this problem, or is this some new MT hack technique that I have not heard of until now?
That's pretty scary. I haven't heard anything about it before, but you should post this part in a new thread so we can better track it. (That's my opinion -- you can leave it here if you prefer.)
All of the above here seems to relate to a problem I'm having today. My host has alerted me to the same type of issues, my site being hijacked due to the vulnerabilities of the 777 directories. I too had random links on individual archives pages spread throughout my site. It looks like my entire site has been compromised and they are going to have to implement a backup made months ago to undo what damage has been done. This is new territory for me and I'm not sure exactly what to do to keep it from happening again - but I DO want to make sure it is known that the same things happened on my site due to the 777 vulnerabilities.
So, I'm assuming once I get everything up and running again that you would suggest changing all directory permissions and then changine the .cgi file as mentioned above so it won't reset? Will that keep MT from making archive directories 777 again? I apologize if I don't explain myself well, I don't know the lingo.