Article View: news.software.nntp
Article #19600Re: ANNOUNCE: INN 1.5.1 buffer overflow patch
From: Forrest J. Cavalier III
Date: Thu, 24 Jul 1997 00:00
Date: Thu, 24 Jul 1997 00:00
65 lines
2950 bytes
2950 bytes
In article <5r81l9$27j$1@holodeck.cistron.nl>, miquels@cistron.nl wrote... > >Okay, I sat down for a couple of hours and looked at all the >strcpy/strcat/sprintf calls in inn-1.5.1. If fixed them all, and a >patch is available (for free) at > > http://miquels.www.cistron.nl/inn/ > >NOTE that I'm not quite sure this fixes all holes, as noone has posted a >description of all vulnerabilities (but I suspect noone has one). Another >thing is that yes we are running with this patch but only since 10 minutes :) >However it seemed important enough to me to announce this NOW. It probably does not fix all the holes, even if it only takes several hours to find and fix the vulnerabilities. (A big if: there are a lot of them.) I'm several hours into sorting out the diffs between 1.5.1 and 1.6b2. innd/art.c is finished. The differences are characterized as follows: 1. String Limit defect fixes 2. Other defect fixes 3. Comment changes which do not change executable code. 4. Unnecessary String limit defect fixes 5. Feature Enhancements (XREF slaving, lowmark, etc.) 6. String Limit defect fixes which are in themselves defective. As an example of category number 6, there is code in innd/cc.c CCmode() #ifndef INN1P6SD p += strlen(strcpy(p, "running")); #else /* INN1P6SD */ p += strlen(strncpy(p, "running", sizeof(buff) - strlen(buff) - 1)); buff[sizeof(buff) - 1] = '\0'; #endif /* INN1P6SD */ This is a basic mistake: You can't strlen a strncpy result. The null terminating assignment happens too late. (This is actually in a place where p is KNOWN to be large enough, so this new bug is latent or untriggerable.) Still, this indicates to me that not enough time was spent approving the new changes. I creating separate patch sets for 1.5.1 which include groupings of the above. Initially these will be available only for a subscription fee. Eventually, they will be freely available. These patch sets will permit fixing of holes in 1.5.1, as well as inspecting for new holes. I expect them to be ready sometime next week, although if you want to help, e-mail me. Forrest Cavalier, Mib Software, INN customization and consulting BTW, the appropriate change would have been: buff[sizeof(buff) - 1] = '\0'; p += strlen(strncpy(p, "running", sizeof(buff) - strlen(buff) - 2));
Technical Details
Message-ID:
<5r8944$7d3$1@news1.epix.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!not-for-mailReferences:
<5r81l9$27j$1@holodeck.cistron.nl>Show Full Headers
Complete Article Headers
Message-ID: <5r8944$7d3$1@news1.epix.net> Subject: Re: ANNOUNCE: INN 1.5.1 buffer overflow patch Date: Thu, 24 Jul 1997 00:00:00 +0000 From: mibsoft@epix.net (Forrest J. Cavalier III) References: <5r81l9$27j$1@holodeck.cistron.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 258546211 Organization: Mib Software Newsgroups: news.software.nntp