NetBSD Problem Report #17405
Received: (qmail 8892 invoked by uid 605); 26 Jun 2002 15:17:31 -0000
Message-Id: <200206261517.g5QFH8N16478@despair.immanent.net>
Date: Wed, 26 Jun 2002 10:17:08 -0500 (CDT)
From: Frederick Bruckman <fredb@immanent.net>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: fredb@immanent.net
To: gnats-bugs@gnats.netbsd.org
Subject: Server side "blowfish" version 1 ciper broken in openssh-3.3.0.1
X-Send-Pr-Version: 3.95
>Number: 17405
>Category: pkg
>Synopsis: Server side "blowfish" version 1 ciper broken in openssh-3.3.0.1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 26 15:18:01 +0000 2002
>Closed-Date: Thu Jun 27 10:50:08 +0000 2002
>Last-Modified: Thu Jun 27 10:50:08 +0000 2002
>Originator: Frederick Bruckman
>Release: NetBSD 1.5.2
>Organization:
Frederick
>Environment:
System: NetBSD despair.immanent.net 1.5.2 NetBSD 1.5.2 (HANDY) #3:
Wed Dec 26 15:58:27 CST 2001
fredb@despair.immanent.net:/s/src/sys/arch/i386/compile/HANDY i386
#pkg_info -b openssh
Information for openssh-3.3.0.1:
Build version:
security/openssh/Makefile:# $NetBSD: Makefile,v 1.77 2002/06/26 07:44:38 itojun Exp $
security/openssh/files/sshd.sh:# $NetBSD: sshd.sh,v 1.8 2002/04/02 10:14:42 seb Exp $
security/openssh/MESSAGE:$NetBSD: MESSAGE,v 1.6 2002/06/26 11:38:44 itojun Exp $
security/openssh/MESSAGE.pam:$NetBSD: MESSAGE.pam,v 1.1 2002/02/05 04:17:31 jlam Exp $
security/openssh/MESSAGE.urandom:$NetBSD: MESSAGE.urandom,v 1.1 2002/02/05 04:17:31 jlam Exp $
security/openssh/Makefile:# $NetBSD: Makefile,v 1.77 2002/06/26 07:44:38 itojun Exp $
security/openssh/PLIST:@comment $NetBSD: PLIST,v 1.6 2002/06/26 10:29:59 seb Exp $
security/openssh/PLIST.pam:@comment $NetBSD: PLIST.pam,v 1.1 2002/02/05 04:17:32 jlam Exp $
security/openssh/PLIST.prng:@comment $NetBSD: PLIST.prng,v 1.1 2002/02/05 04:17:32 jlam Exp $
security/openssh/distinfo:$NetBSD: distinfo,v 1.19 2002/06/25 18:10:50 toshii Exp $
security/openssh/patches/patch-aa:$NetBSD: patch-aa,v 1.24 2002/06/25 02:13:12 itojun Exp $
security/openssh/patches/patch-ab:$NetBSD: patch-ab,v 1.11 2002/06/25 02:13:13 itojun Exp $
security/openssh/patches/patch-ac:$NetBSD: patch-ac,v 1.7 2002/06/25 18:09:45 toshii Exp $
security/openssh/patches/patch-ad:$NetBSD: patch-ad,v 1.4 2002/06/25 18:09:46 toshii Exp $
security/openssh/patches/patch-ah:$NetBSD: patch-ah,v 1.19 2002/06/25 02:13:13 itojun Exp $
>Description:
Trying to "ssh" to a newly built pkgsrc "sshd" using version 1
protocol, with "Cipher: blowfish", leads to a "Corrupted
check bytes..." error. Fault is in the new "sshd", not the old
client -- I'm seeing a similar error with an older NetBSD openssh
"ssh", older cygwin openssh "ssh", and with PuttY, a win32 client.
I don't yet know if the problem affects the in-tree openssh for
NetBSD 1.6B and netbsd-1-6, though it likely would.
>How-To-Repeat:
#ssh -v -1 -o 'Cipher blowfish' handy
OpenSSH_2.5.1 NetBSD_Secure_Shell-20010614, SSH protocols 1.5/2.0, OpenSSL 0x0090581f
debug: Reading configuration data /u/fredb/.ssh/config
debug: Applying options for handy
debug: Applying options for *
debug: Reading configuration data /etc/ssh.conf
debug: Rhosts Authentication disabled, originating port will not be trusted.
debug: ssh_connect: getuid 99 geteuid 99 anon 1
debug: Connecting to handy [192.168.0.1] port 22.
debug: Connection established.
debug: identity file /u/fredb/.ssh/identity type 0
debug: Remote protocol version 1.99, remote software version OpenSSH_3.3
debug: match: OpenSSH_3.3 pat ^OpenSSH
debug: Local version string SSH-1.5-OpenSSH_2.5.1 NetBSD_Secure_Shell-20010614
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'handy' is known and matches the RSA1 host key.
debug: Found key in /etc/ssh_known_hosts:3
debug: Encryption type: blowfish
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
Disconnecting: Corrupted check bytes on input.
debug: Calling cleanup 0x8057764(0x0)
>Fix:
Don't use "blowfish".
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: itojun
State-Changed-When: Wed Jun 26 08:45:21 PDT 2002
State-Changed-Why:
the symptom happens when you use openssl 0.9.5a with openssh.
do you think it reasonable to require 0.9.6x?
From: Frederick Bruckman <fredb@immanent.net>
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/17405 (fwd)
Date: Wed, 26 Jun 2002 14:36:37 -0500 (CDT)
Uncommenting
USE_OPENSSL_VERSION= ${OPENSSL_VERSION_096}
fixes it for me.
Frederick
---------- Forwarded message ----------
Date: Wed, 26 Jun 2002 11:51:39 -0500 (CDT)
From: Frederick Bruckman <fredb@immanent.net>
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
Cc: pkg-manager@netbsd.org
Subject: Re: pkg/17405
On Thu, 27 Jun 2002 itojun@iijlab.net wrote:
> >Why? "blowfish" in openssl 0.9.5a works fine (with older openssh),
> >even "blowfish-cbc" works fine with openssh-3.3.0.1.
> >
> >> do you think it reasonable to require 0.9.6x?
> >
> >That depends on the details. Is there a lurking bug in openssl 0.9.5a,
> >or is it just that part of the openssh-3.3.0.1 code assumes openssl
> >0.9.6? If it were easy to fix with a conditional compile, that would
> >be preferred, IMHO. Duplicating libraries in the base system is ugly
> >and messy and takes great care to get right.
>
> i dunno the details. here's the openssh release note.
>
> 1. Prerequisites
> ----------------
>
> You will need working installations of Zlib and OpenSSL.
>
> Zlib:
> http://www.gzip.org/zlib/
>
> OpenSSL 0.9.6 or greater:
> http://www.openssl.org/
>
> (OpenSSL 0.9.5a is partially supported, but some ciphers (SSH protocol 1
> Blowfish included) do not work correctly.)
I see! Perhaps we should, then. I'll uncomment the
USE_OPENSSL_VERSION= line in openssh/Makefile to see if it fixes the
problem.
Frederick
From: itojun@iijlab.net
To: Frederick Bruckman <fredb@immanent.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/17405 (fwd)
Date: Thu, 27 Jun 2002 15:39:22 +0900
>Uncommenting
>USE_OPENSSL_VERSION= ${OPENSSL_VERSION_096}
>fixes it for me.
as i wrote, i'm still not sure which is the best way.
allow 0.9.5a to be linked:
- broken blowfish cipher
- easier to upgrade openssh on 1.5.x
require 0.9.6:
- correct blowfish cipher
- harder to upgrade openssh on 1.5.x
let me know what you think.
itojun
From: Frederick Bruckman <fredb@immanent.net>
To: itojun@iijlab.net
Cc: gnats-bugs@gnats.netbsd.org, <packages@netbsd.org>
Subject: Re: pkg/17405 (fwd)
Date: Thu, 27 Jun 2002 05:47:14 -0500 (CDT)
On Thu, 27 Jun 2002 itojun@iijlab.net wrote:
> >Uncommenting
> >USE_OPENSSL_VERSION= ${OPENSSL_VERSION_096}
> >fixes it for me.
>
> as i wrote, i'm still not sure which is the best way.
>
> allow 0.9.5a to be linked:
> - broken blowfish cipher
> - easier to upgrade openssh on 1.5.x
> require 0.9.6:
> - correct blowfish cipher
> - harder to upgrade openssh on 1.5.x
I now think it's OK to require 0.9.6 in the package. It's good enough
for me. 1.5.3 should upgrade openssh only, for the security fix, and
if the user wants the full functionality, he can install the package.
Frederick
State-Changed-From-To: feedback->closed
State-Changed-By: itojun
State-Changed-When: Thu Jun 27 03:49:49 PDT 2002
State-Changed-Why:
0.9.6 required
>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.