390 points · by Garbage · 6y ago · 161 comments
The author's core issue is that once a machine has logged in, it is considered trusted for a period of time. Google should probably make this configurable for particularly security-conscious users (assuming it isn't already), but it strikes me as a perfectly reasonable default.
As with all things security, there are trade offs.
So: 1. Changing recovery emails should require 2FA
2. Changing any 2FA policy should email your recovery email
It does, after all, still require a password. We're really talking about a very, very specific use case where the attacker has a lot of access to an existing session.
I myself have had a phone break and rushed to a computer with a valid session so I could easily reset. It's really a huge UX win, and probably massively reduces 2FA burden/ support burden.
And it does it at unpredictable and often inconvenient times.
The periodic check is undeniably good for security. But google's impl doesn't give the user any indication of when it will happen, and it doesn't allow the user to preemptively re-auth to restart the clock.
This means that I always end up having to re-auth right in the middle of sharing my screen or right when I'm trying to quickly find a thing and in a state of flow.
On good days 1pw is already unlocked and can autofill the login. On bad days I have to manually unlock 1pw and/or hunt for the pw and hope my colleagues don't see my other saved sites and then hope that I don't accidentally paste my password in a doc or something - let alone worry about destroying what was on the clipboard before google decides to do this.
Security and convenience are always at odds, but that doesn't mean you need to give a middle finger to basic UX in the name of security.
AFAICT there are separate clocks for separate high-privileged actions, and some actions require re-authentication every time.
As an example, accessing a saved password on passwords.google.com requires re-authentication for each item you want to access.
It would also be really bad for usability. Just like it would be bad for usability if you lost access to your Google account forever because you broke your phone.
* Power on laptop, log in using laptop password
* Log in to LastPass, use lastpass password, verify with 2FA. * Connect to VPN, log in using SSO (Okta) password from LastPass, verify with 2FA.
* Open github tab, log in using the Okta password again, verify again with 2FA.
* Open JIRA ticket, get sent to Okta, skips password prompt since already logged in, verify again with 2FA.
* Open email, get sent to Okta, skips password prompt, verify again with 2FA.
* Oh, my calendar tab was already open so Google didn't know I authenticated in another tab so sends me to Okta which now expects another 2FA there once I interact with it.
Also the policy is that the lastpass password, SSO password and laptop password should be different. So that's 3 passwords and 5 2FA pushes in about 5 minutes (and again after lunch as all those sessions expire during it).
My understanding is you can configure Okta to remember 2FA on a device for a while, but our security department has chosen to disable that. This is a lot of security overhead, but in this case I'm being paid for it rather than paying for it so whatever. Can you imagine getting a paying customer to agree to this level of 2FA double checking?
Actually, that would be very bad for security, because users would work around it. (Well, it might be really, really, good for security if it got people to stop using Google, but I doubt that's what you meant.) As the saying goes:
> Security at the expense of usability comes at the expense of security.
Admittedly if a skilled hacker breaks in into my computer they could recognize what the script does and misuse it. But at least no scripted attack should ever look for it. It's not on github because my seeds are hard-coded and there is not much to generalize.
I don't know of a way, even with full gsuite enterprise policy access, to prevent an attack where the attacker has an active session and your password.
Some things you could do, but would not be full mitigations and likely just annoy an attacker in many cases (though that's often enough):
* via GSuite, enforce 2FA
* Enforce 2FA via hardware tokens/ APP
* Context Aware Access that validates that the login is coming from a specific verified device that is provisioned via your GSuite / conforms to policy, that way the attacker can't just steal the session/password and log in from another device? Maybe?
Really, the attack described requires like 3 different things to go wrong. I agree that there should be changes made to the system to improve this, but it's a rough model to protect a user when the attacker is sitting on the box they're logged into.
Which, again, is probably reasonable for 99% of cases, but might be undesirable if you're doing investigative journalism on powerful state actors or some such.
> What happens if I lose all of my security keys? > If you still have access to a computer that is signed into your account, you can visit account.google.com and register replacement keys in place of the lost keys.
As you must assume such a system runs a key logger and will get you password this is a problem. But not a supper big one.
Except if it's a dev-account, because then a lot of things of high importance are linked to it.
I think it's a sane default setup for the causal user. But it and a fiew other defaults should be changed by telling google that this account needs to be secure or similar.
No. No 2FA system is designed to protect you from using a compromised system, as there's no such system possible. No 2FA or any system can protect your account and data from a compromised system. It can make it slightly more difficult, but can not prevent the account take-over.
Even with u2f, if the browser lies to u2f device or to you, all bets are off.
If you value your account, you should not sign into a system you don't have trust.
With WebAuthn / U2F if the browser lies it can result in you authenticating to a different system or under different circumstances than you expected, but nothing else, which seems pretty far from "all bets are off".
In particular a compromised browser could tell you that you're signing into Facebook, when the actual authentication performed is for GitHub, for example.
But because the User Presence detection happens in the physical authenticator it can't fake that, it does need you to press the button, tap the sensor or whatever.
And the credentials obtained this way are inherently one-use, when you take your Security Key away, bad guys can't get any further credentials from the compromised system you stopped using. As we see in this Google example that might not stop them, but that's an application security design issue not an inherent flaw in U2F / WebAuthn.
With googles 2FA implementation they can steal your whole account.
If the compromised system has no way to get your second factor it can't disable/change the second factor methods and can't independently log in.
EDIT:
Sure there are probably many other ways to then trick the user into giving 2FA permission to e.g. change 2FA auth. But this is harder and not always viable in all situations.
Knowing the password and having access to a trusted (don’t ask again for 30 days checkbox) device is possession of two factors.
Google offers stricter validation in the form of advanced protection, which isn’t so easily disabled.
I agree that requiring 2FA re-auth on trusted devices to disable 2FA would be a terrible default for users with only one method, but Advanced Protection should do more.
It's somewhat like getting someone to invite you into their home VS convincing them to open their fire safe in front of you. One of those sets off alarm bells.
The headline should say - You can disable Google 2FA on 2FA authenticated connections without re-authenticating.
This is a fantastic balance in terms of security and usability. I switched iphones and google authenticator did not bring my 2FA's over, I got on my machine that had already authenticated and setup a new 2FA. Whew. Other systems were MUCH much harder to restore AND you could still get around 2FA but now with human involvement (social engineering risk). I've worked govt jobs with security so "tight" that everyone got the workarounds worked out - the social engineering would be as easy as I need reset for user X and they stopped even checking who anyone was the volumes were so high.
The loss in security is minimal here, and the loss is controllable, and it reduces pressure on other reset approaches (seriously, if you lock yourself out of google you will REALLY want to get back in).
That's a bit harsh, the actual disabling does not require a 2FA token so that part at least is true. And this is not the behavior I was expecting. On many other services I use disabling the 2FA requires 2FA confirmation and sometimes just visiting the security settings for the account requires the 2FA (if enabled). So maybe it's just "50% false"...
It does require 2FA, which makes the statement in the headline false.
It doesn't require 2FA reauthentication, which means you already passed 2FA.
You could say: "You don't need a password to log in to anyone's gmail account", while meaning that you just need to have access to their unlocked device while they're logged in.
In your mind, "2FA" means "2FA authentication session", but in most people's mind, "2FA" means a "2FA code". And it is true that you don't need a new 2FA code. So depending on the interpretation you take, it's either 0% true or 100% true.
This is behavior that I have seen with no other company.
I'm sorry but that's really being pedantic. Re-authentication is an authentication, again. You can change (remove!) a security factor with no confirmation of that particular factor for that particular action.
> You could say: "You don't need a password to log in to anyone's gmail account"
You could say it and it would be true, just not very interesting as this is exactly what everybody expects. But if you'd say you are allowed to change the password without entering the old one it would sound pretty much like what's happening here, no?
Google is not consistent with how they treat the 2 factors (password vs. second factor). At the very least they should make it clear when enabling it under what circumstances it can be disabled. No guarantee people will read but at least the more security concerned would. You can defend their decision if you want but contradicting the situation is really not "factual", it's just playing with words.
If you have a valid 2FA authenticator, you should be able to edit your 2FA Device List for any of your authenticators. But to do that, I would still expect the site to re-authenticate the user with one of their 2FA options in order to make the change.
Well... the security benefit is precisely that nobody can access your account without 2FA. Maybe you wanted to ask "what's the point in having security if usability can become so fragile?".
The point is to give users the secure option and let them decide what to go with, or at least make it clear for the users what the expected behavior is. So far it's obviously not clear. People assume you need that since you need the password to change the password, you need 2FA to change 2FA. I mean that's why you enabled it, to protect all aspects of your account.
On the other hand you should have plenty of options to protect your 2FA: save the seed (QR code), have multiple tokens, save your recovery keys, etc. Not the least of which should also be for the operator to give you a secure reset option.
if you want zero grade authentication use one of the 8 one time use codes you get in authenticator instead.
Last week he also didn't understand Google Password Manager's security model and wrote an article on it. https://news.ycombinator.com/item?id=23728390
At the very least they could make it configurable, let the user decide if they want to be able to turn off 2FA without being asked for a confirmation token.
I've had this happen to me a few times and I was so glad this is how it was done with google.
I recommend using an encrypted local backup created with a Mac (or iMazing), as _everything_ comes over except Secure Element-based info (Apple Pay cards, Touch/Face ID enrollment).
Also, a better TOTP manager app; I use OTP Auth.
I have lost 2 FA's on other services via that means as well. I think it is easy if you have cloud backup on your phone that you think that you can just wipe your old phone and sync your new phone and you will be all set. Google Authenticator doesn't work like that.
Of course you can just use Authy, although it does introduces the risk of an attacker compromising your phone number.
To change security-related settings, it's default practice to double-check even the user's password without 2fa.
> This is a fantastic balance in terms of security and usability.
Sorry, that's plain apologetic bullshit. How often do you enable and disable 2fa? This has nothing to do with usability.
Your comment illustrates a DEEP misunderstanding of dealing with users at scale.
You have millions and millions of users.
You are proposing that the threat / benefit model is such that if they lose their 2FA device (very easy via upgrades to phones, lost phones broken phones) EVEN though they have their password and and have access to a trusted device within the validity window for device trust they will be locked out, potentially forever from their account?
Do you
a) realize how common this situation is?
b) realize how angry users will be to lose access to all their google services with basically no support route to recover that?
c) what pressure there will be to allow for other recovery methods THAT ARE EVEN WEAKER?
I've gone through 2FA reset procedures over the phone with a few companies, and in EACH case it struck me how easy it would be to socially engineer or use very minimal info to get a new 2FA when they allow these methods (ie, last 4 digits of CC was one reset piece of info). So you need to allow workable 2FA update methods so that your fallback can be pretty tight if allowed at all.
Finally, consumer accounts have basically NO recovery option if you are locked out. I had a relative get locked out, nothing to be done (they had a landline that couldn't accept text messages and the system won't do voice calls). There is NO human backup - all emails, google photos, google drive etc GONE.
You started by claiming it's "100% false" and ended up saying changing your mind and agreeing it's true but for a good cause.
I agree it's not BS but apologetic it definitely is. You are justifying a decrease in security for the benefit of usability. This in itself would be a worthwhile goal if it wasn't for the facts that it goes against reasonably expected behavior and as a user I am not made clearly aware of this or given the option to control it.
Everyone is used to being asked for password reconfirmation before changing the password so it figures that they have the same expectation for the 2FA. I know I did.
> There is NO human backup - all emails, google photos, google drive etc GONE.
That's also Google's decision. You can't use one bad decision to justify another. It's likely this 2FA decision wasn't taken to help you get easier access to your account but to allow them to have 0 support knowing 2FA issues are easy to happen especially to people who won't properly save recovery keys (most people).
Obviously though, that excuse becomes an exploit the moment you change your tone of voice, so there's that.
That being said, Google is far from being unique in this issue.
Sure, you can say "tough luck", but then people will complain, reasonable or not, and Google probably doesn't want that to happen. I think this is a reasonable compromise when it comes to security and usability.
On the other hand, articles all over the place increasingly recommend it to everyone.
Maybe to you and me, but to everyone else it's just a recommended (and in many cases forced) method to gain access to your own account.
My mum isn't making a pledge to always have her phone with her, she just doesn't want her email stolen
Hypothetically, what if you had 2 forms of 2nd factor to access your account? One is a passphrase you receive via SMS and another is a hardware token you possess. Should you be able to remove the hardware token based on an SMS authenticator response? Should you be able to remove both factors if you have a current session that was authorized at some prior time via one of the factors?
I think the answers boil down to just how secure the application needs to be. If you have 2FA protection, but any authorized session is valid for a year, is this actually providing any protection? I have zero problems with the idea of being required to 2FA into my brokerage app every time I want to use it. I feel like the equation can be partially reduced to:
"If your app is not so security critical that any prior-authorized session up to 30+ days can arbitrarily remove 2FA tokens, then why have 2FA in the first place?"
The amount of time a 2FA-authorized session is valid for seems to be the hangup for me. If its really short (<24 hours), then I would say don't require a reauth to remove a token. But, if a session can be valid for months, then it is much more likely that a bad person has your laptop and wants to maliciously remove your token. The longer the session can be valid for, the more a 2FA re-auth seems to be necessary to ensure a bad actor is not involved.
But, I recognize that there are so many UX considerations when talking about massive scale products that Google puts out. Supporting mandatory 2FA re-auth for token removal would probably be an extremely expensive process, as manual verification with live persons would be required to recover accounts with lost tokens.
I was able to circumvent it only by VPNing to my office and logging in from there.
This can happen also with accounts that have not been ever configured for 2FA.
I assume you never run into this if you configure for example the TOTP 2FA (use code generator on your phone).
What you're saying is basically "if I don't wear a mask during a pandemic, I accept the risks of catching the virus". No. You are opting an indefinite number of other people into transitively catching the virus despite not accepting that risk.
The author is wrong. It is still 2 Factor. The two factors are the password (something you know) and something you have (the session token on the machine).
If your logged-in machine is compromised as was the case here, you are already in a world of hurt. Your bookmarks are visible. You could likely get the passwords by going to a bookmark site, allowing the password manager to autofill, and looking at the password fields using the browser developer tools.
There are security vs ease of use tradeoffs. Making everything harder by assuming that even a trusted machine is compromised would result in much more of a painful user experience and would lead people to abandon password managers and 2 Factor. See for example UAC and Windows Vista.
This up to the user, he has a choice. Google gives you the ability to use a separate password, one which Google will not remember for you, to encrypt all your Chrome-Sync data. This is your sync password. You can choose to let Google manage this for you, in which case it explicitly uses your Google password and Google could read all your sync data, or you can manage it by yourself ("Sync Passphrase"). If you switch between methods, all Sync-data (Bookmarks, Passwords, AutoFill, ...) is deleted.
The only way to prevent that would be making the token purpose bound, and displaying that purpose on the trusted 2FA device.
https://security.stackexchange.com/questions/157756/mitm-att...
The security model relies on the browser validating the origin.
Domain binding protects you from fishing, but still relies on the user's computer, including the browser, being secure. So it doesn't help here.
But it's not uncommon at all for someone to hear "I need to setup 2FA" so they go do so and then not understand how it works or why they're doing it. Or have some misunderstanding such that they might know what it does but not how it functions enough to properly backup their 2FA secrets or backup codes.
This then results in a massive amount of customer support. It's also really time consuming to verify the identity of your customers and there's no really good way to do that to then disable 2FA reliably knowing you're talking to the actual account owner.
This is at least a potential way for support to assist someone that messed up and disable their 2FA without having to verify their identity with some cumbersome/unreliable method.
I would recommend buying a couple U2F tokens which support NFC and/or Bluetooth. 1) U2F almost impossible to phish, unlike TOTP codes. 2) You can have multiple U2F keys enabled on Google, so if one fails you have others to use.
I like Yubikeys, though they are more expensive. Yubico makes a "Security Key" which is only U2F. I like the Yubikeys as can also use them to backup TOTP codes and support PGP keys. But realistically a couple U2F tokens is all you need.
It is a good thing that most devices will be shipping with platform FIDO support soon, will make some of this a lot more bearable.
It would probably be a good idea to ask for password and 2fa anyway if the person wants to change any account details. But if it's a machine that can be remotely accessed, it's probably not a good idea to enable "remember me" on that machine.
Combined with the problem of 2FA not needing 2FA to be disabled logging in at a compromised computer can totally steal your account, even through 2FA is meant to prevent this.
This mean never ever login to google on a hotel computer, library or any other computer you don't trust. Google 2FA has gaps.
Other problems with 2FA include:
- To enable 2FA with authentication app you need to first enable 2FA with SMS (but SMS 2FA is known to not be secure).
- It will also implicitly enable all your android devices to be able to provide the second factor by unlocking the device and pressing ok on some google dialog.
EDIT: Or at least it was the case for me. Due to e.g. A/B testing or regional differences it might differ.
You might want to disable both. Through I can somewhat understand why they do it as if you then lose access to you 2FA app you are also locked out of google, or at least should be if there are not other "gaps" in the account recovery process. Note that recovery keys are still another thing you can enable, print and put in a save (or whatever way you want to keep them save). And tbh. auth app + offline securely stored recovery keys seem to me the best option.
However when you are asked for your code on logging in they allow you to chose to receive an SMS as an alternative and there appears to be no way to turn that off.
I'm pretty sure Google forgot to inform users about this new feature.
Whether making that conversion or allowing disabling of 2fa without requiring the user to do a full authentication with both their password and a code is debatable. But 2fa is two of something you "know", "have", or "are" which password + session token meets.