-
Notifications
You must be signed in to change notification settings - Fork 283
Update crypt_blowfish implementation from v1.1 to v1.3 #91
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
Conversation
reedloden
commented
Mar 11, 2014
- Fixes Possible security flaw in your Solar Designer bcrypt implementation #39, Update crypt_blowfish implementation from v1.1 to v1.2 #80
- Include new tests from upstream (fixes Add additional tests from OpenWall implementation sources #84)
|
Can you link the upstream source for the new code? |
|
Sure... Basically, upgrading from http://openwall.com/crypt/crypt_blowfish-1.1.tar.gz to http://openwall.com/crypt/crypt_blowfish-1.2.tar.gz The jBCrypt implementation doesn't support versions other than '2' and '2a', so tests fail. Also, due to issue #82, there are going to be other test failures between the MRI and JRuby implementations. I could just either break out those tests to a separate MRI-only block or just add a new field that says whether a testcase is jruby-friendly or not. Thoughts? |
|
/cc @github/security |
|
Hey guys, any way I can help with this? We're trying to auth against a PHP db that's using 2y. Getting bcrypt-ruby to handle 2y would really help. |
|
Is this blocked waiting for a jBcrypt fix? |
|
bump |
It's definitely not helping. |
|
Any thoughts on what to do with the jBcrypt failures? |
|
Optimally, the Java version could be updated to also account for 2x and 2y prefixes. A "fork" of jBcrypt exists in the form of spring-security's BCrypt.java, but the changes have mostly just been to align it with Spring's styles, and not functionality updates. Perhaps someone over there would be more willing to update the Java implementation (since Spring has some corporate backing), although I don't know that the original author has been contacted about updates either (unfortunate side affect of not being on GitHub for issues/PRs). Also, unrelatedly, crypt_blowfish version 1.3 has since been released. |
* Fixes bcrypt-ruby#39, bcrypt-ruby#80 * Include new tests from upstream (fixes bcrypt-ruby#84)
fdf7e5e to
c5e4360
Compare
|
I've updated this PR to include crypt_blowfish v1.3 |
|
What's blocking this? |
|
We just had the issue with reading data from PHP using 2y as well. It'd be nice to fix this. |
|
What's happening here? This has been open for almost three years. What's going on? |
|
You offering help?
B mobile phone
… On Jan 4, 2017, at 8:26 PM, Duane Bailey ***@***.***> wrote:
What's happening here? This has been open for almost three years. What's going on?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@bf4 I'd love to help. What can I do? |
|
@reedloden Are you still working on this? |
|
There's nothing more I can do. I don't have commit privileges for this
repository.
…On Mon, Mar 6, 2017 at 6:18 PM Benjamin Fleischer ***@***.***> wrote:
@reedloden <https://github.com/reedloden> Are you still working on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#91 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAVf-wSmhYuVfmCScg-8Dbq96ZU4ZRS5ks5rjL5-gaJpZM4BofB1>
.
|
|
Guys, what needs to be done for this? I help in anyway I can. I need this! |
|
I am also curious what the hold up is. I had to create my own fork/release of the gem with just this fix in and dropping support for jruby / rbx so that I could get this to work. I would much rather it be in the original gem |
|
@dissolve From the sounds of this answer on stack overflow: https://stackoverflow.com/a/20981781 it sounds like you can just replace I gave it a quick test as I've just come across the same issue (migrating to ruby from a php app which stored the hash with a |
|
that works if its your code, the problem was that it was not my code and not something I wanted to delve into. it was far easier to change the installed gem to bcrypt4. still not something I should have to do. |
|
Done in #182 |