Thread View: news.software.nntp
39 messages
39 total messages
Started by Curt Welch
Sun, 03 Nov 2002 03:04
Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 03:04
Date: Sun, 03 Nov 2002 03:04
66 lines
4200 bytes
4200 bytes
The following 630KB (10243 line) uuencoded article was posted to Easynews and on easynews, it looks like a normal article. But by the time it made it to my server (NewsReader.Com), the article was missing its body. It had zero lines. It looks like somebody is sending out a head-only feed to usenet (or my server is broken - god I hope it's not me :)). The article passed from easynews, though visi.com servers, though nntpserver.com, to me. (I've cced this to Steve and Mike). Could people please check the following article and tell me if you got the whole thing or only the header so we can figure what what server is doing this? Here's the Message-ID: <0002HW.B9EA21CB000059D105E10600@news.easynews.com> Here's the header of the article from Easynews: Path: news.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!not-for-mail From: cmac34 <cmac34@there.com> User-Agent: Hogwasher/3.1 (Carbon/OSX) Message-ID: <0002HW.B9EA21CB000059D105E10600@news.easynews.com> Subject: 2/2 Kylie Bikini Home Video - KylieHomeBikini.mpg (01/12) [5270K] Newsgroups: alt.binaries.tv.shaggable.babes, alt.binaries.videos.tv.shaggable-babes Lines: 10243 X-Complaints-To: abuse@easynews.com Organization: EasyNews, UseNet made Easy! - Test our service with our FREE trial at https://www.easynews.com/trial/trial.phtml X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Sun, 03 Nov 2002 00:44:29 GMT Xref: newsfeed1.easynews.com alt.binaries.tv.shaggable.babes:328738 alt.binaries.videos.tv.shaggable-babes:27497 X-Received-Date: Sat, 02 Nov 2002 18:07:46 MST (news.easynews.com) And here is the entire article is it is on my feed3.newsreader.com transit server: article <0002HW.B9EA21CB000059D105E10600@news.easynews.com> 220 0 <0002HW.B9EA21CB000059D105E10600@news.easynews.com> Path: feed3.newsreader.com!newsreader.com!newsfeed-east.nntpserver.com!nntpserver.com!priapus.visi.com!phobos.visi.com!news-out.visi.com!hermes.visi.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!not-for-mail From: cmac34 <cmac34@there.com> User-Agent: Hogwasher/3.1 (Carbon/OSX) Message-ID: <0002HW.B9EA21CB000059D105E10600@news.easynews.com> Subject: 2/2 Kylie Bikini Home Video - KylieHomeBikini.mpg (01/12) [5270K] Newsgroups: alt.binaries.tv.shaggable.babes, alt.binaries.videos.tv.shaggable-babes Lines: 10243 X-Complaints-To: abuse@easynews.com Organization: EasyNews, UseNet made Easy! - Test our service with our FREE trial at https://www.easynews.com/trial/trial.phtml X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Sun, 03 Nov 2002 00:44:29 GMT Xref: feed3.newsreader.com alt.binaries.tv.shaggable.babes:2460 alt.binaries.videos.tv.shaggable-babes:1851 .. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Someone is sending head-only articles out to Usenet????
Author: Chris Adams
Date: Sun, 03 Nov 2002 03:14
Date: Sun, 03 Nov 2002 03:14
14 lines
1626 bytes
1626 bytes
Once upon a time, Curt Welch <curt@kcwc.com> said: >Could people please check the following article and tell me if you got the >whole thing or only the header so we can figure what what server is doing >this? Checking on a Supernews corp account, I see just the header. The Path: is: Path: sn-us!sn-xit-06!sn-xit-08!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!209.98.3.200.MISMATCH!priapus.visi.com!phobos.visi.com!news-out.visi.com!hermes.visi.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!not-for-mail -- Chris Adams <cmadams@hiwaay.net> Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble.
Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 03:19
Date: Sun, 03 Nov 2002 03:19
32 lines
2342 bytes
2342 bytes
curt@kcwc.com (Curt Welch) wrote: > The following 630KB (10243 line) uuencoded article was posted to Easynews > and on easynews, it looks like a normal article. But by the time it made > it to my server (NewsReader.Com), the article was missing its body. It > had zero lines. It looks like somebody is sending out a head-only feed > to usenet (or my server is broken - god I hope it's not me :)). > > The article passed from easynews, though visi.com servers, though > nntpserver.com, to me. (I've cced this to Steve and Mike). > > Could people please check the following article and tell me if you got > the whole thing or only the header so we can figure what what server is > doing this? > > Here's the Message-ID: > > <0002HW.B9EA21CB000059D105E10600@news.easynews.com> More info... I found the head-only version on a visi server with this path: Path: authen.newsreader.visi.com!phobos.visi.com!news-out.visi.com!hermes.visi.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!not-for-mail So either it's one of Mike's servers doing this or Easynews did it... Mike??? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Sun, 03 Nov 2002 03:22
Date: Sun, 03 Nov 2002 03:22
38 lines
2779 bytes
2779 bytes
In article <20021102220425.532$Ov@newsreader.com>, Curt Welch wrote: > The following 630KB (10243 line) uuencoded article was posted to Easynews > and on easynews, it looks like a normal article. But by the time it made > it to my server (NewsReader.Com), the article was missing its body. It had > zero lines. It looks like somebody is sending out a head-only feed to > usenet (or my server is broken - god I hope it's not me :)). > > The article passed from easynews, though visi.com servers, though > nntpserver.com, to me. (I've cced this to Steve and Mike). we got the header only, via this path: Path: sn-us!sn-xit-06!sn-xit-08!supernews.com!peer.news.opaltelecom.net! newsfeed.wirehub.nl!209.98.3.200.MISMATCH!priapus.visi.com!phobos.visi.com! news-out.visi.com!hermes.visi.com!newsfeed1.easynews.com!easynews.com! easynews!easynews-local!post-03.news.easynews.com.POSTED!not-for-mail and we also got the header only via this path: Path: sn-xit-04!supernews.com!newsfeed.wirehub.nl!209.98.3.200.MISMATCH! priapus.visi.com!phobos.visi.com!news-out.visi.com!hermes.visi.com! newsfeed1.easynews.com!easynews.com!easynews!easynews-local! post-03.news.easynews.com.POSTED!not-for-mail DSRS got the header only via this path: Path: ...!newdsrs-IV!dsrs.nntp.sol.net!newsfeeds.sol.net!newspump.sol.net! priapus.visi.com!phobos.visi.com!news-out.visi.com!hermes.visi.com! newsfeed1.easynews.com!easynews.com!easynews!easynews-local! post-03.news.easynews.com.POSTED!not-for-mail however, hermes.visi.com (aka news-out) appears to have a full copy of the article. I haven't yet found any copies that _didn't_ go through visi.com. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 03:24
Date: Sun, 03 Nov 2002 03:24
20 lines
2125 bytes
2125 bytes
cmadams@hiwaay.net (Chris Adams) wrote: > Once upon a time, Curt Welch <curt@kcwc.com> said: > >Could people please check the following article and tell me if you got > >the whole thing or only the header so we can figure what what server is > >doing this? > > Checking on a Supernews corp account, I see just the header. The Path: > is: > > Path: sn-us!sn-xit-06!sn-xit-08!supernews.com!peer.news.opaltelecom.net!newsfeed.wirehub.nl!209.98.3.200.MISMATCH!priapus.visi.com!phobos.visi.com!news-out.visi.com!hermes.visi.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!not-for-mail I think it's one of the visi servers. He uses Diablo which has the ability to send head-only feeds so he's probably got a configuration error where a server such as "phobos" is sending the head-only articles back out when it shouldn't be. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Sun, 03 Nov 2002 03:25
Date: Sun, 03 Nov 2002 03:25
23 lines
1953 bytes
1953 bytes
In article <20021102221938.440$N4@newsreader.com>, Curt Welch wrote: > More info... > > I found the head-only version on a visi server with this path: > > Path: authen.newsreader.visi.com!phobos.visi.com!news-out.visi.com! > hermes.visi.com!newsfeed1.easynews.com!easynews.com!easynews! > easynews-local!post-03.news.easynews.com.POSTED!not-for-mail > > So either it's one of Mike's servers doing this or Easynews did it... looks like it's internal to visi.com, then, because I can do an ARTICLE command on hermes.visi.com and get the whole thing. hmm... looking more closely, though, someone has a bug with their NNTP formatting: if I ask hermes.visi.com for the article, the first line of the body comes back with only '.' on a line by itself, which is obviously going to foul things up. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Sun, 03 Nov 2002 03:32
Date: Sun, 03 Nov 2002 03:32
38 lines
2844 bytes
2844 bytes
In article <20021102222437.838$Mm@newsreader.com>, Curt Welch wrote: > I think it's one of the visi servers. He uses Diablo which has the ability > to send head-only feeds so he's probably got a configuration error where a > server such as "phobos" is sending the head-only articles back out when it > shouldn't be. I'm pretty sure that diablo will only send header-only feeds to servers that respond success to 'MODE HEADFEED', and header-only articles received are tagged as such so that it doesn't try and feed them to full-article peers. I think the malformation of the article is more likely to be responsible; this is what I get from hermes.visi.com: 200 newsfeed.visi.com NNTP Service Ready - 3 (DIABLO 5-CUR-20020908-00) article <0002HW.B9EA21CB000059D105E10600@news.easynews.com> 220 0 article <0002HW.B9EA21CB000059D105E10600@news.easynews.com> Path: news-out.visi.com!hermes.visi.com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!post-03.news.easynews.com.POSTED!not-for-mail From: cmac34 <cmac34@there.com> User-Agent: Hogwasher/3.1 (Carbon/OSX) Message-ID: <0002HW.B9EA21CB000059D105E10600@news.easynews.com> Subject: 2/2 Kylie Bikini Home Video - KylieHomeBikini.mpg (01/12) [5270K] Newsgroups: alt.binaries.tv.shaggable.babes,alt.binaries.videos.tv.shaggable-babes Lines: 10243 X-Complaints-To: abuse@easynews.com Organization: EasyNews, UseNet made Easy! - Test our service with our FREE trial at https://www.easynews.com/trial/trial.phtml X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Sun, 03 Nov 2002 00:44:29 GMT .. begin 644 KylieHomeBikini.mpg [etc] -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 03:37
Date: Sun, 03 Nov 2002 03:37
30 lines
2472 bytes
2472 bytes
andrew@supernews.com wrote: > In article <20021102221938.440$N4@newsreader.com>, Curt Welch wrote: > > More info... > > > > I found the head-only version on a visi server with this path: > > > > Path: authen.newsreader.visi.com!phobos.visi.com!news-out.visi.com! > > hermes.visi.com!newsfeed1.easynews.com!easynews.com!easynews! > > easynews-local!post-03.news.easynews.com.POSTED!not-for-mail > > > > So either it's one of Mike's servers doing this or Easynews did it... > > looks like it's internal to visi.com, then, because I can do an ARTICLE > command on hermes.visi.com and get the whole thing. > > hmm... looking more closely, though, someone has a bug with their NNTP > formatting: if I ask hermes.visi.com for the article, the first line of > the body comes back with only '.' on a line by itself, which is obviously > going to foul things up. Then it has to be either news-out sending the head-only feed to phobos, or phobos sending out the head-only feeds. We have seen two paths out of phobus which had the head-only article so it's a problem with one of those. Anyone have a phone number for Mike @ visi? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 03:56
Date: Sun, 03 Nov 2002 03:56
43 lines
2900 bytes
2900 bytes
andrew@supernews.com wrote: > In article <20021102222437.838$Mm@newsreader.com>, Curt Welch wrote: > > I think it's one of the visi servers. He uses Diablo which has the > > ability to send head-only feeds so he's probably got a configuration > > error where a server such as "phobos" is sending the head-only articles > > back out when it shouldn't be. > > I'm pretty sure that diablo will only send header-only feeds to servers > that respond success to 'MODE HEADFEED', and header-only articles > received are tagged as such so that it doesn't try and feed them to > full-article peers. > > I think the malformation of the article is more likely to be responsible; > this is what I get from hermes.visi.com: > > Date: Sun, 03 Nov 2002 00:44:29 GMT > > . > > begin 644 KylieHomeBikini.mpg Ah, yes, you are correct. Checking again on easynews, I see those lines look like this: CR LF DOT LF CR LF b e g i n .... And Diablo has problems with an LF by itself because it translates CR LF to LF (converstion to Unix text file format) on storage, and LF back to CR LF on transmission, but no doubt misses the DOT and doesn't escape it correctly so the next site to receive it thinks that's the end of the article. Interesting Diablo bug even though the fault looks like it is mostly with the post in the first place. I know the guy that posted this, so I'll find out what he's doing and help him fix this. Looks like we don't have a net-wide problem after all. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Sun, 03 Nov 2002 04:11
Date: Sun, 03 Nov 2002 04:11
21 lines
1872 bytes
1872 bytes
In article <20021102225642.902$eT@newsreader.com>, Curt Welch wrote: > Ah, yes, you are correct. Checking again on easynews, I see those lines > look like this: > > CR LF > DOT LF CR LF > b e g i n .... > > And Diablo has problems with an LF by itself because it translates CR LF to > LF (converstion to Unix text file format) on storage, and LF back to CR LF > on transmission, newer versions of diablo have the option not to do that. So instead, it's probably stored the article data exactly as received, without trying to unescape the dot;; but if you send such a malformed line to an older diablo version, it will treat it as the end-of-article delimiter. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 04:25
Date: Sun, 03 Nov 2002 04:25
30 lines
2719 bytes
2719 bytes
andrew@supernews.com wrote: > In article <20021102225642.902$eT@newsreader.com>, Curt Welch wrote: > > Ah, yes, you are correct. Checking again on easynews, I see those > > lines look like this: > > > > CR LF > > DOT LF CR LF > > b e g i n .... > > > > And Diablo has problems with an LF by itself because it translates CR > > LF to LF (converstion to Unix text file format) on storage, and LF back > > to CR LF on transmission, > > newer versions of diablo have the option not to do that. So instead, it's > probably stored the article data exactly as received, without trying to > unescape the dot;; but if you send such a malformed line to an older > diablo version, it will treat it as the end-of-article delimiter. Or, more accurately, the servers it sends it to will see it as an end-of-article delimiter -- which probably explains how it made it though a few of Mike's servers without having the problem. I'm guessing then that phobos.visi.com is running the old Diablo (or new Diablo with the option turned off?) where as his other servers are running with the new system. So any server which phobos sent the article to received only the head of the article because phobos would send it out as "CR LF DOT CR LF CR LF". -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Someone is sending head-only articles out to Usenet????
Author: Jay Munsterman
Date: Sun, 03 Nov 2002 04:35
Date: Sun, 03 Nov 2002 04:35
15 lines
1681 bytes
1681 bytes
On Sun, 03 Nov 2002 04:25:08 +0000, Curt Welch wrote: > > So any server which phobos sent the article to received only > the head of the article because phobos would send it out as "CR LF DOT > CR LF CR LF". Yup, I got it from phobos via priapus and no body... jay -- Jay Munsterman Cox Data Operations
There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Rob Maxwell
Date: Sun, 03 Nov 2002 05:04
Date: Sun, 03 Nov 2002 05:04
42 lines
3071 bytes
3071 bytes
Looking into it, I have discovered more of these that don't go through visi.com.... Path: news1.atlantic.net!newsfeed4.cidera.com!newsfeed1.cidera.com!Cidera!nntp.thepl anet.net!inewsm1.nntp.theplanet.net!zen.net.uk!news.imp.ch!news.imp.ch!fr.clar a.net!heighliner.fr.clara.net!news.tiscali.fr!proxad.net!proxad.net!news-hub.c ableinet.net!blueyonder!nntp2.aus1.giganews.com!nntp.giganews.com!newsfeed1.ea synews.com!easynews.com!easynews!easynews-local!post-02.news.easynews.com.POST ED!not-for-mail From: cmac34 <cmac34@there.com> User-Agent: Hogwasher/3.1 (Carbon/OSX) Message-ID: <0001HW.B9EA21CB000059D105E10600@news.easynews.com> Subject: 2/2 Kylie Bikini Home Video - kylie002.jpg (1/1) [68K] Newsgroups: alt.binaries.tv.shaggable.babes,alt.binaries.videos.tv.shaggable-babes .... Path: news1.atlantic.net!newsfeed4.cidera.com!newsfeed1.cidera.com!Cidera!newsfeed.i cl.net!newsfeed.fjserv.net!news-lond.gip.net!news-raspail.gip.net!news.gsl.net !gip.net!fr.clara.net!heighliner.fr.clara.net!news.tiscali.fr!proxad.net!proxa d.net!news-hub.cableinet.net!blueyonder!nntp2.aus1.giganews.com!nntp.giganews. com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews. com.POSTED!not-for-mail From: cmac34 <cmac34@there.com> User-Agent: Hogwasher/3.1 (Carbon/OSX) Message-ID: <0001HW.B9EA230A0000A46905E10600@news.easynews.com> Subject: 3/3 Kylie Wet T-Shirt - kylie003.jpg (1/1) [67K] Newsgroups: alt.binaries.tv.shaggable.babes,alt.binaries.videos.tv.shaggable-babes .... -Rob > > -- > Curt Welch http://CurtWelch.Com/ > curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Sun, 03 Nov 2002 05:12
Date: Sun, 03 Nov 2002 05:12
13 lines
1823 bytes
1823 bytes
In article <aq2alp$61b2a$1@ID-80930.news.dfncis.de>, Rob Maxwell wrote: > Looking into it, I have discovered more of these that don't go through > visi.com.... presumably all of these have the DOT LF CR LF sequence in, which means that it'll be pretty much hit and miss whether they pass intact through any given path. The problem here is the original malformed posts, not the fact that they are being further mangled. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 05:18
Date: Sun, 03 Nov 2002 05:18
59 lines
3839 bytes
3839 bytes
"Rob Maxwell" <robu-san@excite.com> wrote: > Looking into it, I have discovered more of these that don't go through > visi.com.... Yeah, it looks like a Hogwasher bug combined with a Diablo bug that's causing it. One of the servers in those paths are probably a Diablo server. When cmac34 posted the files, he typed a dot on a line by itself for the text message that was inserted before the file. Hogwasher it seems sends that to the NNTP server as "DOT LF" instead of "DOT CR LF". Diablo then takes articles like that and causes them to be truncated, but the more I think about this, I don't know why Diablo does that. Maybe other news servers besides Diablo is getting confused as well by it? I just sent a report to the Hogwasher guys about it. > Path: > news1.atlantic.net!newsfeed4.cidera.com!newsfeed1.cidera.com!Cidera!nntp. > thepl > anet.net!inewsm1.nntp.theplanet.net!zen.net.uk!news.imp.ch!news.imp.ch!fr > .clar > a.net!heighliner.fr.clara.net!news.tiscali.fr!proxad.net!proxad.net!news- > hub.c > ableinet.net!blueyonder!nntp2.aus1.giganews.com!nntp.giganews.com!newsfee > d1.ea > synews.com!easynews.com!easynews!easynews-local!post-02.news.easynews.com > .POST ED!not-for-mail > From: cmac34 <cmac34@there.com> > User-Agent: Hogwasher/3.1 (Carbon/OSX) > Message-ID: <0001HW.B9EA21CB000059D105E10600@news.easynews.com> > Subject: 2/2 Kylie Bikini Home Video - kylie002.jpg (1/1) [68K] > Newsgroups: > alt.binaries.tv.shaggable.babes,alt.binaries.videos.tv.shaggable-babes > .... > > Path: > news1.atlantic.net!newsfeed4.cidera.com!newsfeed1.cidera.com!Cidera!newsf > eed.i > cl.net!newsfeed.fjserv.net!news-lond.gip.net!news-raspail.gip.net!news.gs > l.net > !gip.net!fr.clara.net!heighliner.fr.clara.net!news.tiscali.fr!proxad.net! > proxa > d.net!news-hub.cableinet.net!blueyonder!nntp2.aus1.giganews.com!nntp.giga > news. > com!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easy > news. com.POSTED!not-for-mail > From: cmac34 <cmac34@there.com> > User-Agent: Hogwasher/3.1 (Carbon/OSX) > Message-ID: <0001HW.B9EA230A0000A46905E10600@news.easynews.com> > Subject: 3/3 Kylie Wet T-Shirt - kylie003.jpg (1/1) [67K] > Newsgroups: > alt.binaries.tv.shaggable.babes,alt.binaries.videos.tv.shaggable-babes > .... > > -Rob -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Sun, 03 Nov 2002 05:43
Date: Sun, 03 Nov 2002 05:43
26 lines
2531 bytes
2531 bytes
In article <20021103001847.653$nw@newsreader.com>, Curt Welch wrote: > Yeah, it looks like a Hogwasher bug combined with a Diablo bug that's > causing it. One of the servers in those paths are probably a Diablo > server. When cmac34 posted the files, he typed a dot on a line by > itself for the text message that was inserted before the file. Hogwasher > it seems sends that to the NNTP server as "DOT LF" instead of "DOT CR LF". of course, what it _should_ have sent is "DOT DOT CR LF". Even if it had sent "DOT DOT LF", it wouldn't have caused this type of corruption, as far as I can see. > Diablo then takes articles like that and causes them to be truncated, > but the more I think about this, I don't know why Diablo does that. Older Diablo versions remove the CR, if any, from the input line and then check for "DOT LF" as the end-of-article delimiter. I would not be surprised if some other servers did similar things. The basic fact is that it's not safe to send bare LFs and expect them to survive intact, and it's _very_ unsafe to send lines starting with unescaped '.' and expect things not to get truncated at that point. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Rob Maxwell
Date: Sun, 03 Nov 2002 05:49
Date: Sun, 03 Nov 2002 05:49
30 lines
2478 bytes
2478 bytes
"Curt Welch" <curt@kcwc.com> wrote in message news:20021103001847.653$nw@newsreader.com... > "Rob Maxwell" <robu-san@excite.com> wrote: > > Looking into it, I have discovered more of these that don't go through > > visi.com.... > > Yeah, it looks like a Hogwasher bug combined with a Diablo bug that's > causing it. One of the servers in those paths are probably a Diablo > server. When cmac34 posted the files, he typed a dot on a line by > itself for the text message that was inserted before the file. Hogwasher > it seems sends that to the NNTP server as "DOT LF" instead of "DOT CR LF". > Diablo then takes articles like that and causes them to be truncated, > but the more I think about this, I don't know why Diablo does that. > > Maybe other news servers besides Diablo is getting confused as well by > it? I just sent a report to the Hogwasher guys about it. > Opps, I just sent one, too. > > > > -Rob > > -- > Curt Welch http://CurtWelch.Com/ > curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 05:58
Date: Sun, 03 Nov 2002 05:58
31 lines
2946 bytes
2946 bytes
andrew@supernews.com wrote: > Older Diablo versions remove the CR, if any, from the input line and then > check for "DOT LF" as the end-of-article delimiter. I don't have Diablo code laying around to check, but I'm pretty sure I remeber seeing code that looked for "CR LF DOT CR LF", in the input stream before the CR LF to LF translation happened so that wouldn't explain it. And most servers today get DOT LF CR LF correct, and will send it as DOT DOT LF CR LF. And Diablo, old or new, will strip off that leading DOT correctly when it's received. And when it's read from the spool file as DOT LF LF, I don't see why it would not be converted back to DOT DOT CR LF CR LF on transmission. And in the spool file, diablo didn't store the CR LF DOT CR LF as an end-of-article marker. That was removed and replaced with a single null byte. And even that was not used as the end of file marker, the size as recorded in the batch files were used to know where the article ends. So I'm now more confused than before about why Diablo would truncate the article there, or transmit it without doubling the dot to cause the next guy to truncate it. It's not surprising that this happened, I just don't think I understand why it happened yet. Someone needs to look at the Diablo code and see if they can explain this.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Sun, 03 Nov 2002 06:12
Date: Sun, 03 Nov 2002 06:12
39 lines
2898 bytes
2898 bytes
In article <20021103005855.983$iI@newsreader.com>, Curt Welch wrote: > andrew@supernews.com wrote: >> Older Diablo versions remove the CR, if any, from the input line and then >> check for "DOT LF" as the end-of-article delimiter. > > I don't have Diablo code laying around to check, but I'm pretty sure > I remeber seeing code that looked for "CR LF DOT CR LF", in the input > stream before the CR LF to LF translation happened so that wouldn't > explain it. I think you're confusing it with INN (which does do it that way) > And most servers today get DOT LF CR LF correct, and will send it as DOT > DOT LF CR LF. If the server receives DOT LF CR LF via nntp (rather than via a local file), then the article is already malformed and anything the server does with it is wrong (at least potentially). > And Diablo, old or new, will strip off that leading DOT > correctly when it's received. > > And when it's read from the spool file as DOT LF LF, the point is that Diablo will only put that in the spool file if what it actually received was DOT DOT CR? LF CR? LF. Even in the diablo4 snapshot I have handy, when in non-wireformat mode DOT LF is treated as the end-of-article delimiter. > It's not surprising that this happened, I just don't think I understand why > it happened yet. Someone needs to look at the Diablo code and see if they > can explain this.... that's exactly what I'm doing. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Sun, 03 Nov 2002 20:27
Date: Sun, 03 Nov 2002 20:27
96 lines
5461 bytes
5461 bytes
andrew@supernews.com wrote: > In article <20021103005855.983$iI@newsreader.com>, Curt Welch wrote: > > andrew@supernews.com wrote: > >> Older Diablo versions remove the CR, if any, from the input line and > >> then check for "DOT LF" as the end-of-article delimiter. > > > > I don't have Diablo code laying around to check, but I'm pretty sure > > I remeber seeing code that looked for "CR LF DOT CR LF", in the input > > stream before the CR LF to LF translation happened so that wouldn't > > explain it. > > I think you're confusing it with INN (which does do it that way) Yeah, I must have confused it with something because I found an old copy of Diablo (3.3) and it's not anything like the code I was thinking of. I don't know what I was thinking of... This 3.3 version of Diablo is seriously broken when it comes to it's ability to correctly parse an NNTP stream. It thinks NL terminates lines on NNTP, so if you send it X LF DOT DOT LF it will strip that first DOT off. That's just wrong. And like you say, if you send it LF DOT LF it thinks that is a valid end-of-stream marker. That's just wrong. > > And most servers today get DOT LF CR LF correct, and will send it as > > DOT DOT LF CR LF. > > If the server receives DOT LF CR LF via nntp (rather than via a local > file), then the article is already malformed and anything the server does > with it is wrong (at least potentially). You can debate the issue of whether the "article" is malformed, but the NNTP data stream is in no way malformed. Transfering data over NNTP is very simple and very well defined and DOT LF CR LF is not invalid for NNTP and should not break any NNTP server. If the server decides to drop the article because the server calls it "malformed", that's ok, but if it failes to parse the NNTP data stream correctly, it's just broken. NNTP data streams end with CR LF DOT CR LF and _nothing_ else. LF DOT LF is not a valid end of datastream marker for NNTP even though Diablo thinks it is. > > And Diablo, old or new, will strip off that leading DOT > > correctly when it's received. > > > > And when it's read from the spool file as DOT LF LF, > > the point is that Diablo will only put that in the spool file if what > it actually received was DOT DOT CR? LF CR? LF. Even in the diablo4 > snapshot I have handy, when in non-wireformat mode DOT LF is treated as > the end-of-article delimiter. In the code I'm looking, I don't understand where the bug is. The orginal article as far as I can tell, had a CR LF DOT LF CR LF sequence in it. Any normal server will send that by doubling the DOT as: CF LF DOT DOT LF CR LF With the 3.3 code I have, Diablo won't see that as an end-of-article marker because of the double dot. But it will incorrectly see the lone LF as an end of line marker. None the less, it will store that as: LF DOT LF LF In it's spool file. And when it sends it out again, it will also double the dot, but then transform the LF to CR LF, so it becomes: CF LF DOT DOT CR LF CR LF And from that point out, the article would be harmless (even though Diablo corrupted it by adding an extra CR to it). So the newer code of Diablo must be broken in a different way if the article was to get trucated at that DOT somehow. > > It's not surprising that this happened, I just don't think I understand > > why it happened yet. Someone needs to look at the Diablo code and see > > if they can explain this.... > > that's exactly what I'm doing. So what happens with the code you are looking at when Diablo receives: CR LF DOT DOT LF CR LF over the NNTP stream? When it's in "wire format" does it store the double dot to the file or not? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Mon, 04 Nov 2002 01:03
Date: Mon, 04 Nov 2002 01:03
72 lines
4843 bytes
4843 bytes
In article <20021103152721.486$ih@newsreader.com>, Curt Welch wrote: > This 3.3 version of Diablo is seriously broken when it comes to it's > ability to correctly parse an NNTP stream. It thinks NL terminates > lines on NNTP, so if you send it X LF DOT DOT LF it will strip that > first DOT off. That's just wrong. Since that's not a valid NNTP stream, then there is no "correct" way to parse it. Treating a bare LF as a line delimiter is just as good a way of handling the incorrectness as any other (_especially_ on an initial post, since clients screw that one up on a regular basis). >> If the server receives DOT LF CR LF via nntp (rather than via a local >> file), then the article is already malformed and anything the server does >> with it is wrong (at least potentially). > > You can debate the issue of whether the "article" is malformed, but the > NNTP data stream is in no way malformed. Transfering data over NNTP > is very simple and very well defined and DOT LF CR LF is not invalid > for NNTP and should not break any NNTP server. It's malformed BECAUSE THE DOT HAS NOT BEEN ESCAPED. A dot at the start of a line MUST be doubled, regardless of what you believe about bare LFs. As for the bare-LF issue, RFC 977 is not explicit on the subject, so we turn to the reference implementation, and find that it always treats LF as a line terminator, with or without the CR. The draft replacement for 977 explicitly forbids either CR or LF appearing alone. So where you get this insane idea of yours about bare LFs being valid, I have no idea; you may think that things would work better that way, but the actual real implementations and documentation disagrees. > In the code I'm looking, I don't understand where the bug is. The > orginal article as far as I can tell, had a > > CR LF DOT LF CR LF > > sequence in it. Any normal server will send that by doubling the DOT as: > > CF LF DOT DOT LF CR LF you're missing the point that the dot-doubling is _not_ done when the article was stored on disk in wire format (because the sending server is presumed to have done it). hermes.visi.com had stored on its spool a wireformat article containing CR LF DOT LF CR LF, which it had received exactly like that from easynews (and recent Diablo in wireformat mode does not recognise DOT LF as end-of-article). If it tries to send that out to another Diablo running in non-wireformat mode, or to a reference NNTP, then the article _will_ be truncated at that point (because it will be sent exactly as it was stored). > With the 3.3 code I have, Diablo won't see that as an end-of-article marker > because of the double dot. but it won't be sent a double dot. > So what happens with the code you are looking at when Diablo receives: > > CR LF DOT DOT LF CR LF > > over the NNTP stream? > > When it's in "wire format" does it store the double dot to the file or not? the whole point of "wire format" is that you store exactly what you receive, and exactly what you're going to send out again, without any changes to either the line endings or the dot-escapes. So it stores the double dot in the spool. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Someone is sending head-only articles out to Usenet????
Author: Jay Munsterman
Date: Mon, 04 Nov 2002 04:24
Date: Mon, 04 Nov 2002 04:24
14 lines
1524 bytes
1524 bytes
On Mon, 04 Nov 2002 03:31:23 +0000, Mike Horwath wrote: > > Now why others didn't get the messages from easynews via other paths... > that I can not answer. > > We aren't that cool... Actually, Mike, it would seem you are... -- Jay Munsterman Cox Data Operations
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Mon, 04 Nov 2002 05:56
Date: Mon, 04 Nov 2002 05:56
140 lines
8299 bytes
8299 bytes
andrew@supernews.com wrote: > In article <20021103152721.486$ih@newsreader.com>, Curt Welch wrote: > > This 3.3 version of Diablo is seriously broken when it comes to it's > > ability to correctly parse an NNTP stream. It thinks NL terminates > > lines on NNTP, so if you send it X LF DOT DOT LF it will strip that > > first DOT off. That's just wrong. > > 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 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. 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 but I still haven't been able to figure out what did that yet - maybe I'm just dense). The data in this problem, CR LF DOT LF CR LF is the data in the article, not the data sent over NNTP. And that's valid. When I fetch the article from easynews, --- of fuck, I see it now. I was dense... When I read the article from news.easynews.com, it sends the data back as: CR LF DOT LF CR LF without escaping the DOT as it should!!! So, the broken newsreader that posted the article probably both failed to dot escape the article correctly, and failed to terminate the line with a CR LF instead of just an LF. 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. I know my server would not detect that problem. It's a pure wire-format server and never checks to see if all leading dots are correctly followed by a second dot. > Treating a bare LF as a line delimiter is just as good a way of > handling the incorrectness as any other (_especially_ on an initial post, > since clients screw that one up on a regular basis). no, no, no. A bare LF should be treated as valid data. NNTP servers should not be line-orented when dealing with the data stream anyway. Once you have correctly parsed the data stream, and have an article, then it's fair to debate what should be done with a bare LF. But the low-level code that parses the NNTP stream should be 8 bit clean and have no problem passing pure binary data that conatins lone LFs, lone CRs, and NULLs, as well as all the other possible 8 bit characters. Dot stuffing must _only_ be done for CR LF DOT, not for just LF DOT, or CR DOT. 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. I'm going to go fix my server now.... > It's malformed BECAUSE THE DOT HAS NOT BEEN ESCAPED. Ok, I'm with you now. I assume it had been. I missed that all along in this discussion. And that's why I didn't see the dot at first and didn't get what your problem was with the "dot" in the article. The tool I used to download the article removed the leading dot so I never saw it. It was only later when I used a raw-download option that I saw the dot. > As for the bare-LF issue, RFC 977 is not explicit on the subject, so we > turn to the reference implementation, and find that it always treats LF > as a line terminator, with or without the CR. The draft replacement for > 977 explicitly forbids either CR or LF appearing alone. So where you get > this insane idea of yours about bare LFs being valid, I have no idea; you > may think that things would work better that way, but the actual real > implementations and documentation disagrees. It's just a matter of me being right and the rest of the world being wrong. :) But, all wire-format servers I know allow bare LF and bare CR and have no problems with it. It's clearly the right way to do it because it allows pure binary to be moved over usenet and there's really no reason not to do it that way. > you're missing the point that the dot-doubling is _not_ done when the > article was stored on disk in wire format (because the sending server is > presumed to have done it). hermes.visi.com had stored on its spool a > wireformat article containing CR LF DOT LF CR LF, which it had received > exactly like that from easynews (and recent Diablo in wireformat mode > does not recognise DOT LF as end-of-article). If it tries to send that > out to another Diablo running in non-wireformat mode, or to a reference > NNTP, then the article _will_ be truncated at that point (because it will > be sent exactly as it was stored). Yeah, I got it now. I just didn't see it because I _assumed_ dot escaping was being done correctly. > the whole point of "wire format" is that you store exactly what you > receive, and exactly what you're going to send out again, without any > changes to either the line endings or the dot-escapes. So it stores the > double dot in the spool. But, because of this security issue, we need to fix all the wire-format servers _now_. Any article which isn't correctly dot escaped needs to be rejected (or at least any article with a line begining with DOT LF). There might be too many articles without correct dot escaping floating around usenet already that filtering all of them might be an issue. But they should be rejected on POST, and at elast anything with DOT LF beginning a line should be dropped by all transit servers. Time to go code.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: 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
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Mon, 04 Nov 2002 09:12
Date: Mon, 04 Nov 2002 09:12
65 lines
4491 bytes
4491 bytes
andrew@supernews.com wrote: > 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. No, I'm not. You only think I'm saying that. CR LF DOT CR LF ends the data stream, but the first CR LF must be part of the the article becuse that's how NNTP works. This simply means you can send pure binary over NNTP with the only limitation being that the article must end with CR LF. Not perfect, but not something that can be "fixed" at this point without a protocol change. > (Adding or removing newlines may seem harmless ... Oh, I agree. It's not harmless and you can't change that without causing real probelms. I'm not talking about changing anything. I'm talking about how NNTP should be done everywhere and how it already is done on most of Usenet. > 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. Right, I'm with you now. I see all that. It was all obvious to me once I understood that Hogwasher was sending it without a dot escape in the first place. > > But that's not even the real problem here. The real problem, as I > > Have fun tracing where that stealth article came from. > > ooo. nice. If all the highwind servers allow this, we are in trouble. I've modified my server now to detect these and log them. Once I've finished testing hogwasher to confirm what it's doing, I'll change my servers to block posts, and to drop all articles in transit with the DOT LF danger. But that's not going to help the rest of Usenet much. Do you undertstand that this bug just made a few hundred or maybe a few thousand servers "open feed servers to the world"? And a variation will bring usent to it's knees? Usenet could be in big trouble here. > [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?) Do you understant that my security issue is not related to the "religious" part of the bare LF issue at all? If highwind servers allow you to post "CR LF DOT LF T" and transport it, Usenet is in trouble. And I think what just happened with this post on Easynews shows that the highwind servers do allow this. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Mon, 04 Nov 2002 09:57
Date: Mon, 04 Nov 2002 09:57
33 lines
3154 bytes
3154 bytes
In article <20021104041205.120$zl@newsreader.com>, Curt Welch wrote: > andrew@supernews.com wrote: >> 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. > > No, I'm not. You only think I'm saying that. CR LF DOT CR LF ends the > data stream, but the first CR LF must be part of the the article becuse > that's how NNTP works. This simply means you can send pure binary over > NNTP with the only limitation being that the article must end with CR LF. > Not perfect, but not something that can be "fixed" at this point without a > protocol change. ok, but it certainly seems to me that only a tiny minority of the data streams that people would _want_ to send over a pure-binary NNTP actually do end in CR LF. >> (Adding or removing newlines may seem harmless ... > > Oh, I agree. It's not harmless and you can't change that without causing > real probelms. I'm not talking about changing anything. I'm talking about > how NNTP should be done everywhere and how it already is done on most of > Usenet. for values of "most" that exclude not merely the reference NNTP but also all those non-wireformat Diablo servers, non-wireformat INN servers, POST command handling even on wireformat INN, and probably lots of other places that I don't know about. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Andrew - Supernews
Date: Mon, 04 Nov 2002 10:33
Date: Mon, 04 Nov 2002 10:33
16 lines
2331 bytes
2331 bytes
In article <20021104041205.120$zl@newsreader.com>, Curt Welch wrote: > Usenet could be in big trouble here. the time to think about that is _before_ posting the exploit in public :-) FWIW, it doesn't seem too hard to patch Diablo to cope with this. Adding a flag that indicates that the CR was removed, and then checking it after finding a possible delimiter, seems to cover the case of receiving such an article from a peer. I'd post a patch, but the Diablo-based code we run here (for transit) is probably too far diverged from the standard distribution for that to be very useful. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Juergen Helbing
Date: Tue, 05 Nov 2002 07:24
Date: Tue, 05 Nov 2002 07:24
52 lines
2987 bytes
2987 bytes
curt@kcwc.com (Curt Welch) wrote: >It's not surprising that this happened, I just don't think I understand why >it happened yet. Welcome to the "not documented section" of Usenet: Most programmers are having dificulties with the "double dot rule". It is - btw - an ugly trick to send out a single dot inside an article as DOT LF - which is not an article delimiter. And in most cases it would even work. Most NNTP-software is still having serious problems with the double dotting: Some sending clients do not double the dot when it is used in the last data line of an UUencoded message (length-indicator). This created millions of corrupt binary articles on Usenet in the last 10 years. Some receiving clients do not eliminate the double dot when they receive UUencoded messages. So they decode a wrong binary. And most of them are completely confused when such a single dotted line comes in. Some receiving clients do even store the double dots to harddisk when the function "store message as raw text". Some news-servers do still send out grouplists with a dot in the first column (first char of a groupname). Most news-servers accept posts with single dots in the first column followed by any text. They should reject them (or double the dot automatically during POST). Whoever is writing NNTP-software today must be prepared for all kind of such malformatted articles - and must handle them properly. But of course nobody does. And the NNTP spec is no help. :-( An unexpected side-effect of yEnc was that at least five programmers realized finally the problems in their software and fixed it. The CRC32 value detected some of those problems without mercy ;-) CU -- Juergen
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Tue, 05 Nov 2002 20:15
Date: Tue, 05 Nov 2002 20:15
90 lines
6602 bytes
6602 bytes
andrew@supernews.com wrote: > In article <20021103152721.486$ih@newsreader.com>, Curt Welch wrote: > It's malformed BECAUSE THE DOT HAS NOT BEEN ESCAPED. I was just bind to that being the source of the problem with the orginal post. You even shouted at me and I still didn't hear it. :) I had already made up my mind (incorrectly) that the problem was the LF following a DOT, and never realized there was a dot-stuffing problem with the article even though you were doing your best to point it out to me. These preconceived ideas can really blind you to the truth some times. > As for the bare-LF issue, RFC 977 is not explicit on the subject, so we > turn to the reference implementation ... I've re-read the RFCs now. It doesn't talk about a bare-lf, but it is very explicit on the subject of what what a line is and what terminates the data stream. ONLY CR LF is allowed to terminate a line, and ONLY CR LF DOT needs to be dot-stuffed, and ONLY CR LF DOT CR LF marks the end of an article. Diablo got all those wrong and is in clear violation of the RFC. And from what you say, the reference implementation got it wrong as well. If Diablo followed the RFC, there wouldn't be any problems with lone LFs. > The draft replacement for > 977 explicitly forbids either CR or LF appearing alone. Where is that? I have an August 1998 draft in front of me and and don't see it in there. Am I missing something? Is there an updated draft somewhere that has changed that now after 15 years? Many years back I had a long debate here with Matt (author of Diablo for those that don't know) about binary files over NNTP. His outlook was (and I assume still is) that Diablo already worked for that because to him, the Unix version of an article was "the standard" for Usenet. The only reason we converted LF to CR LF was to deal with the special requirements of NNTP (an internet standard which only used CR LF to match other internet standards which grew up out of other non-Unix OSs), and NNTP was just one of many transport options for Usenet and not "The standard for Usenet". The Usenet article as it appeared on a Unix box in an INN traditional spool was "the Usenet standard file" to Matt. If you wanted Usenet to support pure binay, you just put pure binary in the file (on a Unix system) and it "just worked". You still converted LF to CR LF when it was trasmitted over NNTP, and still converted CR LF pairs back to LF when you receive it. As long as everyone did this (and Diablo already did it, as well as INN), then binary over NNTP just worked. What's the big deal? He saw the CR LF <-> LF conversion as a conversion from NNTP to Usenet and to him, it was just an "NNTP" thing, not a Unix related issue at all. (Becaue the Unix version of the file was the Usenet standard). My arguement was that the Unix version of the file was no longer the right "Usenet standard"; and that the NNTP version of the article was now really the correct "Usenet Standard". As such, the CR LF <-> LF conversion was now just a "Unix Text File" issue (not an NNTP issue), and not something that someone writting an NNTP newsreader for a Mac would want to include in their code for dealing with "Binary Usenet Articles". But as Matt looked at this, it was something anyone reading Usenet articles from NNTP would do regardless of what the text file format of your OS might be, so of course, to extract a pure binary file from NNTP, you still had to do the CR LF to LF conversion. It's an interesting perspective. Our debate I belive started over the issue that Diablo was "broken" and prevented usenet from transporting binary over NNTP (because of the CR LF to LF conversions - I never caught on to the bigger LF DOT LF marker problem in all those debates). Matt of course was saying, "it's not broken", "it works now for transporting binay". i.e, the way I was talking about transporting pure-binary over NNTP was just wrong and pointless. Well, there's reason to support wire-format nntp servers regardless of your belief in what the "correct" format for binary usenet on NNTP is. But this whole LF DOT LF end-of-data marker problem and LF DOT dot-stuffing problem creates a whole new set of issues for that old debate. NNTP wire-format servers are still "a good thing" (they tend to support all options). But we are even further away from ever finding a way to transport pure binary over Usenet now. It looks to me like it's just never going to happen at this point. yEnc is about as dense a format as is practical for usenet. We might mange to replace yEnc with something better down the road, but replacing it with a format that allows pure binary looks like it may never happen at this point. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: greg andruk
Date: Tue, 05 Nov 2002 22:10
Date: Tue, 05 Nov 2002 22:10
24 lines
3085 bytes
3085 bytes
curt@kcwc.com (Curt Welch) wrote: > My arguement was that the Unix version of the file was no longer the right > "Usenet standard"; and that the NNTP version of the article was now really > the correct "Usenet Standard". It's not even a Unix vs. NNTP thing. One of the few details that are actually documented in RFC 1036 is that CRLF and LF are equivalent in article bodies. That's the UUCP rule, and it aplies to all articles for as long as UUCP is an accepted transmission format. The same thing is documented in RFC 850 with different wording, so it can't even be written off as a typo. It's intentionally ambiguous. > As such, the CR LF <-> LF conversion was > now just a "Unix Text File" issue (not an NNTP issue), and not something > that someone writting an NNTP newsreader for a Mac would want to include in > their code for dealing with "Binary Usenet Articles". For honest binary Usenet, a protocol extension (or different protocol) is required, as well as a way to tell RFC 1036 articles from the binary ones. Storing articles in NNTP format is a nice way to avoid a bunch of annoying string operations, but that' about it.
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Tue, 05 Nov 2002 22:50
Date: Tue, 05 Nov 2002 22:50
33 lines
3183 bytes
3183 bytes
curt@kcwc.com (Curt Welch) wrote:
> > The draft replacement for
> > 977 explicitly forbids either CR or LF appearing alone.
>
> Where is that? I have an August 1998 draft in front of me and and don't
> see it in there. Am I missing something? Is there an updated draft
> somewhere that has changed that now after 15 years?
Never mind. I found it. Yes, they wimped out and just make NULL, CR, and
LF illgeal. Fine, so it's offical, we aren't even going to try and make it
work now.
They also say:
"NOTE: Texts using an encoding (such as UTF-16 or UTF-32) that
may contain the NUL octet or the CR or LF octets in contexts
other than the CRLF line ending cannot be reliably conveyed
in the above format".
That's just so bogus and mis-guided. The "above format" works fine for
conveying those texts. It's the broken implementations of RFC 977 like
Diablo that won't allow those to be safely conveyed on NNTP. The only
thing the "above format" does is make it illegal. And if they instead made
it clear what the true problem was with some of the current broken
implementations, then we could be working to a day where those texts could
be safely transported. But as they have written it, they have just slamed
the door on a option that was nearly at hand on the NNTP side of Usenet
already.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Russ Allbery
Date: Tue, 05 Nov 2002 23:18
Date: Tue, 05 Nov 2002 23:18
33 lines
3094 bytes
3094 bytes
Curt Welch <curt@kcwc.com> writes:
> They also say:
> "NOTE: Texts using an encoding (such as UTF-16 or UTF-32) that
> may contain the NUL octet or the CR or LF octets in contexts
> other than the CRLF line ending cannot be reliably conveyed
> in the above format".
> That's just so bogus and mis-guided. The "above format" works fine for
> conveying those texts. It's the broken implementations of RFC 977 like
> Diablo that won't allow those to be safely conveyed on NNTP.
Given the widespread existence of such implementations and the number of
people who get this wrong, I think that practically the above statement is
correct even if a scrupulously correct implementation won't have
difficulty.
> But as they have written it, they have just slamed the door on a option
> that was nearly at hand on the NNTP side of Usenet already.
NUL isn't even close to working with existing software, and the NNTP
protocol requires that all articles end in CRLF. Those two together seem
pretty fatal for pure binary transport to me, without putting together a
separate set of commands that use a counted octet method of transferring
messages.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Wed, 06 Nov 2002 00:07
Date: Wed, 06 Nov 2002 00:07
81 lines
5467 bytes
5467 bytes
greg andruk <gja@meowing.net> wrote: > curt@kcwc.com (Curt Welch) wrote: > > > My arguement was that the Unix version of the file was no longer the > > right "Usenet standard"; and that the NNTP version of the article was > > now really the correct "Usenet Standard". > > It's not even a Unix vs. NNTP thing. One of the few details that are > actually documented in RFC 1036 is that CRLF and LF are equivalent in > article bodies. I think you need to re-read the RFCs. Maybe you are thinking of son-of-1036? 1036 (and 850 before it) says nothing other than to reference 822. And 822 defines lines very precisely as ending with CR LF and allowing lone CR and lone LF in the text. This however, like other issues with Usenet and standards, never fit common practice because LF is commonly used as the end of line character (but not commonly on NNTP). And the newest non-standard replacement for 1036 is usefor and they have gone back to the CR LF "definition" of a Usenet article. But like the NNTP draft, I believe they also have defined lone CR and lone LF out of the equation. But none of this is all that relevent because I wasn't debating Usenet article format issues, I was depanding only the NNTP and what a "correct" implementation should do. > That's the UUCP rule, and it aplies to all articles for > as long as UUCP is an accepted transmission format. The same thing is > documented in RFC 850 with different wording, so it can't even be written > off as a typo. It's intentionally ambiguous. What version of 1036 and 850 are you reading? Where is this documented? > > As such, the CR LF <-> LF conversion was > > now just a "Unix Text File" issue (not an NNTP issue), and not > > something that someone writting an NNTP newsreader for a Mac would want > > to include in their code for dealing with "Binary Usenet Articles". > > For honest binary Usenet, a protocol extension (or different protocol) is > required, It's not. NNTP (per all the RFCs except the latest draft which makes it illegal only by definition) moves binary fine. > as well as a way to tell RFC 1036 articles from the binary > ones. Pick a standard, any standard. There are many ways to do it. But, if you want one already documented: MIME Content-Type: multipart/mixed with a body-parts that have a Content-Transfer-Encoding: binary works fine over RFC-complient NNTP servers (like the Highwind servers) today. The only reason they don't work in practice is because we have a bunch of non RFC-complient NNTP servers out there like the pre-wire-format Diablo still running loose. But Diablo, the most commonly used server which didn't do NNTP correctly in the recent past has been mostly (completely?) fixed now with the wire-format changes. And, though I've never found the answer to this, I thought INN did NNTP correctly in innd but that nnrpd just has never been fixed, so posting binary articles though INN still can't work. But I have been told that even innd doesn't get it completely right but I don't know what that means. > Storing articles in NNTP format is a nice way to avoid a bunch of > annoying string operations, but that' about it. It's not an issue of what format you store it in, it's only an issue of how you interprete the bytes you move over an NNTP connection. And how the NNTP server stores it is not important either as long as it's able to re-transmit what it receives without corrupting the data (which pre-wire-format Diablo is not able to do). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: greg andruk
Date: Wed, 06 Nov 2002 00:39
Date: Wed, 06 Nov 2002 00:39
31 lines
3130 bytes
3130 bytes
curt@kcwc.com (Curt Welch) wrote:
>> That's the UUCP rule, and it aplies to all articles for
>> as long as UUCP is an accepted transmission format. The same thing is
>> documented in RFC 850 with different wording, so it can't even be written
>> off as a typo. It's intentionally ambiguous.
> What version of 1036 and 850 are you reading? Where is this documented?
In RFC 850, see part 4.3
number of bytes. (The newline at the end of each line of
the article is counted as one byte, for purposes of this
count, even if it is stored as CRLF.) For example, a batch
In RFC 1036, also in 4.3:
followed by a message containing the given number of bytes. (The
newline at the end of each line of the message is counted as one
byte, for purposes of this count, even if it is stored as <CARRIAGE
RETURN><LINE FEED>.) For example, a batch of message might look
There it is. In the rnews format, a newline is a single character, whether
it's transmitted as LF or CRLF.
This shouldn't be a big surprise, it's the same logic that went into having
separate text and binary modes for FTP.
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Wed, 06 Nov 2002 00:39
Date: Wed, 06 Nov 2002 00:39
61 lines
4576 bytes
4576 bytes
Russ Allbery <rra@stanford.edu> wrote: > Curt Welch <curt@kcwc.com> writes: > > > They also say: > > > "NOTE: Texts using an encoding (such as UTF-16 or UTF-32) that > > may contain the NUL octet or the CR or LF octets in contexts > > other than the CRLF line ending cannot be reliably conveyed > > in the above format". > > > That's just so bogus and mis-guided. The "above format" works fine for > > conveying those texts. It's the broken implementations of RFC 977 like > > Diablo that won't allow those to be safely conveyed on NNTP. > > Given the widespread existence of such implementations and the number of > people who get this wrong, I think that practically the above statement > is correct even if a scrupulously correct implementation won't have > difficulty. Yeah, I agree with most of that. But, if people started moving binary on a regular basis, all the "people who get this wrong", will very quickly learn their mistakes and start to get it right. The get it wrong so much now because there is no need to get it right. > > But as they have written it, they have just slamed the door on a option > > that was nearly at hand on the NNTP side of Usenet already. > > NUL isn't even close to working with existing software, NUL causes problems with huge number of newsreaders, but if you keep the NULs out of the headers do they cause problem on that many news servers? I didn't think so (other than nnrpd). There are 46,268 articles sitting on my server right now with NULs in them (that's a month's worth so we average over 1000 per day). They seem to me to be moving fairly well though Usenet. I don't feel we are as far from this as everything thinks. Can INN not move a file with NULs in the body? Now granted, the messages with NULs in them today happen to be 99% spam, and 1% garbage, but they show that the messages can and do move. Diablo does however seem to reject them by default. > and the NNTP > protocol requires that all articles end in CRLF. Those two together seem > pretty fatal for pure binary transport to me, without putting together a > separate set of commands that use a counted octet method of transferring > messages. MIME multipart/mixed with CTE of binary works. And that's only one of many possible ways to do it without the final CR LF causing a problem. I'm not bumbed about not being able to do binary on Usenet, but I just hate to see people keep implying it can't be done when it can. Or writting it off as too-hard when in fact it already works on a large segment of Usenet. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Curt Welch
Date: Wed, 06 Nov 2002 01:14
Date: Wed, 06 Nov 2002 01:14
49 lines
4005 bytes
4005 bytes
greg andruk <gja@meowing.net> wrote: > curt@kcwc.com (Curt Welch) wrote: > > >> That's the UUCP rule, and it aplies to all articles for > >> as long as UUCP is an accepted transmission format. The same thing is > >> documented in RFC 850 with different wording, so it can't even be > >> written off as a typo. It's intentionally ambiguous. > > > What version of 1036 and 850 are you reading? Where is this > > documented? > > In RFC 850, see part 4.3 > > number of bytes. (The newline at the end of each line of > the article is counted as one byte, for purposes of this > count, even if it is stored as CRLF.) For example, a batch > > In RFC 1036, also in 4.3: > > followed by a message containing the given number of bytes. (The > newline at the end of each line of the message is counted as one > byte, for purposes of this count, even if it is stored as <CARRIAGE > RETURN><LINE FEED>.) For example, a batch of message might look > > There it is. In the rnews format, a newline is a single character, > whether it's transmitted as LF or CRLF. :) You are right, this whole LF vs CR LF issue does creep into the RFC there. But still, it's in no way defining that "CRLF and LF are equivalent in article bodies" as you suggested. First, the comment is only in the context of a "suggested batch file format", and cannot without a huge stretch of the imaganation be transformed into the context of "all Usenet article bodies". And second, the comment isn't even about the the file format, it's about how to calcuate the size argument to the rnews command. The RFC doesn't even attempt to define what a "newline" is and only attempts to define that it's counted as "1 byte" in the size caclcualtion for the "batching scheme" descriped in section 4.3. Now I agree that what is left out of the RFC is well know in practice with batch files, but saying the RFC defines the END-OF-LINE convetion because of that comment is a real stretch. The RFC does no such thing. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: Russ Allbery
Date: Wed, 06 Nov 2002 01:53
Date: Wed, 06 Nov 2002 01:53
12 lines
2138 bytes
2138 bytes
Curt Welch <curt@kcwc.com> writes:
> Can INN not move a file with NULs in the body?
INN cannot move files with NULs in the body. Never could.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: There's more (was Re: Someone is sending head-only articles out to Usenet????
Author: greg andruk
Date: Wed, 06 Nov 2002 01:53
Date: Wed, 06 Nov 2002 01:53
36 lines
3650 bytes
3650 bytes
curt@kcwc.com (Curt Welch) wrote: > But still, it's in no way defining that "CRLF and LF are equivalent in > article bodies" as you suggested. First, the comment is only in the > context of a "suggested batch file format", Since that format is what virtually every news implementation -- including the reference implementation of NNTP -- used to get news onto the spool, it carries a lot of weight. > and cannot without a huge > stretch of the imaganation be transformed into the context of "all Usenet > article bodies". Of course it can. What possible reason would there be for such a count definition if not to account for things like telnet expansion (which is, of course, exactly why NNTP used CRLF instead of pure binary transmission)? > And second, the comment isn't even about the the file > format, it's about how to calcuate the size argument to the rnews command. > The RFC doesn't even attempt to define what a "newline" is and only > attempts to define that it's counted as "1 byte" in the size caclcualtion > for the "batching scheme" descriped in section 4.3. Well no, those old RFCs often didn't bother to state the obvious. The pseudolegalisms didn't really start creeping in until a bit later, with RFC 1123. > Now I agree that what is left out of the RFC is well know in practice with > batch files, but saying the RFC defines the END-OF-LINE convetion because > of that comment is a real stretch. The RFC does no such thing. For all intents and purposes, rnews was indeed the canonical wire format when those RFCs were written.
Re: There's more (was Re: Someone is sending head-only articles out to
Author: Kai Henningsen
Date: Sat, 09 Nov 2002 23:08
Date: Sat, 09 Nov 2002 23:08
21 lines
2085 bytes
2085 bytes
rra@stanford.edu (Russ Allbery) wrote on 05.11.02 in <ylu1ivfvvx.fsf@windlord.stanford.edu>: > NUL isn't even close to working with existing software, and the NNTP > protocol requires that all articles end in CRLF. Those two together seem > pretty fatal for pure binary transport to me, without putting together a > separate set of commands that use a counted octet method of transferring > messages. There's a reason my proposed hypothetical Usenet successor used a Content- Length: based variant of MIME - you get binary-cleanliness practically for free. Of course, that's not something you can easily fit into an existing system done to different rules ... Kai -- http://www.westfalen.de/private/khms/ "... by God I *KNOW* what this network is for, and you can't have it." - Russ Allbery (rra@stanford.edu)
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