Re: [dmarc-ietf] What bad stuff can a broken DMARC record cause?

John Levine <johnl@taugh.com> Mon, 25 April 2022 00:18 UTC

Return-Path: <johnl@iecc.com>
X-Original-To: dmarc@ietfa.amsl.com
Delivered-To: dmarc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 273353A1C42 for <dmarc@ietfa.amsl.com>; Sun, 24 Apr 2022 17:18:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.862
X-Spam-Level:
X-Spam-Status: No, score=-1.862 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=iecc.com header.b=C6YAZ6CC; dkim=pass (2048-bit key) header.d=taugh.com header.b=sN6ea0ad
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 QoCSwmi48cBV for <dmarc@ietfa.amsl.com>; Sun, 24 Apr 2022 17:18:39 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (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 D4EF23A1943 for <dmarc@ietf.org>; Sun, 24 Apr 2022 17:18:26 -0700 (PDT)
Received: (qmail 41207 invoked from network); 25 Apr 2022 00:18:24 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=a0f5.6265e8d0.k2204; bh=yckq6JU303frTsqQtB1Na4ALFpVMWE/atHMu0rJCRfY=; b=C6YAZ6CCB3P2E4z9h3WbjXj6XFZi/HQzterB32m2irnlUidsm1mP6btNCmlJqSHYlE8P0TV/o4ytAmE5PXXWkHTck/Y1iFndiChqP6Ca5u4q22BKTFouW4DVllOy3DKUAqzBvEBFwnr0LulyISCkh9A21EpydObXsgCGLTD54S/33P/9A6cEi+lJA4x/i/fgyvGCrcrmqKAkEiChiwzAME6/9L1m6JwyO0Luows1vXWDlSsdsdXVMJ4Bwk2RnMe6/3XyV2cR0QNsxz9sK0JwEhJXd5f8EYvIXXsLQG9QSAxrOPULVWWLafEHEgUWcnYPdmFCRhH/igATr+qUjrFOYA==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=a0f5.6265e8d0.k2204; bh=yckq6JU303frTsqQtB1Na4ALFpVMWE/atHMu0rJCRfY=; b=sN6ea0adFX0McFiQevB27Tyi3GsM2P74joPyb+hCEuBtr6EBJw0Q9jA3U4XW87pQPOUm1FkufZB+TbIJdrJk9Rj8SdHZqYXSVubNkwOGCIYg7kwExahGv6MWzvqI0CQRo2U/3zlV51A1rkotVLvgwYadUKEdCdzbhcfuJZyRgNbMqqmuxT65tmVv5zw1Z4k0fLFcDnh1tVj2T2/grilUdffmiIo0o1o8he4YPMPI9nvJ/nhPrHaucR+75gpvJVtCMxAk3lh8thkOOcvQy+w6q3QkJ5+Z9pa7Z4w+n//sr6rZX1IFjjUy/xyq8x51ZTDSXhwrb+x+DeV2qSFlqTjr+g==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 25 Apr 2022 00:18:24 -0000
Received: by ary.qy (Postfix, from userid 501) id 500B73E77047; Sun, 24 Apr 2022 20:18:22 -0400 (EDT)
Date: Sun, 24 Apr 2022 20:18:22 -0400
Message-Id: <20220425001824.500B73E77047@ary.qy>
From: John Levine <johnl@taugh.com>
To: dmarc@ietf.org
Cc: zwicky@otoh.org
In-Reply-To: <76FF8914-6A3D-4220-88F6-DB7974E8DA2B@otoh.org>
Organization: Taughannock Networks
X-Headerized: yes
Cleverness: minimal
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/SEwEh8GdnMP5miApLa5r6zU6364>
Subject: Re: [dmarc-ietf] What bad stuff can a broken DMARC record cause?
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Domain-based Message Authentication, Reporting, and Compliance \(DMARC\)" <dmarc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dmarc>, <mailto:dmarc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dmarc/>
List-Post: <mailto:dmarc@ietf.org>
List-Help: <mailto:dmarc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dmarc>, <mailto:dmarc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Apr 2022 00:18:44 -0000

It appears that Elizabeth Zwicky  <zwicky@otoh.org> said:
>
>Lots of people have wildcard TXT records which mean that if you look up a DMARC record you get an SPF record. They get the delivery they’d get with no
>DMARC record on the systems I know about and it doesn’t seem to annoy them enough to make them stop, which is reasonable evidence it doesn’t make a
>difference they can perceive elsewhere. 

Good thought but I was more wondering about the sort of mistakes an
inept sysadmin would make in configuring DMARC records. I have also
never seen anything break due to junk records.

An interesting paper in the 2020 USENIX security symposium found a lot of bugs using carefully crafted
malicious data with stuff like null bytes in domain names that look like the end of a string in C code
but not in other languages but again, in this case I'm wondering about ineptness, not malice.

R's,
John

>Elizabeth 
>
>> On Apr 24, 2022, at 11:38 AM, John R Levine <johnl@taugh.com> wrote:
>> 
>> Someone I know asked me what sort of bad things could happen if one published a broken DMARC record.  Obviously, if your record is bad people won't
>follow your policies and you won't get your reports, but anything else?  Have you ever heard of MTAs burping on a bad DMARC record?
>> 
>> I've looked at the C OpenDMARC and perl Mail::DMARC libraries and they both seem pretty sturdy: fetch a TXT record and if they find one, look for the
>tags they want and ignore everything else.
>> 
>> As an experiment, I added 32K of junk to the _dmarc.johnlevine.com TXT record and as far as I can tell, it's made no difference.  I still get the same
>reports saying the same things.  DNS libraries need to use TCP to fetch it but they all seem able to do that.