Security

Setting Up Drupal 7's Private File System

Submitted by mgifford on

I just updated the docs on drupal.org and discovered that D7 will take care of the permissions.

A screenshot of Drupal 7's file system config pageI was working on my first Drupal 5 to 7 migration earlier today and ran into an issue with the file system I hadn't needed to define previously. Drupal 7 has both a public and private file system path that you can define. This is great for security as you can easily divide what files you want available to the anonymous public and which they should be denied access. Drupal can be used to control delivery to users with appropriate permissions.

This is great, but there aren't enough active descriptions out there of how to do this yet. The DrupalHandbook of the Drupal 7 File System is pretty clear, "Files in the private directory are not accessible directly through the web server; when private files are listed, the links are Drupal path requests," is pretty clear, but doesn't provide a practical example.

I posed the question on Twitter, "if a Drupal 7's root is /home/drupal & the public files are in /home/drupal/sites/example.com/files where should the Private file system path be?" Following up by stating that from purely a backup perspective it would be nice if all client files were just in /home/drupal/sites/example.com/private and Apache is used to exclude access.

GhostNet & Creating a Culture of User Security

Submitted by mgifford on

Quick update, OpenOffice now ships with macro security set for 'High' so that "Only signed macros from trusted sources are allowed to run. Unsigned macros are disabled". By going to Tools -> Options -> OpenOffice.org -> Security -> Macro Security You can also set the security level to 'Very High' so that "Only Macros from trusted file locations are allowed to run. All other macros, regardless whether signed or not, are disabled." So if you are concerned with these articles, use OpenOffice.

Listening to CBC's Search Engine Podcast (which was removed by CBC sadly) I was reminded again of how much our perceptions of security have changed and how much organizations and activists need to do to be mindful of the people they are working to support. For those folks who missed the news on this item, the office of the Dalai Lama brought in the Munk Centre for International Studies' Citizen Lab to investigate some issues they were having with their computers. Turns out that an Microsoft Word document containing a Trojan horse that allowed the attacker to list and access any documents available to their computer (including on their networks), any keystrokes made on that computer and even allowed the attacker to turn on the victim's webcam and see/hear their conversations. This large-scale cyber spying operation was given the name GhostNet.

Now this has been possible for a long time, in fact the code for the Trojan horse that was used can be downloaded from the Internet and manipulated by hackers for all kinds of purposes. What's new is that the folks from the Citizen Lab were able to backtrack and access the control server that was directing these hacks. They were also able to identify that the attackers seemed to have a political target as this Trojan horse was distributed through crafted email and attachment concerning Tibet. Now given that the control server was hosted in China, that the interface was written in Chinese and that China has a strong interest in monitoring activists concerned about their occupation of Tibet, it is most likely that Chinese intelligence is behind this. This is a concern, but not my main one.

Spring Cleaning Your Drupal Site

Submitted by mgifford on

Many people celebrate spring by doing an intensive cleaning of their house, getting rid of stuff that isn't needed any more, putting away the winter clothes/jackets and cleaning in those places that you don't get to on a daily basis.  It occurred to me that most CMS admins should take on a practice like this at least every year when I started looking at broken links. 

Checking for Bad Links

Now the dead links are inevitable in any website that's up for any length of time.  I was looking for a way to provide a list of broken links when I came upon the Dead Link Checker site.  Just read that if the spider finds a link towards their site, the bot will crawl deeper into your website, cool. This trolls through a site for up to 45 minutes collecting and looking for broken links.  Quite a useful service, and like so many on the web it is free.  There are other ways to check an entire site's links, but generally most free services only allow you to check by the page.  That's useful for any site and is pretty painless (other than tracking down and deciding what to do with the old links). 

Canadian Government Web Security Problems

Submitted by mgifford on

One of the reasons given about why the government should worry about open source software is security.  I'm rather tired of this argument, so after hearing it one too many times, I decided to take some action. 

The concern is that if a piece of software is open for everyone, including hackers, it will be more vulnerable. This has been shot down any number of times, with some of the best known arguments stemming from the idea that many eyeballs will give you better confidence in the security of your software. Others security experts that have argued that good open source software is as secure as proprietary software and will likely have fewer bugs

However, most arguments are looking at security on an application level rather than a system level. When looking at websites, you have to look at all of the elements which a hacker can gain access to, not just a single application. 

It is well known that every software project will eventually have security issues that need to be addressed through patches or newer releases of the code.  If there isn't a techie with authority, time and knowledge to apply those security patches in a reasonable time-frame, then you won't have a secure site for long.

Gathering Input About Government Procurement of Open Source Software

Submitted by mgifford on

I attended an excellent talk last night about GCPedia that was presented by Jeff Braybrook, Deputy Chief Technology Officer for Canada at a Third Tuesday Ottawa Gathering. It was excellent to hear more about the history of the adoption of the open source tool Mediawiki within the Government of Canada. Jeff described Canada's CTO office as being "Hawkish about open source", and wanting to use it as much as possible. At a time when procurement officers and IT departments are still questioning whether or not open source can be used within government, this was great news.

His view that wiki's would become as integrated in the government workplace as the phone and email were very refreshing too. Grabbing notes off of Joseph Thornley's Tweet, "Jeff Braybrook wants to open source not just because it is cheap - but also for its mentality: participation; cooperation; standards." Doug wrote up a detailed post about the event here in his blog.

Databases, Government and Security

Submitted by mgifford on

I had to write a short note about a concern that was passed along to me about having public facing websites having databases on them.  The opinion passed along to me was that it was insecure to have a database driven dynamic website for a public government department because the database made the whole system less secure. 

I just needed to state clearly that it is the scripting languages that interact with the browser that are the main point of concern, and these are well used in most GoC sites.  Yes, if the .asp or .php scripts that are driving a page were badly written or just not monitored for security issues, adding a database just adds to the possible exploits.  However the problem isn't the database it's insecure code and there is a difference.  All the hacks I've seen have actually expressed through the file system, not the database. 

Our Plans for Drupal Upgrades

Submitted by mgifford on

We had some feedback from a client earlier this week who was worried about adopting Drupal now because she was told that there was going to be a new release out soon that would make the previous ones out of date. I figured that it was important to convey OpenConcept's approach to Drupal upgrades so that it is possible for organizations to budget for future expenses.

Badware Prevention and Website Security

Submitted by mgifford on

Google's Warnings
So everyone knows that the Internet has people out there looking to gain control of your computer using some innovative new malware program that they developed. There are all kinds of reasons to do this, most recently I heard of malware that was targeting Tibetan solidarity NGOs in order to track their communications with people within Tibet. So although sometimes lives are on the line, most of the time though it is just to grab credit card information or to use your computer as a spam bot.

Internet Metaphors - No, It Really Isn't a Safe Space

Submitted by mgifford on

I was talking to one of my clients the other day and he wanted to know if his website was like a car where you can put it in a garage for six months & know that you can come back in six months and just run it as you would the last time you started it up. I played with this metaphor a bit. We've talked about doing a car-free example as well in the past, but for the moment I'll work with this one.

Open Source Security Fears

Submitted by mgifford on

The CIA Uses Plone!Earlier this week I went out to Green Drinks Ottawa and had a really good conversation with a table of committed and very experienced environmentalists. Open source came up in conversation, and one of the people brought up security concerns as the main reason that their organization had decision not to use open source software, but rather to develop custom applications. I brought up a couple examples of how pretty much every big corporation is using open source software these days and are investing in its long term development.

Pages

Subscribe to Security