|
Bugtraq
mailing list archives
Re: [Fwd: Truth about ssh 1.2.27 vulnerabiltiy]
From: casper () HOLLAND SUN COM (Casper Dik)
Date: Fri, 1 Oct 1999 21:33:02 +0200
So, what about:
char tmpl[] = "/tmp/dirXXXXXXX";
char dir[sizeof(tmpl)];
do {
strcpy(x, tmpl);
mktemp(x);
} while (mkdir(x, 0700) != 0);
bind(somesocket in dir x)
rename(nameof socket, desired name of socket);
rmdir(x);
Under proper uids; I think most UNIX domain sockets can stand renaming;
not sure if they all do.
Casper
By Date
By Thread
Current thread:
- (no subject), (continued)
|