13 Jul 2015Major security threat! LinkedIn, Facebook, Github, etc and secondary email addresses
If you have secondary email addresses associated to your online accounts, remove them NOW!
Chances of getting your account hacked increases not n-fold, but exponentially with each secondary email that you add due to poor security.
I got hacked today
or so I thought initially.
I received an email saying ~ "Your LinkedIn password got reset. Click here to reset it again". My reaction timeline:
In practice, already at reaction #4 I was resetting my password.
I then assumed (although assumption is the mother of all fuckups) that it's somehow related to my secondary email addresses that I have connected to the LinkedIn account. I proceeded to deleting them immediately, and reassess the situation later. As you now by now, the assumption was correct.
Soon after I got home, and started thinking about password managers, changing passwords, etc. I receive an email from email@example.com (me from another parallel universe, another personality ?!?!) saying that he wanted to create a LinkedIn account with his @yahoo.com email, LinkedIn failed with ~ "There is already an account with the email address", and he proceeded to ask for a password reset, got an email, reset the password and got access to my account.
I've always known this day (bumping online into someone with the same name) would come, just didn't know when and how.
From their Changing, Adding, or Removing Your Email Address support page:
We recommend that you have at least one personal address and one work address registered to your LinkedIn account. To access or make changes to your account you'll need to use any email address assigned to your account and know the password.
So far so good. It makes sense, right? That's one of the reason why until 2 hours ago, I had about 5 email addresses associated to my LinkedIn account. I've been locked out of email accounts before (inactivity, stupid security measures, etc). Plus, there is usually an added bonus (coming below).
From their "Why You Should Add a Secondary Email Address" support page:
Add a second email address to help make sure you never get accidentally locked out of your account. Most people add a work and a personal email. This provides an important backup in case you lose access to your primary email address (for example, if you change jobs and lose access to work email).
Whoever is the copyrighter/product-owner/whatever-your-position-is for the bolded text should quit. Not be fired, but they should quit. And since it's probably a design-by-committee outcome, please quit in mass.
Not because of the "help" typo, but because of that second sentence, which I'm sure got phrased and rephrased one too many times until nobody understood anything but everyone was happy to finally go home to their families at 9pm, which fails basic logic. (Hedging: if it is by a small chance logical, then they fail to explain properly that they want the primary email address to be the work email address)
LinkedIn could do some statistics on the domain names of their users, but my assumption is that most people use their personal email as the primary one. Not only this is the logical way, but this is also the habitual way. Despite LinkedIn being a social network for the business side of our personality, it is still painting a picture for a person called Andrei, not for a <input company name> employee called Andrei.
That's exactly what that paragraph says! I'm not making it up.
I think we can agree now that it fails logic!
And not only that, but the problem was just starring at them!!!
If we want people to have one personal and one work email address, and they change jobs, and lose access to their work email, then doesn't that mean automatically that the account is susceptible to access by a 3rd party?!
If you only have one email address listed on your LinkedIn account and you lose access to it, we won't be able to send you a reset link if you forget your password. That means you won't be able to sign in to your LinkedIn account.
And now they are lying. Not by omission, by just contradicting themselves.
On their No Access to Email Address support page, they clearly state that in this very specific case, "we can help by verifying your identity. To do this, we use a technology that scans your government-issued ID so that we can help get you back into your account as quickly and securely as possible."
You'll see a warning message at the top of your Settings page if you don't have 2 confirmed email addresses in your LinkedIn account.
Basically that's LinkedIn pushing everyone to the edge of the cliff, where everyone can get hacked tomorrow.
It's important to add all email addresses that someone might use to connect with you on LinkedIn. If someone sends an invitation to an email address you haven't listed, you could get an error message or accidentally create a second account when you try to accept.
Now we get to the added bonus I mentioned earlier.
People might know me from university, from my previous work place, etc, and search for me on LinkedIn via the email address @university.edu or @previous.company.co.uk. That's actually incorrect, because most people will search for me by name. I don't need any stats to know that. But LinkedIn will, not might, use that email for discovering new connections by importing your email contacts.
Above all, the bonus is that you create an online identity saying "hey, I'm the same individual behind @gmail.com and @university.edu and @company.co.uk". I find it less important IMO for social networks like LinkedIn and Facebook, than on services like Github.
So above-all-infinity is that you should be able to lock your pool of email addresses to this identity that you created on LinkedIn. Since I once had access to firstname.lastname@example.org (you verified it after all), then lock that email address to ME, the individual Andrei, who should be recognized by the primary email address, and secondly by that government-issued ID.
When I finish university, and that email address gets into someone else's hands without me being notified (either the password is changed, or the address it gets into a catch-all filter that sysadmins can then check up-front, or it's now an alias for my old boss/team, or the address gets recycled and given to another student, etc),
if they try to create or associate or reset the password on a LinkedIn account with the same email address that I still have as secondary, then there are two logical options:
or another solution:
So if you get access to a secondary email address (i.e. via hacking, or sysadmins recycling emails) then all your accounts are someone else's.
You saw what happened with LinkedIn.
With Facebook, it gets worse! When you try to reset the password to an account, it automatically shows all primary and secondary email address. They are partially masked, but it can be very easy to guess. Then all you need is not hack, but try to see if you can create an account that was inactive and deleted.
With Github, is utterly unacceptable! I expected so much more from them.
There, the email addresses totally create an identity across different organizations (in the real sense, not Github organizations) that you contribute to. Due to processes or just narrow-mindedness, we end up committing code at work as email@example.com, and in private as firstname.lastname@example.org and at some hacking club as email@example.com , etc etc. When that code surfaces to a central place like Github, it's maybe not necessary, but still important to link all those commits to you. Not because of showing off, but because after you lost access to @work.com, you (not someone else named like you) can still be reached elsewhere by reading/inferring other contact means from your Github profile. It can be enough with an avatar that you share on github and on twitter that people can suddenly reach you.
All in all, Github profiles acts like a Github-wise .mailmap. And that's wonderful!
But at Github the same thing happens.
Any sysadmin that has access to one of your previous work email addresses (which your do not control anymore, for obvious reasons) can just take over your Github account. NOW! Then make that one primary, delete all the secondary email addresses that you have, and then you're all locked out!
LinkedIn thinks it's ok to notify all of my accounts that the password has been reset. That is not a security issue, but a privacy issue, especially since the notification email has details about the author of the reset-password request.
Facebook does something similar. When I remove a secondary email address, it thinks it's ok to notify all the other email addresses - primary and secondary alike.
Moreover, multi-factor authentication (at least for LinkedIn) makes no difference for password resets, so:
Don't you think, the gravity of the two situations should be somewhat reversed, or at least on par?
Because I removed my secondary email addresses in haste, on a small screen device, I cannot be sure of this, but most probably I had firstname.lastname@example.org (I only know of email@example.com and firstname.lastname@example.org as email addresses that I have ever had on Yahoo) and not email@example.com . I wanted to see if LinkedIn is trying to be smart (which in the world of software development means utterly dumb and insecure) and actually assume that firstname.lastname@example.org is an alias for email@example.com, when in fact it's not. Unfortunately Yahoo seems to have turned off the ability to create @ymail.com and @rocketmail.com accounts.