🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57234

Re: Cancelling usenet messages in a reliable way (a proposal) - Final :)

#57234
From: Alex Birj
Date: Fri, 15 Mar 2002 04:58
92 lines
4464 bytes
I thought that another modification of the original scheme also makes sense 
since enforcing using message-id may be not acceptable (e.g. some servers may 
want to generate message-ids themselves).

I'm not sure there are no flaws in the scheme so I crossposting the message to 
sci.crypt, maybe someone could check it out (the original message is appended, 
in the thread someone pointed me out to cancel-locks but I found out they are 
using different approach - relying on the difficulty to find hash collisions 
that doesn't look to me safe enough especially if we can come out with a much 
more safe method).

The only problem is keeping key for every message, that is how it can be 
avoided (no using hash algorithms at all):

First lets us use 128 bit (16 byte) ciphers. All what I had originally said 
remains true.

The small trick to avoid keeping the key.

We'll just keep reusable randomly generated 16 byte "password", so we when we 
generate random text - we just encrypt the random text with the password to get 
the symmetric key).

We use the symmetric key to encrypt the random text to get the ciphertext.

When we want to issue cancel - we can easily get the key again from the random 
text (in the message) and our "password".

Probably we can use both variants of the scheme by separating headers:

Cancel-ID: <ciphertext>
Cancel-Rand: <text>

When Cancel-Rand is present - the newsreader/server will just use it, otherwise 
it will calculate it from the message-id like I described in my other message:

text=MD5(function1(message-id))

key=RC5(MD5(function2(message-id))) 
(RC5 is invoked with the 16 byte "password" as the encryption key).

function1 is message-id+padding1

function2 is message-id+padding2

padding1 and padding2 are predefined sequences 24 byte length.

Alex Birj <alexande_nospam@tx.technion.ac.il> wrote:
>Some considerations about cancelling Usenet messages:
>
>I think Usenet need simple mechanism to support verifyable cancels that will 
>force servers to cancel messages, I have a simple solution (should be 
>supported 
>on the server side) that will be achieved by adding a relatively short header 
>field using symmetric cipher. Currently many servers don't support cancels 
>because of possible forged cancels.
>
>The scheme is the following:
>
>for every posted message a random symmetric key is generated and kept by 
>newsreader or written to a file.
> 
>random text is generated and encrypted with the key
>
>length of the text=length of the key=symmetric cipher block length
>
>then cancel id is generated from the base64th ciphertext+text (concatenation)
>
>Cancel-ID: Base64(concatenation(ciphertext,text)) [Algorithm]
>
>Default symmetric cipher algorithm may be RC5, but it would be possible to add 
>other algorithm by defining its name explicitly.
>
>When we want to cancel the message we should add the header:
>
>Cancel-Key: Base64(key) [Algorithm]
>
>the server will decrypt the ciphertext with the key and compare with the text 
>if they coincide the cancel is approved.
>also message-id is compared.
>
>Currently it is quite safe to use 64bit key, the weakened RC5 challenge stands 
>since 1997 unsolved, it is also possible to use 128bit keys 
>that are currently used for high-grade secure connections.
>
>with 64 bit key 8+8=16 bytes will be encoded to 22 bytes base-64, for 128bit 
>key - 44 bytes.
>
>Alex
>

Technical Details
Message-ID: <fcfk8.290$jt4.316619@news.uswest.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newspump.monmouth.com!newspeer.monmouth.com!newshub.northeast.verio.net!verio!news-out.cwix.com!newsfeed.cwix.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail
References: <MQFj8.183836$a_1.18013001@amsnews03.chello.com>

Show Full Headers
Complete Article Headers
Message-ID: <fcfk8.290$jt4.316619@news.uswest.net>
Subject: Re: Cancelling usenet messages in a reliable way (a proposal) - Final :)
Date: Fri, 15 Mar 2002 04:58:51 GMT
From: Alex Birj <alexande_nospam@tx.technion.ac.il>
References: <MQFj8.183836$a_1.18013001@amsnews03.chello.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newspump.monmouth.com!newspeer.monmouth.com!newshub.northeast.verio.net!verio!news-out.cwix.com!newsfeed.cwix.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail
Newsgroups: news.software.nntp,sci.crypt
Lines: 91
NNTP-Posting-Host: 216.207.251.2
X-Trace: news.uswest.net 1016168331 216.207.251.2 (Thu, 14 Mar 2002 22:58:51 CST)
NNTP-Posting-Date: Thu, 14 Mar 2002 22:58:51 CST