๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #186296

Re: Cancel-Lock without Login

#186296
From: VanguardLH
Date: Wed, 20 Nov 2024 18:54
78 lines
5028 bytes
Michael Bรคuerle <michael.baeuerle@stz-e.de> wrote:

> VanguardLH wrote:
>> 
>> [...]
>> How does Cancel issued by client work for servers that require no login
>> by the client?
> 
> The newsreader of the client must create Cancel-Locks (and the
> corresponding Cancel-Keys) itself.
> 
> This can be implemented with libcanlock or OpenSSL, etc.
> Newsreaders like flnews, gnus, slrn and tin supports it.
> 
> libcanlock also provides a command line frontend:
> <https://micha.freeshell.org/libcanlock/doc/man1/canlock.1.html>
> <https://packages.debian.org/bookworm/canlock>
> Looks like you are using Windows, WSL should help in this case.
> 
>> That is, a user that must login is verified they are the
>> user that submitted a Cancel on their own article, but a user that does
>> not login cannot be verified to be the user whose article is requested
>> to cancel.
> 
> This is only relevant if a server wants to act as representative for a
> client.
> 
>> Seems cancels would need to get ignored from clients that do
>> not login to prevent malicious destruction by someone pretending to be
>> the original poster.
> 
> To avoid abuse, the identity of the client should be verified before a
> server creates Cancel-Locks and Cancel-Keys as representative for the
> client.
> 
> The verification, that Cancel-Keys matches Cancel-Locks, for executing
> Cancel and Supersede operations does not need such information.

So, the client can add the Cancel-Lock header on generating a new
message (which the server will not override with its own Cancel-Lock
header).  And later, the same client can create a cancel message where
it adds the Cancel-Key header.  Okay, so there must be something within
THAT client to record something unique for a message it generated to
ensure only it can generate the Cancel-Key header; else, another
instance of the same client could use the same algorithm to generate a
Cancel-Key based on the Cancel-Lock that is already present in the
previously submitted and available article.  Does seem appropriate for
the Cancel-Key to get generated solely based on the Cancel-Lock value or
that in combination with the content of the original article.  

Something needs to remain hidden within the original client, so only it
knows the correct value of Cancel-Key; else, HipCrime could kill any
article by seeing the Cancel-Lock header in an article, and using the
same algorithm to generate the Cancel-Key header.  That's why I figured
the "something hidden" would be login credentials; i.e., the client
would have to login to verify it's the same user as the article to
cancel.

If Cancel-Lock and Cancel-Key work like public and private keys in x.509
or PGP, those encryption schemes work by having hidden info.  You give
the public key to those who might to send you encrypted messages, but
only you have the private key (the hidden info).  However, if anyone
gets your private key, they can decrypt messages that encrypted with
your public key.  Putting out your private key as Cancel-Key would
destroy your hidden info as anyone can read the control.cancels
newsgroup.  

Something has to remain private (hidden) to ensure only the poster that
submitted the original article is the only poster that can issue an
effective cancel.  Cancel-Lock and Cancel-Key are both public. 

As for the servers, they won't have any info that is hidden in the
client.  All they could have is whether or not the user was
authenticated via login.  Guess I'll have to start some research on
cancels locks, like:

https://datatracker.ietf.org/doc/html/rfc8315
https://micha.freeshell.org/libcanlock/
Technical Details
Message-ID: <sgxh7nuzs0xb.dlg@v.nguard.lh>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <n95ljjp6gnnlfsvjasd90fllco5duv2uc6@4ax.com> <rui8dpjpksdl$.dlg@v.nguard.lh> <vhfta9$1blnv$1@dont-email.me> <alb2yhvm1k0o.dlg@v.nguard.lh> <vhg5sc$1d7l0$1@dont-email.me> <x0xe8h24ln6m.dlg@v.nguard.lh> <8ma5dvwckq.fsf@raybanana.net> <wwxi2otyivz0.dlg@v.nguard.lh> <1gob2zx2ufz9l.dlg@v.nguard.lh> <AABnPbnNdgQAAFDu.A3.flnews@WStation5.stz-e.de>

Show Full Headers
Complete Article Headers
Message-ID: <sgxh7nuzs0xb.dlg@v.nguard.lh>
Subject: Re: Cancel-Lock without Login
Date: Wed, 20 Nov 2024 12:54:29 -0600
From: VanguardLH <V@nguard.LH>
References: <n95ljjp6gnnlfsvjasd90fllco5duv2uc6@4ax.com> <rui8dpjpksdl$.dlg@v.nguard.lh> <vhfta9$1blnv$1@dont-email.me> <alb2yhvm1k0o.dlg@v.nguard.lh> <vhg5sc$1d7l0$1@dont-email.me> <x0xe8h24ln6m.dlg@v.nguard.lh> <8ma5dvwckq.fsf@raybanana.net> <wwxi2otyivz0.dlg@v.nguard.lh> <1gob2zx2ufz9l.dlg@v.nguard.lh> <AABnPbnNdgQAAFDu.A3.flnews@WStation5.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: alt.free.newsservers
Organization: Usenet Elder
Lines: 78
Sender: V@nguard.LH
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: individual.net oiDeQiT0TUEqUOqpzotDsw9tfbhwJJvnJIH5PGieWbxBGNmtEe
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:S74RljNeaJ8IDvAfn4GOUWET2Qc= sha256:yE1O+F1EDb/sLmsoAOKqfz4ym8/jwzg0PNjrgBhlW7E=
User-Agent: 40tude_Dialog/2.0.15.41