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

  1.  
  2. -----BEGIN PGP SIGNED MESSAGE-----
  3.  
  4.  
  5. CA-89:02
  6.                                  CERT Advisory
  7.                                  July 26, 1989
  8.                                Sun Restore Hole
  9. - -----------------------------------------------------------------------------
  10.  
  11. A security hole has been found in SunOS restore.  This problem affects
  12. SunOS 4.0, 4.0.1, and 4.0.3 systems.  It does not appear in SunOS 3.5.
  13. The problem occurs because restore is setuid to root.  Without going
  14. into details, is sufficient to say that this is a serious hole.  All
  15. SunOS 4.0 installations should install this workaround.  Note that a
  16. user does need to have an existing account to exploit this hole.
  17.  
  18. There are two workarounds that will fix the problem.  The first is
  19. slightly more secure but has some side-effects.  
  20.  
  21. 1) Make restore non-setuid by becoming root and doing a 
  22. chmod 750 /usr/etc/restore
  23.  
  24. This makes restore non-setuid and unreadable and unexecutable by
  25. ordinary users.
  26.  
  27. Making restore non-setuid affects the restore command using a remote
  28. tape drive.  You will no longer be able to run a restore from another
  29. machine as an ordinary user; instead, you'll have be root to do so.
  30. (The reason for this is that the remote tape drive daemon on the
  31. machine with the tape drive expects a request on a TCP privileged
  32. port.  Under SunOS, you can't get a privileged port unless you are
  33. root.  By making restore non-setuid, when you run restore and request
  34. a remote tape drive, restore won't be able to get a privileged port,
  35. so the remote tape drive daemon won't talk to it.)
  36.  
  37. 2) If you do need to have some users run restore from remote tape
  38. drives without being root, you can use the following workaround.
  39.  
  40. cd /usr/etc
  41. chgrp operator restore
  42. chmod 4550 restore
  43.  
  44. This allows the use of restore by some trusted group.  In this case,
  45. we used the group 'operator', but you may substitute any other group
  46. that you trust with access to the tape drive.  Thus, restore is still
  47. setuid and vulnerable, but only to the people in the trusted group.
  48.  
  49. The 4550 makes restore readable and executable by the group you
  50. specified, and unreadable by everyone else.
  51.  
  52. Sun knows about this problem (Sun Bug 1019265) and will put in a more
  53. permanent fix in a future release of SunOS. 
  54.  
  55. - -----------------------------------------------------------------------------
  56.  
  57. Computer Emergency Response Team (CERT)
  58. Software Engineering Institute
  59. Carnegie Mellon University
  60. Pittsburgh, PA 15213-3890
  61.  
  62. Internet: cert@cert.org
  63. Telephone: 412-268-7090 24-hour hotline: CERT personnel answer
  64.            7:30a.m.-6:00p.m. EST, on call for
  65.            emergencies other hours.
  66.  
  67. Past advisories and other information are available for anonymous ftp
  68. from cert.org (192.88.209.5).
  69.  
  70.  
  71.  
  72. -----BEGIN PGP SIGNATURE-----
  73. Version: 2.6.2
  74.  
  75. iQCVAwUBMaMwZXVP+x0t4w7BAQGiaQQA1ib9IUEtKhe0/tslUMaw+CQBGN0kug/o
  76. RQva7hQdmFc9qMbqdozTBWl1HAnRXdwhw0fiKAplgq9ZVDcx1DYrc33tcRZLV/2E
  77. qeALCmoo8iuGayqW3UKSAURLida++YmIIpslrAn7+AD7rOylXaFWGQ4aV92mkxSe
  78. Mj5mk4aT0tQ=
  79. =zc0n
  80. -----END PGP SIGNATURE-----
  81.  
  82.