"It turns out that as long as someone has the username and password of your Dropbox account, they can bypass the two-factor authentication and log right into your account with a couple of clever tricks. Since Dropbox doesn’t verify email addresses when users sign up for a new account, a hacker can use a new email address that’s similar to an existing one by placing a period in somewhere, similar to how Gmail addresses work.
For this fake account, two-factor authentication is enabled and an emergency code is generated in case users ever lose their phone. The hacker will then login to the victim’s account, but will be prompted to enter the code for that account. However, the hacker will simply select that the victim lost their phone and they’ll be promoted for that emergency code.
Since the email address that the hacker signed up with is similar to the victim’s email address. the emergency code will work on the victim’s account. From there, the hacker can disable two-factor authentication and gain access into the victim’s Dropbox account. This is because that “[email protected]” is registered as being the same “[email protected],” just like how Gmail handles email addresses.
Of course, you have to know the user’s password before you can do this, but once you get a hold of it, it seems relatively easy to bypass Dropbox’s two-factor authentication. However, the security team that found the vulnerability is already said to be working with Dropbox to fix the bug."
Re:Bypassing Two-Factor Authentication for Dropbox
by jmharvey on Friday July 05, 2013 @07:26PM
(#5997184)
Interesting. It seems like there are two separate issues here:
(1) Dropbox is inconsistent about whether it ignores dots in the local part of an email address, and in some cases blurs the line between accounts with similar emails. If true, this needs to be fixed.
and
(2) Dropbox doesn't really use two-factor authentication, in the usual sense of "something you know plus something you have." I'm guessing this is due to their users liking the idea of having two-factor authentication, but in practice want to be able to access their account even if their phone is lost. So it turns into "something you know plus something you know." I'm inclined to think that this kind of not-really-two-factor-authentication is actually the correct approach for the kind of data you store on Dropbox, but it's something to think about when you're designing an account-recovery protocol.
Re:Bypassing Two-Factor Authentication for Dropbox
by jervisfm on Friday July 05, 2013 @09:27PM
(#5997538)
Dropbox is a cloud provider that hosts critical information for many people. Given this nature of their business, I'd expect that security is actually their number one primary focus (even beyond new features I'd say).
With regards to point number 1, I don't understand how that bug could have existed uncaught. Yes, security is hard but when you're storing the most personal user data, you're obliged to make sure you actually keep it safe and protect it from unauthorized access.
Yet, with Dropbox, it appears that every so often that some time goes by, and we have yet another security issue. The worst I remember was when for a window of time, _anyone_ could login to _any_ dropbox user account without entering a valid password. No password. Just a valid username and you're in.
It's interesting to note that issue too had to do with authentication and authorization. Maybe it's time Dropbox should spend some time auditing their code to find other similar issues just waiting to be discovered?
Re:Bypassing Two-Factor Authentication for Dropbox
by MichaelGG on Friday July 05, 2013 @09:38PM
(#5997561)
I would not expect security to rank as their number one thing. Usability is probably the primary, outranking, engineering goal. Security as a prime requirement would place client-side encryption over other goals, which they do not.
As you pointed out, dropbox has shown they're not very secure. They lied about their server-side encryption too. But no one cares. It's far more profitable to make a reasonable pass at security, then try to deliver on the user experience and marketing.
Re:Bypassing Two-Factor Authentication for Dropbox
by rdl on Saturday July 06, 2013 @12:45PM
(#5999274)
They're sufficiently bad at security that I actively discourage people from using Dropbox for anything but personal toy stuff. Since their future revenue expansion seems to be tied to "dropbox for teams", not fixing security is a major problem for them, since any competent auditor would have similar concerns about dropbox (not just "dropbox can see your files", but the other access controls and auditing/logging dropbox doesn't support.) Box also sucks for security, but slightly less.
Everyone I know in a security-conscious environment uses something else. Sadly, often MS Sharepoint. There are some big advantages to a system like Dropbox, but aside from some small startups, nothing in that space I'd actually recommend for business use.
Re:Bypassing Two-Factor Authentication for Dropbox
by cybspi on Tuesday July 09, 2013 @12:41PM
(#6013576)
There are more security conscious applications that have usability better than sharepoint, take for instance adeptCloud, it works pretty much like dropbox but the backing store of data is on the business premise instead of in S3.
Re:Bypassing Two-Factor Authentication for Dropbox
by parfe on Friday July 05, 2013 @08:31PM
(#5997354)
Your second point isn't correct. The emergency codes are "something you have". You can only generate the codes while logged in, and keep a physical copy separate from your phone. If you lose your phone you pull the paper from your wallet, or get it from a friend or your desk drawer or wherever.
Re:Bypassing Two-Factor Authentication for Dropbox
by 6d0debc071 on Friday July 05, 2013 @11:13PM
(#5997785)
You could say the same of a password - which isn't what people traditionally mean by 'something you have,' e.g. some form of security token which is difficult or impossible to reproduce and of which physical possession is a requirement.
Re:Bypassing Two-Factor Authentication for Dropbox
by MichaelGG on Friday July 05, 2013 @07:09PM
(#5997154)
So Dropbox has decided ALL email address work like Gmails? That's a pretty dumb-looking decision. I wonder how they came to that conclusion? Intern being clever? Or so commonplace it's actually a usability issue?
Re:Bypassing Two-Factor Authentication for Dropbox
by corylouie on Friday July 05, 2013 @08:29PM
(#5997351)
This issue was reported to Dropbox and promptly fixed over 3 weeks ago. We appreciate the contributions of this researcher and everyone who helps keep Dropbox safe.
Re:Bypassing Two-Factor Authentication for Dropbox
by daeken on Friday July 05, 2013 @11:49PM
(#5997871)
Disclosing a fairly significant (albeit very niche) vulnerability like this via a comment on HN 3 weeks later isn't really best practice. Was there a disclosure prior to this post going up?
Re:Bypassing Two-Factor Authentication for Dropbox
by rpearl on Saturday July 06, 2013 @05:15PM
(#6000104)
This HN post is a link to a disclosure from the security researchers who worked with Dropbox (note: I work for Dropbox).
It is not generally the case that companies disclose quickly-patched vulnerabilities that were reported by white-hat security researchers. Example of a similar vulnerability with a similar response time by another company: https://blog.duosecurity.com/2013/02/bypassing-googles-two-f...
Researchers disclose a while after the vulnerability is patched. This is standard practice.
Re:Bypassing Two-Factor Authentication for Dropbox
by ZouheirAbdallah on Thursday July 11, 2013 @05:23AM
(#6025153)
Hey,
I am the researcher that disclosed this, and it was responsibly disclosed to Dropbox and later to the general public once we got confirmation that the vulnerability is patched.
Re:Bypassing Two-Factor Authentication for Dropbox
by mathrawka on Friday July 05, 2013 @07:16PM
(#5997165)
Two-factor is getting to be a necessary feature for sites...
HOWEVER, there are always ways around two-factor auth. Some sites have some special codes that you are advised to print and carry around with you. Some sites let you verify your personal information to turn it off.
What it comes down to is how secure are:
- the methods of disabling two-factor auth
- the methods involved when you lose your two-factor auth token/device
And let's not forget:
- the methods invovled when you forget your password
- customer service intervention methods (i.e. social engineering)
Putting a "Look we support two-factor auth! We are super secure!" message out there is always a red flag for me, as to how they have counter measures in place for the above scenarios are very important... as that is what the evil people will do.
Re:Bypassing Two-Factor Authentication for Dropbox
by rdl on Friday July 05, 2013 @07:19PM
(#5997172)
I wish there were an "account recovery as a service" company to handle this kind of thing, since everyone gets it wrong. Just a cheap outsourced callcenter or web service for low end consumer services, all the way to an in-person or onsite (notary or bank equivalent) for the really important things.
http://www.slashgear.com/dropbox-hack-allows-bypass-of-two-f...
"It turns out that as long as someone has the username and password of your Dropbox account, they can bypass the two-factor authentication and log right into your account with a couple of clever tricks. Since Dropbox doesn’t verify email addresses when users sign up for a new account, a hacker can use a new email address that’s similar to an existing one by placing a period in somewhere, similar to how Gmail addresses work.
For this fake account, two-factor authentication is enabled and an emergency code is generated in case users ever lose their phone. The hacker will then login to the victim’s account, but will be prompted to enter the code for that account. However, the hacker will simply select that the victim lost their phone and they’ll be promoted for that emergency code.
Since the email address that the hacker signed up with is similar to the victim’s email address. the emergency code will work on the victim’s account. From there, the hacker can disable two-factor authentication and gain access into the victim’s Dropbox account. This is because that “[email protected]” is registered as being the same “[email protected],” just like how Gmail handles email addresses.
Of course, you have to know the user’s password before you can do this, but once you get a hold of it, it seems relatively easy to bypass Dropbox’s two-factor authentication. However, the security team that found the vulnerability is already said to be working with Dropbox to fix the bug."
(1) Dropbox is inconsistent about whether it ignores dots in the local part of an email address, and in some cases blurs the line between accounts with similar emails. If true, this needs to be fixed.
and
(2) Dropbox doesn't really use two-factor authentication, in the usual sense of "something you know plus something you have." I'm guessing this is due to their users liking the idea of having two-factor authentication, but in practice want to be able to access their account even if their phone is lost. So it turns into "something you know plus something you know." I'm inclined to think that this kind of not-really-two-factor-authentication is actually the correct approach for the kind of data you store on Dropbox, but it's something to think about when you're designing an account-recovery protocol.
With regards to point number 1, I don't understand how that bug could have existed uncaught. Yes, security is hard but when you're storing the most personal user data, you're obliged to make sure you actually keep it safe and protect it from unauthorized access.
Yet, with Dropbox, it appears that every so often that some time goes by, and we have yet another security issue. The worst I remember was when for a window of time, _anyone_ could login to _any_ dropbox user account without entering a valid password. No password. Just a valid username and you're in.
It's interesting to note that issue too had to do with authentication and authorization. Maybe it's time Dropbox should spend some time auditing their code to find other similar issues just waiting to be discovered?
As you pointed out, dropbox has shown they're not very secure. They lied about their server-side encryption too. But no one cares. It's far more profitable to make a reasonable pass at security, then try to deliver on the user experience and marketing.
Everyone I know in a security-conscious environment uses something else. Sadly, often MS Sharepoint. There are some big advantages to a system like Dropbox, but aside from some small startups, nothing in that space I'd actually recommend for business use.
(I work for Dropbox but don't speak for it in this capacity)
It is not generally the case that companies disclose quickly-patched vulnerabilities that were reported by white-hat security researchers. Example of a similar vulnerability with a similar response time by another company: https://blog.duosecurity.com/2013/02/bypassing-googles-two-f...
Researchers disclose a while after the vulnerability is patched. This is standard practice.
I am the researcher that disclosed this, and it was responsibly disclosed to Dropbox and later to the general public once we got confirmation that the vulnerability is patched.
you can email me at zouheir[dot]abdallah at gmail
HOWEVER, there are always ways around two-factor auth. Some sites have some special codes that you are advised to print and carry around with you. Some sites let you verify your personal information to turn it off.
What it comes down to is how secure are:
- the methods of disabling two-factor auth
- the methods involved when you lose your two-factor auth token/device
And let's not forget:
- the methods invovled when you forget your password
- customer service intervention methods (i.e. social engineering)
Putting a "Look we support two-factor auth! We are super secure!" message out there is always a red flag for me, as to how they have counter measures in place for the above scenarios are very important... as that is what the evil people will do.