|
|
|
|
|
by zaroth
1976 days ago
|
|
I know this goes contrary to “best practice” but I am very much in favor of this approach. You want to focus on implementing good soft and hard rate limiting on all your endpoints. You can obfuscate the login function to return an unhelpful error message, but unless you harden every possible public API against user enumeration — and most sites do not - you are just hurting the UX for no actual security gain. This would include constant timing for returning results when there is or isn’t a user, so for example, running your hash function even when you don’t have a password to compare it to. Years ago there was a big push to return unhelpful error messages, but then the signup or password reset functions would act as a user exists oracle anyway. Login got harder for zero actual gain in security. |
|