Article View: news.software.nntp
Article #30915Re: newgroup attack
From: Don Lewis
Date: Sat, 29 Aug 1998 00:00
Date: Sat, 29 Aug 1998 00:00
45 lines
3043 bytes
3043 bytes
In article <Pine.LNX.3.96.980827000456.350W-100000@penguin.mendelu.cz>,
Department of Magt-Er-Ret <ag786@yfn.ysu.edu> wrote:
>
>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.)
I added the following to ARTpost() just after the section of code that
sets ControlHeader and figures out the type of the control message.
Unlike your patch, it doesn't bother writing the article to the spool
or propagating it. In that respect, it's similar to what you can do
with the perl filter.
p = HDR(_supersedes);
if (*p && ControlHeader >= 0) {
syslog(L_NOTICE, "%s rejecting supersedes with control Message-ID %s",
LogName, Data.MessageID);
(void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, "supersedes with control");
ARTlog(&Data, ART_REJECT, buff);
#if defined(DO_REMEMBER_TRASH)
if (Data.MessageID && Mode == OMrunning && !HISwrite(&Data, ""))
syslog(L_ERROR, "%s cant write history %s %m",
LogName, Data.MessageID);
#endif /* defined(DO_REMEMBER_TRASH) */
ARTreject(buff, article);
return buff;
}
--
Don "Truck" Lewis TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road
Phone: +1 530 478-8284 FAX: +1 530 478-8251 Nevada City, CA 95959
Technical Details
Message-ID:
<6s7u9q$38r$1@news.gv.tsc.tdk.com>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> <Pine.LNX.3.96.980827000456.350W-100000@penguin.mendelu.cz>Show Full Headers
Complete Article Headers
Message-ID: <6s7u9q$38r$1@news.gv.tsc.tdk.com> Subject: Re: newgroup attack Date: Sat, 29 Aug 1998 00:00:00 +0000 From: gdonl@tsc.tdk.com (Don Lewis) References: <35E44E96.68C4774A@inode.at> <35e55e47.14743498@news.wirehub.nl> <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-mail X-Deja-AN: 385866759 Organization: TDK Semiconductor, Nevada City CA Newsgroups: news.software.nntp