Skip to main content
  • About
  • Services
  • Blog
  • Contact
A drupal website with a blog about SEO, Linux, PHP, and funny nerd stuff
Home » Blogs » chuck1's blog

The Most Basic Thing About Securing Drupal (or any CMS)

Submitted by chuck1 on Thu, 2010-08-12 13:03

I got that message today, Drupal admins know the one:

Critical security update required! Please check available updates to ensure the security of your server.

(or something like that...)

It's all in red and stuff, looks really intimidating, like, "Oh my God, what if the hackers have discovered this vulnerability before the Drupal development community did!"

First of all, that is highly unlikely so unless you just let your Drupal sites sit there for months on end without checking for updates, you're probably OK. Even if you have been lax, you can do a lot to secure a Drupal installation so that these messages really don't mean much. Of course you should keep your system up to date, but there are things you can do to make it so that even if you fall behind, you're probably gonna be safe from attack.

Anyway, you definitely want to turn on auto-notifications and update checking. This is especially true if you're running a site with a lot of bells and whistles. If you are running such a site, make sure you get auto-updates, and set them to be sent to your e-mail address so that you find out within minutes when things need fixing.

Third-party modules can open up lots of cans of worms. So can third-party themes which is why you should, generally, stick with the basic ones or develop your own. That's the first rule of thumb: Keep it as simple as possible.

*(Developing your own modules can be dangerous, by the way. The ones offered by communities of developers are going to have more sets of eyes on them and will therefore be more secure.)

It turns out that this latest security update didn't really affect my sites. The vulnerabilities were only relevant to sites that might have users with some form of escalated privileges that I don't allow to anyone, including clients, or using modules that my sites do not.

Can you guess the Golden Rule?

Don't let anyone interact with your site if you're not monitoring on the regular. If people are interacting with your site, severely limit what they can do.

It's been that way with computer security since UNIX was first invented in 1971 or whatever. Regular users are not allowed to do jack sh!t. Only trusted admins can do that. The first line of defense is a very strong administrative password that changes with some regularity. If your system is compromised, this narrows down the list of suspects and vectors of attack.

Anyway, back to Drupal (and any other CMS, for that matter)...

The comment form in Drupal is pretty rock-solid in filtering stuff out, but if you're letting people post pictures, locations, or -- God forbid -- upload files, you're taking risks, no matter how up-to-date you may be. Do not allow the "Full HTML" posting privileges to anyone who does not have admin-level privileges. You're asking for trouble if you do that. Again, Drupal is pretty solid here, but an ounce of paranoia is worth a ton of headaches in unwinding problems with crackers.

If you keep to the Golden Rule, even if you are lax in keeping Drupal (or your CMS of choice) up to date, you can rest easy. I know it might seem obvious, but it is a good idea to audit your sites and make sure you're not letting anyone do anything that they don't need to do.

Share this
  • Drupal
  • Security
  • chuck1's blog

Comments

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <strike> <i> <b> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options

I currently have two e-books published and available from Amazon.com. Never mind the cheesy do-it-yourself cover art -- you need to read these.

How to Make Money as an Internet Publisher
Find out if you have what it takes to make the Internet spit money at you. It's not easy. It's not something anyone can do. If you do have what it takes, this book will show you the way. If you don't, you're better off finding out now.

We Are Water (plus a few songs for dolphins)
A priceless poetry chapbook sure to make your day. Only $2.99!

Popular content

Today's:

  • Auto Blog Samurai - Get Rich Quick Polluting the Internet
  • Secure PHP: Sanitize form input to protect against XSS

All time:

  • Moving a Drupal site to a new domain or subdomain
  • Demystifying the Weighted Mean
  • Protect Against XSS Attacks

Last viewed:

  • This site works fine in mobile browsers
  • Attain Bliss and Easy Money
  • It's been a while
  • How 'bout those Rockies!
  • Spring's just around the corner!
Copyrights to all content in the domain http://chucklinart.com are owned by the users who posted. All opinions are owned by the users who posted them and do not necessarily reflect those of the site's operators. The site itself is Copyright © 2006-2011, Charles Linart