Thread View: news.software.nntp
2 messages
2 total messages
Started by Julien ÉLIE
Sat, 04 Sep 2010 08:28
About injection header fields (bug in INN)
Author: 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)
Re: About injection header fields (bug in INN)
Author: Julien ÉLIE
Date: Sun, 26 Sep 2010 15:24
Date: Sun, 26 Sep 2010 15:24
48 lines
3174 bytes
3174 bytes
Hi all, > 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. I just wanted to point out that INN 2.5.2 is actually not affected by the wrong addition of Injection-Date: and Injection-Info: headers because... it does not add them! This feature is new in INN 2.6.0 (not yet released), and the issue is now fixed. > 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. INN 2.5.2 is only affected by a wrong update of the Path: header. It contains a ".POSTED" diagnostic. Will be fixed in INN 2.5.3. No diagnostic should be added at all. The Path: header should remain unmodified. > 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. Not an issue in INN 2.5.2. Only INN 2.6.0 adds the Injection-Date: header field. -- Julien ÉLIE « Sum, ergo bibo ; bibo, ergo sum. »
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