🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Charlie Reboot Sun, 04 Jan 1998 00:00
INN -C (don't process cancels) flag permits supersedes
#24827
Author: Charlie Reboot
Date: Sun, 04 Jan 1998 00:00
82 lines
4874 bytes
If anyone is unaware of the present cancel attack, let me direct you to
news.admin.net-abuse.usenet.  In short, an open server is being abused yet
one more time to inject cancel messages which not only contain a cmsg
cancel header but also a Supersedes: header for yet another message.

If INN is started with the flag -C, it will not process ordinary cancels.
However, here is a sample timer output from a CNFS server, based on 1.5.1,
running with -C :


Jan  4 05:44:14 news-feed innd: ME time 300009 idle 15672(15302)
    artwrite 24153(2396) artlink 0(0) hiswrite 824(2401) hissync 11(46)
    sitesend 19786(8765) artctrl 58(707) artcncl 0(0) hishave 93082(43453) 
Jan  4 05:59:14 news-feed innd: ME time 300037 idle 26608(24862)
    artwrite 21354(2033) artlink 0(0) hiswrite 555(2034) hissync 9(57)
    sitesend 7462(5682) artctrl 10(847) artcncl 1(336) hishave 64915(49958) 
Jan  4 08:59:35 news-feed innd: ME time 300008 idle 25545(24501)
    artwrite 21482(2044) artlink 0(0) hiswrite 591(2044) hissync 19(67)
    sitesend 7045(5885) artctrl 16(813) artcncl 2(280) hishave 69573(46185) 

I observed this some time back when trying to find why I was seeing
non-zero numbers when running with -C and determined that apparently the
code to handle supersedes headers does not check whether to process
cancels.  However, at that time, I did not try to hack a fix.

This might explain some of the weirdness I've seen both in the history
files on this CNFS server with -C as well as the significantly smaller
number of articles offered from the feeder than it takes in.

A few lines from the `news' logfile:

Jan  4 05:37:11.605 + cpk-news-hub1.bbnplanet.com <030198224157@Domain> 1454
Jan  4 05:37:23.522 + news.maxwell.syr.edu <cancel.030198224101@Domain> 1904
Jan  4 05:37:29.023 + news-xfer.netaxs.com <030198224211@Domain> 1514
Jan  4 05:37:51.750 + news.eecs.umich.edu <68n3mh$g5u$1@gte2.gte.net> 2274
Jan  4 05:37:52.425 + red.kreonet.re.kr <cancel.030198224153@Domain> 1854
Jan  4 05:37:56.848 + news-xfer.netaxs.com <cancel.030198224211@Domain> 1884
Jan  4 05:38:00.907 + cpk-news-hub1.bbnplanet.com <030198224252@Domain> 1504
Jan  4 05:38:32.937 + marley.vszbr.cz <34AF111F.CC4D1854@neta.com> 5284
Jan  4 05:38:38.503 + cpk-news-hub1.bbnplanet.com <030198224318@Domain> 1504
Jan  4 05:38:45.607 + feed.news.xara.net <cancel.030198224332@Domain> 1844

These were all accepted and should have been recorded with most of our
peers as destinations, but instead were not scheduled to be passed along
to anyone.  Unless there is some hidden mysterious force behind this
swerver I am not yet aware of that would block what appear to be almost
exclusively spam and spam cancels.

Here are the history file entries from the last five minutes which were
not written to the spool (third field is missing):

<19980104155300.KAA21729@ladder02.news.aol.com>	883929220~-~883929218	
<34afae27.0@news.fu-berlin.de>	883929233~-~883928615	
<34afaf9d.0@news.fu-berlin.de>	883929261~-~883928989	
<34afb092.0@news.kis.net>	883929334~-~883940355	
<68o4a1$evf$60@imsp009a.netvigator.com>	883929350~-~883922049	
<19980104155600.KAA24764@ladder01.news.aol.com>	883929409~-~883929408	
<68o4c3$evf$62@imsp009a.netvigator.com>	883929542~-~883922115	
<01bd1928$c8ab55e0$2a202ec3@caimano.ipsnet.it>	883929556~-~883928711	
<01bd1928$26855360$3201bfc3@ea00556flashnet.it>	883929576~-~883929302	
<68j4au$vks$1@websites.campbell.pvt.k12.ca.us>	883929660~-~883758102	
<uH$CTlSG9GA.215@upnetnews03>	883929661~-~883929196	
<#mAQ5mSG9GA.236@upnetnews03>	883929666~-~883929367	


I have not yet done the research to know how many of these are rejected
articles (unapproved, and so on), but in the past, I have matched those
messages not scheduled to be sent to other sites with history entries
missing the storage location.

This may also be an obscure CNFS bug, I cannot say.  Apologies for this
early report with no results yet, but I have this odd feeling that I'll be
sleeping before doing much investigation into the supersedes problem and
the mysterious unwritten and unpropagated articles.


Barry Bouwsma, Tele Danmark Internet
will eat cheese wax for food


Re: INN -C (don't process cancels) flag permits supersedes
#24878
Author: Forrest J. Cavalier III
Date: Mon, 05 Jan 1998 00:00
42 lines
2165 bytes
posted and emailed

In article <Pine.BSF.3.96.980104164357.1189M-100000@coredump.int.tele.dk>, 
f00fc7c8@int.tele.dk wrote...
>
>If anyone is unaware of the present cancel attack, let me direct you to
>news.admin.net-abuse.usenet.  In short, an open server is being abused yet
>one more time to inject cancel messages which not only contain a cmsg
>cancel header but also a Supersedes: header for yet another message.
>
>If INN is started with the flag -C, it will not process ordinary cancels.
>However, here is a sample timer output from a CNFS server, based on 1.5.1,
>running with -C :

[snip]
>
>I have not yet done the research to know how many of these are rejected
>articles (unapproved, and so on), but in the past, I have matched those
>messages not scheduled to be sent to other sites with history entries
>missing the storage location.
>
>This may also be an obscure CNFS bug, I cannot say.  Apologies for this
>early report with no results yet, but I have this odd feeling that I'll be
>sleeping before doing much investigation into the supersedes problem and
>the mysterious unwritten and unpropagated articles.
>
Not only that, but DO_VERIFY_CANCELs processing is not done....

The message below has a pointer to the code also.....

From: "Forrest J. Cavalier III" <mibsoft@epix.net>
To: inn-workers
Date: Tue, 12 Aug 1997 14:06:16 -0400
Subject: The supersedes header

http://www.mibsoftware.com/userkt/inn/dev/inn-workers/vol9708/xbj.htm

Forrest


Re: INN -C (don't process cancels) flag permits supersedes
#24892
Author: Andrew Gierth
Date: Mon, 05 Jan 1998 00:00
38 lines
2057 bytes
>>>>> "Forrest" == Forrest J Cavalier <mibsoft@epix.net> writes:

 >> This may also be an obscure CNFS bug, I cannot say.  Apologies for
 >> this early report with no results yet, but I have this odd feeling
 >> that I'll be sleeping before doing much investigation into the
 >> supersedes problem and the mysterious unwritten and unpropagated
 >> articles.

 Forrest> Not only that, but DO_VERIFY_CANCELs processing is not
 Forrest> done....

 Forrest> The message below has a pointer to the code also.....
 Forrest> http://www.mibsoftware.com/userkt/inn/dev/inn-workers/vol9708/xbj.htm

I believe you are mistaken when you say:

 >> And I discover:
 >> Cool!, I can cancel any article I want using a Supersedes header,
 >> which is not subject to DO_VERIFY_CANCELS processing.

Yes, ARTpost calls ARTcancel for supersedes headers, *but the verification
code is in ARTcancel anyway*.

All cancels and supersedes go through ARTcancel, which contains
prominently at the beginning:

    if (!DoCancels && !Trusted) {
	return;
    }

So either Barry is misreading what he's seeing, or its a CNFS bug or
otherwise not part of the stock distribution.

-- 
Andrew.

Re: INN -C (don't process cancels) flag permits supersedes
#24895
Author: Forrest J. Cavalier III
Date: Mon, 05 Jan 1998 00:00
77 lines
3474 bytes
Posted and e-mailed.

(CC'ed to inn-workers also, since there is a reference to an article
from August 1997 which is now seen to be incorrect....)

In article <87afdbmvou.fsf@erlenstar.demon.co.uk>, andrew@erlenstar.demon.co.uk 
wrote...
>
>>>>>> "Forrest" == Forrest J Cavalier <mibsoft@epix.net> writes:
>
> >> This may also be an obscure CNFS bug, I cannot say.  Apologies for
> >> this early report with no results yet, but I have this odd feeling
> >> that I'll be sleeping before doing much investigation into the
> >> supersedes problem and the mysterious unwritten and unpropagated
> >> articles.
>
> Forrest> Not only that, but DO_VERIFY_CANCELs processing is not
> Forrest> done....
>
> Forrest> The message below has a pointer to the code also.....
> Forrest> 
http://www.mibsoftware.com/userkt/inn/dev/inn-workers/vol9708/xbj.htm
>
>I believe you are mistaken when you say:
>
> >> And I discover:
> >> Cool!, I can cancel any article I want using a Supersedes header,
> >> which is not subject to DO_VERIFY_CANCELS processing.
>
>Yes, ARTpost calls ARTcancel for supersedes headers, *but the verification
>code is in ARTcancel anyway*.
>
>All cancels and supersedes go through ARTcancel, which contains
>prominently at the beginning:
>
>    if (!DoCancels && !Trusted) {
>        return;
>    }
>
>So either Barry is misreading what he's seeing, or its a CNFS bug or
>otherwise not part of the stock distribution.
>
>-- 
>Andrew.


After a couple of my poorly written (as well as mistaken) Usenet Messages
previously replying to Andrew's message, (which I cancelled within minutes, so 
if you missed them, you didn't miss much), and a followup e-mail from Andrew,
I stand corrected....

I agree with Andrew...the information and testing on which I based        
     http://www.mibsoftware.com/userkt/inn/dev/inn-workers/vol9708/xbj.htm

...is apparently incorrect.  When I wrote it, I thought I was testing on a 
DO_VERIFY_CANCELs compilation of INN at the time.  But apparently not.

- - - - - 
Perhaps something good did become of my folly, however....Hopefully it
explains Barry's original observation....

In looking at the code for this round of messages, I noticed
that the timer ARTcncl is called when ARTcancel() is called, and this
happens regardless of the -C flag.  As Andrew points out, the -C flag is 
checked inside ARTcancel().  This would mean that even though "supersedes" 
processing triggers a timer call, nothing would actually be cancelled.

Other notes from the recent look....
    "ctlinnd cancel" will work regardless of the -C flag.  And it will not
    show up in the ARTcncl reports of the stock Joe Greco timer patch.


Forrest


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