Article View: news.software.nntp
Article #19639Re: INN 1.5.1: Strcpy() considered harmful?
From: Miquel van Smoorenburg
Date: Fri, 25 Jul 1997 00:00
Date: Fri, 25 Jul 1997 00:00
51 lines
2163 bytes
2163 bytes
In article <5rap3k$6ac$1@comp.chem.msu.su>,
Yar Tikhiy <yar@comp.chem.msu.su> wrote:
>Hello everybody,
>
>The following text is just my humble opinion and I'd appreciate
>any corrections, comments and criticisms.
>
>As I've got sick of my uncertainty about the security holes
>I greped INN 1.5.1 sources for "strcpy" and "sprintf.*%s"
>(as I do not remember INN sources by heart yet) and then RTFS.
I did the same, but patched almost all of INN. Please check out my results at
http://miquels.www.cistron.nl/inn/
However I see one case in your patch that I overlooked (not sure if it
is a serious one) :
>***************
>*** 908,913 ****
> /* Send a quit and close down */
> SendQuit(FromServer, ToServer);
> if (idbuff)
>! (void)strcpy(idbuff, HDR(_messageid));
> return NULL;
> }
>--- 909,922 ----
> /* Send a quit and close down */
> SendQuit(FromServer, ToServer);
> if (idbuff)
>! {
>! /*
>! * XXX A lame hack:
>! * the knowledge about idbuff size is external to the current
>! * function. However, the function is called only once.
>! */
>! (void)strncpy(idbuff, HDR(_messageid), SMBUF-1);
>! idbuff[SMBUF-1]='\0';
>! }
> return NULL;
> }
I'll add this to my patch now. Thanks.
Mike.
--
| Miquel van Smoorenburg | |
| miquels@cistron.nl | RAM DISK is NOT an installation procedure!!! |
| PGP fingerprint: FE 66 52 4F CD 59 A5 36 7F 39 8B 20 F1 D6 74 02 |
Technical Details
Message-ID:
<5raubo$99d$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-mailReferences:
<5rap3k$6ac$1@comp.chem.msu.su>Show Full Headers
Complete Article Headers
Message-ID: <5raubo$99d$1@holodeck.cistron.nl> Subject: Re: INN 1.5.1: Strcpy() considered harmful? Date: Fri, 25 Jul 1997 00:00:00 +0000 From: miquels@cistron.nl (Miquel van Smoorenburg) References: <5rap3k$6ac$1@comp.chem.msu.su> 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: 258798063 X-Server-Date: 25 Jul 1997 19:21:18 GMT Organization: Cistron Internet Services B.V. Newsgroups: news.software.nntp