ftp.nice.ch/pub/next/system/patches/rdist-42.1a.tar.gz

README.rtf
[View README.rtf] 
rdist
 

README.rtf

Revision 42.1a for rdist Command
Fixes Security Hole Described in CA-91:20
Fixes Update Times Bug in rdist 42.1

CERT, DARPA's Computer Emergency Response Team, received information about a security hole in rdist.  Working with them, we have developed a fixed version of rdist that plugs this hole.  This new version of rdist is for NeXTstepÒ Release 2 (2.0 and 2.1).

We recommend replacing /usr/ucb/rdist with this new version of rdist.  If you want to retain the old version for some reason, we recommend you set this file's mode to 0500 (that is, turn off the SetUID bit, make the program readable and executable only by its user); retain the user as root.  Install the new rdist with mode 4555 (SetUID, read and execute by user, group, and other), with user root and group daemon.  When you've installed the program successfully, an ls -lg will show:

-r-sr-xr-x  1 root     daemon     40960 Oct 22 16:21 rdist*

The fixed version of rdist can be identified as follows (boldface indicates user input):

rhino [/usr/ucb/bin]-66% sum rdist
37328    40
rhino [/usr/ucb/bin]-67% what rdist | bm PROJ
        PROGRAM:rdist  PROJECT:rdist-42.1a  DEVELOPER:amm  BUILT:Mon Nov 4 15:57:19 PST 1991

For the standard Release 2 rdist, the sum command's output will be 06402 40, and the PROJECT will be cmds-42 (rather than rdist-42.1a).

There was a bug in rdist-42.1 which led to destination file modification times being incorrect.  This bug has been fixed in 42.1a.  (For completeness, the sum of that executable was 20421).

Following is CERT Advisory CA-91:20.

From: CERT Advisory <cert-advisory-request@cert.sei.cmu.edu>
Date: Tue, 22 Oct 91 13:05:02 EDT
To: cert-advisory@cert.sei.cmu.edu
Subject: CERT Advisory - /usr/ucb/rdist Vulnerability
Organization: Computer Emergency Response Team

=================================================================
CA-91:20                        CERT Advisory
                              October 22, 1991
                        /usr/ucb/rdist Vulnerability

------------------------------------------------------------------

The Computer Emergency Response Team/Coordination Center (CERT/CC) has
received information concerning a vulnerability in /usr/ucb/rdist (the
location of rdist may vary depending on the operating system).  This
vulnerability is present in possibly all versions of rdist.  Vendors
responding with patches are listed below.  Additionally, some vendors
who do not include rdist in their operating systems are identified. 
Operating systems from vendors not listed in either of the two categories
below will probably be affected and the CERT/CC has proposed a workaround
for those systems.

VENDORS THAT DO NOT SHIP rdist
(Note: Even though these vendors do not ship rdist, it may have been
       added later (for example, by the system administrator).  It is
       also possible that vendors porting one of these operating systems
       may have added rdist.  In both cases corrective action must be taken.)

  Amdahl
  AT&T System V
  Data General DG/UX for AViiON Systems

	
VENDORS PROVIDING PATCHES

  Cray Research, Inc.   UNICOS 6.0/6.E/6.1   Field Alert #132   SPR 47600

     For further information contact the Support Center at 1-800-950-CRAY or
     612-683-5600 or e-mail support@crayamid.cray.com.

  NeXT Computer, Inc.  NeXTstep Release 2.x

     A new version of rdist may be obtained from your
     authorized NeXT Support Center.  If you are an authorized
     support center, please contact NeXT through your normal
     channels.  NeXT also plans to make this new version of
     rdist available on the public NeXT FTP archives.

  Silicon Graphics   IRIX 3.3.x/4.0 (fixed in 4.0.1)

     Patches may be obtained via anonymous ftp from sgi.com in the
     sgi/rdist directory.

  Sun Microsystems, Inc.   SunOS 4.0.3/4.1/4.1.1   Patch ID 100383-02

     Patches may be obtained via anonymous ftp from ftp.uu.net or from local
     Sun Answer Centers worldwide.


The CERT/CC is hopeful that other patches will be forthcoming.  We will
be maintaining a status file, rdist-patch-status, on the cert.sei.cmu.edu
system.  We will add patch availability information to this file as
it becomes known.  The file is available via anonymous ftp to
cert.sei.cmu.edu and is found in pub/cert_advisories/rdist-patch-status.

All trademarks are the property of their respective holders.
---------------------------------------------------------------------------

I.   Description

     A security vulnerability exists in /usr/ucb/rdist that
     can be used to gain unauthorized privileges.  Under some
     circumstances /usr/ucb/rdist can be used to create setuid
     root programs.

II.  Impact

     Any user logged into the system can gain root access.

III. Solution
       
     A.  If available, install the appropriate patch provided by
         your operating system vendor.

     B.  If no patch is available, restrict the use of /usr/ucb/rdist
         by changing the permissions on the file.

         # chmod 711 /usr/ucb/rdist

---------------------------------------------------------------------------
The CERT/CC wishes to thank Casper Dik of the University of Amsterdam,
The Netherlands, for bringing this vulnerability to our attention.
We would also like to thank the vendors who have responded to this problem.
---------------------------------------------------------------------------

If you believe that your system has been compromised, contact CERT/CC via
telephone or e-mail.

Computer Emergency Response Team/Coordination Center (CERT/CC)
Software Engineering Institute
Carnegie Mellon University
Pittsburgh, PA 15213-3890

Internet E-mail: cert@cert.sei.cmu.edu
Telephone: 412-268-7090 24-hour hotline:
           CERT/CC personnel answer 7:30a.m.-6:00p.m. EST(GMT-5)/EDT(GMT-4),
           on call for emergencies during other hours.

Past advisories and other computer security related information are available
for anonymous ftp from the cert.sei.cmu.edu (192.88.209.5) system.

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.