🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87442

Re: Multiple occurences of header fields

#87442
From: Julien ÉLIE
Date: Sun, 22 May 2016 13:40
77 lines
4811 bytes
Hi David,

> I'd also like to solicit some opinions on these examples.
>
> Header name consisting of eight BS (%d08, %x08)
>     ^H^H^H^H^H^H^H^H: Mozilla 4.79 [en] (Win98; U)
> : Mozilla 4.79 [en] (Win98; U)
>
> Header name consisiting of eight DEL (%d127, %x7F)
>     ^?^?^?^?^?^?^?^?: Mozilla 4.79 [en] (Win98; U)
> : Mozilla 4.79 [en] (Win98; U)
>
> In the following examples nonprinting control characters are included
> in the header body.
>
> DEL (%d127, %x7F)
> From: "SpamGuy" <"Spam"@Guy.com>
>     (From: "S^?p^?a^?m^?G^?u^?y" <"S^?p^?a^?m"@G^?u^?y^?.^?c^?o^?m>)
> From: "SpamGuy" <"Spam"@Guy.com>
>     (From: "S^?p^?a^?m^?G^?u^?y" <"S^?p^?a^?m"@^?G^?u^?y^?.^?c^?o^?m>)
> From: =?iso-8859-1?Q?S=A0p=A0a=A0m=A0G=A0u=A0y?= <Spam@Guy.com>
>     (From: =?iso-8859-1?Q?S=A0p=A0a=A0m=A0G=A0u=A0y?= <S^?p^?a^?m@^?G^?u^?y^?.^?c^?o^?m>)
>
> Record Separator (%d30, %x1E)
> From: SpamGuy <Spam@guy.com>
>     (From: S^^p^^a^^m^^G^^u^^y <S^^p^^a^^m^^@^^g^^u^^y^^.^^c^^o^^m>)
>
> Unit Separtator (%d31, %x1F)
> From: SpamGuy <Spam@guy.com>
>     (From: S^_p^_a^_m^_G^_u^_y <S^_p^_a^_m^_@^_g^_u^_y^_.^_c^_o^_m>)
> From: Virus Guy <Virus@guy.com>
>     (From: Virus Guy <Virus@^_g^_u^_y^_.^_c^_o^_m>)

I believe all of these examples MUST NOT be generated by posting agents 
and MUST be rejected by injecting agents.  (That's why nnrpd MUST reject 
them.)
Once injected, a relaying agent MAY reject them (section 3.6 of RFC 
5537).  (innd currently does not reject them, and I think we should keep 
that behaviour.)


Rationale
---------

RFC 2822 (now obsoleted by RFC 5322) allowed

NO-WS-CTL       =       %d1-8 /         ; US-ASCII control characters
                         %d11 /          ;  that do not include the
                         %d12 /          ;  carriage return, line feed,
                         %d14-31 /       ;  and white space characters
                         %d127

in the "unstructured" syntax of most of headers.
Now, RFC 5322 forbids it, even in obsolete syntax:

2.2.  Header Fields

    Header fields are lines beginning with a field name, followed by a
    colon (":"), followed by a field body, and terminated by CRLF.  A
    field name MUST be composed of printable US-ASCII characters (i.e.,
    characters that have values between 33 and 126, inclusive), except
    colon.  A field body may be composed of printable US-ASCII characters
    as well as the space (SP, ASCII value 32) and horizontal tab (HTAB,
    ASCII value 9) characters (together known as the white space
    characters, WSP).  A field body MUST NOT include CR and LF except
    when used in "folding" and "unfolding", as described in section
    2.2.3.  All field bodies MUST conform to the syntax described in
    sections 3 and 4 of this specification.

-- 
Julien ÉLIE

« – Ce n'était pas ma question.
   – C'était p'têt pas vot'question, oui, mais c'est ma
     réponse ! » (Georges Marchais répondant à Alain Duhamel)

Technical Details
Message-ID: <nhscsd$m9c$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
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> <87r3d8k1rk.fsf@hope.eyrie.org> <nh04ec$3qr$1@news.trigofacile.com> <nh04lo$40t$1@news.trigofacile.com> <alpine.OSX.2.20.1605141318590.44007@mako.ath.cx> <87a8jso37o.fsf@hope.eyrie.org> <alpine.OSX.2.20.1605171146160.1231@mako.ath.cx>

Show Full Headers
Complete Article Headers
Message-ID: <nhscsd$m9c$1@news.trigofacile.com>
Subject: Re: Multiple occurences of header fields
Date: Sun, 22 May 2016 15:40:28 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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> <87r3d8k1rk.fsf@hope.eyrie.org> <nh04ec$3qr$1@news.trigofacile.com> <nh04lo$40t$1@news.trigofacile.com> <alpine.OSX.2.20.1605141318590.44007@mako.ath.cx> <87a8jso37o.fsf@hope.eyrie.org> <alpine.OSX.2.20.1605171146160.1231@mako.ath.cx>
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
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 22 May 2016 13:40:29 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080118040078cb1449bc386928.ipv6.abo.wanadoo.fr:2a01:cb08:118:400:78cb:1449:bc38:6928";
 logging-data="22828"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.0
In-Reply-To: <alpine.OSX.2.20.1605171146160.1231@mako.ath.cx>
X-Received-Body-CRC: 306686747
X-Received-Bytes: 4843