home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / systems / nextbugs.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  6.8 KB  |  151 lines

  1. ------------------------------------------------------------------------------
  2. CA-90:06                       CERT Advisory
  3.                               October 2, 1990
  4.                           NeXT's System Software
  5.  
  6. -----------------------------------------------------------------------------
  7. This message is to alert administrators of NeXT Computers of four
  8. potentially serious security problems.
  9.  
  10. The information contained in this message has been provided by David Besemer,
  11. NeXT Computer, Inc.  The following describes the four security problems,
  12. NeXT's recommended solutions and the known system impact.
  13.  
  14. ------------------------------------------------------------------------------
  15.  
  16.   Problem #1 DESCRIPTION:  On Release 1.0 and 1.0a a script exists in
  17.   /usr/etc/restore0.9 that is a setuid shell script.  The existence of  
  18.   this script is a potential security problem.
  19.  
  20.   Problem #1 IMPACT:  The script is only needed during the installation
  21.   process and isn't needed for normal usage.  It is possible for any
  22.   logged in user to gain root access.
  23.  
  24.   Problem #1 SOLUTION:  NeXT owners running Release 1.0 or 1.0a should  
  25.   remove /usr/etc/restore0.9 from all disks.  This file is installed by  
  26.   the "BuildDisk" application, so it should be removed from all systems  
  27.   built with the standard release disk, as well as from the standard  
  28.   release disk itself (which will prevent the file from being installed  
  29.   on systems built with the standard release disk in the future).  You  
  30.   must be root to remove this script, and the command that will remove  
  31.   the script is the following:
  32.  
  33.   # /bin/rm /usr/etc/restore0.9
  34.  
  35.                                     ---
  36.  
  37.   Problem #2 DESCRIPTION:  On NeXT computers running Release 1.0 or
  38.   1.0a that also have publicly accessible printers, users can gain
  39.   extra permissions via a combination of bugs.
  40.   
  41.   Problem #2 IMPACT:  Computer intruders are able to exploit this security
  42.   problem to gain access to the system.  Intruders, local users and remote
  43.   users are able to gain root access.
  44.  
  45.   Problem #2 SOLUTION:  NeXT computer owners running Release 1.0 or  
  46.   1.0a should do two things to fix a potential security problem.   
  47.   First, the binary /usr/lib/NextPrinter/npd must be replaced with a  
  48.   more secure version.  This more secure version of npd is available  
  49.   through your NeXT support center.  Upon receiving a copy of the more  
  50.   secure npd, you must become root and install it in place of the old  
  51.   one in /usr/lib/NextPrinter/npd.  The new npd binary needs to be  
  52.   installed with the same permission bits (6755) and owner (root) as  
  53.   the old npd binary.  The commands to install the new npd binary are  
  54.   the following:
  55.   
  56.   # /bin/mv /usr/lib/NextPrinter/npd /usr/lib/NextPrinter/npd.old
  57.   # /bin/mv newnpd /usr/lib/NextPrinter/npd
  58.           (In the above command, "newnpd" is the npd binary
  59.           that you obtained from your NeXT support center.)
  60.   # /etc/chown root /usr/lib/NextPrinter/npd
  61.   # /etc/chmod 6755 /usr/lib/NextPrinter/npd
  62.   
  63.   The second half of the fix to this potential problem is to change the  
  64.   permissions of directories on the system that are currently owned and  
  65.   able to be written by group "wheel".  The command that will remove  
  66.   write permission for directories owned and writable by group "wheel"  
  67.   is below.  This command is all one line, and should be run as root.
  68.   
  69.   # find / -group wheel ! -type l -perm -20 ! -perm -2 -ls -exec chmod  
  70.   g-w {} \; -o -fstype nfs -prune
  71.  
  72.                                     ---
  73.  
  74.   Problem #3 DESCRIPTION:  On NeXT computers running any release of the
  75.   system software,  public access to the window server may be a
  76.   potential security problem.
  77.  
  78.   The default in Release 1.0 or 1.0a is correctly set so that public access
  79.   to the window server is not available.  It is possible, when upgrading from
  80.   a prior release, that the old configuration files will be reused.  These
  81.   old configuration files could possibly enable public access to the window
  82.   server.
  83.  
  84.   Problem #3 IMPACT:  This security problem will enable an intruder to gain
  85.   access to the system.
  86.  
  87.   Problem #3 SOLUTION:  If public access isn't needed, it should be disabled.
  88.  
  89.   1. Launch the Preferences application, which is located in /NextApps
  90.   2. Select the UNIX panel by pressing the button with the UNIX
  91.      certificate on it.
  92.   3. If the box next to Public Window Server contains a check, click on
  93.      the box to remove the check.
  94.  
  95.                                     ---
  96.  
  97.   Problem #4 DESCRIPTION: On NeXT computers running any release of the
  98.   system software, the "BuildDisk" application is executable by all users.
  99.  
  100.   Problem #4 IMPACT:  Allows a user to gain root access.
  101.  
  102.   Problem #4 SOLUTION: Change the permissions on the "BuildDisk" application
  103.   allowing only root to execute it.  This can be accomplished with the
  104.   command:
  105.  
  106.   # chmod 4700 /NextApps/BuildDisk
  107.  
  108.   To remove "BuildDisk" from the default icon dock for new users, do the
  109.   following:
  110.  
  111.   1. Create a new user account using the UserManager application.
  112.   2. Log into the machine as that new user.
  113.   3. Remove the BuildDisk application from the Application Dock by dragging
  114.      it out.
  115.   4. Log out of the new account and log back in as root.
  116.   5. Copy the file in ~newuser/.NeXT/.dock to /usr/template/user/.NeXT/.dock
  117.         (where ~newuser is the home directory of the new user account)
  118.   6. Set the protections appropriately using the following command:
  119.         # chmod 555 /usr/template/user/.NeXT/.dock
  120.   7. If you wish, with UserManager, remove the user account that you created
  121.      in step 1.
  122.  
  123.   In release 2.0, the BuildDisk application will prompt for the root password
  124.   if it is run by a normal user.
  125.  
  126. -----------------------------------------------------------------------------
  127. CONTACT INFORMATION
  128.  
  129. For further questions, please contact your NeXT support center.
  130.  
  131. NeXT has also reported that these potential problems have been fixed in
  132. NeXT's Release 2.0, which will be available in November, 1990.
  133.  
  134. Thanks to Corey Satten and Scott Dickson for discovering, documenting, and
  135. helping resolve these problems.
  136.  
  137. -----------------------------------------------------------------------------
  138. Edward DeHart
  139. Computer Emergency Response Team/Coordination Center (CERT/CC)
  140. Software Engineering Institute
  141. Carnegie Mellon University
  142. Pittsburgh, PA 15213-3890
  143.  
  144. Internet E-mail: cert@cert.sei.cmu.edu
  145. Telephone: 412-268-7090 24-hour hotline: CERT personnel answer
  146.            7:30a.m.-6:00p.m. EST, on call for
  147.            emergencies other hours.
  148.  
  149. Past advisories and other information are available for anonymous ftp
  150. from cert.sei.cmu.edu (128.237.253.5).
  151.