🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87475

Re: Draft -03 for COMPRESS

#87475
From: Julien ÉLIE
Date: Sat, 18 Jun 2016 20:45
77 lines
4847 bytes
Hi Michael,

>> I am still a bit puzzled by that:
>>    o  How are TLS (and SASL) specific exchanges supposed to be handled?
>>       Should it be mentioned in the RFC that they are outside the scope
>>       of NNTP compression?  (I speak of stuff like TLS handshakes,
>>       renegotiations, etc. that can occur after the use of COMPRESS.
>>       OpenSSL may use SSL_read/SSL_write on its own, mayn't it?  And it
>>       does not know that it should compress data...)
>
> Maybe I misunderstood what you mean with "TLS specific exchange", but
> I think that all the data used for the TLS protocol itself can be
> considered "out of band" because they contain no NNTP related payload.
> Only the result of changing connection parameters will affect our
> payload.

It was exactly what I meant.
Thanks for having confirmed the wording of the draft should not be 
altered, and that these "TLS specific exchanges" are out of band.


> I don't agree that there can't be additional security problems without
> TLS/SASL:
> With compression additional code is used inside and outside the program.
> For DEFLATE it is zlib outside and the corresponding buffer handling
> inside. I think of things like this:
> <http://www.kb.cert.org/vuls/id/680620>
> As an example of the inside case, in flnews 0.13 a bug was fixed in the
> overview parser that was only exploitable in NNTP V2 mode. Using the old
> RFC977 protocol, without OVER command, this vulnerability was not
> exposed to the server.

It makes me think that I should test how INN behaves if I try to POST a 
compressed article composed with headers and several billions of the 
same line as body + "CRLF.".
Though the internal buffer INN uses should not expand beyond the maximal 
size of a local article, I am interested in making sure it copes with 
that crafted article.


> But I nevertheless agree with your suggested words above, because the
> compression gives real benefit that can justify the additional risk.
> It should be the implementation and/or the user who decides what is the
> desired solution for a specific use case.

Adopted in the -04 draft, then.


> As label for the checkbox this would be too long. But the hint in
> parenthesis can be attached as a tooltip (that becomes visible if the
> user places the mouse pointer over the label):
> <http://micha.freeshell.org/tmp/2016-06-17_flnews_config-window_de.png>
> (Screenshot with NLS and german locale)

Looks fine.


>> I also need updating INN to have a boolean parameter like yours.
>> I think I will only add a global true/false parameter in inn.conf and
>> not bother with readers.conf to tweak newsgroups access per connection.
>> It could be an improvement in future versions when more news clients
>> have implemented COMPRESS.
>> I also have to implement the right 501 response code when the algorithm
>> name is not syntactically correct, [...]
>
> Please note me when it's finished. The error handling of flnews for the
> compression negotiation should be tested.

Noted.

-- 
Julien ÉLIE

« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
   (Aristophane)

Technical Details
Message-ID: <nk4bte$vjb$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: <njf91p$b3i$1@news.trigofacile.com> <AABXW+4JgdcAAA2l.A1.flnews@Server4.micha.freeshell.org> <njh71t$gq3$1@news.trigofacile.com> <AABXXSM2rvcAAAt6.A1.flnews@Server4.micha.freeshell.org> <njjo6n$ct3$1@news.trigofacile.com> <njjpno$eit$1@news.trigofacile.com> <AABXXXroib0AAA1G.A1.flnews@Server4.micha.freeshell.org> <njsf8k$663$1@news.trigofacile.com> <AABXYmsFDv0AAAd+.A1.flnews@WStation5.stz-e.de> <njuvm7$v0s$1@news.trigofacile.com> <AABXY9ValdcAAErq.A1.flnews@WStation5.stz-e.de>

Show Full Headers
Complete Article Headers
Message-ID: <nk4bte$vjb$1@news.trigofacile.com>
Subject: Re: Draft -03 for COMPRESS
Date: Sat, 18 Jun 2016 22:45:34 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <njf91p$b3i$1@news.trigofacile.com> <AABXW+4JgdcAAA2l.A1.flnews@Server4.micha.freeshell.org> <njh71t$gq3$1@news.trigofacile.com> <AABXXSM2rvcAAAt6.A1.flnews@Server4.micha.freeshell.org> <njjo6n$ct3$1@news.trigofacile.com> <njjpno$eit$1@news.trigofacile.com> <AABXXXroib0AAA1G.A1.flnews@Server4.micha.freeshell.org> <njsf8k$663$1@news.trigofacile.com> <AABXYmsFDv0AAAd+.A1.flnews@WStation5.stz-e.de> <njuvm7$v0s$1@news.trigofacile.com> <AABXY9ValdcAAErq.A1.flnews@WStation5.stz-e.de>
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: Sat, 18 Jun 2016 20:45:34 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080103c80061752ac8021c64e9.ipv6.abo.wanadoo.fr:2a01:cb08:103:c800:6175:2ac8:21c:64e9";
 logging-data="32363"; 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.1.1
In-Reply-To: <AABXY9ValdcAAErq.A1.flnews@WStation5.stz-e.de>
X-Received-Body-CRC: 2539288436
X-Received-Bytes: 4869