Lock a user's account after X unsuccessful login attempts #394
Comments
|
|
|
You should be able to reset the account by going through the password reset flow. |
|
The code for this should be in Persona to check for X attempts in Y minutes. |
|
/cc @jrgm Can you find the discussion or code in mozilla/Persona repo. Thanks. |
|
For reference, this is the bug for Persona mozilla/persona#2656 and the PR to implement mozilla/persona#3337. (I misremembered how it was done, and there is no time component; it's simply a count of consecutive failures and the user has to 'forget" their password to regain account access). |
|
We can't just use the forgot password flow because wrapKb gets reset when you complete the reset. This would allow anyone to reset anyone's wrapKb by intentionally locking their account. Not cool. |
|
I think we should at least get something basic in by train-08. |
|
This does raise the question of whether our policies and algorithms on this are public. |
|
What options do we have for notifying a client that they logged wrong too many times in a row? This one? Does Android support this? @ncalexan? |
yep, that's broadly what this is intended for |
|
@ckarlof Android will say something generic: "There was a problem." See http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/locales/en-US/sync_strings.dtd#217 We can land better messaging for 31. |
I intend to implement this and #520 as a separate service that the auth-server queries before handling the request. So it will be possible to have private implementations of these if we need to. |
Just what I was thinking this weekend as well. |
|
@dannycoates is this on your radar for this week? I think we need some bare bones disaster mechanism in place for Fx 29 GA. |
|
@ckarlof we already rate limit by failed login attempts, 5 tries in 15 minutes, i.e. you can't login even with valid credentials during that time after 5 failures. I do plan on making that piece more robust this week. Do we need something that requires user intervention to unlock the account? |
|
Take it to #680. |
Fix a couple of dependency related things
Per #222 (comment)
The text was updated successfully, but these errors were encountered: