Currently if passwords are guessed incorrectly, normal flood control kicks in and OTP doesn't leak any additional information about correct/incorrect guesses. Do we need flood control for correct password guesses with incorrect TFA codes?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2922056-8.patch | 6.8 KB | sam152 |
| #6 | 2922056-6.patch | 5.11 KB | sam152 |
Comments
Comment #2
sam152 commentedI think we should register a hit against "user.failed_login_user" when the OTP is incorrect and let the user login form protect against further login attempts.
Comment #3
sam152 commentedDoing #2 properly looks pretty complicated.
Comment #4
sam152 commentedComment #5
sam152 commentedComment #6
sam152 commentedComment #7
sam152 commentedI'm not sure this is correct. In theory you could login and logout with all correct credentials 5 times in an hour and hit the flood control.
Comment #8
sam152 commentedFixing #7.
Comment #9
kim.pepperCan we inject these services?
Comment #10
sam152 commentedFraid not, the method is a form validation callback so it needs to be static.
Comment #12
sam152 commentedComment #13
sam152 commented