Original issue date: October 3, 1990<BR>
Last revised: September 17, 1997<BR>
Attached Copyright statement

<P>A complete revision history is at the end of this file.

<P>This message is an update of the October 2, 1990 CERT Advisory (CA-90.06).
There is one correction and an update that you need to know about.

<P>For Problem #2 SOLUTION, the following line has been added:
<PRE>
# /etc/chmod 440 /usr/lib/NextPrinter/npd.old
</PRE>
This will disable the old printer program.  An updated copy of the CERT
Advisory has been included with this message.

<P>NeXT is also making the new printer program, npd, available electronically
via anonymous ftp for Internet sites.  The archives sites are:

<P>nova.cc.purdue.edu<BR>
        umd5.umd.edu<BR>
cs.orst.edu

<P>In addition, NeXT has asked the CERT to announce that if anyone cannot get
it from the archives, NeXT Technical Support can provide it. Requests should
go to:

<P>
<A HREF=mailto:ask_next@NeXT.COM>ask_next@NeXT.COM</A> 

<P>Thanks,<Br>

Computer Emergency Response Team
<HR>
<H1>NeXT's System Software</H1>
<HR>

<P>This message is to alert administrators of NeXT Computers of four
potentially serious security problems.

<P>The information contained in this message has been provided by David Besemer,
NeXT Computer, Inc.  The following describes the four security problems,
NeXT's recommended solutions and the known system impact.

<P><HR>
<H2>Problem #1 Description</H2>
 On Release 1.0 and 1.0a a script exists in
/usr/etc/restore0.9 that is a setuid shell script.  The existence of  
this script is a potential security problem.
<H2>Problem #1 Impact</H2>  The script is only needed during the installation
process and isn't needed for normal usage.  It is possible for any
logged in user to gain root access.
<H2>Problem #1 Solution</H2>  NeXT owners running Release 1.0 or 1.0a should  
remove /usr/etc/restore0.9 from all disks.  This file is installed by  
the "BuildDisk" application, so it should be removed from all
systems built with the standard release disk, as well as from the standard  
release disk itself (which will prevent the file from being installed  
on system built with the standard release disk in the future).  You  
must be root to remove this script, and the command that will remove  
the script is the following:
<PRE>
# /bin/rm /usr/etc/restore0.9
</PRE>
<HR>
<H2>Problem #2 Description</H2>  On NeXT computers running Release 1.0 or
1.0a that also have publicly accessible printers, users can gain
extra permissions via a combination of bugs.
<H2>Problem #2 Impact</H2>  Computer intruders are able to exploit this security
problem to gain access to the system.  Intruders, local users and remote
users are able to gain root access.
<H2>Problem #2 Solution</H2>  NeXT computer owners running Release 1.0 or  
1.0a should do two things to fix a potential security problem.   
First, the binary /usr/lib/NextPrinter/npd must be replaced with a  
more secure version.  This more secure version of npd is available  
through your NeXT support center.  Upon receiving a copy of the more  
secure npd, you must become root and install it in place of the old  
one in /usr/lib/NextPrinter/npd.  The new npd binary needs to be  
installed with the same permission bits (6755) and owner (root) as  
the old npd binary.  The commands to install the new npd binary are  
the following:
<PRE>
   # /bin/mv /usr/lib/NextPrinter/npd /usr/lib/NextPrinter/npd.old
   # /bin/mv newnpd /usr/lib/NextPrinter/npd
</PRE>
(In the above command, "newnpd" is the npd binary
	  that you obtained from your NeXT support center.)
<PRE>
  # /etc/chown root /usr/lib/NextPrinter/npd
  # /etc/chmod 6755 /usr/lib/NextPrinter/npd
  # /etc/chmod 440 /usr/lib/NextPrinter/npd.old
  </PRE>
The second half of the fix to this potential problem is to change the  
permissions of directories on the system that are currently owned and  
able to be written by group "wheel".  The command that will remove  
write permission for directories owned and writable by group "wheel"  
is below.  This command is all one line, and should be run as root.
  <PRE>
# find / -group wheel ! -type l -perm -20 ! -perm -2 -ls -exec chmod  
g-w {} \; -o -fstype nfs -prune
</PRE>
<HR>
<H2>Problem #3 Description</H2>  On NeXT computers running any release of the
system software,  public access to the window server may be a
potential security problem.

<P>The default in Release 1.0 or 1.0a is correctly set so that public access
to the window server is not available.  It is possible, when upgrading from
a prior release, that the old configuration files will be reused.  These
old configuration files could possibly enable public access to the window
server.
<H2>Problem #3 Impact</H2>  This security problem will enable an intruder to gain
access to the system.
<H2>Problem #3 Solution</H2> If public access isn't needed, it should be disabled.
<OL>
<H4><LI>  Launch the Preferences application, which is located in /NextApps</H4>

<P>
<H4><LI>  Select the UNIX panel by pressing the button with the UNIX      certificate on it.</H4>

<H4><LI> If the box next to Public Window Server contains a check, click on  the box to remove the check.</H4>

</OL>

<HR>
<H2>Problem #4 Description</H2> On NeXT computers running any release of the
system software, the "BuildDisk" application is executable by all users.
<H2>Problem #4 Impact</H2>  Allows a user to gain root access.
<H2>Problem #4 Solution</H2> Change the permissions on the "BuildDisk" application
allowing only root to execute it.  This can be accomplished with the
command:
<PRE>
# chmod 4700 /NextApps/BuildDisk
</PRE>
To remove "BuildDisk" from the default icon dock for new users, do the
following:
<OL>
<H4><LI> Create a new user account using the UserManager application.</H4>

<H4><LI>Log into the machine as that new user.</H4>

<H4><LI> Remove the BuildDisk application from the Application Dock by dragging      it out.</H4>
<H4><LI> Log out of the new account and log back in as root.</H4>

<H4><LI> Copy the file in ~newuser/.NeXT/.dock to /usr/template/user/.NeXT/.dock</H4>

(where ~newuser is the home directory of the new user account)
<H4><LI> Set the protections appropriately using the following command:</H4>

      <PRE> # chmod 555 /usr/template/user/.NeXT/.dock</PRE>
<H4><LI>If you wish, with UserManager, remove the user account that you created  in step 1.</H4>
</OL>

In release 2.0, the BuildDisk application will prompt for the root password
if it is run by a normal user.


CONTACT INFORMATION

<P>For further questions, please contact your NeXT support center.

<P>NeXT has also reported that these potential problems have been fixed in
NeXT's Release 2.0, which will be available in November, 1990.

<P><HR>

<P>Thanks to Corey Satten and Scott Dickson for discovering, documenting, and
helping resolve these problems.

<P><HR>

<!--#include virtual="/include/footer_nocopyright.html" -->
<P>Copyright 1990 Carnegie Mellon University.</P>

<HR>

Revision History
<PRE>
September 17,1997 Attached Copyright statement
</PRE>