Article View: news.software.nntp
Article #90487Re: Reversable Injection-Info header encryption for nnrpd?
From: Jesse Rehmer
Date: Thu, 06 Jul 2023 18:06
Date: Thu, 06 Jul 2023 18:06
52 lines
3224 bytes
3224 bytes
On Jul 6, 2023 at 12:48:03 PM CDT, "Julien ΓLIE"
<iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Jesse and Wolfgang,
>
>>> There are plenty of examples to hash the X-Trace or Injection-Info header
>>> details to provide obfuscation while allowing consistent header data other
>>> users can use to filter if they wish, but I'm looking for functionality like
>>> that of Diablo's X-Trace encryption, where it is reversible to the
>>> administrator.
>>
>> If you want to use this in the filter_nnrpd Perl filter, take a look at
>>
>> https://metacpan.org/pod/Crypt::CBC
>
> Would it then be useful if we had a new block in inn-secrets.conf:
>
> encryption {
> injection-info: "XXX"
> }
>
> and a new encryptinjectioninfo parameter (true/false) in access blocks
> of readers.conf to automatically encrypt the posting-host and
> posting-account information?
>
> If posting-account is "myuser", nnrpd would then write
> "U2FsdGVkX1+AIde8W1/6D7PFN0YrP0pekyWK4Vt4qhM=" instead, using the
> suggested CBC algorithm:
>
> % echo "myuser" | openssl enc -aes-256-cbc -pbkdf2 -base64 -pass pass:XXX
> U2FsdGVkX1+AIde8W1/6D7PFN0YrP0pekyWK4Vt4qhM=
>
>
> Decoding could be done with the following command:
>
> % echo "U2FsdGVkX1+AIde8W1/6D7PFN0YrP0pekyWK4Vt4qhM=" | openssl enc
> -aes-256-cbc -pbkdf2 -base64 -pass pass:XXX -d
> myuser
>
>
>
> Any comments about that suggestion?
> Would it be useful for news admins?
>
> Any other information that should be obfuscated in header fields?
This sounds like a good idea. The other thing I noticed related to injection
information is that if addinjectionpostinghost is true, the host is included
in the Path header as well. I am primarily concerned about identifying the
authenticated user, so I am fine leaving it set to false, but obfuscating the
posting-host in the Injection-Info header alone may not be enough for some
admins.
Technical Details
Message-ID:
<u86vq8$1um9$1@nnrp.usenet.blueworldhosting.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-mailReferences:
<u85ak0$1uig$1@nnrp.usenet.blueworldhosting.com> <slrnuacq8i.rkuv.rayban@raybanana.net> <u86uoj$2tppv$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <u86vq8$1um9$1@nnrp.usenet.blueworldhosting.com> Subject: Re: Reversable Injection-Info header encryption for nnrpd? Date: Thu, 06 Jul 2023 18:06:00 +0000 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> References: <u85ak0$1uig$1@nnrp.usenet.blueworldhosting.com> <slrnuacq8i.rkuv.rayban@raybanana.net> <u86uoj$2tppv$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 Newsgroups: news.software.nntp Organization: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 6 Jul 2023 18:06:00 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="k8cWG9+Y/93vxQYza75s9JQFoL8rgVF3P1Yluveoqs0"; logging-data="64201"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:Qa1Suiz1Oa9iQQfyewFl9NP1PFg= sha256:v7n7GH+F2Ed3xGWzjCgbuopeaWF5T44+IfeNrH0Vdwg= sha1:jm9RcUm+PghHPs3JKCLPj0wTaRo= sha256:1H73wB0K6YTqiGUsvKLHhZxYVOH1tIn2L5KCDgu47xw= X-Usenapp: v1.27.1/d - Full License