Brute force protection

@memes

You are viewing a single thread.
View all comments
8 points

Not to be pedantic but wouldn’t it be IsFirstLoginWithAttemptedPassword or am I missing something?

permalink
report
reply
8 points

no, since it first checks if the password is correct. if it is, display error message. if it is corrent and the second time, accept the password (code not in screenshot) but if the password is wrong, it doesnt check if it is the first attempt.

permalink
report
parent
reply

How does that stop a brute force attack? As written, it only stops the single luckiest brute force attack that happens to get the password right on their first try.

permalink
report
parent
reply
3 points

You can’t really prevent a brute force attack. Even if you prevent it from one IP or so, you can still do “distributed” brute force attacks.

Also only allowing one password per 5 seconds or so per IP will not work if you have lots of users and they are at work and have the same IP.

permalink
report
parent
reply
1 point

It wouldn’t stop most brute force attacks, which are not performed on the live web service, but rather on a password hasb list that was stolen via some other means.

permalink
report
parent
reply
5 points

No, it’s correct - say your password gets leaked across thousands of passwords. A hacker will try to crack all of them with a program that guesses them once, which as the image suggests defeats these types of programs

permalink
report
parent
reply
1 point

You’re right, and nothing wrong with being pedantic when working with code :)

permalink
report
parent
reply
1 point

@cobra89
Yeah I agree.

permalink
report
parent
reply

Memes

!memes@lemmy.ml

Create post

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

Community stats

  • 11K

    Monthly active users

  • 13K

    Posts

  • 286K

    Comments