un-excogitate.org

Dailies

Photos

Categories

Monthly archives


Search




Two-Factor For All

…almost.

So, in the spirit of bringing ubiquitous two-factor authentication closer to the masses (because excuses are disappearing) I spent a few hours hacking together a Wordpress hack (plugin) that integrates Twitter’s direct message capabilities to provide a one time PIN when you log in to your Wordpress administration screen. The intent being that direct messages get sent to your mobile via SMS, hence SMS one time PIN generation, mimicking SMS PIN authentication as used by financial institutes.

Of course, by using this hack you introduce a number of dependencies, primarily that being Twitter’s service itself which doesn’t have a great track record, but also your mobile phone’s network. In addition, the fact that it is a hack, not a plugin, is also potentially a pitfall. The last issue is because I don’t actually know how to write a Wordpress plugin properly. Not for lack of trying, I can’t help it that one of the “pluggable” functions in Wordpress didn’t want to be overloaded. In fact, I’m not entirely sure that functions in version 2.6 can be overloaded(?).

I also have to admit that whilst the motivation is to introduce a second factor of authentication, such as a thing you know (your password) and a thing you have (your mobile phone), by using Twitter’s services you don’t actually need a mobile phone to get your PIN. So if you check your direct messages via the web interface, it’s actually a one-by-one factor authentication, not really two-factor, and we all know what 1 x 1 equals don’t we? But you get the point.

In regards to the good work done on the Phonefactor plugin I just want to comment that I was half way through this hack when I read about Phonefactor and it didn’t support calling Australia, so that meant I was out. The quality of their work is great though.

I’ll release the details soon..

Posted by Christian 4 August 2008


7 Responses to “Two-Factor For All”

Gillis Says: August 5th, 2008at 3:54 am

Alternatively, for the phonefactor verification you could use something such as skype;grandcentral,or some other VOIP websolution so that you get around the “cant call to australia” problem.

Christian Says: August 5th, 2008at 7:40 am

@Gillis Yeah I’m aware of some methods to get around the Phonefactor to Australia problem. I was just having too much fun tinkering with Wordpress :D

Gillis Says: August 5th, 2008at 8:54 pm

@Christian I actually really enjoy reading about what you did- Great Idea; Does it work in practical implementation?

Christian Says: August 5th, 2008at 9:01 pm

@Gillis Lets just say that it’s been working for past few weeks, including just then when I logged into to approve your comment :D

Of course, I’m awaiting the all too familiar “fail-whale” (http://failwhale.com/) to show me who’s boss!

Alex Says: August 26th, 2008at 4:23 am

That is the most awesome thing I’ve ever heard of. An AIM (Skype/whatever) bot would be interesting, too.

Can’t wait to try the plugin.

Christian Says: August 27th, 2008at 9:08 pm

@Alex Twitter USED to have an Aim/GChat bot. But I think it died, just like the Australian Twitter SMS functionality. And seriously, this is more a hack then a plugin :P

[...] a few months ago I mentioned that I’d been working on a plugin (more what I’d like to call a hack, please anyone out [...]

Post A Comment