🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90484

Re: Reversable Injection-Info header encryption for nnrpd?

#90484
From: Julien ÉLIE
Date: Thu, 06 Jul 2023 17:48
48 lines
2591 bytes
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?

-- 
Julien ÉLIE

« Sème du bonheur dans le champ du voisin, tu seras surpris de constater
   ce que le vent fera produire au tien. » (Juliette Saint Gelais)
Technical Details
Message-ID: <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
References: <u85ak0$1uig$1@nnrp.usenet.blueworldhosting.com> <slrnuacq8i.rkuv.rayban@raybanana.net>

Show Full Headers
Complete Article Headers
Message-ID: <u86uoj$2tppv$1@news.trigofacile.com>
Subject: Re: Reversable Injection-Info header encryption for nnrpd?
Date: Thu, 6 Jul 2023 19:48:03 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u85ak0$1uig$1@nnrp.usenet.blueworldhosting.com> <slrnuacq8i.rkuv.rayban@raybanana.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
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 17:48:03 -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:77cQdEZpib0JALUua/kfaG++obI= sha256:v4rJ4rIYIRLh9DoUpqSG28WuUvJC4NVM9zqV5ufYN98=
In-Reply-To: <slrnuacq8i.rkuv.rayban@raybanana.net>