Skip to content

SEC-2128: BCrypt.checkpw gives false positive when long pw with same prefix. #2354

@spring-projects-issues

Description

@spring-projects-issues

Jem Mawson (Migrated from SEC-2128) said:

BCrypt.checkpw seems to ignore differences in the password after a certain number of characters. If the first 70 or 80 characters of the password being checked is the same as the password that generated the hash then the check will succeed.

See referenced commit for a failing testcase.

Metadata

Metadata

Assignees

Labels

in: cryptoAn issue in spring-security-cryptostatus: invalidAn issue that we don't feel is validtype: bugA general bugtype: jiraAn issue that was migrated from JIRA

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions