home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / unix / linux_du.asc < prev    next >
Encoding:
Text File  |  2003-06-11  |  1.1 KB  |  29 lines

  1.  
  2.    There is a security hole in RedHat 2.1, which installs /sbin/dump suid
  3. root.  The dump program makes no provisions for checking file permissions,
  4. allowing any user on the system to read arbitrary files on the system.
  5. Dump checks permissions only on the directory you specify to backup, and
  6. not on files or subdirectories.
  7. The process to exploit this is to backup the files via dump as if it was
  8. a normal backup to a temporary file, and then restore the temporary file
  9. with /sbin/restore to your own directory.  The solution is simple, don't
  10. run dump suid root on your system.
  11.  
  12.                    Program: /sbin/dump incorrectly installed
  13. Affected Operating Systems: RedHat 2.1 linux distribution
  14.               Requirements: account on system
  15.                      Patch: chmod -s /sbin/dump
  16.        Security Compromise: read arbitrary files on system
  17.                     Author: Dave M. (davem@cmu.edu)
  18.                   Synopsis: dump fails to check file permissions against
  19.                             user running dump, or to give up suid when
  20.                             backing up a filesystem.
  21.  
  22. Exploit:
  23. $ /sbin/dump 0uf woot.dump DIRECTORY_FILE_TO_READ_IS_IN
  24.  
  25.  
  26.  
  27.  
  28.  
  29.