Thread View: news.software.nntp
7 messages
7 total messages
Started by Joe Greco
Thu, 09 Oct 1997 00:00
More luser "long newgroup's" issued
Author: Joe Greco
Date: Thu, 09 Oct 1997 00:00
Date: Thu, 09 Oct 1997 00:00
8 lines
662 bytes
662 bytes
Some luser at Sympatico is issuing newgroup's to crash INN. Data at http://www.nntp.sol.net/wanker ... JG
Re: More luser "long newgroup's" issued
Author: Steve Howie
Date: Fri, 10 Oct 1997 00:00
Date: Fri, 10 Oct 1997 00:00
39 lines
2446 bytes
2446 bytes
Joe Greco <jgreco@ns.sol.net> wrote: >In news.software.nntp article <61jna5$1jv$1@earth.execpc.com>, jgreco@ns.sol.net (Joe Greco) wrote: >:Some luser at Sympatico is issuing newgroup's to crash INN. >: >:Data at http://www.nntp.sol.net/wanker >More data posted. >Interestingly (I thought): >41392:Path: newspump.sol.net!wnfeed!worldnet.att.net!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail >41445:Path: newspump.sol.net!howland.erols.net!newsfeed.internetmci.com!206.172.150.11!news1.bellglobal.com!sympatico.ca!not-for-mail >41446:Path: newsfeeds.sol.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail >41450:Path: newsfeeds.sol.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail >41452:Path: newsfeeds.sol.net!news.pagesat.net!news.he.net!Supernews60!supernews.com!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail >41453:Path: newsfeeds.sol.net!news.pagesat.net!news.he.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail >I noticed that these all came via "news1.bellglobal.com". The note at the >bottom of #41450 made me wonder if perhaps the sympatico.ca part was forged, >although everything else I checked seems to "check out". Joe, The address 'sympatico.ca' is the ISP wing of Bell Canada, so it probably is a valid path. I think this wingnut is definitely too stupid to cover his tracks. Set your alt.* newgroup control processing to mail, then apply the patch posted in news.software.nntp yesterday Scotty -- Steve Howie Netnews and Listserv Admin University of Guelph
Re: More luser "long newgroup's" issued
Author: Joe Greco
Date: Fri, 10 Oct 1997 00:00
Date: Fri, 10 Oct 1997 00:00
24 lines
2028 bytes
2028 bytes
In news.software.nntp article <61jna5$1jv$1@earth.execpc.com>, jgreco@ns.sol.net (Joe Greco) wrote: :Some luser at Sympatico is issuing newgroup's to crash INN. : :Data at http://www.nntp.sol.net/wanker More data posted. Interestingly (I thought): 41392:Path: newspump.sol.net!wnfeed!worldnet.att.net!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail 41445:Path: newspump.sol.net!howland.erols.net!newsfeed.internetmci.com!206.172.150.11!news1.bellglobal.com!sympatico.ca!not-for-mail 41446:Path: newsfeeds.sol.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail 41450:Path: newsfeeds.sol.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail 41452:Path: newsfeeds.sol.net!news.pagesat.net!news.he.net!Supernews60!supernews.com!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail 41453:Path: newsfeeds.sol.net!news.pagesat.net!news.he.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.bellglobal.com!sympatico.ca!not-for-mail I noticed that these all came via "news1.bellglobal.com". The note at the bottom of #41450 made me wonder if perhaps the sympatico.ca part was forged, although everything else I checked seems to "check out". ... JG
Re: More luser "long newgroup's" issued
Author: Steve Howie
Date: Sat, 11 Oct 1997 00:00
Date: Sat, 11 Oct 1997 00:00
28 lines
1372 bytes
1372 bytes
Steve Howie <showie@uoguelph.ca> wrote: >Joe Greco <jgreco@ns.sol.net> wrote: [ ... ] >>I noticed that these all came via "news1.bellglobal.com". The note at the >>bottom of #41450 made me wonder if perhaps the sympatico.ca part was forged, >>although everything else I checked seems to "check out". >Joe, >The address 'sympatico.ca' is the ISP wing of Bell Canada, so it probably >is a valid path. I think this wingnut is definitely too stupid to cover >his tracks. Our buddy Jeffrey Hunt was still trying to crash servers as of Friday evening at 9:00 pm. Hopefully sympatico.ca will have yanked his account before Monday. Scotty -- Steve Howie Netnews and Listserv Admin University of Guelph
Re: More luser "long newgroup's" issued
Author: Doug Ledford
Date: Sun, 12 Oct 1997 00:00
Date: Sun, 12 Oct 1997 00:00
73 lines
4352 bytes
4352 bytes
Chris Caputo (ccaputo@alt.net) wrote:
: jgreco@ns.sol.net (Joe Greco) writes:
: >Some luser at Sympatico is issuing newgroup's to crash INN.
: >Data at http://www.nntp.sol.net/wanker
: I couldn't get to your page, but here's a patch for the bug. Best to
: apply manually since it is intended for multiple versions of INN.
While applying this patch manually to inn-1.6b3, I think I've found a
more general (and problematic) error in programming. The patch should
fix the problem of overrunning the active.times buffer space, but does
nothing for the actual ICDnewgroup call. As it turns out, there is an
error there as well, and if it (as I suspect) is prevelant throughout
the inn-1.6b3 sources, repairs of this error will take some time. Let
me expound a bit, take the following code snippet from icd.c:
char buff[SMBUF];
IOVEC iov[2];
BOOL ret;
/* Set up the scatter/gather vectors. */
if (strlen(Name) + strlen(Rest) > (SIZE_T)(SMBUF - 24)) {
syslog(L_ERROR, "%s too_long %s", LogName, MaxLength(Name, Name));
return FALSE;
}
(void)snprintf(buff, sizeof(buff),
"%s 0000000000 0000000001 %s\n", Name, Rest);
ICDiovset(&iov[0], ICDactpointer, ICDactsize);
ICDiovset(&iov[1], buff, strlen(buff));
ret = ICDwritevactive(iov, 2);
ICDiovrelease(&iov[0]);
ICDiovrelease(&iov[1]);
return ret;
There are two key things to note here. First, the check for strlen(Name) +
strlen(Rest) being > SMBUF - 24. Second, note that the number of characters
added to those two strings during the snprintf() statement counts out to
exactly 24. This means that if strlen(Name) + strlen(Rest) == SMBUF - 24,
then the test fails, we perform the snprintf (with no buffer overflow as
intended), then we proceed further on. However, since the number of
characters added was 24, and SMBUF only had 24 characters to spare, we end
up with no NULL terminator. Not so bad, until two lines later when we
set an IOVEC based upon strlen(buff). Without the NULL terminator, and
having already done an iovset on iov[0], we are gauranteed that the strlen
will return a value larger than SMBUF. We are then gauranteed to corrupt
our active file. Nice.
Depending on how prevelant this type of error is in 1.6b3, there are a
large number of ways a person could corrupt files and crash servers by
simply doing something like a newgroup with a group name of SMBUF - 25
bytes and a single char Rest. With a standard SMBUF of 256 bytes then,
a newgroup of 231 characters plus the y flag would result in a corrupted
active file.
Now, since the concept of snprintf(buff, sizeof(buff)...) followed by a
strlen(buff) is common (and needed in order to keep the strings from
always being SMBUF or whatever length in size), then a person must take
care to ensure that the buff is always NULL terminated or the strlen()
can have some very unwanted side effects.
--
*****************************************************************************
* Doug Ledford * Unix, Novell, Dos, Windows 3.x, *
* dledford@dialnet.net 873-DIAL * WfW, Windows 95 & NT Technician *
* PPP access $14.95/month *****************************************
* Springfield, MO and surrounding * Usenet news, e-mail and shell account.*
* communities. Sign-up online at * Web page creation and hosting, other *
* 873-9000 V.34 * services available, call for info. *
*****************************************************************************
Re: More luser "long newgroup's" issued
Author: Doug Ledford
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
43 lines
3077 bytes
3077 bytes
Marc Slemko (marcs@znep.com) wrote: : In <61r9cm$vhb$1@news.dialnet.net> dledford@news.dialnet.net (Doug Ledford) writes: : [...] : >exactly 24. This means that if strlen(Name) + strlen(Rest) == SMBUF - 24, : >then the test fails, we perform the snprintf (with no buffer overflow as : >intended), then we proceed further on. However, since the number of : >characters added was 24, and SMBUF only had 24 characters to spare, we end : >up with no NULL terminator. Not so bad, until two lines later when we : >set an IOVEC based upon strlen(buff). Without the NULL terminator, and : >having already done an iovset on iov[0], we are gauranteed that the strlen : >will return a value larger than SMBUF. We are then gauranteed to corrupt : >our active file. Nice. : No. snprintf() always adds a null terminator. : strncpy doesn't. I stand corrected, however, that doesn't change the fact that something just got chopped in this instance. If we include the NULL terminator, then we now have the problem of not everything fitting, which very well could be our terminating new line for the active file, which isn't a much better solution than what we had before (depending on the particular function where this happens, the problem could be worse if the code that later reads this file depends upon that newline, such as the active file code does). So, what happens when you get several of the large groups in a row, then you get an active file with multiple entries on a single line and still have a corrupted file as far as Inn is concerned. So, it gets NULL terminated, at the expense of losing one character, and still isn't correct. -- ***************************************************************************** * Doug Ledford * Unix, Novell, Dos, Windows 3.x, * * dledford@dialnet.net 873-DIAL * WfW, Windows 95 & NT Technician * * PPP access $14.95/month ***************************************** * Springfield, MO and surrounding * Usenet news, e-mail and shell account.* * communities. Sign-up online at * Web page creation and hosting, other * * 873-9000 V.34 * services available, call for info. * *****************************************************************************
Re: More luser "long newgroup's" issued
Author: Marc Slemko
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
23 lines
1653 bytes
1653 bytes
In <61r9cm$vhb$1@news.dialnet.net> dledford@news.dialnet.net (Doug Ledford) writes: [...] >There are two key things to note here. First, the check for strlen(Name) + >strlen(Rest) being > SMBUF - 24. Second, note that the number of characters >added to those two strings during the snprintf() statement counts out to >exactly 24. This means that if strlen(Name) + strlen(Rest) == SMBUF - 24, >then the test fails, we perform the snprintf (with no buffer overflow as >intended), then we proceed further on. However, since the number of >characters added was 24, and SMBUF only had 24 characters to spare, we end >up with no NULL terminator. Not so bad, until two lines later when we >set an IOVEC based upon strlen(buff). Without the NULL terminator, and >having already done an iovset on iov[0], we are gauranteed that the strlen >will return a value larger than SMBUF. We are then gauranteed to corrupt >our active file. Nice. No. snprintf() always adds a null terminator. strncpy doesn't.
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