Thread View: news.software.nntp
6 messages
6 total messages
Started by Julien ÉLIE
Sat, 27 Sep 2008 10:02
Unreadable newsgroup after AUTHINFO
Author: Julien ÉLIE
Date: Sat, 27 Sep 2008 10:02
Date: Sat, 27 Sep 2008 10:02
77 lines
3140 bytes
3140 bytes
Hi, After a successful STARTTLS or AUTHINFO SASL, the NNTP protocol is reset, especially the currently selected newsgroup, if any. However, after a successful authentication with AUTHINFO USER/PASS, RFC 4643 does not specify anything. Consequently, I have a concern about how we should behave in the following case: The current user has read access to fr.test. GROUP fr.test 211 6784 1 7495 fr.test STAT 7492 223 7492 <48dde061$0$1281$426a74cc@news.free.fr> status Everything is normal. Then, let's authenticate with an user which has access to everything except fr.test. AUTHINFO USER test 381 Enter password AUTHINFO PASS test 281 Authentication succeeded ARTICLE <48dde061$0$1281$426a74cc@news.free.fr> 502 Read access denied All right! And we also have: ARTICLE 7492 502 Read access denied My question is: what do we do with stuff like the following? ARTICLE 999999 423 Bad article number or 502 Read access denied NEXT 502 Read access denied NEXT 502 Read access denied NEXT 502 Read access denied NEXT 421 No next article to retrieve or 502 Read access denied I think this behaviour is really weird. But according to RFC 3977: NEXT If the currently selected newsgroup is valid, the current article number MUST be set to the next article in that newsgroup (that is, the lowest existing article number greater than the current article number). The selected newsgroup is still valid after AUTHINFO USER/PASS. The best would have been to reset the NNTP protocol after successful AUTHINFO commands but as it is not the case, what is the expected behaviour with internal articles counters? -- Julien ÉLIE « -- La paix n'a pas de prix... Si tu veux la paix... -- Mon petit bonhomme, les phrases historiques, alea iacta est et tout ça, c'est moi qui les fais ici ! » (César)
Re: Unreadable newsgroup after AUTHINFO
Author: Russ Allbery
Date: Sat, 27 Sep 2008 18:48
Date: Sat, 27 Sep 2008 18:48
74 lines
3641 bytes
3641 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> The current user has read access to fr.test.
>
> GROUP fr.test
> 211 6784 1 7495 fr.test
> STAT 7492
> 223 7492 <48dde061$0$1281$426a74cc@news.free.fr> status
>
> Everything is normal. Then, let's authenticate with an user which has access
> to everything except fr.test.
>
> AUTHINFO USER test
> 381 Enter password
> AUTHINFO PASS test
> 281 Authentication succeeded
>
> ARTICLE <48dde061$0$1281$426a74cc@news.free.fr>
> 502 Read access denied
>
> All right!
Well, first off, this is a very silly configuration. Why would one ever
have authentication *remove* capabilities? There's no security benefit;
the user could just continue without authenticating.
But that doesn't mean it's not a valid protocol question.
> And we also have:
>
> ARTICLE 7492
> 502 Read access denied
>
> My question is: what do we do with stuff like the following?
>
> ARTICLE 999999
> 423 Bad article number
> or
> 502 Read access denied
I vote for 502 on the whole bunch of them, without changing anything about
the article pointer. In other words, fail the command before we do
anything. If they can't access the group, we shouldn't leak information
about the group (even in this very implausible setup).
> I think this behaviour is really weird.
> But according to RFC 3977:
>
> NEXT
> If the currently selected newsgroup is valid, the current article
> number MUST be set to the next article in that newsgroup (that is,
> the lowest existing article number greater than the current article
> number).
You only have to follow MUST here if the command is run at all. Denying
the command due to authentication means that you fail earlier than any of
the requirements of the command.
> The best would have been to reset the NNTP protocol after successful
> AUTHINFO commands
You don't want to do this because you want to preserve the historic
behavior of being able to authenticate at the moment you get your 480
response without losing state. Consider, for example, a configuration
where reading doesn't require authentication and posting does. Many
clients then won't authenticate until they try to post and get a 480
response, and if we kicked them out of their current group at that point,
it may confuse their newsreader.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Unreadable newsgroup after AUTHINFO
Author: Julien ÉLIE
Date: Sat, 27 Sep 2008 19:12
Date: Sat, 27 Sep 2008 19:12
62 lines
3680 bytes
3680 bytes
Hi Russ, > Well, first off, this is a very silly configuration. Why would one ever > have authentication *remove* capabilities? There's no security benefit; > the user could just continue without authenticating. I totally agree :) > I vote for 502 on the whole bunch of them, without changing anything about > the article pointer. In other words, fail the command before we do > anything. If they can't access the group, we shouldn't leak information > about the group (even in this very implausible setup). All right. It is the easiest to do. Yet, I had to add a variable to specify after a successful AUTHINFO USER/PASS (and deprecated GENERIC) that the current newsgroup is not readable (if permissions tell so, including dynamic Python access group), until a successful GROUP/LISTGROUP changes to another group. >> NEXT >> If the currently selected newsgroup is valid, the current article >> number MUST be set to the next article in that newsgroup (that is, >> the lowest existing article number greater than the current article >> number). > > You only have to follow MUST here if the command is run at all. Denying > the command due to authentication means that you fail earlier than any of > the requirements of the command. Ok. >> The best would have been to reset the NNTP protocol after successful >> AUTHINFO commands > > You don't want to do this because you want to preserve the historic > behavior of being able to authenticate at the moment you get your 480 > response without losing state. No problem. It is true that AUTHINFO SASL is not defined in RFC 2980 so it does not trigger off the same implementation problem as AUTHINFO USER/PASS. > Consider, for example, a configuration > where reading doesn't require authentication and posting does. Many > clients then won't authenticate until they try to post and get a 480 > response, and if we kicked them out of their current group at that point, > it may confuse their newsreader. Let's see what will happen when they receive 483 after AUTHINFO USER :-) [If the news server complies with the SHOULD telling that. Not done for INN 2.5, unless authenticators are only in blocks with require_ssl: parameters.] -- Julien ÉLIE « Je n'aime pas faire du char-stop ! » (Astérix)
Re: Unreadable newsgroup after AUTHINFO
Author: D. Stussy
Date: Sun, 28 Sep 2008 02:51
Date: Sun, 28 Sep 2008 02:51
78 lines
4428 bytes
4428 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gbm0ip$2l8$1@news.trigofacile.com... > Hi Russ, > > > Well, first off, this is a very silly configuration. Why would one ever > > have authentication *remove* capabilities? There's no security benefit; > > the user could just continue without authenticating. > > I totally agree :) There is ONE and only one situation where I can think of that this could be a benefit, but I don't think anyone realisitically does it: To permit a local group for those having authentication problems to get help. Obviously, once a user has logged in, there's no point to having access to such a group. I would expect only the administrators to have access to such while logged in. OK, so maybe that configuration in itself is lame, but not impossible. > > I vote for 502 on the whole bunch of them, without changing anything about > > the article pointer. In other words, fail the command before we do > > anything. If they can't access the group, we shouldn't leak information > > about the group (even in this very implausible setup). > > All right. > It is the easiest to do. Yet, I had to add a variable to specify after > a successful AUTHINFO USER/PASS (and deprecated GENERIC) that the current > newsgroup is not readable (if permissions tell so, including dynamic Python > access group), until a successful GROUP/LISTGROUP changes to another group. An alternative is to reset to the condition where no group has been specified during the session. > >> NEXT > >> If the currently selected newsgroup is valid, the current article > >> number MUST be set to the next article in that newsgroup (that is, > >> the lowest existing article number greater than the current article > >> number). > > > > You only have to follow MUST here if the command is run at all. Denying > > the command due to authentication means that you fail earlier than any of > > the requirements of the command. > > Ok. > > >> The best would have been to reset the NNTP protocol after successful > >> AUTHINFO commands > > > > You don't want to do this because you want to preserve the historic > > behavior of being able to authenticate at the moment you get your 480 > > response without losing state. > > No problem. It is true that AUTHINFO SASL is not defined in RFC 2980 > so it does not trigger off the same implementation problem as AUTHINFO > USER/PASS. OK, but once a user does authenticate, hasn't his state changed? > > Consider, for example, a configuration > > where reading doesn't require authentication and posting does. Many > > clients then won't authenticate until they try to post and get a 480 > > response, and if we kicked them out of their current group at that point, > > it may confuse their newsreader. > > Let's see what will happen when they receive 483 after AUTHINFO USER :-) > [If the news server complies with the SHOULD telling that. Not done > for INN 2.5, unless authenticators are only in blocks with require_ssl: > parameters.] Then perhaps the reader program is poorly designed? It made an assumption that is generally true but need not be universally true.
Re: Unreadable newsgroup after AUTHINFO
Author: Julien ÉLIE
Date: Sun, 28 Sep 2008 07:21
Date: Sun, 28 Sep 2008 07:21
62 lines
3835 bytes
3835 bytes
Hi D. Stussy,
> There is ONE and only one situation where I can think of that this could be
> a benefit, but I don't think anyone realisitically does it: To permit a
> local group for those having authentication problems to get help.
> Obviously, once a user has logged in, there's no point to having access to
> such a group. I would expect only the administrators to have access to such
> while logged in.
Or also:
* not authenticated: read access to local.a.welcome, local.b.welcome,
local.c.welcome, etc.
* authenticated: read and write access to local.b.* (for instance), thus
dropping all the other useless subhierarchies.
> OK, so maybe that configuration in itself is lame, but not impossible.
Yeah, the problem is more what to do in such a case because the news server
can be put into that state and we have to decide its behaviour.
> An alternative is to reset to the condition where no group has been
> specified during the session.
It is what we want to avoid. (See Russ' last answer.)
>> No problem. It is true that AUTHINFO SASL is not defined in RFC 2980
>> so it does not trigger off the same implementation problem as AUTHINFO
>> USER/PASS.
>
> OK, but once a user does authenticate, hasn't his state changed?
Everything but his (confirmed) identity is reset.
To be more precise, I wish to add that AUTHINFO SASL resets the NNTP
protocol if, and only if, it is successful *and* a security layer has
been negotiated during the authentication.
>> Let's see what will happen when they receive 483 after AUTHINFO USER :-)
>> [If the news server complies with the SHOULD telling that. Not done
>> for INN 2.5, unless authenticators are only in blocks with require_ssl:
>> parameters.]
>
> Then perhaps the reader program is poorly designed? It made an assumption
> that is generally true but need not be universally true.
The problem is that (old) news readers do not know the 483 response code
added by RFC 3977. This code specifies that an encrypted layer should be
negotiated first (STARTTLS or AUTHINFO SASL). Such clients will fail at
authentication time and not try to use an encrypted layer (a fortiori if
they do not implement the mechanism to negotiate it!).
--
Julien ÉLIE
« On appelle ça une insula. C'est une maison où les gens habitent
les uns au-dessus des autres... » (Astérix)
Re: Unreadable newsgroup after AUTHINFO
Author: Julien ÉLIE
Date: Sun, 28 Sep 2008 14:41
Date: Sun, 28 Sep 2008 14:41
25 lines
2520 bytes
2520 bytes
Hi D. Stussy, >>> Well, first off, this is a very silly configuration. Why would one ever >>> have authentication *remove* capabilities? There's no security benefit; >>> the user could just continue without authenticating. > > There is ONE and only one situation where I can think of that this could be > a benefit, but I don't think anyone realisitically does it: To permit a > local group for those having authentication problems to get help. I see another situation. More likely to happen because it *adds* capabilities. Suppose that you have read access to everything but the news administrator only allow newnews in fr.*; currently, the only possible way to achieve that is to authenticate and have read access only to fr.*, with newnews allowed. It reminds me of a suggestion (from Jeffrey I think) which was to add a newnews: parameter to readers.conf (and also ihave:, approved: and localpost:). It would solve that problem because we currently only have read: and post: to parameter that sort of stuff. -- Julien ÉLIE « Il n'y a que le premier pas qui coûte. » (Mme du Deffand)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads