Article View: news.software.nntp
Article #93110Re: Duplicated newsgroups in Xref header fields
From: Jesse Rehmer
Date: Thu, 12 Nov 2026 19:11
Date: Thu, 12 Nov 2026 19:11
68 lines
4433 bytes
4433 bytes
On Nov 12, 2026 at 4:17:10β―AM CST, "Julien ΓLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:
> Hi all,
>
> While reviewing a bug, a question arises: shouldn't repeated newsgroups
> in Xref header fields be considered as an error, and the article be
> rejected during both injection and relaying?
Injecting agents MUST reject an article with Xref.
https://www.faqs.org/rfcs/rfc5537.html:
It MUST reject any proto-article that does not have the proper
mandatory header fields for a proto-article, that has Injection-
Info or Xref header fields, that has a Path header field
containing the "POSTED" <diag-keyword>, or that is not
syntactically valid as defined by [RFC5536]. It SHOULD reject
any proto-article that contains a header field deprecated for
Netnews (see, for example, [RFC3798]). It MAY reject any proto-
article that contains trace header fields (e.g., NNTP-Posting-
Host) indicating that it was already injected by an injecting
agent that did not add Injection-Info or Injection-Date.
Relaying agents gets trickier, because it is not a requirement to remove Xref:
It MAY delete any Xref header field already present. It MAY add
a new Xref header field for its own use (but recall that
[RFC5536] permits at most one such header field).
With that, in my opinion, a transit server isn't required to strip or examine
Xref.
The serving agent is where Xref is typically generated and matters:
It MUST remove any Xref header field from each article (except
when specially configured to preserve the <article-locator>s set
by the sending site). It then MAY (and usually will) add a new
Xref header field (but recall that [RFC5536] permits at most one
such header field).
> Though repeats could also happen in other header fields like Newsgroups,
> this seems harmless; de-duplication will be done by the server or client
> when processing the header field. However, as for Xref, we expect the
> peer to have de-duplicated already, so repeats should not happen here,
> and are almost certainly an attack signature.
I would not expect a relaying agent to do anything with Xref because it is not
required.
> Any thoughts about that? Has someone recently seen valid articles with
> duplicated Xref header fields?
> Digging into Jesse's archives could be interesting :-)
Duplicate headers should be rejected by the injecting agent. It is less clear
to me what happens once articles have passed an injection agent with duplicate
headers.
In the case of duplicate newsgroups in the same Xref header... I am not seeing
anything that says the newsgroups have to be unique inside the header, but
also don't see how an article can have more than one article number per
newsgroup.
This isn't the most interesting area to me, but by all means, pull overview
data from my boxes and see what's there. I'm sure there are some interesting
examples for further discussion.
This sounds like a good task for go-while. ;-)
Technical Details
Message-ID:
<11d530f$1vf4$1@nnrp.usenet.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.192.168.1.112!not-for-mailReferences:
<11d43n6$1d573$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.192.168.1.112!not-for-mail From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> Newsgroups: news.software.nntp Subject: Re: Duplicated newsgroups in Xref header fields Date: Thu, 12 Nov 2026 19:11:11 -0000 (UTC) Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com) Message-ID: <11d530f$1vf4$1@nnrp.usenet.blueworldhosting.com> References: <11d43n6$1d573$1@news.trigofacile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 12 Nov 2026 19:11:11 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="k8cWG9+Y/93vxQYza75s9JQFoL8rgVF3P1Yluveoqs0"; posting-host="DShpCNePgRrMCfz00vXDKcfXMsG1ImFHcHmVPOV42oU"; logging-data="64996"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:LcBj837S1NV15fdctmS/ujJL0go= sha256:HSO1WJVOk3b/c+IfaQIj7aoaw2Vv3XTPqHGShOYbDgk= sha1:rW8PmuRVFCxy3V68toHkeT4fha4= sha256:ccn6bhu+mYWR9Bpz9ZDHrB/hhqEUNV2quoWW9qFP7Ns= X-Usenapp: v1.30/d - Full License