Article View: news.software.nntp
Article #30833Re: newgroup attack
From: Department of Magt-Er-Ret
Date: Thu, 27 Aug 1998 00:00
Date: Thu, 27 Aug 1998 00:00
99 lines
4332 bytes
4332 bytes
On Wed, 26 Aug 1998, Ben C. O. Grimm wrote:
> 20 simultaneous newgroups, pushing the load up to 15 for about
> ten minutes.
Here, try this patch.
news% echo 'exit' >| $NEWSBIN/control/newgroup
No, wait, wrong patch... This one will ignore any the Supersedes: header
in any control message, but will write the message to the appropriate
control.* pseudo-group so you can witness the carnage in safety. And it
should also ignore the control action.
This is against source file innd/art.c in a hacked 1.7.insync, very end of
the file, but you should be able to wedge it into most versions, maybe...
(This is not meant as a substitute for the perl filtering, but for those
of us who like to gawk at the stupidity in a full feed without the
unpleasant side-effects. Notably, you're still vulnerable to regular
supersedes, so that news.answers doesn't look like news.lists.filters
after a year. You'll also probably want to filter out the reposted
messages in some way as well, assuming this code actually works as
intended, for which I offer no guarantees until after the hallucinogens
wear off, and even then probably none. I haven't really tested it beyond
observing log messages like
Aug 27 00:19:24 news-inn innd: SERVER ignoring supersedes with control Message-ID <Y73148UD9qTXqCTIgdBkfmOOYUDrJXwe@earthlink.net>
Aug 27 00:19:25 news-inn innd: SERVER ignoring supersedes with control Message-ID <giudb6hJGEuaVqi4cPPPngYu10go6X9zF@news.mindspring.com>
so don't complain to me if it newfs'es your spool.)
Barry Bouwsma
a day without rain is like, well, not a danish summer
(Begin cut'n'paste)
*** art.c-supersede Sun Jul 19 03:27:14 1998
--- art.c Wed Aug 26 23:40:44 1998
***************
*** 2314,2336 ****
* has been processed. We could pause ourselves here, but it doesn't
* seem to be worth it. */
if (Accepted) {
! if (ControlHeader >= 0) {
#ifdef TIMER
! TMRstart(TMR_ARTCTRL);
#endif /* TIMER */
! ARTcontrol(&Data, HDR(ControlHeader));
#ifdef TIMER
! TMRstop(TMR_ARTCTRL);
#endif /* TIMER */
}
! p = HDR(_supersedes);
! if (*p && ARTidok(p)) {
#ifdef TIMER
! TMRstart(TMR_ARTCNCL);
#endif /* TIMER */
! ARTcancel(&Data, p, FALSE);
#ifdef TIMER
! TMRstop(TMR_ARTCNCL);
#endif /* TIMER */
}
}
--- 2314,2345 ----
* has been processed. We could pause ourselves here, but it doesn't
* seem to be worth it. */
if (Accepted) {
! p = HDR(_supersedes);
! if (*p && ARTidok(p)) {
! /* Take no action if some other Control: header,
! but it has been written for posterity */
! if (ControlHeader >= 0) {
! syslog(L_NOTICE,
! "%s ignoring supersedes with control Message-ID %s",
! LogName, Data.MessageID);
! }
! else { /* Okay to nuke the old article */
#ifdef TIMER
! TMRstart(TMR_ARTCNCL);
#endif /* TIMER */
! ARTcancel(&Data, p, FALSE);
#ifdef TIMER
! TMRstop(TMR_ARTCNCL);
#endif /* TIMER */
+ }
}
! else if (ControlHeader >= 0) {
#ifdef TIMER
! TMRstart(TMR_ARTCTRL);
#endif /* TIMER */
! ARTcontrol(&Data, HDR(ControlHeader));
#ifdef TIMER
! TMRstop(TMR_ARTCTRL);
#endif /* TIMER */
}
}
Technical Details
Message-ID:
<Pine.LNX.3.96.980827000456.350W-100000@penguin.mendelu.cz>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-mailReferences:
<35E44E96.68C4774A@inode.at> <35e55e47.14743498@news.wirehub.nl>Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.980827000456.350W-100000@penguin.mendelu.cz> Subject: Re: newgroup attack Date: Thu, 27 Aug 1998 00:00:00 +0000 From: Department of Magt-Er-Ret <barry@vszbr.cz> References: <35E44E96.68C4774A@inode.at> <35e55e47.14743498@news.wirehub.nl> 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: 385071726 X-Sender: barry@penguin.mendelu.cz Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: sendsys Mime-Version: 1.0 Reply-To: ag786@yfn.ysu.edu Newsgroups: news.software.nntp