NetBSD Problem Report #16546
Received: (qmail 1997 invoked from network); 29 Apr 2002 11:51:52 -0000
Message-Id: <20020429115149.395883830E@sedez.iq.pl>
Date: Mon, 29 Apr 2002 13:51:49 +0200 (CEST)
From: socrtp@sedez.iq.pl
Reply-To: socrtp@sedez.iq.pl
To: gnats-bugs@gnats.netbsd.org
Subject: security/openssh lacks MD5 passwords support
X-Send-Pr-Version: 3.95
>Number: 16546
>Category: pkg
>Synopsis: security/openssh lacks MD5 passwords support
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Apr 29 11:52:00 +0000 2002
>Closed-Date: Wed Sep 04 06:12:40 +0000 2002
>Last-Modified: Wed Sep 04 06:12:40 +0000 2002
>Originator: Piotr Stolc
>Release: NetBSD 1.5.3_RC2
>Organization:
>Environment:
System: NetBSD sedez.iq.pl 1.5.3_RC2 NetBSD 1.5.3_RC2 (SEDEZ) #0: Sun Apr 28 22:54:25 CEST 2002 root@:/usr/src/sys/arch/i386/compile/SEDEZ i386
Architecture: i386
Machine: i386
>Description:
By default, OpenSSH package compiles without support for MD5 system
passwords.
>How-To-Repeat:
>Fix:
Add the following line into pkgsrc/security/openssh/Makefile :
CONFIGURE_ARGS+= --with-md5-passwords
>Release-Note:
>Audit-Trail:
From: itojun@iijlab.net
To: gnats-bugs@netbsd.org
Cc: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
Subject: Re: pkg/16546: security/openssh lacks MD5 passwords support
Date: Mon, 20 May 2002 16:21:36 +0900
>>Synopsis: security/openssh lacks MD5 passwords support
>By default, OpenSSH package compiles without support for MD5 system
>passwords.
do you have any idea if --with-md5-passwords work on 1.4 or not?
itojun
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
To: itojun@iijlab.net
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/16546: security/openssh lacks MD5 passwords support
Date: Mon, 20 May 2002 12:53:05 +0200
On Mon, May 20, 2002 at 04:21:36PM +0900, itojun@iijlab.net wrote:
> do you have any idea if --with-md5-passwords work on 1.4 or not?
It compiles, that's all I can say for now. Is that what you wanted to
know?
Thomas
--
Thomas Klausner - wiz@danbala.tuwien.ac.at
When all other means of communication fail, try words.
State-Changed-From-To: open->closed
State-Changed-By: itojun
State-Changed-When: Mon May 20 05:49:38 PDT 2002
State-Changed-Why:
proposed change committed
From: itojun@iijlab.net
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/16546: security/openssh lacks MD5 passwords support
Date: Mon, 20 May 2002 21:49:03 +0900
>> do you have any idea if --with-md5-passwords work on 1.4 or not?
>It compiles, that's all I can say for now. Is that what you wanted to
>know?
yes, exactly. i'll enable it shortly.
itojun
State-Changed-From-To: closed->open
State-Changed-By: itojun
State-Changed-When: Wed May 22 01:59:02 PDT 2002
State-Changed-Why:
is --with-md5-passwords really required? NetBSD systems handle MD5 passwords
in crypt(3) and it should be unnecessary...
From: itojun@iijlab.net
To: Piotr Stolc <socrtp@sedez.iq.pl>
Cc: pkg-manager@netbsd.org
Subject: Re: pkg/16546
Date: Thu, 23 May 2002 08:23:30 +0900
>OpenSSH uses crypt() from libcrypto (OpenSSL) which doesn't handle MD5. I've
>added '-lcrypt' to the LIBS variable in OpenSSH Makefile before '-lcrypto'
>and then MD5 passwords were working. IMHO this is very ugly and unsafe
>solution and we should use '--with-md5-passwords' option.
but, with --with-md5-passwords we can't support other password types,
like blowfish password on openbsd (they support it in crypt() by
"$2$" prefix). i think it is a bug in openssh. i'll keep
--with-md5-passwords for now, and send a bug report to openssh-portable
guys.
itojun
From: itojun@iijlab.net
To: Piotr Stolc <socrtp@sedez.iq.pl>, pkg-manager@netbsd.org,
gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/16546
Date: Thu, 23 May 2002 08:50:27 +0900
>>OpenSSH uses crypt() from libcrypto (OpenSSL) which doesn't handle MD5. I've
>>added '-lcrypt' to the LIBS variable in OpenSSH Makefile before '-lcrypto'
>>and then MD5 passwords were working. IMHO this is very ugly and unsafe
>>solution and we should use '--with-md5-passwords' option.
> but, with --with-md5-passwords we can't support other password types,
> like blowfish password on openbsd (they support it in crypt() by
> "$2$" prefix). i think it is a bug in openssh. i'll keep
> --with-md5-passwords for now, and send a bug report to openssh-portable
> guys.
in the meantime, the following patch should change order of linkage
to -lcrypt -lcrypto.
itojun
--- configure.ac.orig Mon May 13 14:14:08 2002
+++ configure.ac Thu May 23 08:46:10 2002
@@ -703,6 +708,11 @@
)
fi
+# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
+# version in OpenSSL. Skip this for PAM
+AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
+
+
# Search for OpenSSL
saved_CPPFLAGS="$CPPFLAGS"
saved_LDFLAGS="$LDFLAGS"
@@ -767,13 +777,6 @@
]
)
-# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
-# version in OpenSSL. Skip this for PAM
-if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
- AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
-fi
-
-
### Configure cryptographic random number support
# Check wheter OpenSSL seeds itself
From: itojun@iijlab.net
To: Piotr Stolc <socrtp@sedez.iq.pl>, pkg-manager@netbsd.org,
gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/16546
Date: Thu, 23 May 2002 18:33:41 +0900
>>OpenSSH uses crypt() from libcrypto (OpenSSL) which doesn't handle MD5. I've
>>added '-lcrypt' to the LIBS variable in OpenSSH Makefile before '-lcrypto'
>>and then MD5 passwords were working. IMHO this is very ugly and unsafe
>>solution and we should use '--with-md5-passwords' option.
> but, with --with-md5-passwords we can't support other password types,
> like blowfish password on openbsd (they support it in crypt() by
> "$2$" prefix). i think it is a bug in openssh. i'll keep
> --with-md5-passwords for now, and send a bug report to openssh-portable
> guys.
i've sent a bug report to openssh-portable guys, suggesting changes
to configure.ac. hope it to be addressed in the future releases.
until then, we put --with-md5-passwords in place.
itoun
State-Changed-From-To: open->suspended
State-Changed-By: wiz
State-Changed-When: Thu Jul 4 16:57:57 PDT 2002
State-Changed-Why:
Since we're waiting for a third-party change, suspend this PR.
State-Changed-From-To: suspended->closed
State-Changed-By: itojun
State-Changed-When: Tue Sep 3 23:11:35 PDT 2002
State-Changed-Why:
locally fixed by patches/patch-ab, have sent bug report to portble guys
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.