home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20428 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!techbook!kosina
  3. From: kosina@techbook.com (Martin Kosina)
  4. Subject: Security problem with "rm"
  5. Message-ID: <Bz9uF1.1AE@techbook.com>
  6. Organization: TECHbooks of Beaverton Oregon - Public Access Unix
  7. Date: Mon, 14 Dec 1992 22:56:39 GMT
  8. Lines: 39
  9.  
  10.  
  11. I am having a serious security problem with the 'rm' command.
  12. I have discovered that non-superusers can REMOVE files owned
  13. by root. I doubt that such a serious bug could exist in Linux,
  14. it must be something in my setup:
  15.  
  16. mkosina:NotSt0PgElMbo:100:6:Martin Kosina:/home/mkosina:/bin/sh
  17.  
  18. This is the /etc/passwd entry for 'mkosina', my user login.
  19. This is a file in /etc that I will try to delete:
  20.  
  21. -rw-r--r--  1 root    root         62 Dec 11 21:02 rc.local
  22.  
  23. When I do 'rm rc.local' rm responds:
  24.  
  25. rm: remove `rc.local`, overriding mode 0644?
  26.  
  27. If I than say yes, it will be DELETED !
  28.  
  29. All other security works, read-only files deny permissions
  30. to be over-written, processes refuse to be killed,etc.
  31.  
  32. I am running an out-of-the-box release of SLS p1-36.
  33. This MUST be a permission problem somewhere, the only
  34. thing I can think of is that SOMETHING runs setuid 0.
  35. It should not be rm, though, here is what it looks like:
  36.  
  37. -rwxr-xr-x   1 root   root       5056 Sep  4 23:20 /bin/rm*
  38.  
  39. Any Linux gurus out there who can help me ?
  40. Thanks in advance.
  41.  
  42. Martin
  43.  
  44. P.S. If this is indeed a bug in rm (or the unlink sys call ?)
  45. which I doubt, could you tell me how to upgrade ? I can ftp.
  46. -- 
  47. kosina@techbook.COM  Public Access User --- Not affiliated with TECHbooks
  48. Public Access UNIX and Internet at (503) 220-0636 (1200/2400, N81)
  49.