home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / security / misc / 774 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!hpscdc!hplextra!otter.hpl.hp.com!otter!sjmz
  2. From: sjmz@otter.hpl.hp.com (Stefek Zaba)
  3. Newsgroups: comp.security.misc
  4. Subject: Re: Re: root-owned world-writable files
  5. Message-ID: <61350001@otter.hpl.hp.com>
  6. Date: 22 Jul 92 20:53:53 GMT
  7. References: <1992Jul21.201056.662@newshost.lanl.gov>
  8. Organization: Hewlett-Packard Laboratories, Bristol, UK.
  9. Lines: 23
  10.  
  11. In comp.security.misc, jfowler@beta.lanl.gov (John C. Fowler) writes that
  12. world-writeable root-owned files are only a problem if root trusts the
  13. file contents.  This is false: sometimes an attack requirtes a root-owned
  14. file to succeed, and by linking (hard or symbolic) to the carelessly-left
  15. file, this attack will succeed.
  16.  
  17. For example: a wannabe sysadmin leaves their home directory world-writeable.
  18. This allows the attacker to plant a .rhosts file which will allow them in.
  19. However, the authentication mechanism requires that .rhosts be owned by
  20. the user.  If you find a world-writeable root-owned file on the same volume,
  21. you can now ln it to /root/wannabe/.rhosts...  Similarly for other "trusted"
  22. files.  Granted, the "real" problem is the writeability of the affected
  23. directory, but the world-writeable root-owned file is still an essential
  24. element in allowing the attack to succeed.
  25.  
  26. [Any similarity to a FOR-LOCAL-DEMONSTRATION-PURPOSES-ONLY "attack" a good
  27. few years ago as part of educating a new sysadmin is less than entirely
  28. coincidental.]
  29.  
  30. I can think of no useful purpose for root-owned world-writeable files; but
  31. I'm sure the net's collective wisdom can come up with a few plausible ones...
  32.  
  33. Toodle-pip, Stefek
  34.