🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90490

Re: Reversable Injection-Info header encryption for nnrpd?

#90490
From: Julien ÉLIE
Date: Thu, 06 Jul 2023 18:51
46 lines
2987 bytes
Hi Russ,

> I would not use AES-CBC for any new application.  It's not authenticated,
> which opens it to various problems.

Noted.


> AES-CBC-HMAC is better, but it's a
> complicated algorithm that's very easy to make mistakes with.

... and OpenSSL documentation explicitly warns that 
EVP_aes_256_cbc_hmac_sha256() "is not intended for usage outside of TLS 
and requires calling of some undocumented ctrl functions"...
Glad to hear that warning ^^


> AES-GCM-SIV is probably the most foolproof of readily available encryption
> algorithms.  Unfortunately, it's not supported by openssl enc, and it's a
> fairly new addition to the OpenSSL libraries.  Other good options would be
> AES-GCM or ChaCha20-Poly1305 (which require unique nonces, but given the
> volume of a typical INN nnrpd server we can probably get away with random
> nonces), which have been supported for longer but similarly aren't
> supported by openssl enc.
> 
> PBKDF2 is also a pretty bad key derivation function.  It probably doesn't
> matter that much, but scrypt or bcrypt would be much better.
> Unfortuantely, openssl enc is not a very good tool.  :(

Thanks for all these suggestions.

After all, I'm wondering whether it should not be more useful to news 
admins and less time-consuming for developers to just enhance our 
filter_innd.pl and filter_nnrpd.pl samples, as well as the documentation 
for Perl (and Python) filters with ready-to-use examples.
-> how to obfuscate Injection-Info and just use "!.POSTED" (without the 
posting-host)
-> how to reject articles containing something in one of their header fields
-> how to reject articles crossposted to x and y
-> how to...

-- 
Julien ÉLIE

« J'ai un copain, il est pilote d'essai… Enfin, il ne l'est pas encore ;
   pour l'instant, il essaie d'être pilote ! » (Raymond Devos)
Technical Details
Message-ID: <u872ga$2tr7l$1@news.trigofacile.com>
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: <u85ak0$1uig$1@nnrp.usenet.blueworldhosting.com> <slrnuacq8i.rkuv.rayban@raybanana.net> <u86uoj$2tppv$1@news.trigofacile.com> <87h6qgvrvj.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <u872ga$2tr7l$1@news.trigofacile.com>
Subject: Re: Reversable Injection-Info header encryption for nnrpd?
Date: Thu, 6 Jul 2023 20:51:54 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u85ak0$1uig$1@nnrp.usenet.blueworldhosting.com> <slrnuacq8i.rkuv.rayban@raybanana.net> <u86uoj$2tppv$1@news.trigofacile.com> <87h6qgvrvj.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: Groupes francophones par TrigoFACILE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 6 Jul 2023 18:51:54 -0000 (UTC)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
 Gecko/20100101 Thunderbird/102.12.0
Cancel-Lock: sha1:yYAKBmCtzx6nLtuQ2otf6jcgpnA= sha256:KT/pUntqL/thCDwSf5W11/MVW03uhlR8PRIKZMLbOkc=
In-Reply-To: <87h6qgvrvj.fsf@hope.eyrie.org>