Article View: news.software.nntp
Article #55561Re: Is there a hack to support paswords that contain spaces?
From: Curt Welch
Date: Sun, 09 Dec 2001 09:05
Date: Sun, 09 Dec 2001 09:05
64 lines
4044 bytes
4044 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote: > In article <ylg06l5r1p.fsf@windlord.stanford.edu>, > Russ Allbery <rra@stanford.edu> wrote: > >Jeremy <jeremy@exit109.com> writes: > > > >> Is there any particular reason not to just take anything between > >> "authinfo pass " and end-of-line as the password, as is? > > > >No, except that it won't work with AUTHINFO SIMPLE. > > I don't know anything about SIMPLE except what I just googled > for, which found a 1998 version of Stan Barber's draft. But > given: > > The client must then send the username followed by > one or more space characters followed by the > password. > > I don't see that conflicting with taking the password to be > everything beginning with the first non-whitespace after the > username. Am I missing something? The issue is not whether it can be done, but whether it should be done. The problem is not with the parser, but with the definition of the AUTHINFO command. As defined, it bascially implies that spaces and other separator characters are not allowed in passwords. If you wanted to allow those, they should have created a different standard for passing the data, such as passing it in a hex form like it's done on the web for example. Or escaping the special characters with printable characters like a \s or something. Anything to allow you to continue to parse the command like all NNTP commands. If you change the parser to allow spaces, what are you going to do with leading and trailing spaces? How it is now, every server in the world is probably ignoring them. There are probably users right now that their newsreader sending their password with an extra space at the beginning or the end simply because they typed it wrong but it worked anyway so they never figured that out. If their news server is upgraded to one which allows the space, you will cause them problems. Their may well be software out there that's sending an extra space either before or after the password by mistake, but it works fine on all news servers anyway. But if you now treat the space as part of the password, it will break, and all users using that software will no longer be able to log in. If you ignore leading and trailing spaces but allow spaces in the middle of a password, then you are going to create more confusing down the road when someone creates a password with trailing spaces but finds he can't log on to your server. In short, you will be causing people problems if you change a news server to allow spaces in the password. The correct solution is to prevent users from ever making up passwords with spaces in them in the first place. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20011209040538.266$zf@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!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<9urfpi$7vi$1@teta.doit.wisc.edu> <ylwuzybpvz.fsf@windlord.stanford.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@marduk.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <20011209040538.266$zf@newsreader.com>
Subject: Re: Is there a hack to support paswords that contain spaces?
Date: Sun, 09 Dec 2001 09:05:38 +0000
From: curt@kcwc.com (Curt Welch)
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <ylwuzybpvz.fsf@windlord.stanford.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@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!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 kFBHqp@dny5uLoIdy_28KBg_pmuc,.4VV@5g_mBm/xZn.1
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: 63