Re: [DNSOP] A draft about the Name:Wreck problem draft-dashevskyi-dnsrr-antipatterns

Tony Finch <dot@dotat.at> Wed, 14 April 2021 21:17 UTC

Return-Path: <fanf2@hermes.cam.ac.uk>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3FA4D3A203F for <dnsop@ietfa.amsl.com>; Wed, 14 Apr 2021 14:17:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.971
X-Spam-Level:
X-Spam-Status: No, score=-3.971 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23E1xQfRoeOM for <dnsop@ietfa.amsl.com>; Wed, 14 Apr 2021 14:17:37 -0700 (PDT)
Received: from ppsw-32.csi.cam.ac.uk (ppsw-32.csi.cam.ac.uk [131.111.8.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D8ED3A2041 for <dnsop@ietf.org>; Wed, 14 Apr 2021 14:17:37 -0700 (PDT)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from [84.9.76.236] (port=52036 helo=milebook.lan) by ppsw-32.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:25) with esmtpsa (PLAIN:fanf2) (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lWmtA-000r6g-1Y (Exim 4.94) (return-path <fanf2@hermes.cam.ac.uk>); Wed, 14 Apr 2021 22:17:32 +0100
Date: Wed, 14 Apr 2021 22:17:32 +0100
From: Tony Finch <dot@dotat.at>
To: John Levine <johnl@taugh.com>
cc: dnsop@ietf.org
In-Reply-To: <20210414133641.A18B572E0509@ary.qy>
Message-ID: <59df7967-2fef-371a-4d34-4c8efec74ca0@dotat.at>
References: <20210414133641.A18B572E0509@ary.qy>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Sender: Tony Finch <fanf2@hermes.cam.ac.uk>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/166_BacMe1y8YNhXhEXmiz2JN2I>
Subject: Re: [DNSOP] A draft about the Name:Wreck problem draft-dashevskyi-dnsrr-antipatterns
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Apr 2021 21:17:43 -0000

John Levine <johnl@taugh.com> wrote:
>
> On the other hand, all of the sloppy coding people use to handle
> compressed names is embarassing.

I don't think it's entirely fair to blame the coders who make these
mistakes, because a very large number of excellent programmers have made a
mess of DNS name decompression. When I find out about new DNS code the
first thing I do is look at the name parser to see if it successfully
avoids these traps and pitfalls, because it's a good indication that the
programmer has learned from their own or others' mistakes, or has much
greater than average ability to write attack-resistant parsers.

It seems worthwhile to try to help future coders not to mess it up.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  https://dotat.at/
Gibraltar Point to North Foreland: Northerly or northeasterly 3 to 5.
Smooth or slight becoming slight or moderate. Showers. Good.