Article View: news.software.nntp
Article #82028Re: Spaces in NNTP commands
From: Julien ÉLIE
Date: Tue, 20 Oct 2009 18:33
Date: Tue, 20 Oct 2009 18:33
68 lines
4328 bytes
4328 bytes
Hi Curt, >> Is a space in a message-ID even a valid character? > > Nope, they never have been. But yet, Diablo at one time (15 years ago) > would allow them, and would pass them along to other sites, and there were > people generating them. [...] You didn't have to accept the article, > but you did have to correctly receive the entire thing from the peer, and > correctly send back a reject message with the correct (aka invalid) > message-id on it so the sending diablo would remove it from the queue and > not get stuck trying to send it to you over and over. Too bad such a behaviour was implemented. I still see nowadays invalid message-IDs like <4ac9a2d6$0$21410$afc38c87@> (received on October, 5th 2009, 09:46:48) and these are still to be rejected as 43x errors after CHECK/IHAVE/TAKETHIS, and not 501 :-( >> As long as we're dealing with NNTP command parsing, should a PASSWORD or >> USER-ID be permitted to contain a space? Unlike that with MID, I'm not >> certain I've seen anything that would intentionally disallow such. > > Mine don't support it. I don't know if any do. Interesting question. I will ask. INN 2.5.2 will do, thanks to a patch created by Jeff. > I don't think there's any > reason to require NNTP servers to support it - at least not for AUTHINFO > commands. If you want to define a new auth system that does support it, > that's fine. No need to define a new auth system. RFC 4643 says: Note that a server MAY (but is not required to) allow white space characters in usernames and passwords. A server implementation MAY blindly split command arguments at white space and therefore may not preserve the exact sequence of white space characters in the username or password. Therefore, a client SHOULD scan the username and password for white space and, if any is detected, warn the user of the likelihood of problems. The SASL PLAIN [PLAIN] mechanism is recommended as an alternative, as it does not suffer from these issues. [...] NOTE: a server implementation MAY parse AUTHINFO USER and AUTHINFO PASS specially so as to allow white space to be used within the username or password. Such implementations accept the additional syntax (making these two items inconsistent with "token" in Section 9.8 of [NNTP]): user-pass-char =/ SP / TAB In doing so, the grammar can become ambiguous if the username or password begins or ends with white space. To solve this ambiguity, such implementations typically treat everything after the first white space character following "USER"/"PASS", up to, but not including, the CRLF, as the username/password. -- Julien ÉLIE « Cinq millions et demi de conducteurs français ont une mauvaise vue. Heureusement, leur nombre diminue de jour en jour. » (Coluche)
Technical Details
Message-ID:
<hbkvpj$a33$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!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news2.euro.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<hbdap8$7e8$1@news.trigofacile.com> <20091018102618.742$eW@newsreader.com> <hbg3qj$8bf$1@snarked.org> <20091018192439.686$0R@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <hbkvpj$a33$1@news.trigofacile.com> Subject: Re: Spaces in NNTP commands Date: Tue, 20 Oct 2009 20:33:17 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <hbdap8$7e8$1@news.trigofacile.com> <20091018102618.742$eW@newsreader.com> <hbg3qj$8bf$1@snarked.org> <20091018192439.686$0R@newsreader.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!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news2.euro.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 68 NNTP-Posting-Host: aaubervilliers-151-1-27-37.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1256063603 10339 83.112.18.37 (20 Oct 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Tue, 20 Oct 2009 18:33:23 +0000 (UTC) In-Reply-To: <20091018192439.686$0R@newsreader.com> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049