Google and Password Security

What Google keeping around old password hashes means for security

March 13, 2014 -
security google

When you change your Google password, what happens? One would expect that your password gets updated, and everyone's happy.  The reality, however is quite different.  Google stores your old password, and updates your current password.  This allows them to do cool things like remind you that you just changed your password if you type in your old one.

Google being cool

And not-so-cool things like keeping your password for ever and ever:

Google being Google

Not only do they keep a record of your last password, but they also keep a record of every password you've ever had.

Why is this bad?

Let's take a look at some reasons that you would want to change your password:

  1. Routine password change.
  2. Someone knows your old password.
  3. You saw someone looking over your shoulder while you were typing in your password.

In case 1,  Google knowing your old password isn't a very big deal.  It's changed, and you're security conscious, so your Google password isn't the same as any of your old passwords.

In case 2, we can assume that you suck at security.  Most likely your Google password is also your password for some other sites, since it's too hard to remember a bunch of different passwords.  In this case, it lets the attacker know what your old password is, and since you probably also have the same password on other sites, giving confirmation can be a bad idea.  In addition, people probably used their GMail to sign up for said  other sites, giving the attacker both an email and a possible password.

Case 3 is even worse.  Chances are whoever was looking over your shoulder didn't see your password fully, just how many characters it had and some of the characters in it.  This will allow them to keep brute-forcing the password after you change it, and perform the same attack as in case 2.

Those are all minor things compared to the big problem though.  In Google's password recovery, the first thing they ask is "Enter the last password you remember."  For me, the next thing it does is sends me a text with a verification code.  But what if I hadn't given Google my phone number?  Well, why don't we create a fake account to test it?

The Steps:

  1. Go to Google password recovery.
  2. Check the box labeled "I forgot my password."
  3. Enter the victims email address.
  4. Enter the password you got from the "Your password was changed X ago." login hack.
  5. Enter your email address (I used my gmail for this, so I don't know if it'll throw you out for using or something.)
  6. Enter the old password that you know.
  7. Enter the current date - The amount of time that it said in the "Your password was changed X ago." prompt.
  8. Now you need to know when they signed up with Google, accurate to a month.  I'm not sure how to get this, but it might be publicly available somewhere.
  9. Press continue.
  10. Press "Reset Password"

Seem a bit insecure to you?

Yes, I know that there are steps around this.

iving Google your phone number, not logging in from public places, and other common sense things like that.  But the fact is that Google shouldn't be storing my old password for more than a week or so, so that it can remind me that I changed it if I type in my old one.  Google should also take out the time that you changed your password.  There is no reason that it needs to be there, and it just helps password "recovery" by attackers.

Although trusting Google with anything more than data that you don't care if anyone else sees is just plain stupid.

This is my Google rant, until something else stupid happens.

If you're in NYC and want to meet up over lunch/coffee to chat about the future of technology, get in touch with me.