Article View: news.software.nntp
Article #79482Re: Unreadable newsgroup after AUTHINFO
From: 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.
Technical Details
Message-ID:
<87ej35whl6.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mailReferences:
<gbl0bf$nd$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87ej35whl6.fsf@windlord.stanford.edu> Subject: Re: Unreadable newsgroup after AUTHINFO Date: Sat, 27 Sep 2008 11:48:21 -0700 From: Russ Allbery <rra@stanford.edu> References: <gbl0bf$nd$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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 74 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.stanford.edu 1222541301 7959 171.64.19.147 (27 Sep 2008 18:48:21 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:PPHYiHKMpEhBu85vW421i+f6joI=