News for hackers. Stuff that matters.
Re:Authentication Cheat Sheet by jfroma on Monday February 02, 2015 @11:53AM (#8985136)
Yes, and it is very hard to show a generic error during sign up.

"There is an error with your data..." WHAT ERROR? I've typed 10 fields.

I think a better approach is to rate limit wrong usernames / emails during sign in.

Re:Authentication Cheat Sheet by x1j7xJuzX on Monday February 02, 2015 @12:22PM (#8985307)
It's not a difficult problem to solve. Just let the sign-up succeed whether an account already exists for the email or not. Then say "You will receive an email with instructions to complete your registration".

If there was no existing account, send an email with the text: "An account was created for this email address at Example.com. If you requested this account, you may activate it by clicking here: https://..."

If there was an existing account, send: "An attempt was made to create a new account at Example.com for this email address, but you already have an account. If you have forgotten your password, visit https://..."

Re:Authentication Cheat Sheet by birdmanjeremy on Monday February 02, 2015 @02:06PM (#8986065)
Yes, this was the alternative we discussed. We opted to go with the simpler (and very common) signup process, which does admittedly leak some information.
Re:Authentication Cheat Sheet by jdbernard on Monday February 02, 2015 @01:19PM (#8985689)
That works for sign-up, but not for the far more common case of sign-in.
Re:Authentication Cheat Sheet by birdmanjeremy on Monday February 02, 2015 @02:07PM (#8986073)
If you use this approach, the idea is then that you use a generic login failure message. This prevents leaking of any account information, but provides a different (poorer, IMO) user experience.
Re:Authentication Cheat Sheet by birdmanjeremy on Monday February 02, 2015 @02:05PM (#8986050)
This is exactly the approach we took.