🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19569

Re: DO NOT INSTALL 1.6 or 1.6b1! (was Re: innd 1.6 ?!?!?!)

#19569
From: Matt Dillon
Date: Wed, 23 Jul 1997 00:00
156 lines
6122 bytes
:In article <5r4sgj$qkn$5@news1.epix.net>,
:Forrest J. Cavalier III <mibsoft@epix.net> wrote:
:>In article <yy3afje5ie3.fsf@velo.pp.vix.com>, brister@vix.com wrote...
:>>
:>>dillon@best.net (Matt Dillon) writes:
:>>
:>>>     In anycase, what I would like to see is a security patch for 1.5.x.
:>>
:>>That won't be happening. There's too much involved to try and support
:>>patched multiple version.
:>>
:>>James
:>>-- 
:>>James Brister                                            brister@vix.com
:>>Internet Software Consortium      http://www.isc.org     inn@isc.org 
:>
:>I'm going to do it.  It looks like my machine survey will have to
:>wait.
:>
:>INN deserves commercial-quality support.  Unfortunately, it is apparent
:>that the ISC does not have the finances to provide it.

    Well, though it would be foolish for me to bash on software which
    is, after all, free, I would like to point out that maintaining
    two source trees is not difficult, especially if you are only applying
    security fixes to the older source tree.   You don't even have to maintain
    it in a formal RCS tree.

    The best example of this is probably the FreeBSD distribution.  They
    maintain three source trees.  The result is a commercial level upgrade
    path that is much, much better then even the commercial vendors provide.
    It's why many ISPs use FreeBSD these days... because they don't have
    to worry about having to run alpha software to keep up to date.

    I would prefer not to have a repeat of the 'upgrade to 1.6b1' debacle.
    If 1.6 isn't ready yet, then a fix needs to be posted for the current
    distribution so news admins can sleep at night.

:>Since the voluntary contribution method of supporting the ISC, which
:>supports INN is not working, I'm going to try it a bit differently....
:>Apologies if commercial software offends you....

:>1. If you are interested in receiving the 1.6 security enhancements
:>(if any-- I haven't reversed engineered them) as patches to 1.5.1
:>for a Usenet RKT subscription fee of $100, then e-mail me.  They
:..
:>
:>2. If you are interested in receiving $100 for reporting any previously
:>unpublished bug in INN 1.5.1, then e-mail me.  This is not a promise
:>to pay you, but it is a serious offer.
:...
:>Forrest Cavalier, Mib Software, INN customization and consulting.
:>http://www.mibsoftware.com/userkt/userkt.html

    Eek!  Lets not fly off the handle just yet :-)

    I am perfectly willing to post my 1.5.x diffs to fix the security
    hole, at least as far as I understand the problem.  The only problem is
    that I don't know what other security holes have been plugged in
    1.6b1 because a diff of the source tree yields a huge number of 
    changes.  I made fixes to the obvious frombuf and to the Error buffer
    sprintf()'s.  Are there other places in the code that need to be
    fixed ?

    I think as long as people post diffs that are ONLY relative to the 
    base 1.5.1 distribution, there should be no confusion.  The security
    fixes should be trivial enough that they can be patched in manually
    if need be.

    (And, all you news admins:  Always keep a pristine distribution source
    tree along with your hacked tree!).

					-Matt

*** old/nnrpd/post.c	Wed Jul 23 11:17:37 1997
--- new/nnrpd/post.c	Wed Jul 23 11:17:51 1997
***************
*** 147,153 ****
  		    return NULL;
  		}
  		if (hp->Value) {
! 		    (void)sprintf(Error, "Duplicate \"%s\" header", hp->Name);
  		    return NULL;
  		}
  		for (q = &p[hp->Size + 1]; ISWHITE(*q); q++)
--- 147,153 ----
  		    return NULL;
  		}
  		if (hp->Value) {
! 		    (void)snprintf(Error, sizeof(Error), "Duplicate \"%s\" header", hp->Name);
  		    return NULL;
  		}
  		for (q = &p[hp->Size + 1]; ISWHITE(*q); q++)
***************
*** 272,278 ****
      /* Do some preliminary fix-ups. */
      for (hp = Table; hp < ENDOF(Table); hp++) {
  	if (!hp->CanSet && hp->Value) {
! 	    (void)sprintf(Error, "Can't set system \"%s\" header", hp->Name);
  	    return Error;
  	}
  	if (hp->Value) {
--- 272,278 ----
      /* Do some preliminary fix-ups. */
      for (hp = Table; hp < ENDOF(Table); hp++) {
  	if (!hp->CanSet && hp->Value) {
! 	    (void)snprintf(Error, sizeof(Error), "Can't set system \"%s\" header", hp->Name);
  	    return Error;
  	}
  	if (hp->Value) {
***************
*** 760,766 ****
      register HEADER	*hp;
      FILE		*ToServer;
      FILE		*FromServer;
!     char		buff[NNTP_STRLEN + 2], frombuf[SMBUF];
      STRING		error;
  
      /* Set up the other headers list. */
--- 760,766 ----
      register HEADER	*hp;
      FILE		*ToServer;
      FILE		*FromServer;
!     char		buff[NNTP_STRLEN + 2], frombuf[SMBUF*2];
      STRING		error;
  
      /* Set up the other headers list. */
***************
*** 797,804 ****
  	return error;
      if (idbuff != NULL)
        idbuff [0] = '\0' ;
!     
!     strcpy(frombuf, HDR(_from));
      HeaderCleanFrom(frombuf);
      p = strchr(frombuf, '@');
      if (p) {
--- 797,806 ----
  	return error;
      if (idbuff != NULL)
        idbuff [0] = '\0' ;
! 
!     snprintf(frombuf, sizeof(frombuf)/2, "%s", HDR(_from));
!     /*strcpy(frombuf, HDR(_from));*/
! 
      HeaderCleanFrom(frombuf);
      p = strchr(frombuf, '@');
      if (p) {






Technical Details
Message-ID: <5r5hvt$7a8$1@flea.best.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> <5r350d$hmh$1@flea.best.net> <yy3afje5ie3.fsf@velo.pp.vix.com> <5r4sgj$qkn$5@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <5r5hvt$7a8$1@flea.best.net>
Subject: Re: DO NOT INSTALL 1.6 or 1.6b1! (was Re: innd 1.6 ?!?!?!)
Date: Wed, 23 Jul 1997 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <5r21gd$24r$1@pluto.sm.dsi.unimi.it> <5r350d$hmh$1@flea.best.net> <yy3afje5ie3.fsf@velo.pp.vix.com> <5r4sgj$qkn$5@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: 258389570
Organization: Best Internet Communications, Inc. - 415 964 BEST
Newsgroups: news.software.nntp