🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55580

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

#55580
From: Curt Welch
Date: Sun, 09 Dec 2001 23:31
81 lines
5092 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:
> In article <20011209140125.796$s8@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:
> >
> >What software are they using to create the password in the first place?
>
> Pretty much anything.  It's not often that people have dedicated
> news passwords; if they're using general system passwords (the
> same ones as for dialup, email, etc), they might be set in any
> one of a million ways, almost all capable of handling embedded
> spaces.

A million ways?  Yeah, right.

But there are also "millions" of news servers and news clients.  Why
do you think changing the millions of servers and clients is the
"correct" way?  By changing inn to support spaces you are in effect
claiming that all news servers and all news clients should support
spaces as well.

> >Why not fix that software so it no longer allows people to create
> >broken passwords in the first place?
>
> There's no chance of that; it's random stuff different at every
> stie.

And there is a chance of getting all the news clients in the world changed
to support spaces?

Any ISP or organization that is having NNTP support problems because the
users's password don't work that has the power to change INN is just as
likely to have the problem to change they web interface or whatever they
use to allow users to make up the bogus passwords in the first place.

If you change INN, but then some brand-x news reader in use does not
support spaces, then the ISP hasn't solved their problem have they?  But if
they change their web inteface so it rejects passwords with spaces in them,
then the probolem is solved.

Maybe the fact is that most (if not all) already support spaces, and if
that's true, then changing the news servers is not an unworkable solution.

But how many different ways are their for hooking the authentication
code into the database of passwords?  How many of those might crash
if inn trys to pass a password with spaces to it?

I don't know the answers to all these issues.  My only real point is
that if you define AUTHINFO to take all characters after the first
space as the password, then you have violated basic NNTP parsing
rules (RFC 977 section 2.3 paragraph 1) so that makes it a very bad
protocol design and that can lead to complex bugs and support issues down
the road.  But, even if you go with the "bad design" it should be part of
the standard.  The only thing more problematic than a bad design, is an
undocumented bad design.  And I'm not talking about INN documentaiton, I'm
talking about protocol documentation that people who write news clients are
likely to be reading.  i.e., the standards -- which is the root cause of
this problem in the first place since the AUTHINFO system was not probably
designed to deal with spaces.

> >Do you know if most other popular newsreaders even allow you to
> >enter passwords with spaces in them?
>
> I haven't tried them, but I think people treat passwords as
> opaque strings and just do printf("authinfo pass %s",password) or
> equivalent.

Yeah, there's a good chance you are right about that, and if they don't
do something to prevent the password from being entered with spaces,
then there's a good chance that will work.

But if you are going to try and hack in support for spaces, and if all
the password systems that allow spaces to be entered when the password
was creates are likely to allow leading and trailing spaces, why wouldn't
you go ahead and support leading and trailing spaces as well?  If you
are going to hack, why not hack completely?  Do you have some good reason
to belive that a complete hack is more dangerous than a partial hack?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20011209183112.802$Gb@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!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <20011209040538.266$zf@newsreader.com> <9v04t0$bq6$2@marduk.litech.org> <20011209140125.796$s8@newsreader.com> <9v0lcn$fda$1@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <20011209183112.802$Gb@newsreader.com>
Subject: Re: Is there a hack to support paswords that contain spaces?
Date: Sun, 09 Dec 2001 23:31:12 +0000
From: curt@kcwc.com (Curt Welch)
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <20011209040538.266$zf@newsreader.com> <9v04t0$bq6$2@marduk.litech.org> <20011209140125.796$s8@newsreader.com> <9v0lcn$fda$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!cpk-news-hub1.bbnplanet.com!news.gtei.net!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 iU0m3ObOs/KZuV.noh+vMLk90AH4R2FJz0k0Y9Z9fMD,QGhXQO
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: 80