πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87446

Re: Multiple occurences of header fields

#87446
From: Michael Baeuerle
Date: Thu, 26 May 2016 09:44
55 lines
3452 bytes
Julien Γ‰LIE wrote:
> 
> [...]
> I've just done a quick audit of how nnrpd enforces the global syntax 
> (that is to say not header-specific) given in RFC 5536.  Here are my 
> comments.  Do not hesitate to react if you have another point of view.
> [...]
>    o  Compliant software MUST NOT generate (but MAY accept) header field
>       lines of more than 998 octets.  This is the only limit on the
>       length of a header field line prescribed by this standard.
>       However, specific rules to the contrary may apply in particular
>       cases (for example, according to [RFC2047], lines of a header
>       field containing encoded words are limited to 76 octets).
> 
> => The check for 998 octets is already done, but not the one for 76 octets!
> As INN does not generate such headers, I believe it is OK not to check 
> the length of header fields containing encoded words (an injecting 
> agent MAY accept them).

I agree with your opinion. In a very strict sense some text limited by
"=?" and "?=" is not even an encoded-word as long as the posting agent
has not inserted a "MIME-Version" header field to declare this meaning.

And it is never allowed to omit this declaration as defined by RFC2049:

| A mail user agent that is MIME-conformant MUST:
| 
|     (1)   Always generate a "MIME-Version: 1.0" header field in
|           any message it creates.

>    The following header fields defined in this document do not allow
>    <comment>s (i.e., they use FWS rather than CFWS).
> 
>    Control
>    Distribution
>    Followup-To
>    Lines
>    Newsgroups
>    Path
>    Supersedes
>    Xref
> 
> => I think nnrpd does not check that for Supersedes (and perhaps other 
> of these fields).  We should enforce that check, and better, enforce 
> the right syntax for these specific headers (Supersedes expects a valid 
> message-ID for instance, whereas unstructured text can now be injected).

The "Lines" header field is marked obsolete by RFC5536 and there is the
note :

| All agents SHOULD ignore it [...]

Is there a reason for INN to not follow this recommendation?

Technical Details
Message-ID: <AABXRsV5TKsAAEue.A1.flnews@WStation4.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <2116899503.484444288.248931.dunno-dunno.dunno@news.mixmin.net> <ngqpe2$5cc$1@news.trigofacile.com> <1847732562.484552918.438596.dunno-dunno.dunno@news.mixmin.net> <ngtd3e$2e5$1@news.trigofacile.com> <87oa8djpeh.fsf@hope.eyrie.org> <alpine.OSX.2.20.1605111043570.14592@mako.ath.cx> <nhsd2n$mdi$1@news.trigofacile.com> <ni2afm$96b$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABXRsV5TKsAAEue.A1.flnews@WStation4.micha.freeshell.org>
Subject: Re: Multiple occurences of header fields
Date: Thu, 26 May 2016 09:44:25 -0000
From: Michael Baeuerle <michael.baeuerle@gmx.net>
References: <2116899503.484444288.248931.dunno-dunno.dunno@news.mixmin.net> <ngqpe2$5cc$1@news.trigofacile.com> <1847732562.484552918.438596.dunno-dunno.dunno@news.mixmin.net> <ngtd3e$2e5$1@news.trigofacile.com> <87oa8djpeh.fsf@hope.eyrie.org> <alpine.OSX.2.20.1605111043570.14592@mako.ath.cx> <nhsd2n$mdi$1@news.trigofacile.com> <ni2afm$96b$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.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Lines: 53
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net JZw0pivJ0VgNLlCuPSeNKAK9ggYCwgUqMOJidNFY/GBckj5sOV
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:n54PPqrDAydbqJjGdzjpnW5lrZY= sha1:HCtLZcxuBwgvswXj6+nbgt8VdGI=
Injection-Date: Thu, 26 May 2016 09:44:25 -0000
User-Agent: flnews/0.14pre30 (for AIX)
X-Received-Body-CRC: 1604643613
X-Received-Bytes: 3311