Article View: news.software.nntp
Article #37342Re: some INN 2.2-stable issues
From: Andrew Gierth
Date: Mon, 10 May 1999 00:00
Date: Mon, 10 May 1999 00:00
51 lines
2905 bytes
2905 bytes
>>>>> "Forrest" == Forrest J Cavalier <mibsoft@mibsoftware.com> writes: >> But as he said, inndstart should not be runnable by everyone, and >> this is just a tip of the problems if it is. Forrest> Why allow a user news compromise to turn into a root Forrest> compromise? Why should this happen? Your analysis is flawed in several respects, notably the fact that inndstart restores the 'news' user before execing innd. Here's the kicker, though: inndstart *DOES ITSELF* respect the INNCONF environment variable! It simply does not pass it on to innd, but as the code stands (at least in the 2.2-stable snapshot I'm working with) the path to the innd binary *is* obtained from the file specified in INNCONF. This obviously already allows a member of the 'news' group to obtain a shell as the 'news' user, but it should only allow root exploits if inndstart is vulnerable to data overruns etc. from bogus data in inn.conf. Forrest> That's the remote exploit. Any local user who could set Forrest> INNCONF in the environment, then launch a SUID inndstart Forrest> would be able to do the same thing, so having inndstart Forrest> runnable only as user news is prudent, as was pointed out. inndstart is runnable only by root and the news group, in the standard configuration. If you have untrusted users in your news group I suspect you're vulnerable in other ways. Forrest> If something is SUID root, its behavior must be totally Forrest> defined by root owned information. It can't be getting Forrest> information from non-root environments, the command line, or Forrest> even inn.conf not owned by root. Then inndstart is already broken. Forrest> I think changing the code is even more appropriate in this Forrest> case, which is why I suggested inn-workers. I'm not on inn-workers, and I am reluctant to join since INN is something I only rarely have occasion to hack on. -- Andrew.
Technical Details
Message-ID:
<87emkpmtws.fsf@erlenstar.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<87r9oym8wx.fsf@erlenstar.demon.co.uk> <7gprlk$21b$1@news1.epix.net> <7gqe8k$aj0$1@newssvr01-int.news.prodigy.com> <7h5mev$g30$1@news1.epix.net>Show Full Headers
Complete Article Headers
Message-ID: <87emkpmtws.fsf@erlenstar.demon.co.uk> Subject: Re: some INN 2.2-stable issues Date: Mon, 10 May 1999 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <87r9oym8wx.fsf@erlenstar.demon.co.uk> <7gprlk$21b$1@news1.epix.net> <7gqe8k$aj0$1@newssvr01-int.news.prodigy.com> <7h5mev$g30$1@news1.epix.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 476054930 X-Mayan-Date: Long count = 12.19.6.3.4; tzolkin = 7 Kan; haab = 12 Uo X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha