🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44354

Re: RFC 1036 Revision: General

#44354
From: Joe Greco
Date: Wed, 23 Feb 2000 00:00
269 lines
14388 bytes
In news.software.nntp article <20000223174915.931$Pf@newsreader.com>, curt@kcwc.com (Curt Welch) wrote:
:> 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.

That is fine too.  The mechanism does not particularly concern me.  The
functionality would be nice.

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

And my checking for spam cancels against <*@isp.com> aren't done on a
machine with any spool at all.  Right now, it runs completely standalone
with a Diablo header-only feed, and basically looks for "Control: cancel"
or "Supersedes".  If a strstr on that against "@isp.com>" returns true,
then you have some off-siter whacking your articles, and you may want to
know why.  You don't even need a fast machine to do this.  It's cool.

: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 agree with that.

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

I figured I'd remind you :-)

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

Which is fine by me for the very few users who might want that.  If it is
a serious issue, I don't even have a problem selectively authorizing
people to be able to issue arbitrary cancels, or other controls, but I do
not just want to open the floodgates by default.  So it's not even a cast-
in-stone policy, more of an issue of not wanting to default to a Hipcrime-
vulnerable (etc) model.

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

Yes, but think about what the intent of the Message-ID is.  It's intended
to be a unique identifier created by the originating system that guarantees
a lack of collision.

Now, if I have two people using doofusware news posting software, and both
happen to post an article right NOW, there's a chance that both will create
a Message-ID of

<WedFeb231838392000-default@news>

because both happened to post at Wed Feb 23, 18:38:39, 2000, using the
default username, and the program used the name of the news server as the
destination.  Or "localhost", or any other random and likely name that a
client might dredge up to shove in there - most of which are not guaranteed
to be unique.  And this isn't just a case of "all clients using doofusware
at ISP X".  It's "all clients using doofusware, netwide".

I can guarantee uniqueness at the server level (or it can at least be my
fault if I fail to do so), because unlike the client situation, I've got
control over all Message-ID's being tagged "@isp.com>", and anybody else
who wants to play in my MID namespace can lose.

1036 does suggest conformance with RFC-822, which is to put a FQDN in as
the latter portion of the Message-ID, but how many clients actually do
that?

: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 you are saying what I'm thinking, which is mostly to leave the state
of affairs as it is but provide a way for a client to know that the server
intends to clobber the Message-ID.  Am I reading you wrong?

I am not looking to encode arbitrary data into the MID.  I'm actually
looking at "strict enforcement of RFC1036:2.1.5" if you want to be rather
more literal, and if you interpret the originating server as the "host at
which the message entered the network".  In fact, under such an
interpretation, one might consider the behaviour I'm proposing to be the
correct one.

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

Me too.

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

And that seems like a fine policy.  My own enforcement is a different
strategy, but equally valid (IMHO), and has the additional benefit that
because I'm rewriting, I can look for cancels or supersedes issued against
my articles.

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

And that seems like a fine model to move towards, for _everyone_.

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

That's what I've felt.

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

I'm not talking about hiding the fact.  I'm talking more of an

| mail abuse@isp.com

type thing.

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

That seems like something completely different, and I'd have to agree that
it has nothing to do with rewriting Message-ID's.  :-)

... JG

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

Show Full Headers
Complete Article Headers
Message-ID: <38b48143$0$80940@news.execpc.com>
Subject: Re: RFC 1036 Revision: General
Date: Wed, 23 Feb 2000 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <20000222030128.423$f9@newsreader.com> <38b2bb98$0$99521@news.execpc.com> <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
X-Deja-AN: 589081988
Sender: jgreco@earth.execpc.com
X-Trace: Tl\okXWcmLgI5[332>a9YkbfNiaEHUgJgRYcgIRLSUEmc2b`@55SXPl3aUacUQR7n`7FL3Tn0RI_`GhaMU<hZ^NgF4FfQ?Mh6Um
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.admin.misc,news.software.nntp,news.software.readers
X-Complaints-To: abuse@execpc.com