🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87486

Re: Draft -00 for modernizing TLS usage with NNTP

#87486
From: Michael Bäuerle
Date: Tue, 26 Jul 2016 10:31
102 lines
5767 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > 
> Glad you began MIME-encoding your name in Netnews articles :)

RFC2047 is now nearly 2 decades old. I hope nobody complains with
compatibility reasons anymore.

> > [2.2.  Protocol Versions and Cipher Suites]
> > First: Is this paragraph intended for the client side too?
> > Often there is no administrator for clients and users create the
> > configuration themselves. Most of them may not be able to decide which
> > protocols and cipher suites are good or bad choices to offer to the
> > server. If there is no client side administrator, who should decide for
> > the users:
> > - Nobody
> > - The newsreader (by offering only options considered safe)
> > - The server (by rejecting offered things considered unsafe)
> 
> With the current wording, this paragraph is also intended for the 
> client.  Yet, I had not in mind configurable options in all cases. 
> Maybe it should be reworded this way:
> 
> NNTP implementations of news servers are encouraged to support options 
> to configure the minimal TLS protocol version to accept, and the cipher 
> suites to accept.  Additional options can naturally also be supported. 
> The goal is to enable administrators of news servers to easily and 
> quickly strengthen security, if need be (for instance by rejecting 
> cipher suites considered unsafe with regards to local policy).  News 
> clients may also support similar options, either configurable by the 
> user or enforced by the news reader.
> 
> Any better suggestion?

Is it intended to not use the defined capitalized keywords?
("SHOULD support options" / "MAY also support similar options")

> > The important point is that with current TLS, the client has more power,
> > a server can not choose a cipher suite that the client has not offered.
> 
> Sure a server cannot choose an unoffered cipher suite.  The server can 
> however decide not to use the first cipher suite it knows in the 
> client's preferences.  It may as well choose another one.
> I am speaking of the SSL_OP_CIPHER_SERVER_PREFERENCE option in OpenSSL. 
> By default, INN does that (server's preferences are used).

Is the behaviour the same for the "signature algorithms" extension [1]?

flnews can be compiled to use the OpenSSL 1.0.2 API. The configuration
"RSA+SHA512:RSA+SHA384:RSA+SHA256" is set via 'SSL_CONF_cmd()' in this
case to negotiate only SHA2-based signature algorithms with TLSv1.2
capable servers (and set preference to SHA512).

The OpenSSL documentation [2] say:
| 
| If this option is not set then all signature algorithms supported by
| the OpenSSL library are permissible.

Looking at the values defined by [1] it seems like that this can be
as weak as XXX+MD5 (weaker than for TLSv1.0), if OpenSSL is compiled to
support MD5.

> Configuration TLS options in INN are tlsciphers, tlscompression, 
> tlseccurve, tlspreferserverciphers and tlsprotocols, described here:
>     https://www.eyrie.org/~eagle/software/inn/docs/inn.conf.html

flnews currently only disables SSL according to RFC6176 and RFC7568
with:
| 
| SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3

Maybe I should simply add "SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1" and drop
support for OpenSSL 1.0.0 and 1.0.1. The support for 1.0.1 ends in
December anyway.
But some operating systems still use 1.0.1 and currently 1.0.2h is
broken - it can't check large CRLs anymore (like the one from CAcert
for Eternal September). It's not fun.

> > Following the principle of "least surprise", maybe to explicitly
> > configure what to offer or accept (instead of what should not be
> > offered or rejected respectively) is the better option.
> 
> It is indeed what INN does (configure what to accept).
> In fact, when writing the draft, I wondered whether it wouldn't be 
> better to prevent weak cipher suites from being accepted (because they 
> will always be weak).
> But in all cases, it will need a human intervention either to restrict 
> "AAA" or to allow "DEFAULT,!AAA" (if a cipher suite named AAA is 
> considered weak, and "DEFAULT" means the default cipher suites proposed 
> by the underlying TLS implementation).
> So your remark is adopted (and reflected in the above rewording of the 
> paragraph).

Now both things are defined the same way ("protocol version to accept"
and "cipher suites to accept"). Looks more consistent.


_________________
[1] <https://tools.ietf.org/html/rfc5246#section-7.4.1.4.1>
[2] <http://wiki.openssl.org/index.php/Manual%3ASSL_CONF_cmd%283%29>

Technical Details
Message-ID: <AABXlzwYKRUAABSK.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
References: <nn0m6t$j5k$1@news.trigofacile.com> <AABXlKRk3K0AAAnJ.A1.flnews@Server4.micha.freeshell.org> <nn5rfs$as7$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABXlzwYKRUAABSK.A1.flnews@WStation5.stz-e.de>
Subject: Re: Draft -00 for modernizing TLS usage with NNTP
Date: Tue, 26 Jul 2016 12:31:52 +0200
From: Michael Bäuerle <michael.baeuerle@stz-e.de>
References: <nn0m6t$j5k$1@news.trigofacile.com> <AABXlKRk3K0AAAnJ.A1.flnews@Server4.micha.freeshell.org> <nn5rfs$as7$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-mail
Newsgroups: news.software.nntp
Lines: 100
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net EIq33DAt4FWmPPBh4AMFCA6pC83t8qG2nnP4lY+vb7ghSGXiYM
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:pK+hiuk2pu8cBV9qnukAWB6lHes= sha1:Can3eyulnvJl7mpqiQeh8l5WvIA=
Injection-Date: Tue, 26 Jul 2016 10:31:52 -0000
User-Agent: flnews/0.14pre47 (for NetBSD)
X-Received-Bytes: 5578
X-Received-Body-CRC: 2193968544