888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

February 7, 2008

Security is fast becoming the buzz word around WordPress and so I feel I need to get better acquainted with it. I will hold my hands up to the fact that it isn’t the area I am most competent in. With that in mind I have been considering a few security based plugins, one of which I want to introduce with this post.

I have produced a test plugin but despite it doing what I intended, I think, I am not entirely convinced it is actually beneficial. In this respect security and accessibility are similar in that despite good intentions you could just end up churning water and have no really impact.

The plugin is derived from Matt Cutts’ post in which he suggested using .htaccess to limit access to a particular IP address. This was generally commented on as good in principle but slightly defeating the object of web based services.

The general idea is that a user can tell WordPress that they are at the home IP address, and WordPress will then save this IP address along with a password.

If the user logs on from a different IP address then they need to enter their normal password, plus, an additional password, which, in theory, should be different. Obviously it shouldn’t be used with Dial up accounts.

My confusion is really over how useful this actually is. I don’t know how passwords are gathered. I would presume passwords are more vulnerable when logging onto a different computer and in that case why wouldn’t they just gather two passwords instead of one? If you are in the database already then you can do what you want regardless so it won’t stop that. Is there a situation where this would be useful?

You can download a copy of the concept plugin here.

To use it log in as normal, go to your profile, and enter a password in the box at the bottom.

Converting Wordpress Themes To Habari
Habari timthumb?
one comment
page 694
Fun With Sidebar Tabs Styling
Tabs with html css on same page javascript?
2 comments
page 336
Using Your Own Url Shortener
How to have own url short?
4 comments
page 1190
Post Image The Easy Peasy Way
Insert conditional image php wp?
26 comments
page 1065
Using Your Own Url Shortener
Run short url using htaccess?
4 comments
page 1190
How To Add Sidebars To A Theme
Wordpress sidebar above main sidebars?
11 comments
page 1053
Html 5 Gallery
Html5 simple wordpress theme?
6 comments
page 1305
Dont Mess With My Toot Toot
New posttype not displayed wordpress?
16 comments
page 599
Quick N Dirty Replacement Text
Wpupdatepost object?
no comment
page 122
Updating Code Snippets Here
Fun wordpress plugin?
one comment
page 1338
How To Add Sidebars To A Theme
Wp register sidebars?
11 comments
page 1053
Updating Code Snippets Here
Wordpress fun plugins?
one comment
page 1338
Html 5 Gallery
Html5 wordpress theme?
6 comments
page 1305
Post Image The Easy Peasy Way
Get post images?
26 comments
page 1065
Post Image The Easy Peasy Way
Wordpress get first image large?
26 comments
page 1065
Using Wordpress As A Php Framework
Wordpress create your own framework?
2 comments
page 335
Improve Your Typography With Plugins
Wordpress typography plugin?
one comment
page 721
Quick N Dirty Replacement Text
Dirty replacement?
no comment
page 122
How To Add Sidebars To A Theme
How to add pages in footer wordpress?
11 comments
page 1053
Using Your Own Url Shortener
Tiny urls htaccess?
4 comments
page 1190
Post Image The Easy Peasy Way
How to post all gallery images in one post wordpress?
26 comments
page 1065
Post Image The Easy Peasy Way
Get attachment by post?
26 comments
page 1065
Html 5 Gallery
Html 5 tab?
6 comments
page 1305
Wordpress 25 Exif Fields
Exif info display wordpress?
12 comments
page 230
Six Million Ways To Die Choose One
6 million ways to die so i chose?
14 comments
page 1128
How To Add Sidebars To A Theme
Wp register sidebars?
11 comments
page 1053
Fun With Sidebar Tabs Styling
Funwithsidebartabs customize css?
2 comments
page 336
My Experience Of Flexx
Flexx theme review?
4 comments
page 1026
Wpunlimited The Ultimate Wordpress Theme
Ultimate admin theme?
3 comments
page 1141
Quick N Dirty Admin Login Screen
Css login screen?
no comment
page 128
Fun With Sidebar Tabs Styling
Css tabcontentcontainer?
2 comments
page 336
Html 5 Gallery
Html 5 e wordpress?
6 comments
page 1305
Dont Mess With My Toot Toot
Toot html5?
16 comments
page 599
  1 query every 1311 seconds, updated 1 seconds ago.
Friday, 7am
 __
(__)
   `

 Andrew Rickmann

Christoph, I agree with you. I have been learning a lot myself in just thinking about the subject.

It is certainly true that no plugin could ever be the silver bullet (or even a bit of one) if the server itself presents vulnerabilities.

The point you make about insecure networks is also a good one; it doesn’t really matter how many passwords you use if they can all be captured through the network. That was my main concern about this plugin. I’m not convinced it actually adds anything, except a misplaced sense of security, to the party. But it is worth exploring if only to confirm that.

I also think a lot of people are a little scared of using .htaccess for security because it feels like a solution that is out of their control, i.e. there isn’t any code to speak of, it just does it in the background.

I don’t think they should be, but the unknown is usually the scariest thing.

Thursday, 10pm
 __
(__)
   `

 Christoph Voigt

The idea of the plugin isn’t bad, security always matters. However, I found teaching how to work with things related to security generates far more security than just installing several plugins to “harden” WordPress (or any other webservice, application, you name it).

In this case specifically: using .htaccess to restrict access to /wp-admin/ for a specific IP is definately a security measure that makes sense – if you use a passwordfile in a directory that is not accessible by an url. Else the hashed passwords can be cracked within minutes (depening on length and strength of the password). A good read is this: http://www.securityfocus.com/infocus/1368

Like I said, raising the level of awareness generates far more security than any super-duper plugin or security measure could probably do. For a start, I would not advise anybody to log into their website from a network you can’t trust in the first place (public hotspots, shared connection to the net etc.) Wordpress does not rely on SSL by default, so your password is moving through the network anyway just waiting to be sniffed.

Also, hardening your WordPress install is not going to solve all your security problems. You have to keep WordPress always up to date – as well as your server OS, database software, webserver, PHP etc. etc. etc.

Security is more than something you can download and apply – you have to understand it first.