🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #48489

Re: Got it! ckpasswd -f bug (INN 2.3.0)

#48489
From: Giovanni Lopedote
Date: Fri, 22 Sep 2000 00:00
109 lines
5085 bytes
(my real email address is at the end of the message)

> | Maybe you can think different if you take a look at the whole code. Yes,
> | that one is a sanity check, but in the wrong place, I think. The one on
> | expected format is done before, at line 63. This was the whole function:
>
> [... snip ...]
>
> | let's suppose we have a well-formed line in the passwords file:
> |
> | foo:EncryptedPassword
>
>   This is why I said it's not a bug... the expected file format is UNIX
> passwd file format, and that's not a well-formed line. You have modified
> the logic to accept another format by removing the check, but code to
> validate the expected format is not a "bug," it is correct code.
>
>   The code as originally written works correctly for correct input. You
> do the original author a great disservice by calling this a bug. If I
> fed it a file with the password in MD5 format instead of crypt, I
> certainly wouldn't call it a bug when it didn't work. And I would call a
> change to use another format a "local hack" rather than a "bug fix."
>
>   You didn't understand how to produce an input file in expected format,
> that's certainly a reason to see if the documentation needs
> clarification. But it is not a problem with the original code, which
> works as intended.


It seems this is becoming a personal question for you, and probably it's
gonna end up with a flame, so this is my last post about this topic.
Probably you don't have the good habit of reading a whole message before
writing a reply. As I wrote:

me> [...] and then GetFilePass() exits
me>returning a null pointer instead of a pointer to the password. So, no
matter
me>if the password was right or wrong, ckpasswd -f exits with "user foo does
me>not exist".

This means that the original ckpasswd -f option will never work. Never.
Sure. This is what happens (you can use it as an exploit for the bug):

- when you try to enter as "foo" it exits with "user foo does not exist"
- when you try to enter as "foo:" it exits with "user foo password does not
match"

>   The code as originally written works correctly for correct input. You
> do the original author a great disservice by calling this a bug.
> [...]
> But it is not a problem with the original code, which
> works as intended.

Are you sure? Did you verify by your own? I did.
I don't want to process the author or whatsoever, doing this would be really
stupid. The programmers are making a good work, and for free, and I could
never say them "thank you" enough. Just, I think I've found a bug and I want
to help other people using this great piece of software.

> If I
> fed it a file with the password in MD5 format instead of crypt, I
> certainly wouldn't call it a bug when it didn't work.

Infact that's why I wrote (in my post "Re: ckpasswd options?) to use
Apache's "htpasswd -d" to create the password file (the -d option does not
use MD5).

> And I would call a
> change to use another format a "local hack" rather than a "bug fix."

me>If you don't want this to happen, making ckpasswd more restrictive on the
me>file format, you simply have to delete lines 75-77.

My first post was just a suggestion on how to correct a bug, as not everyone
is interested in programming, but instead everyone wants a solution that
works. And it works. Then, when I got your reply (which was quite
offending), I had to explain the whole thing. If this is still not enough,
this is the reply I've got when I've posted my fix to inn-bugs@isc.org:

>To: djcomputer@gmx.net
>Cc: inn-bugs@isc.org
>Subject: Re: Got it! ckpasswd -f bug (INN 2.3.0)
>From: Katsuhiro Kondou <kondou@nec.co.jp>
>Date: Wed, 20 Sep 2000 19:47:54 +0900 (JST)
>Lines: 9
>

>In article <4.3.2.20000919144809.00af5a60@192.168.0.1>,
>        ^GiuAnZ^ <djcomputer@gmx.net> wrote;
>

>} now it works and accepts also lines in the form "<user>:<encrypted
>} pass>:<other crap, ignored>".
>

>Fixed.  Thanks.
>--
>Katsuhiro Kondou

And if this is still not enough, you are on your own.

Giovanni Lopedote
Bari, Italy
http:/www.neuromante.net/
neuromante@gmx.net



Technical Details
Message-ID: <8qf9nm$fm8$1@nread1.inwind.it>
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!not-for-mail
References: <8q7kje$gds$1@nread1.inwind.it> <8q83h1$gn2$1@newssvr02.news.prodigy.com> <39c7f695@wsnews.worldshare.net> <8qdibr$549g$1@newssvr06-en0.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <8qf9nm$fm8$1@nread1.inwind.it>
Subject: Re: Got it! ckpasswd -f bug (INN 2.3.0)
Date: Fri, 22 Sep 2000 00:00:00 +0000
From: "Giovanni Lopedote" <nospamplease@gmx.net>
References: <8q7kje$gds$1@nread1.inwind.it> <8q83h1$gn2$1@newssvr02.news.prodigy.com> <39c7f695@wsnews.worldshare.net> <8qdibr$549g$1@newssvr06-en0.news.prodigy.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!not-for-mail
X-Deja-AN: 672809342
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Complaints-To: abuse@inwind.it
X-Trace: nread1.inwind.it 969615926 16072 212.141.254.188 (22 Sep 2000 09:45:26 GMT)
Organization: WIND
X-MSMail-Priority: Normal
NNTP-Posting-Date: 22 Sep 2000 09:45:26 GMT
Newsgroups: news.software.nntp