Re: [dmarc-ietf] Nitpicky questions about DMARC record syntax

Vladimir Dubrovin <dubrovin@corp.mail.ru> Wed, 16 January 2019 21:50 UTC

Return-Path: <dubrovin@corp.mail.ru>
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 279421311C4 for <dmarc@ietfa.amsl.com>; Wed, 16 Jan 2019 13:50:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.841
X-Spam-Level:
X-Spam-Status: No, score=-2.841 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=corp.mail.ru
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 Z6WJsqeuTvlC for <dmarc@ietfa.amsl.com>; Wed, 16 Jan 2019 13:50:14 -0800 (PST)
Received: from smtp48.i.mail.ru (smtp48.i.mail.ru [94.100.177.108]) (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 66200130ECE for <dmarc@ietf.org>; Wed, 16 Jan 2019 13:50:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=corp.mail.ru; s=mail; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=giBZM8W1NJEOrPBSirc+P91Vuu2++LrSrgMIdsLCc0c=; b=LTyo9PifDaksnp5hyYhvUuat+UTUjTRviOyo7aLlXaoyyQ3PnS9oZYIhvJPDUTcx5Gtuc5thW+1Vyv+KY5CHRBauHSeMmUPvcM4CvPHkS+ut/Y0xEbByoF01KrsNYAVqbkGrd/8mkzDsouYNeIdsCdbgRQTiJaXyqz2VyoZzWCc=;
Received: by smtp48.i.mail.ru with esmtpa (envelope-from <dubrovin@corp.mail.ru>) id 1gjt4c-0003xI-99; Thu, 17 Jan 2019 00:50:10 +0300
To: Grant Taylor <gtaylor=40tnetconsulting.net@dmarc.ietf.org>, dmarc@ietf.org
References: <20190116005804.A0A80200CACDA9@ary.qy> <b6d9024b-8a88-66fb-cfe7-800ee463c01c@gmail.com> <alpine.OSX.2.21.1901161029520.36401@ary.qy> <babe5ec6-9ceb-c7e1-1758-8dc20d116b55@gmail.com> <alpine.OSX.2.21.1901161050550.36401@ary.qy> <CABuGu1oqy8NxfpCZOu0v-z2D2MmZUfD43B3diGZ0xQtNwPD8EQ@mail.gmail.com> <alpine.OSX.2.21.1901161222030.38502@ary.qy> <11a5d635-a16b-17b9-0ba6-7713b8f169e2@spamtrap.tnetconsulting.net>
From: Vladimir Dubrovin <dubrovin@corp.mail.ru>
Openpgp: preference=signencrypt
Autocrypt: addr=dubrovin@corp.mail.ru; prefer-encrypt=mutual; keydata= mQINBFkuo0YBEADhYgaiCbZjws9eRBKJAYMIeuo9x6cArdmG5lcDgyVrtIPz/7MGL/HJua0v xKJtfhk77fb2YKcJvIdCf6HMoJfU412Y/5Bjq7eLmXTBsf7KmpQ9Z6auYujrzLCEb6gHC4gp gauesj6+igIyd8YULbbbCieIht7FVEIQv1Hn6F3eIok6wC3UJi2gEUiRbN4p5fw1RI5IB8yJ /4iFTtZi2iKUvSxZt/6eMAGNYm+OrFFGSfCP6l3uD93ZO3M9x8TluMXXrUQM6J190LOUUeh7 jGklgyUxrJXi44pRLFMbirrBcCQwEcY/lpUb1tvq2Ohb9nhBFBWLoJ1Kplxpi9ueXAsNJ7zw K1R15EElpIYQEmXM7t3dv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V47FK8BeBZdfrbqyz9fJMPQuV8esA3ucRP5gwDY S4z8QiofEfkPZ0V3ldGnpjJyCXdeYzMFgA/+cTmTO0lAA96+zB0Z/gcNwL/Nq1bX6P31mPsC PrBjlOUUCCBgek4D//oUKzoBF2YPQeMsqt7PKboHtTVeE0279vRifbIRF295X4nKVA4sWHpx V/HrSdpNQraWw7Sq4/iTbcqETNY48oWQBSeilGD+ZXKxtdUte8plVPDFoUxQZ6iQp3YqrEgi eNAwkMkiWb5zQ3YKd3JfsTOd1wd9Cc2jKaSE7fj3moAkSxQNZsgiQzMFThK7S/wcESpJfRxH hicIfJtLXgoQZOjH1zePjmdHxidhD65P8cfey++AYYSYWPyRrN5BW1Aam8FDOBpzU8pvNjWL NXdphurqQpFSRlvcRvXY
Message-ID: <132ef6dc-86f0-3283-71fb-ea80d8800428@corp.mail.ru>
Date: Thu, 17 Jan 2019 00:50:07 +0300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <11a5d635-a16b-17b9-0ba6-7713b8f169e2@spamtrap.tnetconsulting.net>
Content-Type: multipart/alternative; boundary="------------131DC729BF01490DE695721F"
Content-Language: en-US
Authentication-Results: smtp48.i.mail.ru; auth=pass smtp.auth=dubrovin@corp.mail.ru smtp.mailfrom=dubrovin@corp.mail.ru
X-618D5548: 45FC86C5E5471C34CA1242935FE4E02783D3C0612D38DE4669A4C5A289F4A982
X-77F55803: BBE463BEF7A60BD05A78504BD2AC2941382F125FEC086B485109C54C1DDE6CFCEC84803AE87C3D22E8D454A4765AA473
X-7FA49CB5: 0D63561A33F958A541532057215B2FC12E870B1DD9634BF6F44FEF15D260A59B8941B15DA834481FA18204E546F3947C1D471462564A2E19F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BF1175FABE1C0F9B6A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249E5E764EB5D94DBD43AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE7BFC02AB3DF06BA5ACD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE749F2E05FB3BF77DA6E4794A9BA48C0DE75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85B5698D31FB5189B627F269C8F02392CD5571747095F342E88FB05168BE4CE3AF
X-Mailru-Sender: C5364AD02485212FE93695002315C043B8117D5B1DEDDB7FAE61A51775438CF30A3546B62FC67E47DF27400FA58A4AF1E66B5C1DBFD5D09D63761FFB9297ED015BF713DEE2A5F4A567EA787935ED9F1B
X-Mras: OK
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/wutlZ-KgwNDoYOpjKsLm3OudcS4>
Subject: Re: [dmarc-ietf] Nitpicky questions about DMARC record syntax
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: Wed, 16 Jan 2019 21:50:18 -0000

I believe in the situation where standard is absolutely clear like this,
any implementer must strictly follow the standard. Otherwise, it can
lead to unpredictable behavior and security issues.

Example: there are absolutely legal situations where non-trusted or less
privileged side can partially control the name and/or content of the DNS
record. I can provide users or customers with possibility to register a
hostname and TXT record in my zone but I want to prevent them from
corrupting or changing SPF/DMARC/etc policy. I can rely on filtering TXT
record content. Non-standard behavior of DMARC implementation can allow
to bypass this filtering.

While this example doesn't seem realistic, I can demonstrate quite
realistic ones. For example, a minor relaxation for ARC version check
can lead to DKIM signature spoofing, compromising DMARC as a result. For
DMARC DNS record itself, realistic scenario may appear in the future.

We already have a lot of problems in-the-wild because of standards
relaxations, e.g. it's usually possible to bypass DMARC which relies on
RFC5322 via malformed From: due to fact invalid From: header is
generally accepted and parsing From: header for DMARC validation and for
visual representation is usually made by different pieces of code with
different behavior.


16.01.2019 21:34, Grant Taylor пишет:
> On 01/16/2019 10:26 AM, John R Levine wrote:
>> Maybe, but that's not what standards are about.  The point of a
>> standard is to say here's what you do if you want to interoperate.  I
>> have never found it productive to speculate about what you might or
>> might not want to do when you run into people who didn't read the spec.
>
> I agree with you conceptually.
>
> However I feel like rejecting things because of additional white space
> (in front of v=...) or the wrong case is being a little bit pedantic.
>
> Rather, I think that if removing a spurious / leading space or folding
> case causes the DMARC record to be valid, it behooves us to tolerate
> such minor errors.
>
> I don't want to be so pedantic that people push back on adopting what
> I (and I assume others) think is a good technology.
>
> Is doing so against the letter of the specification, absolutely.  Is
> it within the spirit of the specification, I think so.
>
>
>
>
> _______________________________________________
> dmarc mailing list
> dmarc@ietf.org
> https://www.ietf.org/mailman/listinfo/dmarc


-- 
Vladimir Dubrovin
@Mail.Ru