Simple Machines Community Forum

Simple Machines => SMF Developers' Blog => Topic started by: Dragooon on December 03, 2014, 03:05:27 PM

Title: Two Factor Authentication in SMF 2.1
Post by: Dragooon on December 03, 2014, 03:05:27 PM
Hello all!

It's been a steady two weeks since we released the first beta of SMF 2.1 and since then we've had mostly positive feedback I think, we have fixed a few bugs and did a few improvements marching towards Beta 2 and a part of that was Two-Factor Authentication which I implemented over last week.

Two Factor Authentication adds an additional layer of security over your usual username and password, it works by pairing a device using a compatible app to your account which would then be required whenever you wish to log-in again into the forums. This allows security against those who even managed to steal your username/password, blocking them off as long as they don't have the paired device. For more technical details of the implementation, have a look at the original pull request (https://github.com/SimpleMachines/SMF2.1/pull/2547). SMF 2.1 is compatible with apps listed on the Wikipedia entry here (http://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm#Client_implementations), allowing you to pair with any one app of your preference.

Admins get the option to disable, enable (default) and force 2FA for all users. Although I personally would not recommend forcing 2FA for all since it does require a separate dedicated device but if you wish for that, the option is available. If you're impatient you can checkout GitHub master (https://github.com/SimpleMachines/SMF2.1) right now and see it in action (Not recommended for production) or wait for Beta 2 and further releases. With SMF 2.1 we have juiced up the security by a good margin, hopefully you'll like that.

I've attached a few screenshots of it in action, subject to change. These are from the latest build as of this post and I was using Authy for Android (https://play.google.com/store/apps/details?id=com.authy.authy&hl=en) as a client but I couldn't take it's screenshots since it wouldn't allow me.

Thank you!
Title: Re: Two Factor Authentication in SMF 2.1
Post by: vbgamer45 on December 03, 2014, 03:09:09 PM
Nice! Great idea thanks for adding it to 2.1 first forum software that I know of that has it!
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Arantor on December 03, 2014, 03:19:13 PM
Very much approve of implementing TOTP 2FA.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Kindred on December 03, 2014, 03:51:59 PM
excellent job, dev folks!
Title: Re: Two Factor Authentication in SMF 2.1
Post by: CountryLady on December 04, 2014, 03:58:30 AM
Sweet~! Many Thanks to the Team.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Colin on December 04, 2014, 04:10:12 AM
Great!!
Title: Re: Two Factor Authentication in SMF 2.1
Post by: engrz on December 04, 2014, 04:18:04 AM
that is wonderful and secure
Title: Re: Two Factor Authentication in SMF 2.1
Post by: ziycon on December 04, 2014, 04:58:58 AM
Fair play, I'm liking security being given the attention it deserves.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Deaks on December 04, 2014, 11:59:48 AM
sounds good specially for any user with advanced access of any form that can be a potential security issue
Title: Re: Two Factor Authentication in SMF 2.1
Post by: saosangmo on December 07, 2014, 12:26:39 PM
Love you so much. I have used SMF for 8 years and this is the best software in security.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Masterd on January 01, 2015, 04:48:34 PM
Excellent news! SMF is really moving in the right direction. :)
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Antes on January 01, 2015, 04:55:32 PM
Perfect to see security improvements in software.

Quote from: saosangmo on December 07, 2014, 12:26:39 PM
Love you so much. I have used SMF for 8 years and this is the best software in security.

We love you too for being with us for such long time :)
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Powerbob on January 02, 2015, 10:17:06 AM
Well done, great news :D
Title: Re: Two Factor Authentication in SMF 2.1
Post by: karlbenson on January 02, 2015, 01:44:11 PM
Looking forward to it!
Title: Re: Two Factor Authentication in SMF 2.1
Post by: stmaxx on January 21, 2015, 06:52:19 PM
sorry I'm late,  BUT this looks Great!

regards,
maxx
Title: Re: Two Factor Authentication in SMF 2.1
Post by: hadesflames on March 01, 2015, 08:09:36 PM
I see the admin is able to force 2FA on everyone. I can see how that might be useful, depending on the type of forum you're running. But what would be even more useful is to be able to force 2FA on certain membergroups. For example, I wouldn't force it on all members on my forums, but I certainly would force it on Admins. I might also consider forcing it on membergroups with a lot of permissions, like global mods. So, I think an important feature to add would be to allow forcing of 2FA on different membergroups.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Kindred on March 02, 2015, 06:45:15 AM
unlikely to happen as a core feature....

that's a fairly niche request
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Steve on March 02, 2015, 09:05:40 AM
That's a shame. This is the first time I've read this thread and I thought the same thing as hadesflames ... it would be even better to force it on certain membergroups instead of or in addition to being able to select everyone.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Arantor on March 02, 2015, 05:33:35 PM
I'd be in favour of it as a core feature.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: LiroyvH on March 03, 2015, 05:53:21 PM
I can understand the need for such a feature, both from a perspective of security as user friendliness.
I'd be in favor as well. Up to the devs though. :)
Title: Re: Two Factor Authentication in SMF 2.1
Post by: JBlaze on March 03, 2015, 07:59:58 PM
I second the option of being able to force 2FA on a membergroup basis.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: margarett on March 04, 2015, 02:12:42 PM
I am playing with this possibility locally (BTW, 2STP for iOS works great!) and this is actually easy to accomplish :)
Either in core (I'll discuss it with devs) or as a MOD, this will be possible ;)
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Jamie96 on April 02, 2015, 01:08:13 PM
Found this when looking for a mod to accomplish the same thing. Too bad it will be an unholy pain in the ... to rebuild my forum and all its customizations for the new version. Shame.

Though for the future, I also say it would be a good core feature to enforce on a group basis, most of my membership's heads would explode if they had it forced on them, but it seems almost necessary for my administration to be secure.

I also would like to request that Yubikey be added to the providers...its what I was looking to use...phones die or you use an insecure web app, but my keys are always with me and plugs right into the PC I'm using. Yubikey is YOTP or HOTP though, not TOTP unless assisted by an app.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: LiroyvH on April 02, 2015, 01:14:36 PM
You can activate two-factor authentication with, for example, Google Auth on multiple devices as long as you scan the QR-Code with all of 'em or manually input the key.
Title: Re: Two Factor Authentication in SMF 2.1
Post by: margarett on April 02, 2015, 01:33:03 PM
Quote from: Jamie96 on April 02, 2015, 01:08:13 PM
Though for the future, I also say it would be a good core feature to enforce on a group basis, most of my membership's heads would explode if they had it forced on them, but it seems almost necessary for my administration to be secure.
The current version in Github already allows that ;)
Title: Re: Two Factor Authentication in SMF 2.1
Post by: lahmfan on October 31, 2016, 01:26:25 AM
is this only on 2.1? is there anything similar for 2.0.12? if not, when will 2.1 be available as a stable release?
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Kindred on October 31, 2016, 06:58:06 AM
this is only on 2.1
nothing like this is made for 2.0

2.1 will be released when it is ready
Title: Re: Two Factor Authentication in SMF 2.1
Post by: lahmfan on October 31, 2016, 08:58:45 AM
 ::)
I thought it was going to be released before it was ready
Title: Re: Two Factor Authentication in SMF 2.1
Post by: Antes on October 31, 2016, 10:50:56 AM
Quote from: lahmfan on October 31, 2016, 08:58:45 AM
::)
I thought it was going to be released before it was ready


We actually release it before its ready and call it BETA :P <3