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

  1.  
  2. -----BEGIN PGP SIGNED MESSAGE-----
  3.  
  4. =============================================================================
  5. CERT(sm) Advisory CA-94:06
  6. Original issue date: March 21, 1994
  7. Last revised: August 30, 1996
  8.               Information previously in the README was inserted
  9.               into the advisory.
  10.  
  11.               A complete revision history is at the end of this file.
  12.                     
  13. Topic:  Writable /etc/utmp Vulnerability
  14. =============================================================================
  15.  
  16. The CERT Coordination Center has received information concerning a
  17. vulnerability that exists on systems where the file /etc/utmp is writable
  18. by any user on the system.
  19.  
  20. This vulnerability is being actively exploited; please review CERT Advisory
  21. CA-94:01 "Ongoing Network Monitoring Attacks."
  22.  
  23. The problem is known to affect Sun Microsystems, Inc. SunOS 4.1.X and
  24. Solaris 1.1.1 operating systems. Solbourne Computer, Inc. and other Sparc
  25. products using SunOS 4.1.X or Solaris 1.1.1 are also affected. Solaris 2.x
  26. and SunOS 4.1.3_U1 (Solaris 1.1.1) are not affected by this problem.
  27.  
  28. Patches can be obtained from Sun Answer Centers worldwide.  They are also
  29. available via anonymous FTP from ftp.uu.net in the /systems/sun/sun-dist 
  30. directory, and in Europe from ftp.eu.net in the /sun/fixes directory.
  31.  
  32. We queried several vendors in addition to Sun.  The following vendors
  33. reported that their operating systems, as distributed by the vendor, are
  34. not affected by this problem:
  35.  
  36. Convex Computer Corporation             Digital Equipment Corporation
  37. Data General Corporation                Hewlett-Packard Company
  38. IBM                                     Intergraph
  39. Motorola, Inc.                          NeXT, Inc.
  40. Pyramid Technology Corporation          Sequent Computer Systems
  41. Sony Corporation
  42.  
  43. Currently, we are not aware of /etc/utmp being writable on other systems.
  44. If your operating system is not explicitly mentioned above, and if you 
  45. determine that /etc/utmp is writable by someone other than root, we 
  46. encourage you to contact your vendor.
  47.  
  48. If /etc/utmp on your system is writable only by the root account, you need
  49. not be concerned about the vulnerability. 
  50.  
  51. We recommend that sites check their /etc/utmp file to be sure it is not
  52. writable by users other than root.  If it is generally writable, you should
  53. obtain patches from the system vendor or protect /etc/utmp as described below.
  54.  
  55. - -----------------------------------------------------------------------------
  56.  
  57. I.   Description
  58.  
  59.      If the file /etc/utmp is writable by users other than root,
  60.      programs that trust the information stored in that file can
  61.      be subverted.
  62.  
  63. II.  Impact
  64.  
  65.      This vulnerability allows anyone with access to a user account
  66.      to gain root access.
  67.  
  68. III. Solution
  69.  
  70.      The solutions to this vulnerability are to either (a) protect the file,
  71.      or (b) patch all the programs that trust it.
  72.  
  73.      Note that SunOS 4.1.3_U1 (Solaris 1.1.1) is _not_ vulnerable to this
  74.      problem. 
  75.  
  76.      A.  To protect the file, make /etc/utmp writable only by root:
  77.  
  78.                  # chown root /etc/utmp
  79.                  # chmod 644 /etc/utmp
  80.  
  81.      B.  Patches from Sun Microsystems
  82.  
  83.      Program     Patch ID    Patch File Name
  84.      -------     ---------   ---------------
  85.      in.comsat   100272-07   100272-07.tar.Z
  86.      dump        100593-03   100593-03.tar.Z
  87.      syslogd     100909-02   100909-02.tar.Z
  88.      in.talkd    101480-01   101480-01.tar.Z
  89.      shutdown    101481-01   101481-01.tar.Z
  90.      write       101482-01   101482-01.tar.Z
  91.  
  92.      Program     BSD         SVR4        MD5 Digital Signature
  93.                  Checksum    Checksum
  94.      -------     ---------   ---------   --------------------------------
  95.      in.comsat   26553  39   64651  78   912ff4a0cc8d16a10eecbd7be102d45c
  96.      dump        52095 242   41650 484   cdba530226e8735fae2bd9bcbfa47dd0
  97.      syslogd     61539 108   38239 216   b5f70772384a3e58678c9c1f52d81190
  98.      in.talkd    47917  44   32598  88   5c3dfd6f90f739100cfa4aa4c97f01df
  99.      shutdown    46562  80   56079 159   bfc257ec795d05646ffa733d1c03855b
  100.      write       61148  41   48636  81   f93276529aa9fc25b35679ebf00b2d6f
  101.  
  102.  
  103.      C. Clarifications added April 1, 1994
  104.  
  105.         1) If you make /etc/utmp writable only by root, this should only affect
  106.            programs that allocate pseudo terminal interfaces and want to add
  107.            an appropriate entry to the /etc/utmp file.  Such programs include
  108.            script(1), cmdtool(1), gfxtool(1), shelltool(1), and tektool(1).
  109.            These programs will no longer be able to add an entry to /etc/utmp
  110.            which means that programs such as who(1), syslogd(1), and others
  111.            that use /etc/utmp will not know that an account is using that
  112.            pseudo tty. 
  113.  
  114.         2) No program should be made setuid root just to workaround this
  115.            problem. Setuid programs must be written very carefully to avoid
  116.            creating yet more vulnerabilities.
  117.  
  118.         3) The installation instructions on the syslogd patch do not point out
  119.            that, until you stop and restart syslogd (or reboot the system),
  120.            the old version is still running and the security hole has not been
  121.            closed. 
  122.  
  123.  
  124. - ---------------------------------------------------------------------------
  125.  
  126. If you believe that your system has been compromised, contact the CERT
  127. Coordination Center or your representative in Forum of Incident
  128. Response and Security Teams (FIRST).
  129.  
  130. Internet E-mail: cert@cert.org
  131. Telephone: 412-268-7090 (24-hour hotline)
  132.            CERT personnel answer 8:30 a.m.-5:00 p.m. EST(GMT-5)/EDT(GMT-4),
  133.            and are on call for emergencies during other hours.
  134.  
  135. CERT Coordination Center
  136. Software Engineering Institute
  137. Carnegie Mellon University
  138. Pittsburgh, PA 15213-3890
  139.  
  140. Past advisories, information about FIRST representatives, and other
  141. information related to computer security are available for anonymous
  142. FTP from info.cert.org.
  143.  
  144. Copyright 1994, 1996 Carnegie Mellon University
  145. This material may be reproduced and distributed without permission provided
  146. it is used for noncommercial purposes and the copyright statement is
  147. included.
  148.  
  149. CERT is a service mark of Carnegie Mellon University.
  150.  
  151. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  152. Revision history
  153.  
  154. Aug. 30, 1996  Information previously in the README was inserted
  155.                into the advisory.
  156. Apr. 01, 1994  Intro. and Sec. III - added note that SunOS 4.1.3_U1 is not
  157.                                      vulnerable. 
  158. Apr. 01, 1994  Sec. III.C - added this new section, which contains
  159.                                      clarifications. 
  160.  
  161. -----BEGIN PGP SIGNATURE-----
  162. Version: 2.6.2
  163.  
  164. iQCVAwUBMiSUfXVP+x0t4w7BAQHZsAP+PWX0GHS8DfjLzWMrmXnIt6ABfrresHn0
  165. HrKPpghTQnE6be0kOodmRaftIwTL+yVm8snCcW5cwSJtg/bhWb6LUdzR3R//aHQ6
  166. /LZPZkI1nQvAyHVJZJfl9Wy5k+Nmq1StartjcoQJDnh16s0Qp2FhVEHPl/XTC/YZ
  167. oAQmSl9XKdI=
  168. =A+ph
  169. -----END PGP SIGNATURE-----
  170.  
  171.