9 ms·
The God Login
- tempodox 12y agoAs I see it, this problem will only be solved satisfactorily once we have technology (and security) to do away with frigging passwords completely. As the Internet plays a role in ever more aspects of society and industry, we need a concept of identity there that is usable by absolutely everyone without any mental effort. Until then, this post gives advice worth heeding.
- TeMPOraL 12y agoThe problem is, this goes totally against the idea of Internet privacy. I think it's either-or case. If you want to solve passwords, you'll have to drop any dream of anonymity.
- s_kilk 12y agoIn a recent side-project ( nightchamber.com ) I experimented with the idea of something like a "God Login". A user account is automatically generated on first visit and keyed against a uuid, the id is then stuffed into the session, and used to make a link the user can bookmark to get back to their "account". As long as that link/id remains secret, the user has a unique account to use with no effort on their part. I'm still not sure this is a good idea, but it seems to work for nightchamber, where the account doesn't actually have much value, and there is no valuable information an attacker could gain by "compromising" the account.
- FreezerburnV 12y agoHave you considered being able to convert between an automatically-generated link/id user, and a username/password user? That way someone could potentially make a more "permanent/secure" account from the easy one. This might require removing a generated account if someone logs into an existing account from a new browser though.
- s_kilk 12y agoProbably, at some point. I'm pretty sure at some point we'll have features which are worth protecting and at that time we'll need to offer an opt-in stronger method of account security. EDIT: for some reason I can't reply to FreezerburnV's comment below, so I'll answer here: yes, I would be interested in talking further about this, drop me an email (in my profile)
- FreezerburnV 12y agoOut of curiosity: Are you looking for any casual code contributors? The main ideas behind the site (automatic anonymous account, "slow" web kind of thing where you only see updates once a day, possibly seeing some interesting thought-provoking stuff each day) are actually pretty interesting, and I think I'd enjoy helping out with what you're working on. I have a job and my own side project(s), so I can't say I'd be really in the nitty-gritty of the project all the time, but maybe I could help out here and there. I would understand completely if you don't want a random stranger on HN touching/seeing your code though :)
- FreezerburnV 12y agoI don't see an email in your profile (by clicking on your username attached to the post). I just see submissions/comments. I can send an email to the one listed on the nightchamber about page, or you can check my profile where I just added an email address that I can be reached at. I should have put a contact email in my profile a while ago, my apologies for only having done so now.
- s_kilk 12y agohuh, that's odd, anyway, I can be reached at shane @ kilkelly.me :)
- FreezerburnV 12y agoI sent an email to that address. It has the title "From FreezerburnV". Hopefully it doesn't end up in a spam folder or something.
- kasey_junk 12y agoI also have been experimenting with "hard to guess" links as the id. I also am not sure it is a good idea, but one of the by products of this design choice is I had to think harder about what markets I target (I am ruled out of any where the data needs to be protected), how to detect and protect the data of the users in the face of vandals and how to allow for recovery of the data if the vandal countermeasures fail. While doing this I realized that I should have been dealing with these things anyway and that I was lying to myself about the security of my systems anyway. I also realized that the login-less user experience is so valuable that until I can replicate it in a truly secure fashion (via client side certificates or something?), I would rather give up on any feature that requires logins.
- AndrewDucker 12y agoThis is what I was hoping Persona would do for us - you could click "Login", it would ask which identity to use, and then use that to log you in. Sadly, it doesn't seem to have achieved enough traction (although I still hope).
- WorldMaker 12y agoMe too. Persona is great and has a very nice login flow, and is the best as a user in terms of what is/is not shared with an IdP... Just need to get more websites to use it. (I've written about setting it up in an ASP.NET website and it is really easy to do and work with.)
- laurencei 12y agoI never really understood the reasoning behind the whole "maybe your email or password is wrong - but we wont tell you which" message that websites love to give. The reasoning tends to be along the lines of "prevent spammers getting emails" and "security by obfuscation". But almost all these websites have a sign up page, and if the email address is already in use they will happily let you know that. Therefore if a hacker/spammer/bad guy wants to brute force your application for emails - they can just use the 'sign up' page to get the emails instead of the 'forgot password' page.
- unfortunateface 12y agoI would argue that registration pages should not let someone know if an email is in use - if a duplicate email is used in registration then the site should just send a quick email notifying the user that this email is already in use (with sensible DOS protection and email opt-outs etc.) Your use-cases miss out one type of hacker/spammer/bad guy - the one who is only looking for you, they know your email, they want to profile you specifically. Over the top/exaggerated example (with many implicit caviats!)... Mr Smith has Mrs Smiths email - he uses it to try to register with a Dating Website - but hold on, it's already registered! Now there could be 3 reasons for this... 1. infidelity 2. It pre-dates the relationship 3. A third party trying to cause trouble by signing Mrs Smith up. I don't believe a company has the right to decide what data they hold on you is visible to the outside world - without expressly asking you.
- maaarghk 12y agoWhat happens on the front end in that case? Would it be an irritating "Please check your email to continue registration" kind of situation? Because people don't like that as of 2010 ish
- sp332 12y agoYeah, I've gotten that recently. It's not that annoying, since you're going to have to validate your email address at some point anyway.
- 12y ago
- laurencei 12y agoThe author refers to "Handle common user mistakes" - by displaying a message "your caps lock is on". Personally I love the Facebook approach. Facebook just accepts passwords with caps lock inverted, so you never have the problem in the first place. No need to display a message to the user. Link: http://www.zdnet.com/article/facebook-passwords-are-not-case-sensitive-update/ http://www.zdnet.com/article/facebook-passwords-are-not-case...
- onion2k 12y agoThat's a good approach for usability but it does halve the keyspace for anyone attempting a brute force attack. It might not be appropriate everywhere.
- ZoFreX 12y agoHalving isn't really a big issue, when we're talking about something that normally talk about in exponents.
- deleted 12y ago[deleted]
- lost_my_pwd 12y agoNot if, when caps lock is detected, the case is inverted before submitting.
- benihana 12y agoOfftopic but: >that users could accept an URL as their "identity" Does this imply Jeff Atwood pronounces URL as earl?
- Frozenlock 12y ago> So, with Discourse, rather than all that, I decided we'd default on a solid absolute minimum password length of 8 characters 8 characters is way too much for someone just 'poking around'. Sure, 6 characters is much less secure, but then again how secure do you need to be for a forum/commenting platform? It's much better to let the user know his password is weak while letting him take it anyway.
- elboru 12y agoExactly my point, I hate to be restricted with my passwords for meaningless websites. "Sorry, but your password must contain an uppercase letter, a number, a haiku, a gang sign, a hieroglyph, and the blood of a virgin." (old joke) But why? Your website is not important, do you know? And if your website is that important (maybe it involves paid subscriptions or something). Then freakin' remind me of those restrictions when I'm trying to log in, so I don't have to think about all the character combinations I might have tried when signing up for your website.
- harshreality 12y agoWhy does it matter how unimportant the site is? When you pick a password, either you pick something simple and totally insecure (password, 3jane, god), something not so weak but still easily crackable ("kLY8rT"), or you use a password manager. The "not so weak but still crackable" intermediate level doesn't make sense. It's probably going to be reused (how many different 6-character random passwords are you going to remember), so it's just as easy to make it 8 or 12 characters to make it harder to crack when one of the sites inevitably has their password database stolen. If they're not hashing, of course, you're screwed no matter how long the password is. If you're going to allow 6 character passwords, that indicates there's basically no cost to user account compromise, so why should there be any password testing at all? If a user wants to use the password "1" and gets hacked, that's their problem, they can create a new account after all. It also indicates that user's contributions to the site are probably of low value, since they don't expect to gain any social capital from their contributions that are worth protecting with a better password. If they think the post(s) have value but are going to abandon the account, they can just as easily use "1password" as their password instead of "123123". It seems like an 8 character minimum and checking against a wordlist is a small price to pay for preventing naive internet users (there are a lot of them) from using horrible, not just bad, passwords.
- ap22213 12y agoEmail is such a terrible way to associate identity. And, I think the industry is really misguided in not taking on the challenge of standardizing identity in a way that's not tied to email (or phone, or phone number, more recently). Sure, it's the quick way, the path of least resistance, but there are so many issues with email as identity, and it's really frustrating to me, as a user.
- celticninja 12y agoPATH of least resistance
- ap22213 12y agoThanks
- sp332 12y agoLike what? Email gives you a name and a domain, which gives you the ability to pick your name and your namespace. It's a pretty good system. In fact, I work for an ISP that will let you pick an email-looking identifier to log into HBO Go etc. even if we don't actually host your email.
- ap22213 12y agoOver the years, I've had to accumulate many different email addresses. I have all of my work addresses, and then I have all the multiples of gmail, hotmail, live mail, yahoo mail, icloud, etc. Each of these addresses is associated with different web accounts, and I can't consolidate or even associate different addresses to different accounts. Worse, I can't migrate to a new email provider (say, my own) without lots of work. Now, I have new 'identities', too - facebook, twitter, linkedin, my phone, etc. To me, it's a mess, but maybe I'm in the minority.
- sp332 12y agoIt's definitely a mess, I just can't think of anything better.
- gadders 12y agoMaybe out of scope of the article, but for the section on rate-limiting he could maybe mention tptacek (and others') advice and recommend using bcrypt. http://codahale.com/how-to-safely-store-a-password/ http://codahale.com/how-to-safely-store-a-password/
- gambiting 12y agoI was actually surprised by how Snapchat handles it. When I tried creating an account, it told me my login is already taken(something that is super weird, since I have never found anyone else using it), so I assumed I already must have an account. I clicked on "forgot your password" , entered my email, and in fact - I have received a "password reset" email. Clicked on the link, typed in new password.....but then when I tried logging in it told me this account doesn't exist. So it allowed me to reset a password for an account that never existed - and that struck me as really interesting.
- untilHellbanned 12y agoWhat is "interesting"? Does this mean they have a crap login workflow? Or are you suggesting they are doing something intentional?
- gambiting 12y agoYeah, I am sure they are sending the "password reset" email out intentionally even though they fully know this account doesn't exist, so an attacker wastes resetting a password for it.
- theanirudh 12y agoI think email+password is still too confusing for "normal" people. Phone number + OTP is becoming very popular in apps, especially in developing countries where a lot of people don't even have/know what email is. I think this was mentioned in a recent a16z podcast as well.
- Kurtz79 12y agoI would never put my phone number anywhere near a login screen. At least my email has a spam filter.
- peterwwillis 12y agoThe 'email does not exist' decision they make here is debunked for one single reason: risk assessment. Is there a risk associated with implementing this use case that outweighs not implementing this use case? Here the use case is 'tell someone if their email is [not] registered', and the risk is 'identifying existing user accounts at login time'. So let's see which is appropriate. In the best case, implementing this feature lets a user know which of their e-mail addresses are registered on your site, giving them an easier log-in. In the worst case, an attacker can immediately identify what users have accounts on this site, exposing the users to a violation of privacy. Some counter that site registration will always provide this information when attempting to register an existing e-mail address. But this is easily mitigated: a captcha as well as holding off verification until the last step of registration puts the brakes on the attacker, making it more difficult to scan through potential accounts. By slowing down their attack methods you're helping to reduce risk. And finally, do we really need to tell the user what e-mail they used? I'll wager that the great majority of users enable browser form-filling, and so their e-mail is sitting right there in the login box waiting for a password. And i'd also wager that most users with multiple e-mails will be cognizant of which they use for an account on a site like yours. So to avoid the few times a user doesn't save form fields and can't remember which e-mail they use for sites like yours, bad people get an easier way to do bad things. For these reasons I think it's clear that the minor inconvenience in a very small number of cases is worth it to help slow down privacy violation en-masse. --- Nit-pick: why would God call the field 'User' if they really meant 'Email'?
- Exuma 12y agoI've never seen the Randy Pausch video before, that was amazing.
- blergh123 12y ago"Your best course of action is not to build a login dialog at all, but instead rely on authentication from an outside source whenever you can." What do people use as their outside source for authentication?
- ProAm 12y agoOpenID I presume, or something similar?
- oddevan 12y agoProbably something Oauth-like, say Facebook, Twitter, GitHub, tumblr., Google, Yahoo...
- mark-r 12y agoJeff was a big OpenID proponent while developing StackOverflow, and it looks like he still is. Even if he's recognized the necessity of offering a more common login approach.
- minikites 12y ago> The beauty of a minor was that I could cherry pick all the cool CS classes and skip everything else. This explains a lot about the quality of his code.
- alexggordon 12y ago> ...and verify the password to make sure it is not one of the 10,000 most common known passwords by checking its hash Am I missing something here? 1. I navigate to discourse 2. Select "try discourse" 3. "Sign Up"[0] 4. Dummy username/email 5. Password: 12345678 6. Wait, it succeeded? What did I just read? Have they not implemented this yet? Maybe I'm the first person to test it? Definitely a common password[1] [0] http://try.discourse.org/ http://try.discourse.org/ [1] http://www.cbsnews.com/news/the-25-most-common-passwords-of-2013/ http://www.cbsnews.com/news/the-25-most-common-passwords-of-...
- dspillett 12y ago> > ...and verify the password to make sure it is not one of the 10,000 most common known passwords by checking its hash That bit confuses me - why the need to check the hash? You have the password plain and you have the list plain, just compare the strings directly. If you have a hashed version of the list and are comparing hashed passwords to that, then you are hashing your passwords wrong: the parameters to your salt function should vary per-password so that people using the same password as each other (or someone using the same password for many accounts) are not obvious should your credentials store be compromised.
- alexggordon 12y agoExactly. I don't know why you need to check the hash, not to mention it doesn't seem to be working at all. If you're just checking to see if it's a common password, wouldn't it be easier to just store a dictionary?
- aerialcombat 12y agoIt's funny how many people choose to talk about something besides the point of the story.
- Dirlewanger 12y agoPeople always need to feel superior in some way (picking apart spelling mistakes, ad hominems, etc.), and on the Internet, it's so low-cost to do so. Doesn't matter how "civil" the community may seem.
- tasty_freeze 12y agoThat little aside about "log in" vs "login" irritates me because there is a correct answer. "login" is a noun, while "log in" is a verb phrase. They are two separate things. The button to log a person into the system is a command (a verb), thus it should be "Log In", not "Login".
- palebluedot 12y agoWhile what you say is true, what matters more is the UI experience. Some people will naturally conflate "login" and "log in", even if they shouldn't. Also, there are other factors - fonts, monitor dpi, and other factors may make it more difficult to discern between "login" and "log in" on a button, for instance.
- derekp7 12y agoThe problem I have with using email for login, is I often don't know which email address I used to sign up for the given service. There is my Google Gmail address, my work email, and the primary one I use for my personal domain. On top of that, I use wildcard forwarding on my personal domain, so anything@example.com gets to me@example.com. The only way I can tell which ID i used when I signed up is to go through my email archive and try to find something from that site.
- localhost 12y agoBut Jeff very clearly says enable logins using your user ID OR email address. Obviously, if you forget both you're going to have problems :)
- mseebach 12y agoHow is remembering an arbitrary string (your user ID) different from remembering [arbitrary string]@yourdomain.com ?
- mercer 12y agobecause the former is just an arbitrary string that you might be using in many places, and the latter is an arbitrary string PLUS a domain for one of your potentially many email addresses. Sure you see the difference...?
- derekp7 12y agoyes, that is my situation -- I'm more protective of email addresses than I am of login ID's. I happen to be derekp7 almost everywhere.
- HCIdivision17 12y agoDo we even need a sign-up dialog? Couldn't we just log in, and if it doesn't exist yet, tell the user to verify via the incoming email? I'll grant that there's likely some stuff that some sites want to do on first visit, and that if some do it, users will eventually expect all to be like it. And perhaps that's why we have two dialogs now. But is there any security/pain point related to it? (Assume there's some small snippet of text that makes it clear what's going on, I guess.)
- mikegioia 12y agoI often think this is the right way to go. I think even if you type the wrong password, it should ask you then and there to reset your password to what you just typed in (confirming via email). This even has the added benefit of the user changing their password more than never.
- Lan 12y agoI can see this causing some issues with users that have multiple email addresses. It may cause panic if they log in, see that it is successful, but do not see any of their normal account data. They may assume that their account has been deleted or their data lost.
- oddevan 12y agoSimilarly, I've lost count of how many times I've hit "log in with Facebook" and accidentally created a new account.
- rjuyal 12y agoThis is what I always want. If I am trying to login to a website where I never register. Simply send me a mail to activate it.
- TheLoneWolfling 12y ago> Oops, the user entered their email as [email protected] instead of [email protected]? Or [email protected] instead of [email protected]? ... > when presented with a login dialog, like to rapidly type > [email protected], tab, p4$$w0rd, enter ... So... Tell me. Considering that you don't block people finding out email addresses on Discourse in the interests of user-friendliness, why on earth are you blocking email addresses, and ones for the purpose of examples at that? An interesting juxtaposition there, and rather ironic, to put it mildly. Also: > I think a nice middle ground is to insert standard pauses of moderately increasing size after repeated sequential failures or repeated sequential forgot password requests from the same IP address. So that's what we do. So what about NATs? There are countries with one public IP address.
- cheshire137 12y agoSite seems to be down.
- gatehouse 12y agoOn letting the user switch between register and login at any time, there is one small thing that tumblr does that I like. If you go to tumblr.com it displays the registration page with email/password/username. If you just type in email+password on this page, it still works. So an incomplete registration form can be used to login.
- d23 12y ago> I think a nice middle ground is to insert standard pauses of moderately increasing size after repeated sequential failures or repeated sequential forgot password requests from the same IP address. So that's what we do. I like this. Captchas annoy the end-user and have been completely broken by foreign manual typers with an API (e.g. http://humancoder.com/ http://humancoder.com/). It seems to me pauses would solve the issue, at least an IP level, without any inconvenience to the end-user.
- shalmanese 12y agoI wish, also that a login page would tell me if I entered in a password that doesn't meet their password requirements and then show me what those requirements are again. Often, when I get the password wrong, I have to go to the signup page to see what random password requirements this site requires so I can remember what password I made up for it.
- MarkMc 12y agoI suspect that many users when told their password is too common simply add a "1" or "123" suffix. Such behaviour would significantly weaken this method of using the top 10,000 password list as a filter.