Prismatik / auth

A generically useful authentication and authorisation server based on a heirarchy-free inter-entity permission system
5 stars 1 forks source link

auth failures talk too much #35

Open kaievns opened 8 years ago

kaievns commented 8 years ago

when the signIn fails due to a wrong username or wrong password, the response error actually says either wrong username or wrong password.

this is a security vulnerability. firstly it tells the attacker that they've got the username right. and secondly it allows the attacker to check your system against existing email databases and know who's actually registered in the system.

the failure message should just say 'wrong username or password'. don't even mention 'email'