Article View: news.software.nntp
Article #61783Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
From: Andrew - Supernews
Date: Mon, 04 Nov 2002 08:37
Date: Mon, 04 Nov 2002 08:37
97 lines
5443 bytes
5443 bytes
In article <20021104005657.337$yO@newsreader.com>, Curt Welch wrote: > andrew@supernews.com wrote: >> Since that's not a valid NNTP stream, then there is no "correct" way to >> parse it. > > We have talked about how binary files move over NNTP for over 5 years > now. We have been working to make usenet 8 bit clean for years, and this > includs dealing correctly with CR and LF. No, it doesn't. Nobody is seriously working on making NNTP deal with pure binary data, because it's known not to work with the existing deployed systems. "8 bit clean" is a less restrictive goal, and one that _does_ work. Most of the talk on the subject has been irrelevent to the real world. > No matter how vague the old RFCs > may be, or how broken old code may be, there's only one day to correctly > parse NNTP data streams. DOT CR LF is a "null file" stream, <8bit>* CR LF > DOT CR LF is a non-null stream. This is incompatible with existing use of NNTP for text, because you're changing the first of those two CR LF sequences from being part of the data to being part of the delimiter. At present, if I want to send an article whose body is one line of text, "foo"+newline, then I send 'f' 'o' 'o' CR LF DOT CR LF, and the receiving end knows what I mean. Your interpretation would mean that you would receive this as "foo" with _no_ newline; and if you tried to send me the same message, I'd see "foo"+newline+newline. (Adding or removing newlines may seem harmless but it's a royal pain - especially when it breaks signature schemes or otherwise makes identical texts appear different.) > Within the <8bit>* data, all occurences of > CR LF DOT is turned into CR LF DOT DOT on transmission (plus the special > handling requied for the first line) and translated back to CR LF DOT when > received. > > The _only_ invalid NNTP data stream is one which has CR LF DOT <not-dot> > (which it seems might have been sent by some server in this case yes, exactly my point > but I > still haven't been able to figure out what did that yet - maybe I'm just > dense). [snip demonstration of density] > And if easynews transmits the article like that (which it no doubt does), > all the various wire-format servers will simply reproduce the "dot-error". > But then, the frist old-style diablo server which receives that will > truncate the article there. yes. Note that if the dot had been correctly escaped in the first place, then the problem would not have occurred _regardless_ of the interpretation of bare LF as a line terminator. > But that's not even the real problem here. The real problem, as I think I > now understand it, is that most (maybe all?) wire-format servers (which > includes I suspect all the Highwind servers, and Diablo, and my server), do > not check for lines with a single leading dot and reject the article as > invalid, they just accept it and pass it on as it was received. And when > that article hits an old-style diablo server, we have a real security > problem. Think about what happens when the orginal article looks like > this: > > CR LF > DOT LF T A K E T H I S <xx@yyy> CR LF > P a t h : ... > ..... > DOT CR LF > > Have fun tracing where that stealth article came from. ooo. nice. Of course such an article could not have been posted here, since we treat (for POST commands) DOT LF as being a delimiter (because I caught some client actually sending that, I forget which one it was). [back to the bare-LF religious issue] > But, because of this security issue, we need to fix all the wire-format > servers _now_. Hah. Very funny. (think about it: how many cyclones are there out there? What is the chance of them upgrading given UNS's licensing policies?) -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID:
<slrnasccee.8p9.andrew+nonews@trinity.supernews.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!news-feed.riddles.org.uk!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<20021102220425.532$Ov@newsreader.com> <us954gpfjs492a@corp.supernews.com> <20021102222437.838$Mm@newsreader.com> <slrnas967a.8p9.andrew+nonews@trinity.supernews.net> <20021102225642.902$eT@newsreader.com> <slrnas98f6.8p9.andrew+nonews@trinity.supernews.net> <20021102232508.136$0f@newsreader.com> <aq2alp$61b2a$1@ID-80930.news.dfncis.de> <20021103001847.653$nw@newsreader.com> <slrnas9drt.8p9.andrew+nonews@trinity.supernews.net> <20021103005855.983$iI@newsreader.com> <slrnas9fja.8p9.andrew+nonews@trinity.supernews.net> <20021103152721.486$ih@newsreader.com> <slrnasbhrd.8p9.andrew+nonews@trinity.supernews.net> <20021104005657.337$yO@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnasccee.8p9.andrew+nonews@trinity.supernews.net> Subject: Re: There's more (was Re: Someone is sending head-only articles out to Usenet???? Date: Mon, 04 Nov 2002 08:37:34 -0000 From: Andrew - Supernews <andrew+nonews@supernews.com> References: <20021102220425.532$Ov@newsreader.com> <us954gpfjs492a@corp.supernews.com> <20021102222437.838$Mm@newsreader.com> <slrnas967a.8p9.andrew+nonews@trinity.supernews.net> <20021102225642.902$eT@newsreader.com> <slrnas98f6.8p9.andrew+nonews@trinity.supernews.net> <20021102232508.136$0f@newsreader.com> <aq2alp$61b2a$1@ID-80930.news.dfncis.de> <20021103001847.653$nw@newsreader.com> <slrnas9drt.8p9.andrew+nonews@trinity.supernews.net> <20021103005855.983$iI@newsreader.com> <slrnas9fja.8p9.andrew+nonews@trinity.supernews.net> <20021103152721.486$ih@newsreader.com> <slrnasbhrd.8p9.andrew+nonews@trinity.supernews.net> <20021104005657.337$yO@newsreader.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!news-feed.riddles.org.uk!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: news.software.nntp Organization: http://www.supernews.com - all your nntp are belong to us Reply-To: andrew@supernews.com User-Agent: slrn/0.9.7.4 (FreeBSD) X-Complaints-To: abuse@supernews.com Lines: 96