🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87948

Re: INN 2.6.3 with Debian 10 "Buster"

#87948
From: Michael Bäuerle
Date: Sat, 27 Apr 2019 11:16
58 lines
3412 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > 
> [Security Level 2]
> 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.

Even if Level 2 will not be in the final Debian release, Level 1 looks
weak compared to what is in common use for TLS today:
- Authentication with Let's Encrypt certificates using 2048 Bit RSA-keys
  (=> Level 2)
- ECC-based key exchange with 256 Bit curves
  (=> Level 3)
- Symmetric encryption for the payload with AES128
  (=> Level 3)

FFDHE key exchange with 4096 Bit group (Threshold for Level 3: 3072 Bit)
should be a bit stronger than ECDHE with curve P-256.

> > 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

Thanks.

> > 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.

If Debian really increase the minimum TLS protocol version to 1.2, then
I would expect little collateral damage (clients that are too old to
support the 4096 Bit FFDHE-Group are expected to not support TLSv1.2 or
TLSv1.3 too).

Otherwise the group in user-specified file would be "nice to have",
to be able to configure an anachronistic weak setup only for old
newsreaders by intend.

Technical Details
Message-ID: <AABcxDoP360AAAxI.A1.flnews@Server4.micha.freeshell.org>
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: <AABcwybztOoAAACo.A1.flnews@WStation5.stz-e.de> <qa18h7$gma$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABcxDoP360AAAxI.A1.flnews@Server4.micha.freeshell.org>
Subject: Re: INN 2.6.3 with Debian 10 "Buster"
Date: Sat, 27 Apr 2019 11:16:31 -0000
From: Michael Bäuerle <michael.baeuerle@gmx.net>
References: <AABcwybztOoAAACo.A1.flnews@WStation5.stz-e.de> <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-mail
X-Received: by 2002:a1c:7e10:: with SMTP id z16mr11766835wmc.117.1556363812057;
Newsgroups: news.software.nntp
Lines: 56
Mime-Version: 1.0
X-Trace: individual.net jHMjoc/RBVPbwvaOPbGAGwVnEtnAT1pygxk1JOBXJzAR2OhiFT
X-Orig-Path: not-for-mail
Cancel-Lock: sha256:0C0nH4XxiN3y0UMccRCLOJuhC1TUCn0o9jCH1rWVjD0= sha1:34KGvz7dUK0VXlnmmzRTi/En8JI=
Injection-Date: Sat, 27 Apr 2019 11:16:31 -0000
User-Agent: flnews/0.16 (for HP-UX)
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Received-Bytes: 3356
X-Received-Body-CRC: 2976360207