🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55566

Re: Is there a hack to support paswords that contain spaces?

#55566
From: Jeffrey M. Vinocur
Date: Sun, 09 Dec 2001 16:52
81 lines
3993 bytes
In article <20011209040538.266$zf@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>
>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.

I'm not seeing this.


>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.

What, we get to do NNTP over again from scratch?  Like this would
be the only change.


>If you change the parser to allow spaces, what are you going to do
>with leading and trailing spaces?

I read it as the password begins with the first nonwhitespace
following the whitespace marking the end of the previous word,
and extends to the end of the line.  But even if we discard
trailing space too, we'll still be fixing the problem at issue,
which is that in the real world (I've seen it several times)
people do use multi-word passwords and expect them to work.


>How it is now, every server in the world is probably ignoring
>them.

Which is odd.  I notice in some commands INN checks for correct
number of arguments and errors otherwise, and some it doesn't.


>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.

That's possible.  Hopefully they'll react to "invalid password"
by trying to type their password again, and presumably get it
right.  Certainly very few protocols allow leading and trailing
space on passwords.

And it's not like this will come as a surprise to the news admin;
we can document it as part of the upgrade.


>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.

Hrm.  We've got to at least include intermediate spaces.  Russ?


>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.

No more than currently exists, I think.  Anybody perceptive
enough to realize it might be the spaces will be able to debug
either situation.


>The correct solution is to prevent users from ever making up
>passwords with spaces in them in the first place.

How?  They're acceptable in other situations, and people *have*
them.  I've seen it happen several times.  

I agree, but we can't.  So next best thing...


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <9v04t0$bq6$2@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!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@marduk.litech.org> <20011209040538.266$zf@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <9v04t0$bq6$2@marduk.litech.org>
Subject: Re: Is there a hack to support paswords that contain spaces?
Date: Sun, 09 Dec 2001 16:52:48 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <ylg06l5r1p.fsf@windlord.stanford.edu> <9uuko7$br8$1@marduk.litech.org> <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!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 80
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 1007916768 12102 128.84.154.54 (9 Dec 2001 16:52:48 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sun, 9 Dec 2001 16:52:48 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)