Article View: news.software.nntp
Article #55583Re: Is there a hack to support paswords that contain spaces?
From: Curt Welch
Date: Sun, 09 Dec 2001 23:54
Date: Sun, 09 Dec 2001 23:54
75 lines
4139 bytes
4139 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote: > In article <20011209174305.050$xD@newsreader.com>, > Curt Welch <curt@kcwc.com> wrote: > >Russ Allbery <rra@stanford.edu> wrote: > >> Curt Welch <curt@kcwc.com> writes: > >> > >> > TAKETHIS <a very stupid id> > >> > >> That's a flat-out syntax error, > > > >It strikes me as odd that someone would call that a syntax error > >yet look on "AUTHINFO PASS two words" as OK. Clearly a double standard > >at work here. > > Why? From the latest USEFOR draft: > > A msg-id MUST NOT contain any SP within any strict-quoted-pair. > > That's pretty unambiguous. Thus if we're splitting on space, we > can expect precisely one parameter to follow TAKETHIS. Of course. > But there's nothing correspondingly forbidding for AUTHINFO... Like shit there isn't. RFC 977 - Network News Transfer Protocol 2.3. Commands Commands consist of a command word, which in some cases may be followed by a parameter. Commands with parameters must separate the parameters from each other and from the command by one or more space or tab characters. Command lines must be complete with all required parameters, and may not contain more than one command. RFC 2980 - Common NNTP Extensions 3.1.1 Original AUTHINFO AUTHINFO USER username AUTHINFO PASS password You may not know how to read RFCs, but that cleary defines "password" to be a command parameter in the RFC 977 context. If they had intended the password to be multiple parameters, they whould have discussed the idea. They didn't. It's very clear from the way it's documented that the orginal authors assumed the password was a "word" and not a "phrase". If they wanted the command to support spaces and tabs, they would have would not have defined it the way they did. They would have specified some system for creating a "password" parameter which didn't viloate the basic RFC 977 rules of command parsing. If you write an NNTP parser which doesn't parse the command using one or more spaces or tabs to separate the paramters, you are NOT following the RFC. And if a client sends "AUTHINFO PASS two words", it's is just as much of a syntax error as "IHAVE <bad id>". You can't stand here and try to tell me that one is OK and the other is a syntax error just because they didn't add a sentencs that says "for those of you too stupid to understand the rfc - spaces and tabs are not allowed in the password command parameter". By allowing spaces or tabs in the passwords, you are violating the RFCs. Maybe this violation (bending) is the best solution to the problem, I'll admit that. But I will not let you get away with saying the RFCs don't say it's wrong to do that when they do. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20011209185459.342$vT@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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<9urfpi$7vi$1@teta.doit.wisc.edu> <20011209035143.795$Mf@newsreader.com> <yl667gdty5.fsf@windlord.stanford.edu> <20011209174305.050$xD@newsreader.com> <9v0poe$ops$3@marduk.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <20011209185459.342$vT@newsreader.com>
Subject: Re: Is there a hack to support paswords that contain spaces?
Date: Sun, 09 Dec 2001 23:54:59 +0000
From: curt@kcwc.com (Curt Welch)
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <20011209035143.795$Mf@newsreader.com> <yl667gdty5.fsf@windlord.stanford.edu> <20011209174305.050$xD@newsreader.com> <9v0poe$ops$3@marduk.litech.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.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com mT7i2/RwHU3Sw0K1oBNhNYo@Q_lvKOLlb./_w8_sn+ijN+Q
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 74