mraible opened a new pull request, #384: URL: https://github.com/apache/roller/pull/384
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. - BCrypt can only treat a different password as equal to a marker if the password contains a NUL (BCrypt repeats its key with a NUL after each copy) or is at least 72 bytes long (it reads no more). Other passwords now skip the extra hashes. - On 6.1.x, Spring Security 5.8 truncates at 72 bytes, so both cases are real. New `ExternalLoginPlaceholderTest` case covers a NUL collision with the default placeholder and a 72-byte prefix collision with a long configured one, plus a long ordinary password. It fails if the 72-byte check is dropped. - `ExternalLoginPlaceholderTest` and `ExternalLoginAwarePasswordEncoderTest` pass (16 tests). - Based on #377, like #378 and #380. Retarget to `roller-6.1.x` after #377 merges. For 6.1.8 RC3 if wanted; nothing user-facing, so no CHANGES entry. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
