Article View: news.software.nntp
Article #83404About injection header fields (bug in INN)
From: Julien ÉLIE
Date: Sat, 04 Sep 2010 08:28
Date: Sat, 04 Sep 2010 08:28
101 lines
5304 bytes
5304 bytes
Hi all,
I repost this article in news.software.nntp because I think it might
interest people here.
The original was sent in news.admin.net-abuse.policy but as it is
moderated with no crosspost allowed, I could not post it here too...
>>> What does INN do, for example, if an article appears from a peer for
>>> a moderated newsgroup without an Approved header?
>>
>> It drops it on the floor.
>
> Yes. So perhaps I'm missing the point of this. Is this issue only
> relevant to servers peering with Giganews that don't run INN? If
> they're propagating articles without an Approved header, INN peers
> are going to correctly reject them.
Speaking about RFCs and standards, there is a violation I have just
seen in latest versions of INN (at least, INN 2.5.2 is affected).
I was intrigued by the headers of an article:
Message-ID: <slrni79m2c.f22.steve@news.mixmin.net>
Injection-Date: Wed, 25 Aug 2010 08:46:04 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
logging-data="12039"; mail-complaints-to="[cut-by-me-for-spam]"
Date: Wed, 25 Aug 2010 04:46:11 -0400
Approved: [cut-by-me-for-spam]
Path: uni-berlin.de!fu-berlin.de!sol01.ashbva.gweep.ca!not-for-mail
Something was not pleasing me. The injection information looked weird
with the mentioned path.
And reading again RFC 5537, I see:
3.5. Duties of an Injecting Agent
7. If the Newsgroups header contains one or more moderated groups
and the proto-article does not contain an Approved header field,
the injecting agent MUST either forward it to a moderator as
specified in Section 3.5.1 or, if that is not possible, reject
it. This forwarding MUST be done after adding the Message-ID
and Date headers if required, and before adding the Injection-
Info and Injection-Date headers.
8. Otherwise, a Path header field with a <tail-entry> MUST be added
if not already present.
9. The injecting agent MUST then update the Path header field as
described in Section 3.2.1.
10. An Injection-Info header field SHOULD be added that identifies
the source of the article and possibly other trace information
as described in Section 3.2.8 of [RFC5536].
11. If the proto-article already had an Injection-Date header field,
it MUST NOT be modified or replaced. If the proto-article had
both a Message-ID header field and a Date header field, an
Injection-Date header field MUST NOT be added, since the proto-
article may have been multiply injected by a posting agent that
predates this standard. Otherwise, the injecting agent MUST add
an Injection-Date header field containing the current date and
time.
I totally missed that point and messed it up with injection headers :-/
When moderation is required, the news server MUST NOT generate
Injection-Info: and Injection-Date: header fields!
INN 2.5.2 unfortunately does that...
It also wrongly adds/updates the Path: header field.
Oh, and I learn that a news server MUST NOT add an Injection-Date: header
field when both a Message-ID: and a Date: ones already exist.
Injection fields are trickier than what I originally thought. I should
have been more careful, sorry!
It will be fixed in INN 2.5.3.
Meanwhile, the behaviour is broken, and may cause problems if a moderation
bot points to an nnrpd 2.5.2 which rejects the message because of an
Injection-Info: header field already set...
> Giganews should not propagate these articles. But the root problem is
> the system that injected the article into Usenet in the first place.
Injection is not a trivial notion...
Probably all injecting systems are somehow "bugged".
Some more than others, though :-)
--
Julien ÉLIE
« Impossible n'est pas gaulois, les amis ! » (Distributiondesprix)
Technical Details
Message-ID:
<i5svv7$7ik$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-56-13.w83-112.abo.wanadoo.fr!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <i5svv7$7ik$1@news.trigofacile.com> Subject: About injection header fields (bug in INN) Date: Sat, 4 Sep 2010 10:28:23 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-56-13.w83-112.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 101 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-15"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Sat, 4 Sep 2010 08:28:23 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-151-1-56-13.w83-112.abo.wanadoo.fr:83.112.29.13"; logging-data="7764"; mail-complaints-to="abuse@trigofacile.com" X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18197 X-Original-Bytes: 5114