[691] in linux-security and linux-alert archive

home help back first fref pref prev next nref lref last post

[linux-security] NFS security bug

daemon@ATHENA.MIT.EDU (Arik Baratz)
Thu May 2 14:16:13 1996

Date: Thu, 2 May 1996 11:37:46 +0300 (GMT+0300)
From: Arik Baratz <arikb@ccarik.technion.ac.il>
Reply-To: 4z9dge@4z9dge.ampr.org
To: linux-security@tarsier.cv.nrao.edu


   I don't know if this had been around or not, but my newly installed 
Slackware 3.0.0 linux shows this behaviour:

ccarik /home/arikb>su -
Password: 
ccarik /root# cat /etc/exports 
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.

/home/arikb     ccarik(ro,root_squash)

ccarik /root# rpc.mountd ; rpc.nfsd 
ccarik /root# mount ccarik:/home/arikb /mnt
ccarik /root# cd /mnt
ccarik /mnt# ls -al xxx
-rwxrwxrwx   1 arikb    users          29 Apr  7 15:27 xxx*
ccarik /mnt# cat > yyy
yyy: Read-only file system.
ccarik /mnt# cat .rhosts
blabla
blablabla2
blablabla3
ccarik /mnt# cat >> xxx
blablabla4
ccarik /mnt# cat xxx
blabla
blablabla2
blablabla3
blablabla4
ccarik /mnt# 

This means also .rhosts exploits, small addition to system scripts, etc. 
etc., while the sysamin believes his system is mounted only "read-only"...

Moving over to nfs-server-2.2beta4 solved this one.
   
--------------------------------------------- ....- --.. ----. -.. --. .
            Arik Baratz, Regularus Studentus, iNTP, 4Z9DGE
---------------------------------------------------------------------------

  "Your conscious mind is very intelligent, and your unconscious mind
     is a hell of a lot smarter than you are."
                                                 - Erickson H. Milton
http://ccarik.technion.ac.il/~arikb



home help back first fref pref prev next nref lref last post