4 ms·
Rate limiting is better than lockout. Other federal agencies (IRS in particular) require lockouts with only 3 bad password attempts. That generates really high
by Spooky23 10y ago
Rate limiting is better than lockout.
Other federal agencies (IRS in particular) require lockouts with only 3 bad password attempts. That generates really high reset/unlock call volume -- easily 20-30% of users require intervention or reset compared to 7-12%.
- mulmen 10y agoCan you explain those numbers? 7-12% of what? Are you suggesting that rate limiting reduces call volumes by a little more than half compared to lockouts? Where did you get the data?
- ajkjk 10y agoI think s/he's saying that rate limiting leads to fewer password resets compared to lockouts. Which makes sense.
- Spooky23 10y agoIn one large, diverse environment I'm familiar with, that policy spiked the need for intervention (password resets, unlocks, etc). That spikes costs. Many users (mobile) need to call someone, which is $$$. Those interventions also lead to things like figuring out what app stored password is relocking the account. That kind of exercise could cost a few hundred bucks. ...all for zero benefit.
- rrobukef 10y agoHeh, I often have more than 3 wrong password attempts. Lockout is a really bad idea for me.
- richmarr 10y agoContext is also relevant. The iPhone for example has a PIN lockout, and young kids love phones. More than once I've been punished by Apple for my kids curiosity.
- viggity 10y agoI worked for a State government about 10 years ago. Some asshole managed to lock every single user's account by having a script attempt a login with an invalid password 10 times. Nobody could work for ~7 hours.
- jessaustin 10y agos/asshole/volunteer pentester/
- wslh 10y agoYes, and I like the approach that Trezor takes [1] for 4-digit PINs where the wait time increases by power of two. Also adding 2-factor authentication increases the security even on weaker passwords. [1] https://doc.satoshilabs.com/trezor-faq/threats.html#brute-forcing-the-trezor-pin https://doc.satoshilabs.com/trezor-faq/threats.html#brute-fo...
- drfuchs 10y agoUnlimited doubling of wait time puts you right back to being vulnerable to DOS.
- Loggie 10y agoSurely DOS would only be an issue if the service literally sat there doing nothing for that period of time? Isn't the solution here just to reject all requests for that period of time doing the absolute minimum processing required?
- detaro 10y agoNot DOS against the entire service, against a targeted user not being able to access the server (because you just entered a wrong password often enough that the system blocks his valid log-in attempts).
- noxToken 10y agoThis is ripe for abuse. Case in point: Back in my time in the military, there was an online portal that held your service information, the ability to request leave (time off), pay, etc. It was the place to go if you needed information aside from a paystub. It required 8 char min, two upper, two lower, two special char (from a predefined list), and passwords would expire every 30 days. The thing is, most people knew all of their service info off of the top of their head. People also weren't requesting leave very often either, so most people would have to change their password on every login from some bullshit permutation of keyboard rolling with numbers and special chars tacked onto the end. All that being said, you only had 3 attempts before lockout. No one wanted to risk lockout, so you'd make a throwaway password and reset it if you wanted to login. If you were locked out, it was a call to a civilian contractor with a hold time of 10-30 minutes just to get a temporary password emailed to you. One of the easiest ways to fuck with someone was to intentionally lock out their account. It was trivial to find someone's username via searching through the email global address list. Then you pull up the portal, enter their user, smash the keyboard, and cackle as you have cost that person a guaranteed 10 minutes minimum just to do something trivial like print something from their file.
- blauditore 10y agoYeah, after 3 failed attempts, just lock the user for 1 second. Brute force still will lead nowhere and real users will hardly notice. I wonder why this didn't establish in the first place...
- jjnoakes 10y agoWhy wait until 3 tries? Why not just require 1 second between all attempts?
- blauditore 10y agoHmm, I guess this makes sense. Not sure what I was thinking...
- viggity 10y agoif you're hashing with PBKDF2 and 100k+ iterations, it can take that long anyway.
- tedunangst 10y agoBut not in parallel.
- sleavey 10y agoCan hashing iterations be conducted in parallel? Doesn't the next hash need the output of the last, making this a sequential operation?
- niftich 10y agoBoth of you are correct, just talking about different things. PBKDF2 rounds are clearly sequential. Meanwhile, you can issue multiple simultaneous requests in parallel to try to authenticate the credentials, possibly from a large bank of distinct hosts.
- jldugger 10y ago
- ZoFreX 10y agoIt's pretty meaningless to say "this is rate limiting not lock-out" when the rate limit is a ~7 hour wait between attempts. Many lock-outs automatically unlock faster than that! The comment you are replying to is correct, this is a DoS vector.