🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.misc
Article #108

Advice on (potential?) security problem

#108
From: Stephen J. Roznowski
Date: Fri, 07 Aug 1992 02:24
20 lines
931 bytes
I'm busy looking for potential security holes in a suid root program.

Currently, the program does the following:

	system("/bin/stty -echo ...");

Now, I realize that the "exec-ed" program also has to be "trusted",
or there is a security hole (i.e. If I can replace /bin/stty, all
bets are off).

Now suppose that I do "all the correct things" before issuing the
"system" call (set IFS, etc.) is this worse/same as the following:

	tcgetattr(fd, &t);
	t.c_lflag &= ~ECHO;
	tcsetattr(fd, TCSANOW, &t);

Any insight is greatly appreciated.
-- 
Stephen J. Roznowski	(sjr@afterlife.ncsc.mil)
Technical Details
Message-ID: <1992Aug7.022422.9878@afterlife.ncsc.mil>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!relay!afterlife!sjr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!relay!afterlife!sjr
From: sjr@afterlife.ncsc.mil (Stephen J. Roznowski)
Newsgroups: comp.security.misc,alt.security
Subject: Advice on (potential?) security problem
Message-ID: <1992Aug7.022422.9878@afterlife.ncsc.mil>
Date: 7 Aug 92 02:24:22 GMT
Organization: The Great Beyond
Lines: 20