From owner-cvs-all Sun Dec 17 19:51:16 2000 From owner-cvs-all@FreeBSD.ORG Sun Dec 17 19:51:13 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id B811D37B400; Sun, 17 Dec 2000 19:51:12 -0800 (PST) Received: from whizzo.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.1/8.11.0) with ESMTP id eBI3lc517024; Sun, 17 Dec 2000 22:47:39 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200012180347.eBI3lc517024@whizzo.transsys.com> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: "David Schwartz" Cc: "Poul-Henning Kamp" , "Kris Kennaway" , cvs-all@FreeBSD.ORG, security-officer@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: cvs commit: src/sys/netinet ip_icmp.c tcp_subr.c tcp_var.h References: In-reply-to: Your message of "Sun, 17 Dec 2000 16:23:46 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 17 Dec 2000 22:47:38 -0500 Sender: louie@TransSys.COM Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The historical reason for why you'd only want to react to an ICMP destination unreachable on SYN segments is so that intermittant routing failures don't kill your connection. It was reasonable to assume that a destination unreachable on the SYN segment probably meant that there was no path to the host you were trying to connect to, and you might as well give up. If you managed to open the connection, than an unreachable was likely to be transient in nature. This made sense when most ICMP destination unreachable messages were due to "route to host" or "route to network" doesn't exist reasons. Today, they also include these pesky "administratively unreachable" message types. Perhaps there needs to be an addition of a new PRC_ message type to encode the "administratively unreachable" semantic seperately from a routing failure type error? louie > > Since we only react to this in "SYN-SENT" I think the window of > > opportunity is rather small in the first place... > > That assumes you don't know exactly when and where a machine is going to > make a particular connection attempt. But there are security-critical tests > wherein the attacker would know this exact information. > > Consider, for example, an ident check. When I connect to you, I know you > are immediately going to make an outbound connection to a particular IP and > port. Similar arguments could be made about NIS. The same goes for proxy > checking. Consider a chat server immediately after a split. I'm sure others > could think of more (and more serious) examples. > > My understanding was that modern operating systems do not follow the RFC in > this respect. They simply store the information and use it to (possibly) > modify the error code they return when/if the connection attempt fails. > > DS > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe cvs-all" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message