🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26914

Re: INN's nnrpd, and Diablo, allowing bogus message-ids

#26914
From: Terry Kennedy
Date: Mon, 16 Mar 1998 00:00
65 lines
2554 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
> Having just noticed a bunch of articles go past with spaces in the
> message-ids (this is on Diablo, which isn't sufficiently strict about
> checking these things), I've just noticed that INN's nnrpd makes no
> attempt to enforce the sanity of client-supplied message-ids.
>
> Is this a known issue, or should I post some patches?

  I noticed it when the first round of forged posts from PacBell showed up.
I sent the following Diablo patch to Matt, and he said he'd include it in 
the next production Diablo release.

--------
From: TERRY        "Terry Kennedy, Operations Mgr"      24-FEB-1998 15:52:10.19
To:   IN%"dillon@backplane.com"
CC:   TERRY
Subj: Patch for previously-reported problem (blank in Message-ID)
 
  Here's lightly-tested patch to fix the problem:

*** history.c.bak	Sun Nov 23 16:58:11 1997
--- history.c	Tue Feb 24 15:34:18 1998
***************
*** 623,629 ****
  
  /*
   * MsgId() - the message id must begin with a '<', end with a '>', 
!  *	     and not contain any embedded '<' or TAB.
   */
  
  char *
--- 623,629 ----
  
  /*
   * MsgId() - the message id must begin with a '<', end with a '>', 
!  *	     and not contain any embedded '<', TAB, or space.
   */
  
  char *
***************
*** 645,651 ****
  	return("<>");
  
      for (i = 1; s[i] && s[i] != '>'; ++i) {
! 	if (s[i] == '<' || s[i] == '\t')
  	    return("<>");
      }
  
--- 645,651 ----
  	return("<>");
  
      for (i = 1; s[i] && s[i] != '>'; ++i) {
! 	if (s[i] == '<' || s[i] == '\t' || s[i] == ' ')
  	    return("<>");
      }
  

--------

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Technical Details
Message-ID: <EpxJKG.CKn@spcuna.spc.edu>
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: <87ra42admq.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <EpxJKG.CKn@spcuna.spc.edu>
Subject: Re: INN's nnrpd, and Diablo, allowing bogus message-ids
Date: Mon, 16 Mar 1998 00:00:00 +0000
From: Terry Kennedy <terry@spcunb.spc.edu>
References: <87ra42admq.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-mail
X-Deja-AN: 334663164
X-Complaints-To: Email abuse@spc.edu if this posting is inappropriate
X-Trace: spcuna.spc.edu 890081871 16228 terry [192.107.46.132]
Organization: St. Peter's College, US
Newsgroups: news.software.nntp