🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Andrew Gierth Mon, 16 Mar 1998 00:00
INN's nnrpd, and Diablo, allowing bogus message-ids
#26910
Author: Andrew Gierth
Date: Mon, 16 Mar 1998 00:00
17 lines
1363 bytes
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.

Normally this wouldn't be a problem, because nnrpd hands the article
to innd anyway, and it would be rejected then -- but if your INN box
is a slave to a non-INN feeder, then the message may get (poorly)
propagated. This is apparently happening right now at Pacbell.

Is this a known issue, or should I post some patches?

-- 
Andrew.

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#26914
Author: 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)

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#26946
Author: Joe Greco
Date: Tue, 17 Mar 1998 00:00
29 lines
1919 bytes
In news.software.nntp article <EpxJKG.CKn@spcuna.spc.edu>, Terry Kennedy <terry@spcunb.spc.edu> wrote:
: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.

:  /*
:   * MsgId() - the message id must begin with a '<', end with a '>', 
:!  *	     and not contain any embedded '<', TAB, or space.
:   */

... and must contain an @, and only one @, and it must not be next to
an < or an >.

Preferably, someone should go look at the RFC and code a function to
determine the validity of a Message-ID...  I have such a function, but
didn't see if it enforces all RFC requirements when I wrote it.

... JG

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#26996
Author: Terry Kennedy
Date: Wed, 18 Mar 1998 00:00
20 lines
1645 bytes
Joe Greco <jgreco@ns.sol.net> writes:
> ... and must contain an @, and only one @, and it must not be next to
> an < or an >.
>
> Preferably, someone should go look at the RFC and code a function to
> determine the validity of a Message-ID...  I have such a function, but
> didn't see if it enforces all RFC requirements when I wrote it.

  Yes, but I stomp the bugs as I find them. In this particular case,
Reference NNTP gets very upset with the blank and returns "501 Usage:
CHECK <message-id>.", which makes the [Diablo] sender abort the con-
nection (since we're talking in streaming mode). And of course this
ID is first on the pile the next time. Lather. Rinse. Repeat. 8-(

	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)

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#26999
Author: Andrew Gierth
Date: Wed, 18 Mar 1998 00:00
24 lines
1744 bytes
>>>>> "Joe" == Joe Greco <jgreco@ns.sol.net> writes:

 Joe> Preferably, someone should go look at the RFC and code a
 Joe> function to determine the validity of a Message-ID...  I have
 Joe> such a function, but didn't see if it enforces all RFC
 Joe> requirements when I wrote it.

The problem is that the RFC requirements are not particularly clear,
and neither do they make much sense in general.

Incidentally, multiple @s are perfectly legal in a message-id
according to the RFC; <"@blah@"foo@some.host> for example.

The sticking point in any definition of validity of Message-IDs is the
question of compatibility with mail. At present, it is not possible to
accept all valid mail message-ids as valid in news, and IMO this will
never be possible unless the mail requirements are tightened. (Mail
message-ids can contain quoted whitespace.)

-- 
Andrew.

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27022
Author: Charlie Studmuffin
Date: Thu, 19 Mar 1998 00:00
60 lines
3407 bytes
On 17 Mar 1998, Joe Greco wrote:

> :> 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)
> :  /*
> :   * MsgId() - the message id must begin with a '<', end with a '>', 
> :!  *	     and not contain any embedded '<', TAB, or space.
> :   */
> 
> ... and must contain an @, and only one @, and it must not be next to
> an < or an >.
> 
> Preferably, someone should go look at the RFC and code a function to
> determine the validity of a Message-ID...  I have such a function, but
> didn't see if it enforces all RFC requirements when I wrote it.

Yesplease.  It seems to be especially bad now, with the majority of the
INN news.notice file on the feeder box here looking like 

Mar 21 00:22:35 news-feed innd: newsfeed.sollentuna.se:40 bad_messageid
    <cancel.20039811.5207@>
Mar 21 00:22:35 news-feed innd: cpk-news-hub1.bbnplanet.com:133
    bad_messageid <cancel.20039809.3031@>
Mar 21 00:22:35 news-feed innd: cpk-news-hub1.bbnplanet.com:134
    bad_messageid <cancel.20039809.3037@>
Mar 21 00:22:35 news-feed innd: feta.direct.ca:179 bad_messageid
    <cancel.19039816.3555@>
Mar 21 00:22:35 news-feed innd: news.maxwell.syr.edu:303 bad_messageid
    <cancel.19039816.3555@>
Mar 21 00:22:35 news-feed innd: news-xfer.netaxs.com:74 bad_messageid
    <cancel.19039811.2423@>
Mar 21 00:22:35 news-feed innd: newsfeed.sollentuna.se:40 bad_messageid
    <cancel.20039811.5204@>
Mar 21 00:22:35 news-feed innd: nntp.abs.net:178 bad_messageid
    <cancel.19039816.3557@>
Mar 21 00:22:35 news-feed innd: feta.direct.ca:247 bad_messageid
    <cancel.20039809.3107@>
Mar 21 00:22:35 news-feed innd: nntp.abs.net:181 bad_messageid
    <cancel.19039816.3555@>
Mar 21 00:22:35 news-feed innd: newsfeed.sollentuna.se:40 bad_messageid
    <cancel.19039811.2343@>

I'd just as soon see bogus articles dropped on the floor a heck of a lot
earlier in the food chain.  As it is, our INN box tosses 'em, but I would
personally prefer them never to get that far.

Would anyone care to comment on the validity checking that is enforced by
INN?  I'm seeing several hundred bad message-IDs offered daily now from
each of our non-INN feederz, which is significantly more than the handful
that would be seen up to the last days, and if that code is ripe for
plucking out and perverting for use in other software...


Arrrgh!  Take back the bandwidth!
Barry Bouwsma, Chief Operative, Fascistic Newsbastard Cabal


Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27592
Author: Jeff Garzik
Date: Sat, 11 Apr 1998 00:00
39 lines
2329 bytes
Steinar Haug wrote:
> 
> [Jeff Garzik]
> 
> |   Gentleman, an RFC already exists which describes the suggested contents
> |   of the Message-ID header.
> 
> I know that RFC 1036 describes the Message-ID header. However, since there
> are plenty of examples where INN, Diablo, NNTPRelay and Cyclone disagree,
> it's not obvious to me that the definition in RFC 1036 is sufficiently
> precise/unambiguous. An alternative interpretation is that the authors of
> relay-only News systems believe it's not their job to check Message-IDs
> for valid syntax (in which case I disagree with them).
[...]
> Here's an example where I think INN is probably being too strict tossing
> the article:
> 
> <98Apr10.112733edt.159892(7)@bureau6.utcc.utoronto.ca>
> 
> Thr RHS is clearly correct (it even exists in DNS :-), and I see nothing
> in RFC 1036 which suggests that the LHS is invalid.

Practically speaking, in RFC language, the RHS *SHOULD* have a
MX-resolvable domain name in it; however, considering all the stuff that
is gatewayed onto Usenet (and private NNTP networks), the absolute
requirement of a message-id MUST be

	"<" + string of non-">" characters + ">"

I think having whitespace in a message id will break things too.



-- 
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27596
Author: Russ Allbery
Date: Sat, 11 Apr 1998 00:00
24 lines
1743 bytes
Jeff Garzik <jeff.garzik@spinne.com> writes:

> Practically speaking, in RFC language, the RHS *SHOULD* have a
> MX-resolvable domain name in it; however, considering all the stuff that
> is gatewayed onto Usenet (and private NNTP networks), the absolute
> requirement of a message-id MUST be

>       "<" + string of non-">" characters + ">"

> I think having whitespace in a message id will break things too.

The only message IDs I've seen with trailing dots are spam, spam cancels,
and gated mail messages; I know of no news system that creates them under
normal circumstances (unless someone really munged their configuration and
made the computer think its domain had a trailing dot).

That plus message IDs with no @ are the main things that INN rejects that
other news systems pass.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27597
Author: Charlie Coredump
Date: Sat, 11 Apr 1998 00:00
32 lines
2388 bytes
On 11 Apr 1998, Steinar Haug wrote:

> that it's pretty dumb to have major News software packages disagree on
> this syntax (and as a result have articles sent only to be tossed in the
> bit bucket by the receiver).

Are you sure they are being sent?  I thought that INN would turn them
down at the IHAVE/CHECK point, before the transfer of the article.

(INN does need to see the entire rest of the headers before it can then
reject an article as being too old, or no colon-space, or unapproved,
and so on, and it further must receive the entire body as well before
it can reject the article as being larger than the size limit, or the
number of lines not matching the number of lines given in the header,
and so on.)

I do keep track of the bytes transferred which get dumped straight into
the bitbucket, and for certain peers it amounts to far less than what
would be expected for the number of rejected articles, and likewise I
count the number of rejected articles from the news logfile, which can
be rather different from the number recorded in news.notice, as bad
message ID articles never even make it to the news logfile.


Barry Bouwsma
not really important anyhows as most of the rejected articles most
sites see will be either multi-megabyte posts or duplicates from
multiple peers without caching of recently-offered message IDs


Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27600
Author: Steinar Haug
Date: Sat, 11 Apr 1998 00:00
47 lines
2581 bytes
[Jeff Garzik]

|   Gentleman, an RFC already exists which describes the suggested contents
|   of the Message-ID header.

I know that RFC 1036 describes the Message-ID header. However, since there
are plenty of examples where INN, Diablo, NNTPRelay and Cyclone disagree,
it's not obvious to me that the definition in RFC 1036 is sufficiently
precise/unambiguous. An alternative interpretation is that the authors of
relay-only News systems believe it's not their job to check Message-IDs
for valid syntax (in which case I disagree with them).

RFC 1036 says that the syntax is <unique@full_domain_name>.  Is the RHS of
the following Message-ID correct? It's been rejected by INN here, but
arrived from Diablo and Cyclone sites:

<352F5387.4DC4@.pixi.com>

Or the following, rejected by INN, passed by Diablo, NNTPRelay and Cyclone:

<01bd64e0$8d205440$a34e37a6@glsquared-inc.>
<352DF88F.5933@pnx..com.x>

Note that I'm not saying that INN is necessarily right - I'm just saying
that it's pretty dumb to have major News software packages disagree on
this syntax (and as a result have articles sent only to be tossed in the
bit bucket by the receiver).

This one would seem to be clearly in violation of RFC 1035, since there's
no @:

<38840987_22735441>

And yet it's been passed by Diablo, NNTPRelay and Cyclone sites.

Here's an example where I think INN is probably being too strict tossing
the article:

<98Apr10.112733edt.159892(7)@bureau6.utcc.utoronto.ca>

Thr RHS is clearly correct (it even exists in DNS :-), and I see nothing
in RFC 1036 which suggests that the LHS is invalid.

Steinar Haug, Nethelp consulting, sthaug@nethelp.no

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27605
Author: Steinar Haug
Date: Sat, 11 Apr 1998 00:00
72 lines
3721 bytes
[Charlie Studmuffin]

|   > Preferably, someone should go look at the RFC and code a function to
|   > determine the validity of a Message-ID...  I have such a function, but
|   > didn't see if it enforces all RFC requirements when I wrote it.
|   
|   Yesplease.  It seems to be especially bad now, with the majority of the
|   INN news.notice file on the feeder box here looking like 
|   
|   Mar 21 00:22:35 news-feed innd: newsfeed.sollentuna.se:40 bad_messageid
|       <cancel.20039811.5207@>
..
|   I'd just as soon see bogus articles dropped on the floor a heck of a lot
|   earlier in the food chain.  As it is, our INN box tosses 'em, but I would
|   personally prefer them never to get that far.

Agreed.

|   Would anyone care to comment on the validity checking that is enforced by
|   INN?  I'm seeing several hundred bad message-IDs offered daily now from
|   each of our non-INN feederz, which is significantly more than the handful
|   that would be seen up to the last days, and if that code is ripe for
|   plucking out and perverting for use in other software...

I find it pretty sad that the authors of INN, Diablo and NNTPRelay cannot
agree on what should be regarded as correct message-IDs. One could argue
that Diablo and NNTPRelay, being feeder-only systems, shouldn't care about
the message-IDs. But that simply results in wasted bandwidth, as the
articles are tossed when they arrive at INN based systems.

How about an RFC describing the format of message-IDs?

Below are some of the message-IDs that have recently been tossed here,
arriving from Diablo and/or NNTPRelay systems.

Steinar Haug, Nethelp consulting, sthaug@nethelp.no
----------------------------------------------------------------------
<Your.World.e-mail.Address-(CHANGE-2803982319530001@10.0.2.15>
<35202A0A.8D34172F@...>
<01bd5e25$d72a0ca0$3401a8c0@ibm..ibm>
<192.168.144.4:1445\brenda.vogele\0001d3842253bc2d0001d3850000@omni.fisc.int>
<DSERSaltnowhere.com)>
<cancel.010498174056@Samies.place...>
<03049814.3240@shes.nude.>
<35257126.5239@>
<35263C6E.3870@yahoo..net>
<040498204249@sexcraze.com(Kira)>
<01bd6100$3a6a9640$2b0865cf@d.j.>
<352800AF.752D@.Geocities>
<35282EE9.16B1@cyberus...>
<rgb-0504982246180001@5<5<PQ\L>
<01bd6254$efc3bf80$badfaec7@0000bk620000.>
<1998040703213601.X.com>
<@news666.toontown.edu>
<B15035BB96681F468D@0.0.0.>
<352AB8E8.514F@lafn.org..x>
<01bd62f5$063220e0$392711cf@Ext..mwbb.com>
<199804081520.AA17242@aw561.iasl.ca.boeing.com.mr2-interest@mr2.com>
<01bd639d$177375e0$68b5ccc2@dariusz-s.>
<01bd63a7$6a490320$0e10dcc3@t.d.v.>
<352979AD.B198F99B@.>
<g5keith.892180593@.cdf.toronto.edu>
<38840987_22735441>
<352DF88F.5933@pnx..com.x>
<352E6D4A.50B4@.com>
<01bd6492$2efedf60$b25087cf@.>
<352E69C0.E3305A98@.ca>
<01bd64db$0b90db20$3c198bcf@mic.>
<01bd64e0$8d205440$a34e37a6@glsquared-inc.>

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27610
Author: Jeff Garzik
Date: Sat, 11 Apr 1998 00:00
8 lines
1105 bytes
Gentleman, an RFC already exists which describes the suggested contents
of the Message-ID header.
-- 
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting

Re: INN's nnrpd, and Diablo, allowing bogus message-ids
#27616
Author: Matt Dillon
Date: Mon, 13 Apr 1998 00:00
49 lines
2957 bytes
:In article <m367kfref1.fsf@windlord.Stanford.EDU>,
:Russ Allbery  <rra@stanford.edu> wrote:
:>Jeff Garzik <jeff.garzik@spinne.com> writes:
:>
:>> Practically speaking, in RFC language, the RHS *SHOULD* have a
:>> MX-resolvable domain name in it; however, considering all the stuff that
:>> is gatewayed onto Usenet (and private NNTP networks), the absolute
:>> requirement of a message-id MUST be
:>
:>>       "<" + string of non-">" characters + ">"
:>
:>> I think having whitespace in a message id will break things too.
:>
:>The only message IDs I've seen with trailing dots are spam, spam cancels,
:>and gated mail messages; I know of no news system that creates them under
:>normal circumstances (unless someone really munged their configuration and
:>made the computer think its domain had a trailing dot).
:>
:>That plus message IDs with no @ are the main things that INN rejects that
:>other news systems pass.
:>
:>-- 
:>Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

   Well, if the group working on that new RFC makes the message-id format
   crystal clear, I'll follow it.  Otherwise I consider message-id generation
   to be too screwy to put complex checks into Diablo.

   Frankly, I consider message-id is nothing more then a unique ID and don't
   particularly see why people should define it beyond something simple.
   Nobody should be attempting to make sense of it.  The various restrictions
   are there mainly to prevent parsers from barfing on it and to ensure that
   each site's idea of a unique idea doesn't overlap other site's ideas.
   Diablo won't complain unless the message-id contains an embedded '<', 
   space, CR, LF, or tab.  Space being the most recent addition.   I suppose
   I could require an '@' in there, but I'm not going to start checking
   to see if the dots are in the right place or if the RHS resolves.

						-Matt


-- 
    Matthew Dillon   Engineering, BEST Internet Communications, Inc.
    <dillon@best.net>, include original article w/ any response.
    do not under any circumstances send email to joeblow@bigspender.idiom.com
    and, for gods sake, don't email bucktram@popserver.idiom.com

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads