Update to jBCrypt 0.4 to correct an integer overflow#112
Closed
reedloden wants to merge 1 commit intobcrypt-ruby:masterfrom
Closed
Update to jBCrypt 0.4 to correct an integer overflow#112reedloden wants to merge 1 commit intobcrypt-ruby:masterfrom
reedloden wants to merge 1 commit intobcrypt-ruby:masterfrom
Conversation
2999faa to
e169fe2
Compare
Author
There was a problem hiding this comment.
The problem with character encoding has already failed by this point -- JRuby => Java conversion of the string has already turned out of range characters into 0xfffd (Replacement character); and the use of getBytes("UTF-8") at https://github.com/reedloden/bcrypt-ruby/blob/jBCrypt-0.4/ext/jruby/bcrypt_jruby/BCrypt.java#L676 further distorts the byte values. We've implemented a workaround here https://github.com/lookout/bcrypt-ruby/tree/lookout
Author
|
The upstream issue is CVE-2015-0886 (also see http://osvdb.org/show/osvdb/119055). |
Collaborator
|
As of #182, we no longer use the original jBCrypt — we now use the spring-security fork, which has since drifted away from jBCrypt 0.3 or 0.4. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
http://www.mindrot.org/projects/jBCrypt/news/rel04.html