🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19513

Re: What changed 1.6 vs 1.5.1 (preliminary)

#19513
From: Richard Michael Todd
Date: Wed, 23 Jul 1997 00:00
33 lines
2467 bytes
mibsoft@epix.net (Forrest J. Cavalier III) writes:
> 
> But if the liberal changing of snprintf is any indication, I
> bet there are lots of strcpy()s which were safe that got
> arbitrarily changed.

Worse; there were at least two strcpy()s which, while they may have been 
unsafe, got replaced by strncpy()s with *wrong string lengths*, which 
*definitely* leads to coredumps given the behaviour of strncpy() in always
zerofilling the rest of the buffer.  (As I recall, strncpy() at one
time didn't do that, but the BSDI strncpy and the FreeBSD strncpy do; I 
assume this rather dubious innovation is a POSIXism.)  Trading off a possible
security hole in return for ctlinnd and expire coredumping every other time
they run doesn't seem like an overly good tradeoff to me. 

> I think it really is an overstatement to say a stack buffer
> overrun could be used to "execute arbitrary binary code."
> There are so many variable involved that I really don't see
> it as a risk.  There are so many variables involved of stack
> pointer location, compiler choice, INN options, etc, not to
> mention CPU instruction set, that I can't see how this hole
> could be exploited realistically.

Yeah.  In practice, barring someone actually showing an exploit script
for INN for some common platform (e.g., FreeBSD), I'd worry a lot more 
about someone finding another hole in, say, the control message handler 
(that being where the previous N security holes in INN have been), than 
someone making use of any of these buffer-overflow problems in INN to get
anything other than a coredump.  


Technical Details
Message-ID: <vz2wwmhlacg.fsf@wildstar.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
References: <5r21gd$24r$1@pluto.sm.dsi.unimi.it> <slrn5tcdem.gj6.memory@bigtime.blank.org> <87g1t57jf9.fsf@acropolis.ibm.net> <yy3afjdmw2e.fsf@velo.pp.vix.com> <5r5o4p$s1n$1@flea.best.net> <5r5pq3$6lc$1@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <vz2wwmhlacg.fsf@wildstar.net>
Subject: Re: What changed 1.6 vs 1.5.1 (preliminary)
Date: Wed, 23 Jul 1997 00:00:00 +0000
From: Richard Michael Todd <rmtodd@wildstar.net>
References: <5r21gd$24r$1@pluto.sm.dsi.unimi.it> <slrn5tcdem.gj6.memory@bigtime.blank.org> <87g1t57jf9.fsf@acropolis.ibm.net> <yy3afjdmw2e.fsf@velo.pp.vix.com> <5r5o4p$s1n$1@flea.best.net> <5r5pq3$6lc$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: 258458118
X-Complaints-To: news@choctaw.wildstar.net
X-Trace: choctaw.wildstar.net 869693791 17205 (None) 198.203.196.143
Organization: WildStar Internet Services
Newsgroups: news.software.nntp