[17590] in bugtraq

home help back first fref pref prev next nref lref last post

Re: BIND 8.2.2-P5 Possible DOS

daemon@ATHENA.MIT.EDU (Greg A. Woods)
Fri Nov 10 14:00:21 2000

Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id:  <20001109212308.AF9214@proven.weird.com>
Date:         Thu, 9 Nov 2000 16:23:08 -0500
Reply-To: "Greg A. Woods" <woods@weird.com>
From: "Greg A. Woods" <woods@WEIRD.COM>
X-To:         Akatosh <akatosh@RAINS.NET>
To: BUGTRAQ@SECURITYFOCUS.COM
In-Reply-To:  <Pine.LNX.4.10.10011081722270.11370-200000@flight.rains.net>

[ On Wednesday, November 8, 2000 at 17:29:15 (-0500), Akatosh wrote: ]
> Subject: Re: BIND 8.2.2-P5 Possible DOS
>
> attatched is my half-assed patch

I think this is all that's really necessary.  It's working so far for me
anyway....

Index: src/bin/named/ns_xfr.c
===================================================================
RCS file: /cvs/misc/bind8/src/bin/named/ns_xfr.c,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 ns_xfr.c
*** src/bin/named/ns_xfr.c	1999/11/11 06:06:09	1.1.1.3
--- src/bin/named/ns_xfr.c	2000/11/09 20:49:45
***************
*** 97,103 ****
  			   "unsupported XFR (type %s) of \"%s\" (%s) to %s",
  			p_type(type), zones[zone].z_origin, p_class(class),
  			sin_ntoa(qsp->s_from));
! 		goto abort;
  	}

  #ifdef SO_SNDBUF
--- 97,104 ----
  			   "unsupported XFR (type %s) of \"%s\" (%s) to %s",
  			p_type(type), zones[zone].z_origin, p_class(class),
  			sin_ntoa(qsp->s_from));
! 		(void) shutdown(qsp->s_rfd, 2);
! 		return;
  	}

  #ifdef SO_SNDBUF

--
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>

home help back first fref pref prev next nref lref last post