Article View: news.software.nntp
Article #44343Re: RFC 1036 Revision: General
From: Joe Greco
Date: Tue, 22 Feb 2000 00:00
Date: Tue, 22 Feb 2000 00:00
198 lines
10720 bytes
10720 bytes
In news.software.nntp article <20000222030128.423$f9@newsreader.com>, curt@kcwc.com (Curt Welch) wrote:
:jgreco@ns.sol.net (Joe Greco) wrote:
:> In news.software.nntp article <20000221223546.221$E4@newsreader.com>,
:> curt@kcwc.com (Curt Welch) wrote:
:> :How about:
:> :
:> :>>> POST
:> :<<< 340 <123@site.com>
:> :>>> .
:> :<<< 441 Empty article
:> :
:> :Followed by:
:> :
:> :>>> POST
:> :<<< 340 <124@site.com>
:> :>>> Message-ID: <123@site.com>
:> :>>> bla bla bla
:> :>>>
:> :>>> .
:> :<<< 240 <123@site.com>
:> :
:> :A bit crude, and I guess unless it was written into the spec, you
:> :may never know if it would actually work (i.e using the id returned
:> :by one post as the Message-ID in another.).
:>
:> It would be all right for me. It would also allow an optimization where
:> something that needs to assign a Message-ID could do
:>
:> >>> POST
:> <<< 340 <1@isp.com>
:> (client: process...process....process....)
:> >>> article
:> >>> bla bla bla
:> >>> .
:> <<< 240 <1@isp.com>
:
:Yes, that's the way it was designed to be used (have you seen our other
:messages on this subject today?). There's a patch for INN to do just
:that and I think someone say one of the lastest versions of INN does
:it by default (i.e. tell you the message-id it's going to use if
:you don't supply one).
:
:> But this would be a client-side optimization. Maybe this should in fact
:> be the "right way" to do it...?
:
:Yeah, I think it would make sense to get all clients to switch to
:doing things that way. i.e., either don't include the message-id: header
:at all and just the let the server add it, or if the client needs (or
:wants) to know the ID, then use the one supplied in the POST command from
:the server.
:
:> I don't really know enough cases where
:> a client _needs_ the data to know if that's sufficient. But _that_ seems
:> like an elegant way to do it, and a client could take an exchange such as
:>
:> >>> POST
:> <<< 340 Ok
:>
:> to mean that it is acceptable to generate its own Message-ID (which must
:> then be honored by the server), or that the server may supply one if none
:> is specified in the POSTed data. This is real nice because it gives a
:> nonambiguous indication to the client about what _will_ happen.
:
:> Does that sound like a workable concept? It covers all the permutations,
:> I think.
:
:Well, we want to offer the ID to clients so they can start using that
:instead of having to make up their own. But we are also willing to
:let them supply their own. So we don't want the fact that the 340 response
:includes the ID to imply they can't make up their own, nor do we
:want to to be foced to leave the ID off the 340 response just because
:we are willing to let them overide our default.
Maybe _you_ don't want it to imply that :-) I don't particularly care
what signalling is used, but I think it's reasonable to let a client know
that I am _not_ going to give them the option to specify the MID, and that
it _will_ be rewritten.
:> I really _do_ want to retain control over generated Message-ID's. Among
:> other things, I do front-end sanity checks to prevent Hipcrime-style
:> cancel and supersedes attacks,
:
:I haven't figured out what I'm going to do about limiting those. But
:I would tend to lean towards a solution where a user could only issue
:a cancel/supersede for their own article -- and that would be determined
:by looking at the article that was to be cancled. I'd force the addition
:of some extra header (like X-Trace:) to all posts so my server could tell
:of the article to be canceled matched the user sending the cancel insteald
:of forcing this info into the Message-ID.
My outgoing posts server does not necessarily keep posts around a long
time. I'd like my users to be able to cancel an article they posted
three months ago (since I've a six-month text spool). That should be a
legitimate thing to do. Also, since many sites do not have the concept
of "matched the user" (since they use ip.ra.nge.* for access control),
the method I'm using is somewhat more suited for a minimally-invasive
system modification for many sites.
:> but I have to deal with the very
:> legitimate case where a user posts <1@isp.com> and then issues a cancel
:> immediately, but the cancel is posted via a different reader - meaning
:> you can't just keep a simple database.
:
:Not sure what you are saying there.
What I'm saying is that to have a solution where a user can only issue a
cancel/supersede for their own article, you need to maintain a central
database of some sort, or do other site-specific trickery (which, by the
way, only works if you _do_ have an idea of who your specific user is, which
many sites do not). The goal is to provide fast response to the client.
Unfortunately, if your database is down (or busy), or you have redundant
databases (and one is behind), you can wind up with a situation where the
original message may not be "visible" within the part of your backend
system the cancel is traversing, while the cancel propagates through
faster. The solution is to sleep for a while and see if the original
message shows up, but you do not want (or need) to sleep for this event,
because you are delaying your response to the client. You just say
"240 Ok" and accept it on faith, and silently drop it on the backend if
it doesn't match a post the user was authorized to cancel.
:> One of the uses I have for the
:> locally-generated Message-ID's is that I can then just reject a message
:> containing a cancel or supersedes for something not containing the
:> generated MID tail. I do some other sanity checking, too, like
:> monitoring all of Usenet for my MID tails, it helps to spot
:> <cancel.XXXX@isp.com> if you have that consistent MID tail and you know
:> the article didn't come from you. Think: automatic notification of spam
:> cancel activity against your users. :-)
:
:But if we all offered the ID on the 340 resonse, and we got most
:newsreaders converted so they would use that, then for the most part,
:we would get the benifit you talk about without having to force our
:IDs on everyone. i.e., most articles from our servers would have "our"
:format Message-ID on it so they would be easy to spot on Usenet.
Hmmm... okay.. so...
I forcibly rewrite the remainder, and tell people that insist that they
need to be able to {sign, encode, whatever} their articles and that they
need the MID to do so to get a more current client that works with this.
I could live with that. It is no different than what I do now, except
that the client then has a way to find out that MID in advance. Which is
fine, IMO.
:> You _can_ work around all of this without rewriting, but it becomes
:> rather more challenging and annoying, and in the multiple years I've been
:> doing the rewrite thing, it's not been a problem.
:
:Do you do anything to limit a user so they can only cancel their own
:posts? Or does your rewriting only allow you to block cancles to
:articles outside of your own user base? If you include the user
:ID in the message-ID, I guess you could do that without having access
:to the orginal article, but that just seems wrong to me.
I don't always have access to the user identity. Some of it, I _do_ have
to do on blind faith. But if Hipcrime wants to come and cancel all my users
posts, at least that is something where the whole show is under my control.
I can turn off outbound cancels completely, and repost as many of the posts
as are in my outbound spool (which may range up as far as 3 or 4 months if
there aren't lots of binaries being posted). This puts the responsibility
in my hands, which is where I want it. I do not want my users to be able
to cancel posts originating at other sites. Period. If they cancel each
other user posts, I can deal with that a lot more effectively than if
Hipcrime manages to cancel All-Of-Usenet via my server.
So all I'm really talking about is a general site policy type thing, that
says "all MID's will end in @isp.com>, no cancels allowed and no supersedes
allowed for non @isp.com> MID's". At least for me.
But you are right: you _could_ use this as a per-user thing by hashing
the user-ID and then using some digits from it, and do something like
<random-garbage@12345678.news.isp.com>
where 12345678 is some digits from the md5 hash of the user name that is
currently authenticated. This may be useful in some environments, and I
do not know who it "just seems wrong" to you. I think it'd be a good thing
to specify a standard in a way that allows clever admins to do clever
things that are very useful with the least amount of additional backend
work.
I'm trying to tackle some of the abuse issues at a source-code level. The
current development Diablo has (#undef'd but #define-able) support for the
specific sitewide anti-rogue-cancel/supersede mechanism I describe above,
plus it turns off other Control: message generation by default unless the
admin specifically enables it in the auth file. I don't really want to
find myself the source of an alt.0-000. banner newgroup storm, or a
Hipcrime attack, or any of a number of other things. I can selectively
empower users to do arbitrary cancels, or newgroups/rmgroups, but I do not
want to just open it up to whatever crap happens to be POST'ed at me. That
may have been desirable 10 years ago when people could generally be trusted,
but today's average "trust model" can be bought for $15/month or less, and
I'd rather have a more restrictive model for some of the things that have
traditionally been abused.
... JG
Technical Details
Message-ID:
<38b2bb98$0$99521@news.execpc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mailReferences:
<slrn8an4h9.vch.grobe+news@worf.netins.net> <20000221223546.221$E4@newsreader.com> <38b235ce$0$34451@news.execpc.com> <20000222030128.423$f9@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <38b2bb98$0$99521@news.execpc.com> Subject: Re: RFC 1036 Revision: General Date: Tue, 22 Feb 2000 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <20000221223546.221$E4@newsreader.com> <38b235ce$0$34451@news.execpc.com> <20000222030128.423$f9@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail X-Deja-AN: 588448078 Sender: jgreco@earth.execpc.com X-Trace: Tl\okXWcmL7I5[332>a9Y;bfNiaEHUgJ7RYcgIRLSUE=g9k]b2f1BN32?:59iVW]>4]8jU0`8J>^7GhaMU<hZ^N7F4FfQ?Mh6U= Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.admin.misc,news.software.nntp,news.software.readers X-Complaints-To: abuse@execpc.com