Article View: news.software.nntp
Article #7729Re: Authenticated cancels and moderated newsgroups
From: Dr. Dimitri Vulis
Date: Sun, 19 May 1996 00:00
Date: Sun, 19 May 1996 00:00
235 lines
10795 bytes
10795 bytes
This spake Olaf Titz <olaf@bigred.inka.de>: >> previous proposals for how to cryptographically checksum messages to >> allow them to be cancelled only by their authors have avoided any sort >> of public-key technology. There are good reasons for doing that, e.g., >> CPU intensity and patent issues. Therefore, they've assumed that a key >> is used to sign the original article, and then the same key is used in >> some way to sign the cancel message and prove that it was sent by the >> same person. However, my item (2) above and everything after it assume >> that there's some sort of public-key technology being used, such that > >This can only be done with asymmetric (i.e. public key) signing >algorithms. The biggest problem with this is the CPU usage, especially >for cancels. Considering how many cancels come in each day on my >machine and how long PGP takes to verify just one signature, it simply >can't be done with PGP. I see no way we get authenticated control >messages unless we devise a much faster public key algorithm. Sad but >true. There seems to be a popular misconception that authenticated cancels must involve some sophisticated public-key cryptography. This just isn't true! I guess it's time for Olaf to be reminded of the elegant scheme proposed by Taneli Hujskonen and Benjamin Franz a while back, which does not involve any (slow) public-key algorithms. Let H denote a one-way hash function (also known as message digest), such as SHA1 or Snerfu. Efficient source code to compute them is readily available and not subject to export restrictions, unlike PGP. Such functions have the property that's it's easy (for a computer) to compute M = H(N), but, for a given M, it's hard to find N such that M = H(N). In other words, if you're presented with M, and later with N such that M = H(N), then it's very likely that you knew it in advance. This trick isn't new. This is identical to how Unix[tm] stores encrypted passwords in /etc/passwd and verifies them. If the poster intends to extercise his right (under RFC 1036) to cancel an article, he needs to choose a secret passphrase that'll be required to cancel it later. However the passphrase will not be revealed by the cancel and can be reused. With user-friendly software, the poster might store the passphrase in a profile and use the same passphrase for all articles, or change it for every message. (An example of an article which the poster might wish to cancel later would be a 'Car for sale' ad posted into some local.forsale newsgroup.) When an article is posted, two quantities are computed by the posting program: M1 = H(article body + newsgroups + message-id + passphrase) and M2 = H(M1 + message-id). (+ denotes concatenation.) The posted article contains the header "Cancel-lock: M2". (Taneli referred to Cancel-Challenge:, but I like Cancel-lock: better:-) Each party that wants to be able to authorize cancels later add their own separate Cancel-lock: headers, using their own passphrases. So, if both the author and the local news administrator wish to be able to cancel the article, it'll have two headers: Cancel-lock: M2 ;author Cancel-lock: M2' ;news admin The above requires changes to the newsreader, assuming the posting software generates its own message-id, as it should. Likewise, when the author or the local news admin asks the newsreader to to cancel/supersede a Usenet article with message-id X, he'll be asked to supply his passphrase. The posting software computes M1 = H(X's body + newsgroups + X's message-id + passphrase) once again and adds the "Cancel-key: M1" header to the article containing "Control: cancel <X>" or "Supersedes: <X>" that's being posted. (If there are multiple Cancel-Locks in the article X, only one of them needs to be matched, as we'll see below.) This is what needs to be done with the newsreader; and now I'll describe how INN or a similar NNTP server needs to be patched to authenticate cancels/supersedes: Whenever news server software sees an article with either "Control: cancel <X>" or "Supersedes: <X>", it should do the following: 1. If the cancel doesn't contain a "Cancel-key: M1" header, drop it (don't propagate it, and don't process it) 2. Else compute MX = H(M1 + message-id). 3. Retrieve the original article <X> and looks for the "Cancel-lock: M2" headers in it. 4. If MX matches one of the M2 in the article, then cancel it and propagate the control article. 5. If none is found or none is matched, then drop the cancel, don't process it, and don't propagate it. Note that it's computationally very hard to find M1 such that H(M1+passphrase) = one of the M2's. Note also that the passphrase is not revealed. This Cancel-Key works only for this Message-ID. It doesn't enable the verifier to forge a cancel for another article with a different Message-ID, even if one of its Cancel-Lock:'s uses the same passphrase. Here are a couple of examples: Scenario 1. Alice posts an article from a computer owned by Bob, an Internet provider. Bob wants to reserve the right to cancel Alice's account and Alice's Usenet postings without Alice's permission if Alice misbehaves. Alice posts: ]From: alice@bob's.box ]Newsgroups: alt.sex ]Subject: Sex for recreation, not procreation, is sinful ]Message-id: X (123@bob's.box) ]Cancel-Lock: M2_a where M2_a is the one-way H(X + M1_a), and M1_a is H of the article and of Alice's secret passphrase, as described above. Bob, being the sysadmin and the owner of his box, configures his NNTP server to add automatically a second challege, in addition to Alice's: ]Cancel-Lock: M2_b where M2_b is the one-way H(X + M1_b), and M1_b is H of Alice's article and of _Bob's secret passphrase (known to Bob's NNTP server). Bob asks Alice nicely to cancel the article, since such articles are not appropriate on alt.sex. Alice may comply and issue a cancel with the header ]Cancel-Key: M1_a which will be honored. But if Alice refuses, Bob can issue a cancel/supersede with the header: ]Cancel-Key: M1_b which should likewise be honored because H(X + M1_b) matches one of the two challenges in the posted article. Note 1: If Alice doesn't add a Cancel-Lock, and Bob does, then Alice won't be able to cancel her own article. Note 2: It may be a good idea to put comments on the challenges: ]From: alice@bob's.box ]Newsgroups: alt.sex ]Subject: Sex for recreation, not procreation, is sinful ]Message-id: X ]Cancel-Lock: M2_a ; alice@bob's.box ]Cancel-Lock: M2_b ; root@bob's.box Scenario 2. Alice submits an article to Bob, a moderator of a moderated newsgroup: ]Newsgroups: rec.food.cannibalism ]Subject: How to cook elementary school children ]Message-id: X ]Cancel-Lock: M2_a where M2_a again is H(X + M1_a), and M1_a is H of the article and of Alice's secret passphrase. Bob, being either the sole moderator, or a team member, adds an approval and a second challege, in addition to Alice's: ]Approved: Bob ]Cancel-Lock: M2_b where M2_b is the one-way H(X + M1_b), and M1_b is H of Alice's article and of a secret passphrase used by Bob or by the entire moderating team. Later Bob can cancel this article by specifying ]Cancel-Key: M1_b Alice too can cancel this article by specifying ]Cancel-Key: M1_a (unless Bob has stripped Alice's challenge before posting her submission) and Alice's sysadmin can cancel it too if he added his own challenge (third). Please observe that the computations required in the NNTP server to authenticate the cancels using this protocol are trivial, and much less demanding than a full PGP verification; nor is it necessary for the NNTP server to know the poster's public key. By the way, the venerable CancelMoose says in URL: http://www.cm.org/about-cancels.html: ]About Cancels ]************* ] ]A number of people have asked about the relationship between this project ]and spam cancels. IMHO, the point is moot. ] ]I envision unauthenticated cancel messages will rapidly become obsolete, ]once people start posting menu driven cancelbots. If we want cancels back ]we'll have to authenticate them. ] ]Taneli Huuskonen first suggested this scheme to me, and I think it's an ]excellent idea. ] ]For every posted message there is a "Cancel-Key" which is the message-id of ]the message hashed with a secret password. The MD5 of the cancel-key is the ]"Cancel-Challenge" which is posted as a header in every post you make. To ]cancel that post, the cancel message must have a copy of the Cancel-Key in ]the headers. An admin can configure his news software to add another ]Cancel-Challenge to the post, if he/she wishes to retain the rights to ]cancel it. The only people this leaves out in the cold is the moderators-- ]this does not allow them to protect their newsgroup-- perhaps a public key ]based system to "prove" moderation will prove necessary, but that will ]require some MAJOR reworkings of news... ] ]Email: moose@cm.org Well, I heard a rumor that Ron Rivest's MD5 has been cracked, but another hash function, such as SHA1, can be used instead. As CM points out, this leaves out the case when someone posts an "unauthorized" article in a moderated newsgroup, and the moderator wishes to issue a cancel. In my humble opinion, a sufficiently efficient protocol would be: 1. The moderator(s) previously make their public PGP key known to several trusted despammers who issue NoCeMs for spam (such as the CancelMoose). 2. The trusted despammer(s) issue a NoCeM with a special type (unauthorized post?), which will be processed by thousands of readers who trust them. There's no need for a central authority keeping track of moderators or despammers.
Technical Details
Message-ID:
<B617ND43w165w@bwalk.dm.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!not-for-mailReferences:
<4na631$if3@villa.fc.net> <4nce6h$e0m@jik.israel.net> <trans-1505961010370001@rockridgepc.ih.att.com> <4nd3ar$nk4@jik.israel.net> <drndfi.gv2@bigred.inka.de>Show Full Headers
Complete Article Headers
Message-ID: <B617ND43w165w@bwalk.dm.com> Subject: Re: Authenticated cancels and moderated newsgroups Date: Sun, 19 May 1996 00:00:00 +0000 From: dlv@bwalk.dm.com (Dr. Dimitri Vulis) References: <4na631$if3@villa.fc.net> <4nce6h$e0m@jik.israel.net> <trans-1505961010370001@rockridgepc.ih.att.com> <4nd3ar$nk4@jik.israel.net> <drndfi.gv2@bigred.inka.de> 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!not-for-mail X-Deja-AN: 155647231 Organization: Brighton Beach Boardwalk BBS, Forest Hills, N.Y. Newsgroups: news.admin.misc,news.admin.net-abuse.misc,news.software.b,news.software.nntp,news.software.readers,sci.crypt