Mango Blog Setup Folder Security

Posted By: Mark Aplet 8 Comments June 29, 2010

Over the last few days I have found an alarming number of 404 errors in my coldfusion server logs. They all had one thing in common. A missing setup.cfm page. Naturally we don't want 404 error's right? In this case it's a good thing.

It is my belief that someone, or some group of people are testing the security of Mango Blog by looking for the setup directory that comes with Mango blog when you first download and setup your blog. The installation instructions state that once your blog is setup correctly, you should remove the setup folder from the admin, to prevent no-gooders from doing anything malicious to your site.

I went to the mangoblog.org site and took a look at a long list of people in the "Who uses Mango" section of the site and most everyone still had the setup directory intact. I was actually really surprised to see the carelessness of so many people. Especially by a few people that SHOULD know better than that.

What's worse is that I was able to add a new table to one unlucky site by guessing the username, password, and datasource! And it wasn't very hard! How lazy are we people!? Do we have to get hacked before we wise up? This is just plain ridiculous! I am not even a security person and was able to compromise one system in just a few minutes. Imagine what a security expert could do with all their tools and knowledge

Mango Blog owners. Remember you need to delete the setup folder after installation has been verified. It's obvious to me that people are checking for the existence of the setup.cfm so we best be on our toes.

My Solution

Here is what I am proposing as a solution. I am interested in your feedback.

The idea I had was to have the admin overview page check for the existence of the folder and if it finds the setup folder intact it could warn you that leaving the setup folder on the server is a security risk. It should then offer the admin user a chance to delete the folder. I think this is a better method as it provides the blog administrator a good chance to verify that things are working before deleting the folder. It also gives continual reminder to those that forget to delete the folder on their own.

Here is a sample design that I had. Maybe there is a better way to do things. I just thought I would get the ball rolling and see what can be done.

A plugin could easily be built for this, but I honestly feel it should be apart of the core install and not a plugin provided by an end user. That would pretty much defeat the purpose really.

Tags: Mango Blog · Opinions & Rants

8 comments so far ↓

  • 1 Adam Tuttle // Jun 29, 2010 at 12:30 PM
    I totally agree, Mark. If Laura is cool with it, I can even add this to admin myself.
  • 2 Peter Anselmo // Jun 29, 2010 at 4:27 PM
    Yeah, I just finished installing RoundCube Mail on my server, and it does just that - Gives you a Big 'ol warning if you don't delete the install folder.

    I also find it interesting what shows up on server logs. I get TONS of generic hits for "/admin", "/install", "/mail", "/bin" and others.
  • 3 John Sieber // Jul 1, 2010 at 9:10 PM
    Great idea and thanks for spreading the word. It will save some people some grief down the road.
  • 4 marc // Jul 13, 2010 at 2:26 PM
    I appreciate the information.
    I found this blog while searching for security on the Mango Blog.

    What I am wondering is how do you protect yourself from malicious posters or bots that post ads and that kind of stuff.
  • 5 Mark Aplet // Jul 13, 2010 at 2:40 PM
    This might be a little off topic, however it is about Mango Blog security so I will allow it in this case.

    There are several plugins available to protect against comment spam. The CFFormProtect (included with your mango blog install) is simple and effective. It works best if used with the Akismet option enabled. Also included is Comment Moderation, that automatically puts comments into a moderation status allowing you to approve them before they go live.

    Additional plugins can be found on the Mango Blog website http://mangoblog.org/docs/plugins that can also work to secure your blog.
  • 6 Laura // Jan 24, 2011 at 10:25 AM
    For your information, the setup for 1.6 now contains the option of deleting the setup folder. Thanks to Adam for adding that. :)
  • 7 Mark Aplet // Jan 24, 2011 at 10:42 AM
    That is great news! Thanks Adam for adding that.
  • 8 Adam Tuttle // Jan 24, 2011 at 1:10 PM
    You are all quite welcome. :)

Leave a Comment

Leave this field empty:

Theme Design By Mark Aplet

Super Powered by Mango Blog