Re: [regext] How to handle Domain Info Command with empty authinfo/pw tag in command?

Martin Casanova <martin.casanova@switch.ch> Fri, 20 December 2019 08:51 UTC

Return-Path: <martin.casanova@switch.ch>
X-Original-To: regext@ietfa.amsl.com
Delivered-To: regext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 632CA120091 for <regext@ietfa.amsl.com>; Fri, 20 Dec 2019 00:51:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, 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 8cTNaUiewa9Z for <regext@ietfa.amsl.com>; Fri, 20 Dec 2019 00:51:01 -0800 (PST)
Received: from mailg210.ethz.ch (mailg210.ethz.ch [IPv6:2001:67c:10ec:5606::21]) (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 70EDC1200CD for <regext@ietf.org>; Fri, 20 Dec 2019 00:51:00 -0800 (PST)
Received: from mailm212.d.ethz.ch (2001:67c:10ec:5603::26) by mailg210.ethz.ch (2001:67c:10ec:5606::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Fri, 20 Dec 2019 09:50:55 +0100
Received: from mailm212.d.ethz.ch (2001:67c:10ec:5603::26) by mailm212.d.ethz.ch (2001:67c:10ec:5603::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Fri, 20 Dec 2019 09:50:58 +0100
Received: from mailm212.d.ethz.ch ([fe80::f8f6:45ef:96ed:eee]) by mailm212.d.ethz.ch ([fe80::f8f6:45ef:96ed:eee%3]) with mapi id 15.01.1847.005; Fri, 20 Dec 2019 09:50:58 +0100
From: Martin Casanova <martin.casanova@switch.ch>
To: "regext@ietf.org" <regext@ietf.org>
Thread-Topic: [regext] How to handle Domain Info Command with empty authinfo/pw tag in command?
Thread-Index: AQHVtktRIxUkdgVjgkuFl4P8CT96kqfBZgYAgAFDGJQ=
Date: Fri, 20 Dec 2019 08:50:58 +0000
Message-ID: <4bbb8a33bee54a8797fc75a1cf532899@switch.ch>
References: <d17d88d0-e9db-9416-1917-dc992fcd2d3a@switch.ch>, <35BAECA0-9B4A-4C1F-9EEF-BA9C4BE2E325@verisign.com>
In-Reply-To: <35BAECA0-9B4A-4C1F-9EEF-BA9C4BE2E325@verisign.com>
Accept-Language: de-CH, en-US
Content-Language: de-CH
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [212.51.156.80]
x-tm-snts-smtp: ECADAB5CB359374C0E000163F04D3EB411BEAFC7FA1FC27C4214FB5A68272E652000:8
Content-Type: multipart/alternative; boundary="_000_4bbb8a33bee54a8797fc75a1cf532899switchch_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/iz4i9Fohj32K4bXYmUsfmxHLvYM>
Subject: Re: [regext] How to handle Domain Info Command with empty authinfo/pw tag in command?
X-BeenThere: regext@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Registration Protocols Extensions <regext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/regext>, <mailto:regext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/regext/>
List-Post: <mailto:regext@ietf.org>
List-Help: <mailto:regext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/regext>, <mailto:regext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Dec 2019 08:51:05 -0000

Jim

Thanks you for the feedback.

I agree that hashing an empty String to match a not set authinfo is not the way to go. We are using [null] values in the db for a not set authinfo field.  However I think you could argue that semantically and empty XML tag is somewhat similar to a not filled db field being [null] and therefore consider it "matching". But since an empty string is not a valid authinfo according to server policy's length and complexity requirements 2202 is certainly justified.


However this runs into the same situation as option 1 returning always 1000 where there is no way for the sponsoring client to query if authinfo is set on the domain at all. (without having to check for correctness)


It is a constructed example but you could imagine a domain with status serverUpdateProhibited and authinfo set/removed by the registry. Then the client could not simply reset the authinfo nor query if it is set or not. Of course we would send a ChangePoll enriched Poll Msg to the sponsoring registrar if we do that... :)

Probably it is enough to be able to verify correctness of an authinfo e.g. before a transfer..


Martin


________________________________
Von: regext <regext-bounces@ietf.org> im Auftrag von Gould, James <jgould=40verisign.com@dmarc.ietf.org>
Gesendet: Donnerstag, 19. Dezember 2019 14:39:08
An: Martin Casanova; regext@ietf.org
Betreff: Re: [regext] How to handle Domain Info Command with empty authinfo/pw tag in command?

Martin,

I believe option 2 in case 2 is the best approach, but I don't believe an empty auth info should match a non-set auth info value.  Per the practice defined in draft-gould-regext-secure-authinfo-transfer, unsetting the auth info should result in a null auth info and not a hashed empty string that would then match a subsequent empty auth info value.  I view both cases as being the same case of an invalid auth info resulting in a 2202 error response.

--

JG



James Gould
Distinguished Engineer
jgould@Verisign.com <applewebdata://13890C55-AAE8-4BF3-A6CE-B4BA42740803/jgould@Verisign.com>

703-948-3271
12061 Bluemont Way
Reston, VA 20190

Verisign.com <http://verisigninc.com/>

On 12/19/19, 4:04 AM, "regext on behalf of Martin Casanova" <regext-bounces@ietf.org on behalf of martin.casanova@switch.ch> wrote:

    Hello

    I was hoping for some input of the community about an implementation
    decision for the Domain Info Command/Response when it comes to the
    optional <domain:authInfo> associated with the domain object.

    RFC-5731 about  <domain:authInfo>: ... If this element is not provided
    or if the authorization information is invalid, server policy
     determines if the command is rejected or if response information will
    be returned to the client.

    1.
    In case the <authinfo><pw> element is delivered but not correct (no
    match or not set on domain) we will return a Code 2202 to inform.
    (sponsoring client or not)

    2.
    In case an empty tag is given (<authinfo><pw/></authinfo>) we are
    wondering if:
    Option 1: always Response Code 1000 should be returned
    Option 2: Only answer with 1000 when there is NO authinfo/pw set on the
    domain (kind of confirming it) and otherwise 2202 considering an empty
    tag as invalid authorization information delivered.


    I think maybe option 2 may be better because that way a registrar could
    check if an <authinfo> is set or not even without knowing it.
    After all, the registry could have set or deleted <authinfo> without
    noticing the registrar. However many clients seem to send
    <authinfo><pw/></authinfo> just about always and they would need to adjust.

    I have to mention that our Domain Info response will never include the
    actual <authinfo> since we only store a hash of it for security reasons.
    A Domain Info Command with the <authinfo> Element entirely omitted will
    always be answered with 1000.

    Thanks and merry X-Mas!

    Martin Casanova

    ---
    SWITCH
    Martin Casanova, Domain Applications
    Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
    phone +41 44 268 15 55, direct +41 44 268 16 25
    martin.casanova@switch.ch, www.switch.ch<http://www.switch.ch>

    Working for a better digital world


    _______________________________________________
    regext mailing list
    regext@ietf.org
    https://www.ietf.org/mailman/listinfo/regext


_______________________________________________
regext mailing list
regext@ietf.org
https://www.ietf.org/mailman/listinfo/regext