SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (VPN)  >   OpenSSH Vendors:   OpenSSH.org
(NetBSD Issues Fix) OpenSSH CBC Mode Error Handling May Let Certain Remote Users Obtain Plain Text in Certain Cases
SecurityTracker Alert ID:  1022488
SecurityTracker URL:  http://securitytracker.com/id/1022488
CVE Reference:   CVE-2008-5161   (Links to External Site)
Date:  Jul 1 2009
Impact:   Disclosure of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 4.7p1, possibly other versions
Description:   A vulnerability was reported in OpenSSH. A remote user with control of the network can obtain portions of plain text in certain cases.

A remote user with control of the network between the client and the server can inject connection errors and monitor the SSH error handling response to recover up to 32 bits of plain text from an SSH-protected connection.

The attack process will terminate the SSH connection.

CBC mode connections are affected.

CTR mode connections are not affected.

Martin Albrecht, Kenny Paterson and Gaven Watson from the Information Security Group at Royal Holloway, University of London reported this vulnerability via the Centre for the Protection of National Infrastructure (CPNI).

The original advisory is available at:

http://www.cpni.gov.uk/Docs/Vulnerability_Advisory_SSH.txt

Impact:   A remote user with control of the network can obtain portions of plain text in certain cases.
Solution:   NetBSD has issued a fix.

The NetBSD advisory is available at:

http://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2009-005.txt.asc

Vendor URL:  www.openssh.org/txt/cbc.adv (Links to External Site)
Cause:   Randomization error
Underlying OS:   UNIX (NetBSD)

Message History:   This archive entry is a follow-up to the message listed below.
Nov 17 2008 OpenSSH CBC Mode Error Handling May Let Certain Remote Users Obtain Plain Text in Certain Cases



 Source Message Contents

Date:  Wed, 1 Jul 2009 01:05:23 -0400
Subject:  NetBSD



CVE-2008-5161

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

		 NetBSD Security Advisory 2009-005
		 =================================

Topic:		Plaintext Recovery Attack Against SSH

Version:	NetBSD-current:	source prior to June 8, 2009
		NetBSD 5.0:	source prior to June 30, 2009
		NetBSD 4.0.1:	source prior to June 30, 2009
		NetBSD 4.0:	source prior to June 30, 2009
		pkgsrc:		openssh packages prior to 5.2

Severity:	Information leakage from SSH sessions

Fixed:		NetBSD-current:    June 8, 2009
		NetBSD-5 branch:   June 30, 2009 (5.0.1 will include the fix)
		NetBSD-4 branch:   June 30, 2009 (4.1 will include the fix)
		NetBSD-4-0 branch: June 30, 2009 (4.0.2 will include the fix)
		pkgsrc 2009Q1:	   openssh-5.2 corrects this issue

Please note that NetBSD releases prior to 4.0 are no longer supported.
It is recommended that all users upgrade to a supported release.


Abstract
========

A defect exists in SSH protocol that allows active attackers to
recover plaintext from an SSH session if a CBC mode cipher is in
use. Updated versions of OpenSSH mitigate this problem.

http://secunia.com/advisories/32760/
http://www.cpni.gov.uk/Docs/Vulnerability_Advisory_SSH.txt
http://www.kb.cert.org/vuls/id/958563


Technical Details
=================

The CBC cipher mode of the SSH protocol allows a remote attacker
to recover up to 32 bits of plaintext data from an existing SSH
session by sending specially crafted packets. This can be mitigated
either through changes of the sshd_config and ssh_config files or
by updating to the latest version of OpenSSH.

http://secunia.com/advisories/32760/
http://www.cpni.gov.uk/Docs/Vulnerability_Advisory_SSH.txt
http://www.kb.cert.org/vuls/id/958563


Solutions and Workarounds
=========================


The problem can be mitigated by disabling the CBC mode ciphers
using the following directive in sshd_config and ssh_config:

    Ciphers aes128-ctr,aes256-ctr,arcfour256,arcfour,aes128-cbc,aes256-cbc

This makes the CBC ciphers most unlikely to be selected, reducing
the likelyhood of exposure.

In order to fix the underlying problem, users should upgrade their
SSH clients and servers. The information leak vulnerability requires
an active attack and is not easy to exploit, but is potentially
dangerous.

The following instructions describe how to upgrade your SSH
binaries by updating your source tree and rebuilding and
installing a new version of SSH.

* NetBSD-current:

	Systems running NetBSD-current dated from before 2009-06-08
	should be upgraded to NetBSD-current dated 2009-06-09 or later.

	The following directories need to be updated from the
	netbsd-current CVS branch (aka HEAD):
		crypto/external/bsd/openssh/dist

	To update from CVS, re-build, and re-install SSH:
		# cd src
		# cvs update -d -P crypto/external/bsd/openssh/dist
		# cd usr.bin/ssh

		# make USETOOLS=no cleandir dependall
		# make USETOOLS=no install


* NetBSD 5.0:

	The binary distribution of NetBSD 5.0 is vulnerable.

	Systems running NetBSD 5.0 sources dated from before
	2009-06-29 23:00 UTC should be upgraded from NetBSD 5.0
	sources dated 2009-06-30 or later.

	NetBSD 5.0.1 and 5.1 will include the fix.

	The following directories need to be updated from the
	netbsd-5-0 CVS branch:
		crypto/dist/ssh

	To update from CVS, re-build, and re-install SSH:

		# cd src
		# cvs update -d -P -r netbsd-5-0 crypto/dist/ssh
		# cd usr.bin/ssh

		# make USETOOLS=no cleandir dependall
		# make USETOOLS=no install


	Alternatively, apply the following patch (with potential offset
	differences):
		ftp://ftp.NetBSD.org/pub/NetBSD/security/patches/SA2009-005-openssh-nb5.patch

	To patch, re-build and re-install SSH:

		# cd src/crypto/dist/ssh
		# patch < /path/to/SA2009-005-openssh-nb5.patch

		# cd ../../../usr.bin/ssh
		# make cleandir dependall
		# make install


* NetBSD 4.0, 4.0.1:

	The binary distributions of NetBSD 4.0 and 4.0.1 are vulnerable.

	Systems running NetBSD 4.0 sources dated from before
	2009-06-30 01:00 UTC should be upgraded from NetBSD 4.0
	sources dated 2009-06-30 or later.

	NetBSD 4.1 and 4.0.2 will include the fix.

	The following directories need to be updated from the
	netbsd-4-0 CVS branch:
		crypto/dist/ssh

	To update from CVS, re-build, and re-install SSH:

		# cd src
		# cvs update -d -P -r netbsd-4-0 crypto/dist/ssh
		# cd usr.bin/ssh

		# make USETOOLS=no cleandir dependall
		# make USETOOLS=no install


	Alternatively, apply the following patch (with potential offset
	differences):
		ftp://ftp.NetBSD.org/pub/NetBSD/security/patches/SA2009-005-openssh-nb4.patch

	To patch, re-build and re-install SSH:

		# cd src/dist/ssh
		# patch < /path/to/SA2009-005-openssh-nb4.patch

		# cd ../../../usr.bin/ssh
		# make cleandir dependall
		# make install


Thanks To
=========

Martin Albrecht, Kenny Paterson and Gaven Watson from the
Information Security Group at Royal Holloway, University of
London for finding and reporting the issue.


Revision History
================

	2009-06-30	Initial release


More Information
================

Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at 
  http://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2009-005.txt.asc

Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.org/ and http://www.NetBSD.org/Security/.


Copyright 2009, The NetBSD Foundation, Inc.  All Rights Reserved.
Redistribution permitted only in full, unmodified form.

$NetBSD: NetBSD-SA2009-005.txt,v 1.1 2009/06/30 00:32:25 tonnerre Exp $

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (NetBSD)

iQIcBAEBAgAGBQJKSl6UAAoJEAZJc6xMSnBuspkQALQuPHnJla8/j0MF5jvPZJoy
7+Y9XbmLOMux/c80lqGINX4aRCj+H9JZ8IWkIU7iTnKri6tn4AurhfE6LI4Mta84
OQ/VFz5t8QCYfuhuBZeAUnW6CLShnwdVBoLBitpAeQEavTHTiyz3BMEQpXFlWsya
VtFsiKF8GnkcQNI3f6/iNCwMSrloiMiTTCaovG0Kt0iITBAl5kO4EKf1y2us/KcI
KpPd7rKR0hdyK1hPt/ZRh0s981rwm+/ZjIzPfjgEj9cSWHn0mCbAqycqrqdEjeOK
i3UW0JtRjE/EFcFKJLOTA86mlU9oTK1J5Z4mk/o/AB/3BVtntRLgv56VLE72aYBc
ZPbEGMIGAmwhKk67u+jwdGtOE+C8Dge3F+GWzLy51fW7kHPmDlKpiKSmg1Qo0SdB
8qwiCwuDWOvqaGeIMaKqgM2wrQxlY+bjz4eiYBrDPH+bazcQfrwXRGRXlEDhWi43
pEd7XbCKz0KJSx16ZxRqXDeVvjtAEGucfDeakMYzAFjq832RlE+jAoJ3z69sDALZ
goRqvSO//VrOaAuIaUJwE8A4SraJWD3tCzGxk2niZW2ZYwMYoJnaIO0fHbsZ45yN
G5SzqPTUKtjKX5d3swdnNbPVaXi5jUKZtggzfyu286r9gziSUN2yqhEXQYcTzvK1
/ujYOT/k3khhYjG9CbVh
=rKrv
-----END PGP SIGNATURE-----

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2012, SecurityGlobal.net LLC