Article View: news.software.nntp
Article #87946Re: INN 2.6.3 with Debian 10 "Buster"
From: Julien ÉLIE
Date: Sat, 27 Apr 2019 09:48
Date: Sat, 27 Apr 2019 09:48
75 lines
4324 bytes
4324 bytes
Hi Michael, > There is another TLS related issue with INN 2.6.3 if the "security > level" feature of OpenSSL 1.1 is used: Negotiations for ciphersuites > using DHE key exchange fail if the security level is set to something > beyond 1. The upcoming Debian 10 seems to do this by default: > <https://wiki.debian.org/ContinuousIntegration/TriagingTips/openssl-1.1.1> Thanks for the pointer! Debian Buster enforces the security level to 2. According to OpenSSL documentation <https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_security_level.html> "WARNING at this time setting the security level higher than 1 for general internet use is likely to cause considerable interoperability issues and is not recommended. This is because the SHA1 algorithm is very widely used in certificates and will be rejected at levels higher than 1 because it only offers 80 bits of security." So here we are. There is an interoperability issue with INN. Couldn't it be considered as a Release Candidate bug? I've just sent a mail to Marco in case he is not aware of this current thread. > We tracked down the problem to the function tmp_dh_cb() defined in > "inn-2.6.3/nnrpd/tls.c". This function is installed as callback for > OpenSSL via SSL_CTX_set_tmp_dh_callback(CTX, tmp_dh_cb) to obtain the > FFDHE group for the key exchange. OpenSSL calls this function with > keylength==1024, but for the security level 2 this is too weak: > <https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_security_level.html> > (At least 2048 would be required) > > Because INN doesn't allow to configure the FFDHE group manually, we have > patched the function tmp_dh_cb() to always return the 4096 Bit group > that is compiled into INN Thanks for having investigated and your proposal of patch. I've just committed the following one: https://inn.eyrie.org/trac/changeset/10337 > Such behaviour is allowed and recommended by OpenSSL in the man page: > <https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_tmp_dh_callback.html> > | > | Previous versions of the callback used is_export and keylength > | parameters to control parameter generation for export and non-export > | cipher suites. Modern servers that do not support export cipher suites > | are advised to either use SSL_CTX_set_tmp_dh() or alternatively, use > | the callback but ignore keylength and is_export and simply supply at > | least 2048-bit parameters in the callback. Nice to know that what INN does is recommended by OpenSSL. > A comment of the current INN code says: > | > | ** FIXME: support user-specified files, to eliminate risk of > | ** "small group" attacks. > > This would be another way to provide a FFDHE group that is strong enough > for a desired security level beyond 1. Yes, this feature would be worthwhile. -- Julien ÉLIE « Plus j'y pense, plus je me dis qu'il n'y a aucune raison pour que le carré de l'hypoténuse soit égal à la somme des carrés des deux autres côtés. » (San-Antonio)
Technical Details
Message-ID:
<qa18h7$gma$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<AABcwybztOoAAACo.A1.flnews@WStation5.stz-e.de>Show Full Headers
Complete Article Headers
Message-ID: <qa18h7$gma$1@news.trigofacile.com> Subject: Re: INN 2.6.3 with Debian 10 "Buster" Date: Sat, 27 Apr 2019 11:48:18 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <AABcwybztOoAAACo.A1.flnews@WStation5.stz-e.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 27 Apr 2019 09:48:23 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a77500f0a27d7903261a54.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:f0a2:7d79:326:1a54"; logging-data="17098"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: <AABcwybztOoAAACo.A1.flnews@WStation5.stz-e.de> Content-Language: fr X-Received-Bytes: 4379 X-Received-Body-CRC: 3911814109