1039
submitted 8 months ago by anders@rytter.me to c/memes@lemmy.ml

Brute force protection

@memes

you are viewing a single comment's thread
view the rest of the comments
[-] cobra89@beehaw.org 9 points 8 months ago

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

[-] chraebsli@programming.dev 8 points 8 months ago

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.

[-] 0x0@lemmy.dbzer0.com 1 points 8 months ago

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.

[-] chraebsli@programming.dev 3 points 8 months ago

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.

[-] pythonoob@programming.dev 1 points 8 months ago

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.

load more comments (5 replies)
this post was submitted on 13 Mar 2024
1039 points (100.0% liked)

Memes

45601 readers
1036 users here now

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.

founded 5 years ago
MODERATORS