Red Hat Bugzilla – Bug 1154059
curl: Disable out-of-protocol fallback to SSL 3.0
Last modified: 2015-07-22 01:43:47 EDT
We should disable the retry-with-SSL-3.0 behavior in curl because it can be trivially triggered by an on-path attacker to cause a protocol downgrade, and SSL 3.0 has several known weaknesses. This curl behavior is quite surprising because it is restricted to the NSS backend, and other systems which use the OpenSSL or GNUTLS backend do not share this behavior. At this stage, it is best to leave SSL 3.0 enabled. (The in-protocol version negotiation has not been broken, sosome TLS version will be used automatically if supported by the server.) This might reintroduce bug 525496 and bug 527771, so a system-wide knob to re-enable the SSL 3.0 fallback might be necessary. Perhaps the existence of a file like /etc/sysconfig/curl/enable-ssl-fallback could re-enable the old behavior.
(In reply to Florian Weimer from comment #0) > This might reintroduce bug 525496 and bug 527771, so a system-wide knob to > re-enable the SSL 3.0 fallback might be necessary. Perhaps the existence of > a file like /etc/sysconfig/curl/enable-ssl-fallback could re-enable the old > behavior. Or environment variable? CURL_ENABLE_SSL_FALLBACK? Do curl try to fall back across multiple versions (TLS 1.1 -> TLS 1.0 -> SSL 3.0), or if connection attempt with the highest supported fails, it goes straight to SSL 3.0?
(In reply to Tomas Hoger from comment #3) > Or environment variable? CURL_ENABLE_SSL_FALLBACK? That would also work I guess. > Do curl try to fall back across multiple versions (TLS 1.1 -> TLS 1.0 -> SSL > 3.0), or if connection attempt with the highest supported fails, it goes > straight to SSL 3.0? The fallback implemented by libcurl goes straight to SSL 3.0.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1254.html