Posted by usa on 27 Oct 2014
We changed the default setting of ext/openssl in Ruby 2.1.4, Ruby 2.0.0-p594 and Ruby 1.9.3-p550. With this change, insecure SSL/TLS options are now disabled by default. However, by this change, there is a possibility of some problems in the SSL connection.
Details
OpenSSL still implements protocols and ciphers that are considered insecure today by historical circumstances. Like POODLE vulnerability (CVE-2014-3566), if you continue to use OpenSSL with such insecure features, you may not be able to keep the safety of network communication. So, based on the discussion in Bug #9424, we have decided to disable such insecure SSL/TLS options by default. If you need to cancel this change (shown below), apply the reverse patch to revoke it.
However, if you cancel this change, there is a risk that you can not guarantee the safety of network communication. You should understand the implications of this change before removing it.
Bundled libraries of Ruby
This change is reflected in net/http, net/imap and net/pop. Since DRb and WEBrick receive the setting separately, this change does not effect them.
Scripts that use ext/openssl directly
This change is reflected when an OpenSSL::SSL::SSLContext
object is instantiated and the instance method set_params
is called.
In particular, code such as:
When using ext/openssl as a client side, we assume that there may be no problem with this change. However, if you are using ext/openssl as a server side and reflect this change, some old clients (Internet Explorer 6 on Windows XP, browsers in old cellular phones, etc.) may not be able to connect to the server.
It is your decision whether to enable this change or not, consider the trade-offs.
Workaround
If you cannot update Ruby but you have to cope to insecure SSL/TLS options, apply the following monkey-patch:
Affected versions of this change
- Ruby 1.9.3 patchlevel 550 and later
- Ruby 2.0.0 patchlevel 594 and later
- Ruby 2.1.4 and later
- revision 48097 and later of trunk
History
- Originally published at 2014-10-27 12:00:00 (UTC)