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

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
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

Sign Up!





Category:  Application (Security)  >  OpenSSH Vendors:  OpenSSH.org
Portable OpenSSH PAM free() Bug May Let Remote Users Execute Root Code
SecurityTracker Alert ID:  1007791
CVE Reference:  CAN-2003-0786 ,  CAN-2003-0787   (Links to External Site)
Updated:  Dec 1 2003
Original Entry Date:  Sep 23 2003
Impact:  Execution of arbitrary code via network, Root access via network
Fix Available:  Yes   Vendor Confirmed:  Yes  
Version(s): Portable Version Only; 3.7p1 and 3.7.1p1
Description:  A vulnerability was reported in two specific portable versions of OpenSSH in the PAM implementation. A remote user may be able to execute arbitrary code.

It is reported that there are multiple flaws in the new PAM code in portable OpenSSH versions 3.7p1 and 3.7.1p1. In at least one bug, a remote user can cause arbitrary code to be executed on the target system when the target system is in a non-standard configuration (with privsep disabled).

The vendor notes that the OpenBSD releases of OpenSSH do not contain this code and, therefore, are not vulnerable. Also, portable OpenSSH versions prior to 3.6.1p2 are also not affected.

Impact:  A remote user may be able to execute arbitrary code on the target system wtih root privileges.
Solution:  The vendor has released a fixed version (3.7.1p2), available at:

http://www.openssh.org/portable.html
ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-3.7.1p 2.tar.gz

As a workaround, the vendor reports that you can disable PAM support ("UsePam no" in sshd_config).

The vendor has also provided the following warning regarding use of PAM with OpenSSH:

"Due to complexity, inconsistencies in the specification and differences between vendors' PAM implementations we recommend that PAM be left disabled in sshd_config unless there is a need for its use. Sites only using public key or simple password authentication usually have little need to enable PAM support."

Please note that this version contains the four *realloc() bug fixes that Solar Designer discovered in 3.7.1p1 and prior versions. However, the purpose of the 3.7.1p2 release is to correct the security flaws in the PAM code and not due to the Solar Designer bugs. As described in a previous alert, Solar Designer considers the *realloc() bugs to have no security impact.

Vendor URL:  www.openssh.com/txt/sshpam.adv (Links to External Site)
Cause:  State error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   This archive entry has one or more follow-up message(s) listed below.
Sep 25 2003 (Gentoo Issues Fix) Re: Portable OpenSSH PAM free() Bug May Let Remote Users Execute Root Code   (aliz@gentoo.org (Daniel Ahlberg))
Gentoo has issued a fix.
Sep 25 2003 (TurboLinux Issues Fix) Re: Portable OpenSSH PAM free() Bug May Let Remote Users Execute Root Code   (Turbolinux <security-announce@turbolinux.co.jp>)
TurboLinux has issued a fix.
Sep 25 2003 (Slackware Issues Fix) Portable OpenSSH PAM free() Bug May Let Remote Users Execute Root Code   (Slackware Security Team <security@slackware.com>)
Slackware has released a fix.
Sep 30 2003 (Trustix Issues Fix) Re: Portable OpenSSH PAM free() Bug May Let Remote Users Execute Root Code   (Trustix Secure Linux Advisor <tsl@trustix.com>)
Trustix has issued a fix.
Dec 4 2003 (SGI Issues Fix) Portable OpenSSH PAM free() Bug May Let Remote Users Execute Root Code   (SGI Security Coordinator <agent99@sgi.com>)
SGI has issued a fix for IRIX.



 Source Message Contents

Date:  Tue, 23 Sep 2003 09:36:54 -0400
Subject:  www.openssh.com/txt/sshpam.adv

 

This document can be found at:  http://www.openssh.com/txt/sshpam.adv

1. Versions affected:

         Portable OpenSSH versions 3.7p1 and 3.7.1p1 contain multiple
         vulnerabilities in the new PAM code. At least one of these bugs
         is remotely exploitable (under a non-standard configuration,
         with privsep disabled).

         The OpenBSD releases of OpenSSH do not contain this code and
         are not vulnerable. Older versions of portable OpenSSH are not
         vulnerable.

2. Solution:

         Upgrade to Portable OpenSSH 3.7.1p2 or disable PAM
         support ("UsePam no" in sshd_config).

         Due to complexity, inconsistencies in the specification and
         differences between vendors' PAM implementations we recommend
         that PAM be left disabled in sshd_config unless there is a need
         for its use. Sites only using public key or simple password
         authentication usually have little need to enable PAM support.


 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2003, SecurityGlobal.net LLC