=====================================================================
                                    CERT-Renater

                         Note d'Information No. 2007/VULN530
_____________________________________________________________________

DATE                      : 20/12/2007

HARDWARE PLATFORM(S)      : /

OPERATING SYSTEM(S)       : Solaris 9 running SSH.

======================================================================

Sun(sm) Alert Notification
      * Sun Alert ID: 103172
      * Synopsis: Solaris 9 sshd(1M) Patches May Cause Incorrect Audit
        Data to be Logged
      * Category: Security, Availability
      * Product: Solaris 9 Operating System
      * BugIDs: 6612944
      * Avoidance: Patch
      * State: Resolved
      * Date Released: 18-Dec-2007
      * Date Closed: 18-Dec-2007
      * Date Modified:

1. Impact

    Solaris 9 systems with Solaris Auditing (see bsmconv(1M)) enabled and
    with the sshd(1M) patches installed as listed in section 2 below will
    contain audit records with an incorrect audit-ID. In addition,
    incomplete audit classes may be selected for users logging in via
    ssh(1).

2. Contributing Factors

    This issue can occur in the following releases:

    SPARC Platform
      * Solaris 9 with patches 113273-11 through 113273-16 and
        without patch 122300-17

    x86 Platform
      * Solaris 9 with patches 114858-09 through 114858-13 and without
        patch 122301-17

    Notes:
     1. This issue does not affect Solaris 10.
     2. Solaris 8 does not ship with SSH and thus is not impacted by this
        issue.
     3. This issue only affects systems which have Solaris Auditing
        enabled (see bsmconv(1M)).

    To determine if Solaris Auditing is enabled on a system, a command
    such as the following can be used to search the "/etc/system" file for
    a reference to the "c2audit" kernel module:
     $ grep c2audit /etc/system
     set c2audit:audit_load = 1

3. Symptoms

    After logging in to a Solaris 9 system using ssh(1) as a non-root
    user, the audit-ID of the login shell process will be zero. A command
    such as the following can be run as either 'root' user or as a user
    assigned the 'Audit Control' execution profile (see rbac(5)) to
    determine the audit-ID of a running process on the system:
     # auditconfig -getpinfo <process ID> | grep 'audit id'
     audit id = root(0)

    If the above audit-ID output is seen for a process ID of a non-root
    user who has logged in via ssh(1), then this issue has occurred on the
    system.

4. Relief/Workaround

    There is no workaround for this issue. Please see the Resolution
    section below.

5. Resolution

    This issue is addressed in the following releases:

    SPARC Platform
      * Solaris 9 with patch 122300-17 or later

    x86 Platform
      * Solaris 9 with patch 122301-17 or later

    Note: The resolution for this issue applies to future audit records.
    The patches do not modify existing audit records already written to
    the audit.log(4).

    For more information on Security Sun Alerts, see Sun Infodoc
    91209.

    This Sun Alert notification is being provided to you on an "AS IS"
    basis. This Sun Alert notification may contain information provided by
    third parties. The issues described in this Sun Alert notification may
    or may not impact your system(s). Sun makes no representations,
    warranties, or guarantees as to the information contained herein. ANY
    AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
    WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
    NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT
    YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT,
    INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE
    OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN.
    This Sun Alert notification contains Sun proprietary and confidential
    information. It is being provided to you pursuant to the provisions of
    your agreement to purchase services from Sun, or, if you do not have
    such an agreement, the Sun.com Terms of Use. This Sun Alert
    notification may only be used for the purposes contemplated by these
    agreements.

    Copyright 2000-2006 Sun Microsystems, Inc., 4150 Network Circle, Santa
    Clara, CA 95054 U.S.A. All rights reserved

======================================================================

           =========================================================
           Les serveurs de référence du CERT-Renater
           http://www.urec.fr/securite
           http://www.cru.fr/securite
           http://www.renater.fr
           =========================================================
           + CERT-RENATER          | tel : 01-53-94-20-44          +
           + 151 bd de l'Hopital   | fax : 01-53-94-20-41          +
           + 75013 Paris           | email: certsvp@renater.fr     +
           =========================================================




