🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #22789

news.cmc.net is finally fixed

#22789
From: brian moore
Date: Thu, 30 Oct 1997 00:00
75 lines
3918 bytes
A few here know my sad sad story of the accident my news server had, but I
guess I'll share it with others so they don't let it happen to them!

It seems I made a horrible and tragic mistake when editing nnrp.access and
allowed ANYONE in the world to read and post news on my server.   That is
a very very bad thing, since some people will hunt down an open server and
use it to insert lots of things they shouldn't.

VERY VERY BAD!

To make matters worse, within 3 days, the folks at pervert.net found my
news server and started injecting well over two thousand posts a day.
That means 2000 posts to every news server in the world, and 2000 subsequent
cancels.  Not good at all!

If that weren't enough though, it seems that I had a horrible bug in my
filter_nnrpd.pl.  I had downloaded Andrew Gierth's modified version of the
perl hooks and installed it and I guess I wasn't so good at checking my
perl code: every post that didn't have 'cmc.net' on the NNTP-Posting-Host
line was being flagged with 'SPOOL'!

It seems that didn't actually "SPOOL to send" as I thought.  It put it in
/var/spool/news/in.coming/spam instead.

I was telling the folks at pervert.net that I was accepting their articles
and I wasn't!  VERY VERY VERY BAD!  As Tom Lehrer says, "Lying is a sin".

I thought I owed it to the folks at pervert.net to notify them that their
posts weren't working, so I changed it to "DROP" the connection on each
post.  But they kept injecting them!

So I modified it more and thought maybe if I selected the articles for them,
they would notice them in their newsreader.  I added a select(NULL,NULL,
NULL,0.25) for each post thinking this would alert them to the situation
at hand.

They didn't seem to notice.  In fact, looking at my logs, of all the hundreds
of people who were using news.cmc.net for news access, the folks at
pervert.net never read a single article.

I then read up on the perl filter from Andrew and it seems that DROP doesn't
drop the connection at all: it discards the article!  And, like the SPOOL
result, it LIES and tells the poster everything is well and good.

At this point, I sought out the help of a few trusted news administrators
to help me in my plight.  They laughed at me and offered me no help!  Fluffy
told me I had to buy him a new keyboard.

For over a week, the folks at pervert.net injected thousands of pieces of
spam into my server and I was helpless to stop it.  I was also just losing
articles!

Unfortunately no one was willing to help me fix these bugs and I just didn't
have the time to figure them out myself, so the situation continued.

It seems to have finally ended, so now I can tell my story.  For the past
couple of days, the folks at pervert.net seem to have found some other news
server, or they're at least no longer using mine.

This has afforded me the time to research the problems with my news server
and to close the open port.

Again, it is VERY VERY bad to run an open news server.  It is even WORSE to
drop articles from posters on that server on the floor.

I promise to never ever ever do it again.

Unless I get bored with all the probes of my machine again.

-- 
Brian Moore                      Kill A Spammer For Jesus
Sysadmin, C/Perl Hacker

Technical Details
Message-ID: <63alja$f8c$1@news.cmc.net>
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

Show Full Headers
Complete Article Headers
Message-ID: <63alja$f8c$1@news.cmc.net>
Subject: news.cmc.net is finally fixed
Date: Thu, 30 Oct 1997 00:00:00 +0000
From: bem@news.cmc.net (brian moore)
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: 286067604
X-Complaints-To: abuse@cmc.net
X-Trace: news.cmc.net 878238122 15628 (None) 206.102.31.253
Organization: Chambers Multimedia Connection
Reply-To: bem@news.cmc.net
Newsgroups: news.software.nntp