Skip to content

Hash the external-login markers only for passwords that could collide with one (6.1.x) - #384

Open
mraible wants to merge 1 commit into
merge-6.1.8-rc2-into-6.1.xfrom
marker-hashes-when-needed-6.1.x
Open

mraible wants to merge 1 commit into
merge-6.1.8-rc2-into-6.1.xfrom
marker-hashes-when-needed-6.1.x

Conversation

@mraible

@mraible mraible commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

The 6.1.x side of Dave's review of #364: every successful login hashed each external-login marker once more, to catch a password BCrypt treats as equal to one.

… with one (6.1.x)

BCrypt treats a different password as equal to a marker only when the password contains a NUL or is at least 72 bytes, so other logins skip the extra hash per marker. Adds tests for both kinds of collision, which 6.1.x didn't have.
@mraible mraible added the 6.1.x label Nov 24, 2026
@mraible

mraible commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@snoopdave this is the 6.1.x side of your review of #364. It's based on #377 like #378, #380 and #381, so it can be retargeted to roller-6.1.x along with them once #377 merges. Could you review it when you have a moment?

@mraible
mraible requested a review from snoopdave November 24, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants