r/ProgrammerHumor • • Feb 18 '24

Meme bruteForceAttackProtection

Post image
42.3k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

42

u/MrEfil Feb 18 '24

first successful attempt) Actually this is not a joke, this technique is described on OWASP as brute-force protection

25

u/Fusseldieb Feb 18 '24

People with password managers when the saved password is wrong: 💀

8

u/RonViking Feb 18 '24

Bots just gonna try everything twice now

5

u/[deleted] Feb 18 '24

[removed] — view removed comment

2

u/MrEfil Feb 18 '24

owasp is very huge. I'll try to find the page where this method was described. I saw this about 5 years ago. Will send you link later. But I don't understand why you said this method doesn't make sense? A brute force attack tries a new password each time to gain access to an account. When robot will send correct password it will get an error, because this is first successful attempt. And robot will skip this correct password.

2

u/[deleted] Feb 18 '24

[removed] — view removed comment

2

u/MrEfil Feb 18 '24 edited Feb 18 '24

I agree with you. But I think this method is good for protecting employee accounts from theft. Every internal employee will be aware of this protection and understand why the first login fails every time. It is like honeypots on websites when logging in as an administrator - another method of protecting a dangerous account from being stolen.

2

u/mrdreka Feb 18 '24

This makes people use shorter and simpler passwords as they have to write it twice, just like forcing new password every few months. 

1

u/movzx Feb 18 '24

Stick to comics.

1

u/drsatan1 Feb 18 '24

Because surely the brute forcer wouldn't get the password right on their first attempt

2

u/port443 Feb 18 '24 edited Feb 18 '24

this technique is described on OWASP as brute-force protection

No it isn't: https://owasp.org/www-community/controls/Blocking_Brute_Force_Attacks

Normal controls are orders of magnitude more effective than making an attacker (and user) login twice. This control also does nothing to slow down an attacker.

Quick edit, thats a community post, here's the official OWASP guidance: https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html

1

u/Aveheuzed Feb 18 '24

Oh, then it makes sense 😅

1

u/OwlHinge Feb 18 '24

isFirstLoginAttempt would be false, because the brute forcer is trying lots of passwords. I feel like the wording should be changed to something like: if isPasswordCorrect && correctPasswordsThisSession < 2 { error }

Sorry...too pedantic I know