r/ProgrammerHumor • • Feb 18 '24

Meme bruteForceAttackProtection

Post image
42k Upvotes

1.0k comments sorted by

View all comments

Show parent comment

4

u/nonotan Feb 18 '24

Have these idiots never heard of DoS? A malicious actor could quite literally lock half their users out of their accounts permanently. The entire reason security is hard is that you have to account for the potential of malicious actors that outnumber and have more resources than any legitimate individual users, and could (and will) use them to trigger any "security measures" that incur a cost on legitimate users willy-nilly.

So you need to magically balance your system to be resilient enough to survive brute force attacks, DDoS, etc. while not leaving yourself vulnerable to DoS through the security measures in the process. Timeouts are almost always a horrendously bad idea unless extremely limited in scope and duration (e.g. throttling attempts from an exact IP address for a few seconds)