TIOCDTR (bug | feature)

Andrew Draskoy andrew at garfield.UUCP
Sat Jul 2 15:31:55 AEST 1983


    If you change write to be set-uid root, you must add in two things:
One is a setuid(geteuid()) before the exec for a shell escape.  almost
as important, but less obvious, is that you must scrutinize the optional
ttyname arguement to prevent things like

	write user ../etc/passwd

This would of course be disasterous...



More information about the Comp.unix.wizards mailing list