πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87012

Re: STARTTLS testing

#87012
From: Steve Crook
Date: Sun, 27 Sep 2015 09:38
54 lines
3190 bytes
On Sat, 26 Sep 2015 21:23:34 +0200, Julien Γ‰LIE wrote in
Message-Id: <mu6rbm$nir$1@news.trigofacile.com>:

> Hi Steve,
>
> Thanks to your further testing.
> I think the explanation of what you're seeing is that your news client 
> does not authenticate after using STARTTLS.
> INN currently determines the permissions of an user when:
> 1/ he connects;
> 2/ he authenticates (via the use of AUTHINFO USER/PASS or AUTHINFO SASL).
>
> When the connection is encrypted from the start (for instance via port 
> 563), auth groups using require_ssl are taken.
> When the connection is not encrypted from the start, such auth groups 
> are not taken into account.  An AUTHINFO command has to be sent after 
> STARTTLS so that they are seen.
>
> Does it explain your test case?

Julian,

Yes, that explains my case perfectly.

> Now, the question is:  should we change that behaviour, that is to say 
> updating the permissions after a successful use of STARTTLS?
> Personally, I think it would be a good change to do.

I agree.  There are other ways to request and validate authentication
while require_ssl is the only way to test for an encrypted connection.

A related issue I can think of is a case where the server operator wants
to match different auth groups for NNTPS and STARTTLS connections.
Perhaps having require_ssl for NNTPS and require_tls for STARTTLS would
be better?

> I also see that if AUTHINFO SASL is used and negotiates a security 
> layer, INN currently does not take that fact into account (that is to 
> say auth groups with require_ssl set to true still won't be matching 
> that connection).  I believe it should.

This is probably another instance of require_ssl being used to match
multiple conditions in the auth group.  The consequence is some
ambiguity in exactly what connection states it should match.  There
appear to be three connection states, clear, NNTPS and STARTTLS.  Any of
those could be used with SASL.  Do auth groups require sufficient
granularity to be able to match these combinations of conditions?

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?

Technical Details
Message-ID: <slrnn0fe7s.tso.steve@snorky.mixmin.net>
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: <slrnn0aagq.tso.steve@snorky.mixmin.net> <mu4a0d$s4e$1@news.trigofacile.com> <slrnn0d4eu.tso.steve@snorky.mixmin.net> <mu6rbm$nir$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnn0fe7s.tso.steve@snorky.mixmin.net>
Subject: Re: STARTTLS testing
Date: Sun, 27 Sep 2015 09:38:04 +0000
From: Steve Crook <steve@mixmin.net>
References: <slrnn0aagq.tso.steve@snorky.mixmin.net> <mu4a0d$s4e$1@news.trigofacile.com> <slrnn0d4eu.tso.steve@snorky.mixmin.net> <mu6rbm$nir$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
Organization: Mixmin
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 27 Sep 2015 09:38:04 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="b3d35a7ea93243cd2837e0450058617a56b6aceb";
 logging-data="25660"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.3-6 (Linux)
X-Received-Body-CRC: 3799272407
X-Received-Bytes: 3055