Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nanaya
Copy link
Collaborator

@nanaya nanaya commented Nov 26, 2019

That was weird. Slightly lenient password match check.

Comment on lines 74 to 77
// 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);
Copy link
Collaborator

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..?

Copy link
Collaborator Author

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"

Copy link
Collaborator

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

Copy link
Collaborator Author

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) 💃

Copy link
Collaborator

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 ಠ_ಠ

Copy link
Collaborator

@notbakaneko notbakaneko left a 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?

@notbakaneko notbakaneko merged commit b14ae17 into ppy:master Nov 28, 2019
@nanaya nanaya deleted the login-attempts-update branch December 25, 2019 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants