🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90038

Re: No colon-space in header field check in INN

#90038
From: Grant Taylor
Date: Wed, 01 Feb 2023 17:43
35 lines
2448 bytes
On 2/1/23 9:00 AM, Russ Allbery wrote:
> We do need to be pretty strict, since otherwise you can get into really 
> nasty situations with ambiguous parses where two servers may disagree 
> about something fundamental like the message ID of the article.

Agreed.

> I think if someone wanted to send a patch that added the ability to 
> accept articles with headers that (a) weren't part of the protocol 
> (so not Message-ID, Path, etc.), (b) specifically ended in a colon and 
> a newline and no other variation, and (c) did not have a continuation, 
> and it was configurable with the syntaxchecks setting and was off by 
> default, that would be worth considering.

I think my biggest hang up is the idea that the header is defined 
(present) but doesn't have a value.  --  My personal opinion is that if 
a header is there, then there should be /something/ in it.

I don't know if a single space following the colon is as important to 
me.  I'd be willing to accept -- what SMTP RFCs define as -- CFWS 
sequences between the delimiting colon and header contents.

> I wouldn't want to relax the checks any farther than that.  (It may 
> be a bit difficult to wedge that into innd's code, though, since the 
> above error happens at a fairly low level of the parse.)

Other than possibly allowing CFWS, I think that the headers should all 
be well formed.




-- 
Grant. . . .
unix || die
Technical Details
Message-ID: <tre8f7$h9p$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <trd09m$1369$1@nnrp.usenet.blueworldhosting.com> <87bkmdnzo2.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <tre8f7$h9p$1@tncsrv09.home.tnetconsulting.net>
Subject: Re: No colon-space in header field check in INN
Date: Wed, 1 Feb 2023 10:43:24 -0700
From: Grant Taylor <gtaylor@tnetconsulting.net>
References: <trd09m$1369$1@nnrp.usenet.blueworldhosting.com> <87bkmdnzo2.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: TNet Consulting
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Feb 2023 17:45:11 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.13.0
In-Reply-To: <87bkmdnzo2.fsf@hope.eyrie.org>
Content-Language: en-US
Lines: 34