🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
20 messages
20 total messages Started by Bruce Esquibel Thu, 23 Mar 2006 14:16
alt.* control
#73445
Author: Bruce Esquibel
Date: Thu, 23 Mar 2006 14:16
23 lines
1549 bytes
Ok, I'll be upfront and just say I'm too lazy this morning to look through
the dox.

I noticed this morning in the inn report someone managed to change the
status of alt.config to moderated.

But I don't see where this is in control.ctl anywhere to set...

newgroup:*:alt.*:doit
newgroup:*:*binaries*:log=newgroup
newgroup:group-admin@isc.org:alt.*:drop
newgroup:tale@*uu.net:alt.*:drop
rmgroup:*:alt.*:drop

I actually don't see a reference to changegroup anywhere except for the
ctlinnd command.

What am I missing here?

-bruce
bje@ripco.com
Re: alt.* control
#73444
Author: Philip
Date: Thu, 23 Mar 2006 14:42
29 lines
1806 bytes
On Thu, 23 Mar 2006 14:16:33 +0000 (UTC), Bruce Esquibel
<bje@e4500.ripco.com> wrote:

>
>Ok, I'll be upfront and just say I'm too lazy this morning to look through
>the dox.
>
>I noticed this morning in the inn report someone managed to change the
>status of alt.config to moderated.
>
>But I don't see where this is in control.ctl anywhere to set...
>
>newgroup:*:alt.*:doit
>newgroup:*:*binaries*:log=newgroup
>newgroup:group-admin@isc.org:alt.*:drop
>newgroup:tale@*uu.net:alt.*:drop
>rmgroup:*:alt.*:drop
>
>I actually don't see a reference to changegroup anywhere except for the
>ctlinnd command.
>
>What am I missing here?
>

There's a dork named "Rasta Khan" active who's been creating a lot of
bogus newsgroups. I guess he hijacked alt.config as well. I already
complained at his news provider newsreader.com.

Re: alt.* control
#73446
Author: Bert Hyman
Date: Thu, 23 Mar 2006 14:52
13 lines
1379 bytes
bje@e4500.ripco.com (Bruce Esquibel) wrote in
news:dvuak1$6g5$1@e250.ripco.com: 

> I actually don't see a reference to changegroup anywhere except for
> the ctlinnd command.
> 
> What am I missing here?

Sending a "newgroup" command for an existing group will change the
mode of the group. 

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: alt.* control
#73484
Author: Schroeder, AJ
Date: Wed, 05 Apr 2006 15:54
34 lines
2170 bytes
Philip wrote:
> On Thu, 23 Mar 2006 14:16:33 +0000 (UTC), Bruce Esquibel
> <bje@e4500.ripco.com> wrote:
>
>>
>> Ok, I'll be upfront and just say I'm too lazy this morning to look
>> through the dox.
>>
>> I noticed this morning in the inn report someone managed to change
>> the status of alt.config to moderated.
>>
>> But I don't see where this is in control.ctl anywhere to set...
>>
>> newgroup:*:alt.*:doit
>> newgroup:*:*binaries*:log=newgroup
>> newgroup:group-admin@isc.org:alt.*:drop
>> newgroup:tale@*uu.net:alt.*:drop
>> rmgroup:*:alt.*:drop
>>
>> I actually don't see a reference to changegroup anywhere except for
>> the ctlinnd command.
>>
>> What am I missing here?
>>
>
> There's a dork named "Rasta Khan" active who's been creating a lot of
> bogus newsgroups. I guess he hijacked alt.config as well. I already
> complained at his news provider newsreader.com.

Apparently he is still at it as I have just gotten 50-60 more "newgroup" 
emails this morning already. Is there a way to stop this? Blocking the name 
wouldn't do anything would it? 

Re: alt.* control
#73488
Author: Bert Hyman
Date: Wed, 05 Apr 2006 17:16
22 lines
2061 bytes
aj1@qg.com (Schroeder, AJ) wrote in
news:e10p7l$2gt1$1@sxnews1.qg.com: 

> Apparently he is still at it as I have just gotten 50-60 more
> "newgroup" emails this morning already. Is there a way to stop
> this? Blocking the name wouldn't do anything would it? 

When you say "stop this", exactly what do you mean? You can (should)
configure your news server to ignore any control messages that you
don't want processed. If it's INN you can go farther and have it not
even tell you about control messages that it's ignored. 

That would most likely include all newgroup and rmgroup messages for
uncontrolled hierarchies like "alt". Then, you would either look at
the messages yourself and add the ones you like, or wait for your
users to ask for groups they actually want to read. 

For the Big-8, control messages used to be PGP signed; I don't know
if that's still true. 

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: alt.* control
#73486
Author: Russ Allbery
Date: Wed, 05 Apr 2006 17:59
13 lines
1639 bytes
Schroeder, AJ <aj1@qg.com> writes:

> Apparently he is still at it as I have just gotten 50-60 more "newgroup"
> emails this morning already. Is there a way to stop this?

Stop using alt.*.  This is just the way alt.* works and pretty much always
has.  It's what you get when you have no formal hierarchy administration.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: alt.* control
#73487
Author: Russ Allbery
Date: Wed, 05 Apr 2006 18:00
13 lines
1598 bytes
Bert Hyman <bert@iphouse.com> writes:

> For the Big-8, control messages used to be PGP signed; I don't know
> if that's still true. 

Oh, yeah.  There's no way anyone who managed to get PGP signed control
messages working should ever stop.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: alt.* control
#73489
Author: Schroeder, AJ
Date: Wed, 05 Apr 2006 18:03
36 lines
2581 bytes
Bert Hyman wrote:
> aj1@qg.com (Schroeder, AJ) wrote in
> news:e10p7l$2gt1$1@sxnews1.qg.com:
>
>> Apparently he is still at it as I have just gotten 50-60 more
>> "newgroup" emails this morning already. Is there a way to stop
>> this? Blocking the name wouldn't do anything would it?
>
> When you say "stop this", exactly what do you mean? You can (should)
> configure your news server to ignore any control messages that you
> don't want processed. If it's INN you can go farther and have it not
> even tell you about control messages that it's ignored.
>
> That would most likely include all newgroup and rmgroup messages for
> uncontrolled hierarchies like "alt". Then, you would either look at
> the messages yourself and add the ones you like, or wait for your
> users to ask for groups they actually want to read.
>
> For the Big-8, control messages used to be PGP signed; I don't know
> if that's still true.

By "stop this" I meant to drop such messages that are obviously bogus. I 
have INN configured to email me when new alt groups are requested, even from 
ISC:

newgroup:*:alt.*:mail
newgroup:group-admin@isc.org:alt.*:mail
newgroup:tale@*uu.net:alt.*:mail
rmgroup:*:alt.*:doit

What I am wondering is since this person is clearly abusing alt, can this be 
blocked by us? Or does is have to be blocked at their provider?

AJ 

Re: alt.* control
#73492
Author: Bert Hyman
Date: Wed, 05 Apr 2006 18:17
38 lines
2394 bytes
aj1@qg.com (Schroeder, AJ) wrote in
news:e110q8$2hpq$1@sxnews1.qg.com: 

> Bert Hyman wrote:
>> aj1@qg.com (Schroeder, AJ) wrote in
>> news:e10p7l$2gt1$1@sxnews1.qg.com:
>>
>>> Apparently he is still at it as I have just gotten 50-60 more
>>> "newgroup" emails this morning already. Is there a way to stop
>>> this? Blocking the name wouldn't do anything would it?
>>
>> When you say "stop this", exactly what do you mean?
> 
> ...
> By "stop this" I meant to drop such messages that are obviously
> bogus. 

Since there's no control over "alt", there's really no such thing as
"legitimate" or "bogus". 

> 
> What I am wondering is since this person is clearly abusing alt,
> can this be blocked by us? 

What level of filtering do you use? If the posts are identifiable
somehow, by messageid, userid, or some such, CleanFeed might be
tweaked to suit. 

> Or does is have to be blocked at their provider? 

How likely is ->that to happen?

I'm still partial to just silently ignoring all newgroup and rmgroup
requests for uncontrolled hierarchies and doing manual updates as the
mood strikes me. 

-- 
Bert Hyman | St. Paul, MN | bert@iphouse.com
Re: alt.* control
#73490
Author: Eric Edwards
Date: Wed, 05 Apr 2006 18:19
16 lines
1801 bytes
On Wed, 05 Apr 2006 11:00:03 -0700, Russ Allbery <rra@stanford.edu> wrote:
>Bert Hyman <bert@iphouse.com> writes:
>
>> For the Big-8, control messages used to be PGP signed; I don't know
>> if that's still true. 
>
>Oh, yeah.  There's no way anyone who managed to get PGP signed control
>messages working should ever stop.

Speaking of which, does anyone have a dummies level tutorial for getting
PGP signed control messages working?  The last time I tried, I didn't
have much success.   Largely, I this is because I don't understand PGP
very well and getting it to work with news was one complication too far.

-- 
Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: alt.* control
#73491
Author: Russ Allbery
Date: Wed, 05 Apr 2006 18:39
14 lines
1842 bytes
Eric Edwards <ese002@news9.exile.org> writes:

> Speaking of which, does anyone have a dummies level tutorial for getting
> PGP signed control messages working?  The last time I tried, I didn't
> have much success.  Largely, I this is because I don't understand PGP
> very well and getting it to work with news was one complication too far.

Does <http://www.eyrie.org/~eagle/faqs/usenet-hier.html#S3> help any?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: alt.* control
#73493
Author: Russ Allbery
Date: Wed, 05 Apr 2006 18:40
17 lines
1787 bytes
Schroeder, AJ <aj1@qg.com> writes:

> By "stop this" I meant to drop such messages that are obviously bogus. I
> have INN configured to email me when new alt groups are requested, even
> from ISC:

> newgroup:group-admin@isc.org:alt.*:mail
> newgroup:tale@*uu.net:alt.*:mail

These two should be :drop.  There will never be a legitimate alt.* control
message from either of those two addresses.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: alt.* control
#73495
Author: Schroeder, AJ
Date: Wed, 05 Apr 2006 20:17
18 lines
1809 bytes
Russ Allbery wrote:
> Schroeder, AJ <aj1@qg.com> writes:
>
>> By "stop this" I meant to drop such messages that are obviously
>> bogus. I have INN configured to email me when new alt groups are
>> requested, even from ISC:
>
>> newgroup:group-admin@isc.org:alt.*:mail
>> newgroup:tale@*uu.net:alt.*:mail
>
> These two should be :drop.  There will never be a legitimate alt.*
> control message from either of those two addresses.

Ok - I have changed these two entries to drop.

Thanks! 

Re: alt.* control
#73496
Author: Bruce Esquibel
Date: Wed, 05 Apr 2006 21:45
42 lines
2880 bytes
Bert Hyman <bert@iphouse.com> wrote:

: That would most likely include all newgroup and rmgroup messages for
: uncontrolled hierarchies like "alt". Then, you would either look at
: the messages yourself and add the ones you like, or wait for your
: users to ask for groups they actually want to read. 


Well, that is one side of the fence I guess.

With alt.*, I'd rather do it the way I have been doing it, just leave the
newgroup command to doit and sort out the mess later. Rather than reading
email requests either from inn or the users, stripping out all the
"0000000000 0000000001" groups from the active file once or twice a year is
far easier.

What I didn't know until this week was that the moderation status can change
if someone newgroups a group that already exists (and have the doit set).

Can't condemn it as stupid but seems to be there should be a separate
control mech for doing that. Would seem it has the possibility with the way
it's done now as the making of a good usenet attack, changing all the alt
groups to moderated status.

Besides the pain in the ass for the admins with doit set on alt newsgroups,
wouldn't the isc.org or wherever the default mail for moderation goes start
to come under attack? I mean alt.* probably gets around 200,000 non-binary
posts a day, if just 10% of the systems had doit for alt on, is still alot
of bounced mail to deal with.

I guess my point is, there really is/was no legit moderated alt groups to
begin with, right? I mean I know they exist but without any posts in the
ones I checked.

Maybe for the next inn release some consideration can be taken to add that
in (no moderation status changed for an already existing alt group) or
something similar.

-bruce
bje@ripco.com

Re: alt.* control
#73499
Author: Russ Allbery
Date: Wed, 05 Apr 2006 21:51
31 lines
2547 bytes
Bruce Esquibel <bje@e4500.ripco.com> writes:

> Besides the pain in the ass for the admins with doit set on alt
> newsgroups, wouldn't the isc.org or wherever the default mail for
> moderation goes start to come under attack? I mean alt.* probably gets
> around 200,000 non-binary posts a day, if just 10% of the systems had
> doit for alt on, is still alot of bounced mail to deal with.

20,000 e-mail messages in a day is noise.  200,000 is nearly noise.

> I guess my point is, there really is/was no legit moderated alt groups
> to begin with, right? I mean I know they exist but without any posts in
> the ones I checked.

There are a bunch, actually, and some of them even work reasonably well in
practice.

> Maybe for the next inn release some consideration can be taken to add
> that in (no moderation status changed for an already existing alt group)
> or something similar.

I'm not willing to change INN to work around alt.*'s broken newsgroup
creation policies, but a different parameter in control.ctl that doesn't
accept moderation changes probably isn't a bad idea.  I don't have time to
work it out and implement it, though.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: alt.* control
#73498
Author: Eric Edwards
Date: Thu, 06 Apr 2006 05:58
26 lines
2429 bytes
On Wed, 05 Apr 2006 11:39:27 -0700, Russ Allbery <rra@stanford.edu> wrote:
>Eric Edwards <ese002@news9.exile.org> writes:
>
>> Speaking of which, does anyone have a dummies level tutorial for getting
>> PGP signed control messages working?  The last time I tried, I didn't
>> have much success.  Largely, I this is because I don't understand PGP
>> very well and getting it to work with news was one complication too far.
>
>Does <http://www.eyrie.org/~eagle/faqs/usenet-hier.html#S3> help any?

Not so much.  I was referring to receiving rather than sending.  The
documentation for pgpverify that I have seen seemed to assume that the
user already has a pgp system up and running and knows where things like
keys should go.  In fact the following quote from the man page
illustrates the problem:

"ENVIRONMENT
     pgpverify does not modify or otherwise alter the environment
     before invoking the pgp or gpgv program.  It is the
     responsibility of the person who installs pgpverify to
     ensure that when pgp or gpgv runs, it has the ability to
     locate and read a PGP key file that contains the PGP public
     keys for the appropriate Usenet hierarchy administrators."

-- 
Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Re: alt.* control
#73500
Author: Russ Allbery
Date: Thu, 06 Apr 2006 06:59
19 lines
2021 bytes
Eric Edwards <ese002@news9.exile.org> writes:

> Not so much.  I was referring to receiving rather than sending.  The
> documentation for pgpverify that I have seen seemed to assume that the
> user already has a pgp system up and running and knows where things like
> keys should go.

Are you running INN?  If so:

    <http://www.eyrie.org/~eagle/software/inn/docs-2.4/install.html#S14>

is supposed to explain this.  If that doesn't work or if it doesn't make
sense, please do let me know where it's falling short.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: alt.* control
#73508
Author: christinA eijkhout
Date: Fri, 07 Apr 2006 21:05
17 lines
1750 bytes
In news.software.nntp,,Wed, 05 Apr 2006 10:59:41 -0700, Russ Allbery
<rra@stanford.edu> stated:

>Schroeder, AJ <aj1@qg.com> writes:
>
>> Apparently he is still at it as I have just gotten 50-60 more "newgroup"
>> emails this morning already. Is there a way to stop this?
>
>Stop using alt.*.  This is just the way alt.* works and pretty much always
>has.  It's what you get when you have no formal hierarchy administration.

:)
On the other hand, maybe that's  why it was created.
Although I also think they didn't want to create this monstruosity.

-- 
christinA
Re: alt.* control
#73509
Author: Miquel van Smoorenburg
Date: Sat, 08 Apr 2006 23:40
114 lines
4986 bytes
In article <87odzflmhk.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Bruce Esquibel <bje@e4500.ripco.com> writes:
>> Maybe for the next inn release some consideration can be taken to add
>> that in (no moderation status changed for an already existing alt group)
>> or something similar.
>
>I'm not willing to change INN to work around alt.*'s broken newsgroup
>creation policies, but a different parameter in control.ctl that doesn't
>accept moderation changes probably isn't a bad idea.  I don't have time to
>work it out and implement it, though.

Here's something that is mostly untested, though I did install it
on one reader server. It introduces a new keyword "updategroup" for
control.ctl. The updategroup entry is matched if the control message
is a newgroup for a group that already exists. If there is no matching
updategroup entry but there is a newgroup entry in control.ctl then
that one will be used so that everything is nicely backwards compatible.

I put this in control.ctl:

updategroup:*:alt.*:drop

.. that should stop the change-a-groups-moderation-status attacks.

Comments ? Does it work ? :)

--- inn-2.4.1/control/controlchan.in.ORIG	2004-01-07 23:47:19.000000000 +0100
+++ inn-2.4.1/control/controlchan.in	2006-04-09 01:20:56.000000000 +0200
@@ -254,12 +254,54 @@
     return $cachedctl = [ reverse @ctllist ];
 }
 
+sub findaction {
+    my ($ctllist, $type, $newsgroup, $sender) = @_;
+    my ($action, $hier);
+
+    foreach (@$ctllist) {
+        my @ctlline = split /:/;
+        # 0: type  1: from@addr  2: group.*  3: action
+        if ($type =~ /$ctlline[0]/ and $sender =~ /$ctlline[1]/i and
+            ($type !~ /(?:new|rm)group/ or $newsgroup =~ /$ctlline[2]/)) {
+            $action = $ctlline[3];
+            $action =~ s/\^(.+)\$/$1/;
+            $action =~ s/\\//g;
+            $hier = $ctlline[2] if $type eq 'checkgroups';
+            last;
+        }
+    }
+
+    ($action, $hier);
+}
+
+# Does the group exist in the active file ?
+sub group_exists {
+    my $group = shift;
+    my $found = 0;
+    local *ACTIVE;
+
+    unless (open(ACTIVE, $inn::active)) {
+	logdie("cannot open active file $inn::active");
+    }
+
+    while (<ACTIVE>) {
+	next unless (/^([^:]+):/);
+	if ($group eq $1) {
+	    $found = 1;
+	    last;
+	}
+    }
+    close ACTIVE;
+
+    $found;
+}
+
+
 # Parse a control message's permissions.
 sub ctlperm {
     my ($type, $sender, $newsgroup, $token, $headers, $body) = @_;
 
-    my $action = 'drop';    # default
-    my ($logname, $hier);
+    my ($logname, $action, $hier);
 
     # newgroup and rmgroup require newsgroup names; check explicitly for that
     # here and return drop if the newsgroup is missing (to avoid a bunch of
@@ -271,18 +313,14 @@
     }
 
     my $ctllist = readctlfile();
-    foreach (@$ctllist) {
-        my @ctlline = split /:/;
-        # 0: type  1: from@addr  2: group.*  3: action
-        if ($type =~ /$ctlline[0]/ and $sender =~ /$ctlline[1]/i and
-            ($type !~ /(?:new|rm)group/ or $newsgroup =~ /$ctlline[2]/)) {
-            $action = $ctlline[3];
-            $action =~ s/\^(.+)\$/$1/;
-            $action =~ s/\\//g;
-            $hier = $ctlline[2] if $type eq 'checkgroups';
-            last;
-        }
+    if (lc $type eq 'newgroup' && group_exists($newsgroup)) {
+	($action, $hier) = findaction($ctllist, 'updategroup',
+						$newsgroup, $sender);
+    }
+    if (!defined($action)) {
+	($action, $hier) = findaction($ctllist, $type, $newsgroup, $sender);
     }
+    $action ||= 'drop';	    # default if not found.
 
     ($action, $logname) = split(/=/, $action);
 

Re: alt.* control
#73511
Author: Eric Edwards
Date: Wed, 12 Apr 2006 05:39
32 lines
2587 bytes
On Wed, 05 Apr 2006 23:59:46 -0700, Russ Allbery <rra@stanford.edu> wrote:
>Eric Edwards <ese002@news9.exile.org> writes:
>
>> Not so much.  I was referring to receiving rather than sending.  The
>> documentation for pgpverify that I have seen seemed to assume that the
>> user already has a pgp system up and running and knows where things like
>> keys should go.
>
>Are you running INN?  If so:
>
>    <http://www.eyrie.org/~eagle/software/inn/docs-2.4/install.html#S14>
>
>is supposed to explain this.  If that doesn't work or if it doesn't make
>sense, please do let me know where it's falling short.

I made more progress this time.  I think I have gpg installed
correctly and and at least some of the keys should be right.  But it's
still not working.

I used the key and key and checkgroup message from aus.news-admin.org
When I run pgpverify < aus.checkgrp

I get pgpverify[11861]: pgpverify: verification failed

I chose aus.* because I could get a known good checkgroup and key from
the same source.  I don't know where to get a current master list.
ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS is a broken link and
ftp://ftp.uu.net/networking/news/misc/pgpcontrol/PGPKEYS has errors
that make gpg --import fail partway through.

-- 
Photos and travelogues from Africa and Southeast Asia: http://www.exile.org
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads