Bitcoin Forum

Other => Meta => Topic started by: DeathAndTaxes on May 09, 2013, 05:34:16 PM



Title: Enhancing the security of this forum by integrating two factor authentication.
Post by: DeathAndTaxes on May 09, 2013, 05:34:16 PM
Given the volume of deals and other economic activity which occurs on this forum compromising an account is a potentially lucrative attack.  Where there is the potential for profits, attacker are soon to follow.  I hope the mods/admins strongly consider upgrading the forum to allow the use of 2FA. Google authentication is one easily implemented option and is based on the open standard RFC6238.  Services like DropBox & LastPass are Google authentication compatible.

http://en.wikipedia.org/wiki/Multi-factor_authentication
http://en.wikipedia.org/wiki/Google_Authenticator
http://tools.ietf.org/html/rfc6238

One example of a recent compromise:
https://bitcointalk.org/index.php?topic=199747.20

I use 2FA for all exchange accounts (both personal and company) as an added layer of security despite using large unique random passwords for all websites.  An attacker could do good damage to my reputation and result in financial losses for other forum members if they compromised my account identity.

In this modern age simple passwords don't provide the level of security they once did.  One should adopt secure practices like using unique passwords (don't repeat across sites), ensure passwords are not on any known/compromised password list, and ensure passwords are long with sufficient entropy.  However these measures only provide protection against indirect attacks where attacker attempts to brute force (to include dictionary attacks) the password.   With users adopting longer more complex passwords and sites getting better as hashing and salting password lists this attack vector is becoming harder and less common.  The more direct attack is to steal the password through 0-day exploits, malware, or phishing sites.  The only true defense against that is a second factor.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: gweedo on May 09, 2013, 05:54:23 PM
I have to agree, this would be something that would benefit the forum. I know I personality, if someone got my exchange account, I probably be upset. But if someone got into my forum account that would be 100000x worst not only for me, but people in the forum who can be scammed.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: edd on May 09, 2013, 06:13:24 PM
I worry that this might give some a false sense of security if dealing with forum members. What if I don't utilize the 2 factor auth and my account gets hacked? Potential victims may feel they have no reason to question suspicious or odd behavior from a previously trustworthy individual, just assuming that the chance of a hack is nil.

I guess a warning should be given when creating an account: "Two factor authentication highly recommended! The reputation you save may be your own."


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: 2112 on May 09, 2013, 07:22:28 PM
I'm going to meekly oppose this. Please don't go deeper into mixing the trade with the talk. Please let this forum stay the "talk" forum, an information exchange. Spin off the trade to Bitcointrade.biz or whatever and have as many authentication factors as you can stand.

I know it is hopeless, but I'm going to ask for the return of the plain http:// acccess to this forum, I'd really miss accessing it through the Opera's proxy servers on the low-bandwidth connections.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: theymos on May 09, 2013, 08:14:05 PM
Fancy authentication options should be provided via OpenID support. It doesn't seem easy to add OpenID support to SMF, though.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: John (John K.) on May 10, 2013, 02:36:08 PM
Please, I want this feature goddamnit.  :(
I can't imagine what would happen if my account were compromised. This is about the last non-trivial site that I don't have 2FA on, and yet it has the most potential of causing damage to me and everyone.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: CIYAM on May 10, 2013, 02:45:00 PM
Fancy authentication options should be provided via OpenID support. It doesn't seem easy to add OpenID support to SMF, though.

I have implemented OpenID for CIYAM Open (although not publicly yet but it has been thoroughly tested) and it wasn't that hard so if you have any questions feel free to PM me.

I did use "mod_auth" for Apache though so I guess that might make things more tricky since you moved away from Apache (is there an equivalent for nginx?).


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: yeti_alchemist on May 11, 2013, 12:05:26 AM
Optional 2FA is practically a requirement these days.

Huzzah!


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: yeti_alchemist on May 11, 2013, 12:09:45 AM
Optional 2FA is practically a requirement these days.

Huzzah!

I understand that using the words 'optional', 'practically', and 'requirement' in the same sentence may disconcert some of the more pedantic readers and I apologize.

All I am saying is that passwords are not secure and 2FA just makes sense.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: jaywaka2713 on May 11, 2013, 02:35:02 PM
2FA authentication would be something nice to have. Some users have been saying a virus has hijacked their computer and have promoted YAC. Probably originating from the pre-compiled miner code. 2FA would prevent passwords from being pulled and being useful.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: juhakall on May 11, 2013, 06:22:11 PM
Yes, please add 2FA! But how would OpenID be connected to that? I'm usually just annoyed by sites that want to rely on OpenID or Google accounts and not have their own account credentials. Separate credentials + 2FA for each site is much better and simpler IMO.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: vite on May 12, 2013, 08:22:27 PM
I get a lot of inquiries via the pm system of this forum and as with others if my account is compromised it could hurts a group of people who trust me enough to do business with me. Besides the reputation wreck which can in a way be healed (but never in full) by asking the admin to show that the ip's were not from my regular access points, what prevents the attacker from using a host within my isp ip range.

If im hacked other people would be hurt.

I've implemented measures like using a specific email to confirm they are talking to me. But human error based on trust can always happen.

Please consider 2FA auth protocol for this forum.

Vite


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: Raize on May 12, 2013, 09:12:02 PM
I can't imagine what would happen if my account were compromised.

Wait, you mean that's wasn't your address I sent 100 BTC to when you asked for it earlier today?

EDIT: Sorry, I probably shouldn't leave this without the obvious /sarcasm tag. I'm not going to lie, though, I'm dreading the day someone posts something like this to me. I would recommend anyone trading on here use OTC or phone or email to like double-verify, regardless of mod, VIP, donator, etc.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: jaywaka2713 on May 12, 2013, 09:58:14 PM
Yes, please add 2FA! But how would OpenID be connected to that? I'm usually just annoyed by sites that want to rely on OpenID or Google accounts and not have their own account credentials. Separate credentials + 2FA for each site is much better and simpler IMO.

If we used OpenID as a 2FA method, it would be separate from Google Authenticator.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: juhakall on May 13, 2013, 10:12:52 AM
Yes, please add 2FA! But how would OpenID be connected to that? I'm usually just annoyed by sites that want to rely on OpenID or Google accounts and not have their own account credentials. Separate credentials + 2FA for each site is much better and simpler IMO.

If we used OpenID as a 2FA method, it would be separate from Google Authenticator.

What's the problem with using Google Authenticator? It has nothing to do with Google accounts, and is very easy to implement. I even added it to my own ssh server.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: scintill on May 13, 2013, 10:33:27 AM
Could forum funds sponsor a bounty for this?  That's probably the quickest way to get this done.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: CIYAM on May 13, 2013, 10:56:48 AM
Could forum funds sponsor a bounty for this?  That's probably the quickest way to get this done.

Please not a *bounty* - if this is going to be done the *choose* someone to do it and let them be the *sole* person doing it.

Having people "competing" for a bounty is something that we really don't need any more of (it leads to arguments and the lowest quality work - just look at how well the "bounties" have been working out for blockchain.info).

If theymos wants to do this then I will happily create a Project on CIYAM Open (for free) and manage the task (for free) to get it done properly.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: jaywaka2713 on May 13, 2013, 12:07:28 PM
Could forum funds sponsor a bounty for this?  That's probably the quickest way to get this done.

Please not a *bounty* - if this is going to be done the *choose* someone to do it and let them be the *sole* person doing it.

Having people "competing" for a bounty is something that we really don't need any more of (it leads to arguments and the lowest quality work - just look at how well the "bounties" have been working out for blockchain.info).

If theymos wants to do this then I will happily create a Project on CIYAM Open (for free) and manage the task (for free) to get it done properly.


Bounty with 5 entry or more requirement enforces people to craft good code. If you have to compete against other people, and Theymos was judging, I'm sure that would boost quality.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: CIYAM on May 13, 2013, 12:47:00 PM
I would not enter into a "competition" to do a task competing with 5 other people - the chance of getting paid anything is 1/5 - may as well bet on Satoshi Dice than actually do any work.

(if you really think you are going to get quality this way then I'd ask you to look at the translations tasks for blockchain.info for reference- apparently a few of them are just Google translate)


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: DeathAndTaxes on May 13, 2013, 06:53:52 PM
Yes, please add 2FA! But how would OpenID be connected to that? I'm usually just annoyed by sites that want to rely on OpenID or Google accounts and not have their own account credentials. Separate credentials + 2FA for each site is much better and simpler IMO.

If we used OpenID as a 2FA method, it would be separate from Google Authenticator.

What's the problem with using Google Authenticator? It has nothing to do with Google accounts, and is very easy to implement. I even added it to my own ssh server.

Yeah there seems to be some confusion on how these various components fit together.

The TOTP standard: RFC6238
RFC6238 is an open standards which allows a remote user (forum user) and a website (bitcoin talk forum) to generate the same code at the same time.  It is a time based token.  The inputs for the algorithm are a shared secret and the current time.  Note this requirement the public website AND the user to run the same algorithm but they don't need to even be created by the same codebase as long as they properly implement RFC6238.   site implementation AND a remote implementation.  This is how both entities can "know" the same code at the same time without any communication.  The site (any site) just needs an implementation of RFC6238.

https://tools.ietf.org/html/rfc6238

The site needs to run code which will allow it to assign a shared secret to each user (often in form of QR code) and maintain those shared secrets in the login tables of the database.  When user later provides a TOTP the site will take the shared secret & current time to generate a code and see if it matches what users provides.

Google does provide source code for this but a site doesn't need to run google code any public server implementation of RFC6238 will work with any client implementation.  That is the whole point of an open standard.

http://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm#Public_Server_Implementations

So as an example a website could use OATH Toolkit (public server implementation of RFC6238) and a user who has Google Authenticator (client implementation of RFC6238) could generate the proper code.  I guess the best analogy would be web server and web browser.  They both implement the http protocol.  You don't need to use a google chrome webserver in order for users running google chrome browser to see your website.

http://www.nongnu.org/oath-toolkit/




OpenID
OpenID isn't 2FA.  It is simply authentication.  It allows you to use a site you ALREADY HAVE to register on new sites in a secure manner (site owners can't link identities together).  Note it isn't 2FA it is just a replacement for normal login.  Now if your OpenID login HAS 2FA (i.e. you use gmail = an open ID provider and your gmail account has 2FA) then it can be more secure but if your OpenID account has your email address as the username and password is "password" it isn't going to be any more secure.

http://openid.net/get-an-openid/









Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: Raize on May 13, 2013, 09:10:03 PM
There's code for a PHP implementation here:
https://github.com/PHPGangsta/GoogleAuthenticator/blob/master/PHPGangsta/GoogleAuthenticator.php

I see a few posts about people attempting to set up SMS gateways and such with SMF, but not much else.

I have a couple SMF forums and one that is not being used right now, I'd be able to test an add-on if we needed to.

EDIT: Also, they appear to have a mod request subforum (http://www.simplemachines.org/community/index.php?topic=243730.0). Wonder what would happen if someone offered to pay, say, a couple Bitcoins for one?


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: pekv2 on May 13, 2013, 10:09:25 PM
Interesting, sub'd.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: scintill on May 14, 2013, 01:08:11 AM
Please not a *bounty* - if this is going to be done the *choose* someone to do it and let them be the *sole* person doing it.

Having people "competing" for a bounty is something that we really don't need any more of (it leads to arguments and the lowest quality work - just look at how well the "bounties" have been working out for blockchain.info).

If theymos wants to do this then I will happily create a Project on CIYAM Open (for free) and manage the task (for free) to get it done properly.

Sure.  I don't really care how it's administered, but think sponsoring it in any way would help and I'm sure the forum can spare a modest but attractive sum to get good implementations quickly.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: jaywaka2713 on May 14, 2013, 01:13:52 AM
Please not a *bounty* - if this is going to be done the *choose* someone to do it and let them be the *sole* person doing it.

Having people "competing" for a bounty is something that we really don't need any more of (it leads to arguments and the lowest quality work - just look at how well the "bounties" have been working out for blockchain.info).

If theymos wants to do this then I will happily create a Project on CIYAM Open (for free) and manage the task (for free) to get it done properly.

Sure.  I don't really care how it's administered, but think sponsoring it in any way would help and I'm sure the forum can spare a modest but attractive sum to get good implementations quickly.

1BTC would be a good prize for writing the script. You can practically copy paste code clips via Google search to make one.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: theymos on May 14, 2013, 01:24:55 AM
1BTC would be a good prize for writing the script. You can practically copy paste code clips via Google search to make one.

Sounds real secure.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: jaywaka2713 on May 14, 2013, 01:26:00 AM
1BTC would be a good prize for writing the script. You can practically copy paste code clips via Google search to make one.

Sounds real secure.

Google Authenticator is secure. It's easy to code and practically unbreakable. Not much skill needed to make a script that runs it. Look into it.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: scintill on May 14, 2013, 01:32:28 AM
Google Authenticator is secure. It's easy to code and practically unbreakable. Not much skill needed to make a script that runs it. Look into it.

Maybe, but the parts that actually integrate with the forum then become critical.  Rock-solid GA is worthless if there's an oversight that allows it to be bypassed, for example.  There is also some thought and careful logic that needs to go into en/disabling 2FA.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: jaywaka2713 on May 14, 2013, 12:01:24 PM
Google Authenticator is secure. It's easy to code and practically unbreakable. Not much skill needed to make a script that runs it. Look into it.

Maybe, but the parts that actually integrate with the forum then become critical.  Rock-solid GA is worthless if there's an oversight that allows it to be bypassed, for example.  There is also some thought and careful logic that needs to go into en/disabling 2FA.

True. The only important code is the forced login. If you can bypass GA, then it is worthless. Integration also needs to be rock solid.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: Raize on May 16, 2013, 05:49:23 PM
I agree, while this is easy to do, it's not necessarily "easy" when it comes to integrating it into existing code and making sure the mods all still work fine and etc.

It might almost need to be one of those things where you'd want a "special login page" and a table/db separate from SMF. Then have that table/db locked down and put in an exception for those with two-factor authentication where their password in SMF is a custom variable. If the login process detects the password field is this custom variable, it authenticates them via a "special login page". Additionally, you may want to handle the transfer process to the login page and back for the user as done via some really obscure seed based on variables pulled from the user's session like resolution, user-agent, and etc. just to make damn sure it's not vulnerable to a cross-site scripting attack.

You'd then want the special login page audited by two different PHP/SQL security experts that keep abreast of the latest security issues and specifically on SQL injection attacks and XSS vulnerabilities.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: escrow.ms on May 16, 2013, 05:55:23 PM
Fancy authentication options should be provided via OpenID support. It doesn't seem easy to add OpenID support to SMF, though.

You should change forum software to Mybb(Free) or Probably Xenforo (Paid).
Xenforo have 2factor authentication addon already and it's the best  paid forum software currently.



Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: scintill on May 16, 2013, 09:33:16 PM
You should change forum software to Mybb(Free) or Probably Xenforo (Paid).
Xenforo have 2factor authentication addon already and it's the best  paid forum software currently.

There are "plans" (or just a dream?) to switch to another forum.  I'd prefer to see 2FA in the forum today rather than adding it to the wishlist of stuff that will happen someday.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: Stunna on May 27, 2013, 04:32:30 AM
Please, I want this feature goddamnit.  :(
I can't imagine what would happen if my account were compromised. This is about the last non-trivial site that I don't have 2FA on, and yet it has the most potential of causing damage to me and everyone.

Agreed, this is too important of a feature not to be implemented, if certain people like yourself had your accounts compromised it would be a disaster.


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: jaywaka2713 on May 27, 2013, 05:16:20 PM
The main thing about 2FA is how flawless it will be. It has to integrate with SMF. Don't suggest switching forums unless you can also provide an easy way to do so while transferring every existing thread. Such a transfer might not be easy


Title: Re: Enhancing the security of this forum by integrating two factor authentication.
Post by: escrow.ms on May 27, 2013, 10:53:19 PM
The main thing about 2FA is how flawless it will be. It has to integrate with SMF. Don't suggest switching forums unless you can also provide an easy way to do so while transferring every existing thread. Such a transfer might not be easy

Well forum transfer is easy but not for big forums like this and it also depends on what you are going to use in future. Some forum software doesn't have converter for SMF so process is longer.