home *** CD-ROM | disk | FTP | other *** search
/ Hacker Chronicles 2 (Alt) / The_Hacker_Chronicles_Volume_II-CD2.iso / hack / cert05.txt < prev    next >
Encoding:
Internet Message Format  |  1995-01-03  |  2.3 KB

  1. From: cert@SEI.CMU.EDU
  2.  
  3. Subject: Sun security problem: restore
  4.  
  5. Date: Wed, 26 Jul 89 09:20:48 EDT
  6.  
  7.  
  8.  
  9. A security hole has been found in SunOS restore.  This problem affects
  10.  
  11. SunOS 4.0, 4.0.1, and 4.0.3 systems.  It does not appear in SunOS 3.5.
  12.  
  13. The problem occurs because restore is setuid to root.  Without going
  14.  
  15. into details, is sufficient to say that this is a serious hole.  All
  16.  
  17. SunOS 4.0 installations should install this workaround.  Note that a
  18.  
  19. user does need to have an existing account to exploit this hole.
  20.  
  21.  
  22.  
  23. There are two workarounds that will fix the problem.  The first is
  24.  
  25. slightly more secure but has some side-effects.  
  26.  
  27.  
  28.  
  29. 1) Make restore non-setuid by becoming root and doing a 
  30.  
  31. chmod 750 /usr/etc/restore
  32.  
  33.  
  34.  
  35. This makes restore non-setuid and unreadable and unexecutable by
  36.  
  37. ordinary users.
  38.  
  39.  
  40.  
  41. Making restore non-setuid affects the restore command using a remote
  42.  
  43. tape drive.  You will no longer be able to run a restore from another
  44.  
  45. machine as an ordinary user; instead, you'll have be root to do so.
  46.  
  47. (The reason for this is that the remote tape drive daemon on the
  48.  
  49. machine with the tape drive expects a request on a TCP privileged
  50.  
  51. port.  Under SunOS, you can't get a privileged port unless you are
  52.  
  53. root.  By making restore non-setuid, when you run restore and request
  54.  
  55. a remote tape drive, restore won't be able to get a privileged port,
  56.  
  57. so the remote tape drive daemon won't talk to it.)
  58.  
  59.  
  60.  
  61. 2) If you do need to have some users run restore from remote tape
  62.  
  63. drives without being root, you can use the following workaround.
  64.  
  65.  
  66.  
  67. cd /usr/etc
  68.  
  69. chgrp operator restore
  70.  
  71. chmod 4550 restore
  72.  
  73.  
  74.  
  75. This allows the use of restore by some trusted group.  In this case,
  76.  
  77. we used the group 'operator', but you may substitute any other group
  78.  
  79. that you trust with access to the tape drive.  Thus, restore is still
  80.  
  81. setuid and vulnerable, but only to the people in the trusted group.
  82.  
  83.  
  84.  
  85. The 4550 makes restore readable and executable by the group you
  86.  
  87. specified, and unreadable by everyone else.
  88.  
  89.  
  90.  
  91. Sun knows about this problem (Sun Bug 1019265) and will put in a more
  92.  
  93. permanent fix in a future release of SunOS. 
  94.  
  95.  
  96.  
  97. J. Paul Holbrook
  98.  
  99. Computer Emergency Response Team
  100.  
  101. Internet: <cert@SEI.CMU.EDU>
  102.  
  103. (412) 268-7090 (24 hour hotline)
  104.  
  105.  
  106.  
  107. 
  108.  
  109. Downloaded From P-80 International Information Systems 304-744-2253
  110.