Original issue date: October 21, 1993<BR>
Last revised: September 19, 1997<BR>
Attached copyright statement

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

<P>The CERT Coordination Center has learned of several vulnerabilities
affecting Sun Microsystems, Inc. (Sun) operating systems. Three
separate vulnerabilities are described in this advisory.  The first 
and third vulnerabilities affect all versions of SunOS 4.1.x and all
versions of Solaris 2.x.  The second affects all systems running any 
version of Solaris 2.x (but does not affect SunOS 4.1.x systems). 

<P>Patches can be obtained from local Sun Answer Centers worldwide as
well as through anonymous FTP from the ftp.uu.net (192.48.96.9) system
in the /systems/sun/sun-dist directory.  In Europe, these patches are
available from ftp.eu.net in the /sun/fixes directory.

<P>Information concerning specific patches is outlined below. Please note 
that Sun sometimes updates patch files.  If you find that the checksum 
is different, please contact Sun.

<P><HR>

<P>
<H2>I.   /usr/lib/sendmail Vulnerability</H2>

<P>This vulnerability affects all versions of SunOS 4.1.x including
4.1.1, 4.1.2, 4.1.3, 4.1.3c, and all versions of Solaris 2.x
including Solaris 2.1 (SunOS 5.1) and Solaris 2.2 (SunOS 5.2).
Sun is preparing a version of this patch for Solaris 2.3 but no
patch ID is available at this time.

<P>
<B>This vulnerability is being actively exploited and we strongly
recommend that sites take immediate and corrective action.</B>

<P>
<H3>A. Description</H3>

<P>A vulnerability exists in /usr/lib/sendmail such that remote
users may gain access to affected systems.

<P>
<H3>B. Impact</H3>

<P>Unauthorized access to affected systems may occur.

<P>
<H3>C. Solution</H3>

<P>
<OL><LI>1.  Obtain and install the appropriate patch following the instructions included with the patch.

<P><PRE>
System       Patch ID   Filename         BSD         Solaris
                                         Checksum    Checksum
------       --------   ---------------  ---------   -----------
SunOS 4.1.x  100377-07  100377-07.tar.Z  36122  586  11735 1171
Solaris 2.1  100840-03  100840-03.tar.Z  01153  194  39753  388
Solaris 2.2  101077-03  101077-03.tar.Z  49343  177  63311  353

</PRE>

<P>The checksums shown above are from the BSD-based checksum
(on 4.1.x, /bin/sum; on Solaris, /usr/ucb/sum) and from the SVR4
version that Sun has released with Solaris (/usr/bin/sum).
</OL>

<P>
<H2>II.  Solaris 2.x /bin/tar Vulnerability</H2>

<P>This vulnerability exists in all versions of Solaris 2.x including
Solaris 2.1 and Solaris 2.2.  Information about patches for current 
versions of Solaris is described below.  Sun is preparing a patch 
for the upcoming Solaris 2.3 release. The patch ID will be 101327-01, 
and it will be available as soon as Solaris 2.3 is shipped.

<P>This vulnerability does not exist in SunOS 4.1.x systems.

<P>
<H3>A. Description</H3>

<P> 
A security vulnerability exists in /bin/tar such that tarfiles
created using this utility may incorporate portions of the
/etc/passwd file.  

<P>
<H3>B. Impact</H3>

<P>Usernames and other information from /etc/passwd and /etc/group
may be disclosed. However, since Solaris 2.x uses shadow passwords,
encrypted passwords should not appear in /etc/passwd and therefore
should not be disclosed by this vulnerability.

<P>
<H3>C. Solution</H3>

<P>We recommend that all affected sites take the following steps
to secure their systems.

<P>
<OL><LI>Obtain and install the appropriate patch following the
instructions included with the patch.

<P><PRE>
System       Patch ID   Filename         BSD         Solaris
                                         Checksum    Checksum
------       --------   ---------------  ---------   -----------
Solaris 2.1  100975-02  100975-02.tar.Z  37034 374   13460  747 
Solaris 2.2  101301-01  101301-01.tar.Z  22089 390    4703  779 

</PRE>

<P>The checksums shown above are from the BSD-based checksum 
(on 4.1.x, /bin/sum; on Solaris, /usr/ucb/sum) and from the SVR4 
version that Sun has released with Solaris 2.x (/usr/bin/sum).

<LI><P>If your site is not using shadow passwords, we recommend
that all passwords be changed, especially those for
sensitive accounts such as root.

<LI><P>Depending upon the sensitivity of the information contained
in the /etc/passwd file, sites may wish to replace existing
tar files where this is possible.  Restoring an existing
archive file, and then producing a new tarfile with the
patched tar, will result in a clean archive file.

<P>
</OL>
<H2>III. /dev/audio Vulnerability</H2>

<P>This vulnerability affects all Sun systems with microphones. This
includes all versions of SunOS 4.1.x including 4.1.1, 4.1.2, 4.1.3,
4.1.3c, and all versions of Solaris 2.x including Solaris 2.1 
(SunOS 5.1) and Solaris 2.2 (SunOS 5.2).  Sun is addressing this 
problem in Solaris 2.3.

<P>
<H3>A. Description</H3>

<P>/dev/audio is set to a default mode of 666. There is also no
indication to the user of the system that the microphone is on.

<P>
<H3>B. Impact</H3>

<P>Any user with access to the system can eavesdrop on conversations
held in the vicinity of the microphone. 

<P>
<H3>C. Solution</H3>

<P>To prevent unauthorized listening with the microphone, the
permissions of the audio data device (/dev/audio) should allow 
only the user logged in on the console of the machine to read 
/dev/audio. To prevent unauthorized changes in playback and record 
settings, the permissions on /dev/audioctl should be similarly 
changed.

<P>
<B>Any site seriously concerned about the security risks
associated with the microphone should either switch off the
microphone, or unplug the microphone to prevent unauthorized
listening.</B>

<P>
<OL><LI>Restricting access on 4.x systems

<P>Use <I>fbtab(5)</I> to restrict the access to these devices. See the
man page for more information about this procedure.

<LI><P>Restricting access on Solaris 2.x systems

<P>To restrict access to these devices to a specific users, the 
permissions on the device files must be manually changed.

<P>As root:

<P><PRE>
# chmod 600 /dev/audio
# chown &lt;console user's username&gt;.&lt;desired group&gt; /dev/audio
# chmod 600 /dev/audioctl
# chown &lt;console user's username&gt;.&lt;desired group&gt; /dev/audio

</PRE>

<P></OL>
<HR>
The CERT Coordination Center wishes to thank Paul De Bra, Department
of Computing Science, Eindhoven University of Technology; David Slade of
Bellcore; and Mabry Tyson of SRI for reporting these vulnerabilities, and 
Sun Microsystems, Inc. for their response to these problems.

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

<HR>

Revision History
<PRE>
September 19,1997  Attached Copyright Statement
</PRE>