-
Notifications
You must be signed in to change notification settings - Fork 82
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
Unsupported RC4 cipher #251
Comments
Hi, thank you for reporting this. Please, could give me more information about your environment. I was not able to reproduce this error. Do you get the same error in a IRB session?
If not, would you mind sending the output of the following commands in IRB?
Also, could you also try using bundle from the ruby_smb root directory?
|
It replicates on a default Ubuntu 22.04 box with OpenSSL 3; If you were testing on a Kali environment or rvm compiled with its OpenSSL 1.1.1 package, it won't replicate. Kali ships global OpenSSL config to enable weak cyphers - for my env it's in Example of replication with Ubuntu 22.04:
To work around this issue, as part of ruby_smb's test suite we've added config to load the weak cyphers by default: For instance if you set the OpenSSL config setting to RubySMB's test config file before loading the OpenSSL library, things would work:
It would obviously be rude for the ruby_smb library to globally set weak ciphers, so it should be enabled in your app in a way that is aligned with your security requirements. There's also the possibility of us updating ruby_smb to use a native Ruby rc4 implementation etc similar to WinRb/rubyntlm#53 but I haven't done an audit for all of the legacy cyphers that we'd need to have native implementations for |
Thanks @adfoster-r7 ! I would prefer a native Ruby implementation as you suggested. |
(Sorry for my english)
In my system and in docker i try use RubySMB::Client and receive error:
.../ruby_smb-3.2.5/lib/ruby_smb/ntlm/client.rb:33:in 'initialize': unsupported (OpenSSL::Cipher::CipherError)
This line contains code
rc4 = OpenSSL::Cipher.new("rc4")
OpenSSL::Cipher.ciphers
show me what rc4 already exists in a list of ciphersI try recompile openssl for my linux with enable-weak-ssl-ciphers parameter - its not help
I try install openssl version 1.1.1f - it`s not help too
Also i fetch last version OpenSSL gem, change ssl.rb file - return RC4 ciphers to list back (I forgot commit which delete this). And its not help too
The text was updated successfully, but these errors were encountered: