🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44362

Re: RFC 1036 Revision: General

#44362
From: Curt Welch
Date: Wed, 23 Feb 2000 00:00
214 lines
12011 bytes
jgreco@ns.sol.net (Joe Greco) wrote:
> 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:

> :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.

Yes, it would be nice if there were a standard way to let the client know
that.  But in your case, it sounds like you wouldn't have a problem if
the client was just willing to use an ID which you supplied.

The new LIST EXTENSIONS could be used for this.  The use of the Message-ID
on the return data of the POST command could be defined as a standard
extension (POSTID?), and there could be optional parameters to the
extension which meant "I will overwrite the ID if you don't use the
ID which I supplied".  Something like "POSTID OVERWRITE".

That way, any client which had to be able to generate it's own IDs in
order to function correctly could know ahead of time (and warn the user)
that that function won't work for the server.

> :> 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.

Ah, I see.  The checks aren't done on a server which has (easy) access
to your main spool(s).  I was thinking you meant the user just happened
to save a copy of his article and then months later decided to cancel
it.  Even thought that's possible, most users don't even think about
that if they can no longer "see" the article on the server.

> 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),

Yes, I wasn't thinking about that.  I've been in the context of "knowing"
the user for so long I just forgot that many people don't.

> 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.

Ok, I'm with you.

> 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.

Right, that's a good policy.  Even it is "is" there's, they just have to
go back to the other system if they want to cancel it.

> 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.

Actually, I'm thinking it's an OK soultion.  That makes it simple to
validate canceles without having to reference the orginal article.  You
don't know if they are really valid, but you do know they are harmless
to the rest of Usenet.  But it requires your type of control over the IDs
which in general, I don't like (i.e., I don't mind if you do it, but I
would never do it...).  And that's just if you take control of the ID
at the server level, then that means the users can't use it for anything.

My "seems wrong" comment is just because it's encoding information into
the Message-ID that "belongs" elsewhere in the header.  Taken to the
extreme, you could encode the entire article into the Message-ID.

Also, people keep suggesting different things that could be encoded
into Message-IDs and in general, I think they are mostly bogus (at least
as a net-wide standard).  It should be left mostly how it is so people can
play various "games" with it as they see fit locally (like the type of
stuff you are doing).

> 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.

Yeah, I think we all want that.

> 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.

Right.

In my mind, the only special thing a standard user should be allowed to
send is a cancel or supersede.  And only if the target article was posted
by them (or simply looks like it was posted by them).  This means the
target article must be availabe to the server processing the POST for the
cancel.  I don't have a problem with that.  If the target article is
delayed for some technical reason, then the cancel just gets rejected.
Sorry, the user just has to try again later.  I'd rather drop 10 valid
cancels than send out one bogus cancel.

If the article has expired, sorry, you can't cancel or supersede it.  Like
I said, most users just won't have a problem with that anyway.

The extra delay this adds in the procssing of the POST of a cancel just
isn't a problem for me.

I don't have any of this checking in place at the moment, but that is my
current plan and I don't see any problem in implementing it.

For special cases of users that want to post FAQs or do other special
things, I'll just need the ability to give them special powers. Since all
my users are authenticated, then there really is no technical problem with
doing that.

> 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.

I agree with your logic and motive.  And the loss of the user's ability
to control the Message-ID is a small and fair price to pay to get the
type of control you are looking for.

Blocking my users from abusing Usenet is easy without controlling the
ID.  Protecting my users from being abused by others on Usenet is seems
straight forward for my system as well.  I already end up reading the
target article header for most cancel/supersede messages so it would
be straight forward to do add the checkes to make make sure external
canceles comming in weren't canceling local articles.  But to be
honest, I'm not sure if that's the right thing to do anyhow.  If
the article was cancled on the "rest" of Usenet, then I think it would
be a disservice to my user to make him think everything was "fine" by
hiding that fact.

What I really want is to allow users to "see" canceled articles if they
choose to do so.  Right now, I do that by running parallel front-end
systems.  One which processes cancles, and one which doesn't.  Ultimatly,
I'll be able to do it on a per-user basis.

And none of this would require me to overwrite Message-IDs as far as
I can tell.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000223174915.931$Pf@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
References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <20000221223546.221$E4@newsreader.com> <38b235ce$0$34451@news.execpc.com> <20000222030128.423$f9@newsreader.com> <38b2bb98$0$99521@news.execpc.com>

Show Full Headers
Complete Article Headers
Message-ID: <20000223174915.931$Pf@newsreader.com>
Subject: Re: RFC 1036 Revision: General
Date: Wed, 23 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <20000221223546.221$E4@newsreader.com> <38b235ce$0$34451@news.execpc.com> <20000222030128.423$f9@newsreader.com> <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-mail
X-Deja-AN: 589036784
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.admin.misc,news.software.nntp,news.software.readers