Skip to content
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

[GHSA-wx54-3278-m5g4] Integer overflow in BCrypt class in Spring Security #4501

Conversation

SunBK201
Copy link

@SunBK201 SunBK201 commented Jun 5, 2024

Updates

  • Affected products

Comments
According to Patch, this vulnerability was introduced from 5.2.0.RELEASE.

@github-actions github-actions bot changed the base branch from main to SunBK201/advisory-improvement-4501 June 5, 2024 14:45
@shelbyc
Copy link
Contributor

shelbyc commented Jun 5, 2024

Hi @SunBK201, I looked into the history of the file BCrypt.java and saw that most of the code changed in fix commit spring-projects/spring-security@a40f735 was added in version 3.1.0.RELEASE, specifically spring-projects/spring-security@8565116. Are there any changes to BCrypt.java that occurred in 5.2.0.RELEASE that lead you to believe 5.2.0.RELEASE is the first vulnerable version?

@SunBK201
Copy link
Author

SunBK201 commented Jun 6, 2024

According to spring-projects/spring-security@a40f735, vulnerable method crypt_raw in 5.1.13. Vulnerability statement rounds = 1 << log_rounds; does not exist in 5.1.13, induceing commit: spring-projects/spring-security@388a7b6 in 5.2.0

@shelbyc
Copy link
Contributor

shelbyc commented Jun 7, 2024

Hi @SunBK201, thank you for showing me the commit that introduced rounds = 1 << log_rounds;! After comparing spring-projects/spring-security@388a7b6 and spring-projects/spring-security@a40f735, I agree that it makes sense to set 5.2.0.RELEASE as the minimum vulnerable version.

@advisory-database advisory-database bot merged commit b7563ef into SunBK201/advisory-improvement-4501 Jun 7, 2024
2 checks passed
@advisory-database
Copy link
Contributor

Hi @SunBK201! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future!

@advisory-database advisory-database bot deleted the SunBK201-GHSA-wx54-3278-m5g4 branch June 7, 2024 14:50
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.

2 participants