-
Notifications
You must be signed in to change notification settings - Fork 412
Record more things on various login attempts #5344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/Models/LoginAttempt.php
Outdated
| // The goal is just to allow vaguely matching password - for | ||
| // example when trying same password - to be excluded from being | ||
| // counted as additional attempt. | ||
| return substr(sha1('osu_unique_'.md5($password)), 8, 12); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But vaguely matching passwords would result in completely different hashes..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as in there might be another password resulting same "hash"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only same password and collisions would result in the same result, and the collisions won't even be from similar values since the password is being hashed? The chance of a vaguely matching password returning the same result might as well be non-existent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not "vaguely matching password" but "vaguely matching" password (as in just because it matches doesn't mean it's the same) 💃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not allowing anything then ಠ_ಠ
notbakaneko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intentional for non-existent users to match the same record?
That was weird. Slightly lenient password match check.