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

                         Note d'Information No. 2006/VULN283
_____________________________________________________________________

DATE                      : 29/05/2006

HARDWARE PLATFORM(S)      : /

OPERATING SYSTEM(S)       : Solaris 9 running in.ftpd server.

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

Sun(sm) Alert Notification
      * Sun Alert ID: 102356
      * Synopsis: Security Vulnerability in the Solaris 9 in.ftpd(1M)
        Server May Allow Unauthorized Directory Access
      * Category: Security
      * Product: Solaris 9 Operating System
      * BugIDs: 5012436
      * Avoidance: Workaround
      * State: Workaround
      * Date Released: 18-May-2006
      * Date Closed:
      * Date Modified:

1. Impact

    A security vulnerability in the Solaris 9 in.ftpd(1M) server may allow
    local or remote unprivileged users to access directories outside of
    their home directory or to log in with their $HOME directory set to
    "/" (slash).

    This issue is also described in CAN-2004-0148 at
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0148

2. Contributing Factors

    This issue can occur in the following releases:

    SPARC Platform
      * Solaris 9

    x86 Platform
      * Solaris 9

    Notes:
     1. Solaris 8 and Solaris 10 are not affected by this issue.
     2. This issue only affects systems configured as FTP servers with
        either the 'restricted-uid' or 'restricted-gid' clause in the
        ftpaccess(4) file.

    To determine if the in.ftpd service is enabled on a system the
    following command can be used:
     $ ftp remote-host
     Connected to remote-host.domain.com.
     220 remote-host FTP server ready.
     Name (remote-host:username):

3. Symptoms

    There are no predictable symptoms that would indicate the described
    issue has been exploited.

4. Relief/Workaround

    To work around the described issue until patches can be applied,
    disable the in.ftpd(1M) daemon with the following steps:

    1. Edit the "/etc/inetd.conf" file and comment out the following line
    by prepending the "#" symbol, as in the following example:
     #ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd

    2. Send the inetd(1M) process a hangup signal (SIGHUP) to that inetd
    will reread the inetd.conf configuration file:
     # pkill -HUP inetd

    This will disable in.ftpd(1M).

5. Resolution

    A final resolution is pending completion.

    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     +
           =========================================================


