Re: [Ntp] Antw: Re: Antw: [EXT] Re: Antwort: Re: Symmetric mode

Danny Mayer <mayer@pdmconsulting.net> Sat, 24 September 2022 23:24 UTC

Return-Path: <mayer@pdmconsulting.net>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0882BC14F74E for <ntp@ietfa.amsl.com>; Sat, 24 Sep 2022 16:24:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DzZER44XliHd for <ntp@ietfa.amsl.com>; Sat, 24 Sep 2022 16:24:22 -0700 (PDT)
Received: from chessie.everett.org (chessie.everett.org [66.220.13.234]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 87C50C14EB1E for <ntp@ietf.org>; Sat, 24 Sep 2022 16:24:22 -0700 (PDT)
Received: from [192.168.1.156] (pool-108-26-202-2.bstnma.fios.verizon.net [108.26.202.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by chessie.everett.org (Postfix) with ESMTPSA id 4MZlTb2b21zMNbj; Sat, 24 Sep 2022 23:24:19 +0000 (UTC)
Message-ID: <a9bbd472-a737-937d-2964-3860bbd38d63@pdmconsulting.net>
Date: Sat, 24 Sep 2022 19:24:18 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0
Content-Language: en-US
To: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>, halmurray@sonic.net
Cc: "ntp@ietf.org" <ntp@ietf.org>
References: <17AED21F020000EA86EDC2A6@gwsmtp.uni-regensburg.de> <1780A8DE020000D15CC44D44@gwsmtp.uni-regensburg.de> <22954C000200007B6A6A8CFC@gwsmtp.uni-regensburg.de> <27D7ED67020000F05AEBDC6A@gwsmtp.uni-regensburg.de> <4A996AA50200004B6A6A8CFC@gwsmtp.uni-regensburg.de> <387E5469020000CF5AEBDC6A@gwsmtp.uni-regensburg.de> <CED1DAD40200002E6A6A8CFC@gwsmtp.uni-regensburg.de> <72A957130200000B5AEBDC6A@gwsmtp.uni-regensburg.de> <60E0A8800200001A6A6A8CFC@gwsmtp.uni-regensburg.de> <64395FC0020000E55AEBDC6A@gwsmtp.uni-regensburg.de> <E2CB9EB502000031FDA5B133@gwsmtp.uni-regensburg.de> <114E6FEE020000C76A6A8CFC@gwsmtp.uni-regensburg.de> <BBAE8F72020000195CC44D44@gwsmtp.uni-regensburg.de> <E42BB2AA020000A05AEBDC6A@gwsmtp.uni-regensburg.de> <419B8728020000DF6A6A8CFC@gwsmtp.uni-regensburg.de> <632C18BF020000A10004E004@gwsmtp.uni-regensburg.de> <470FE688020000E3FDA5B133@gwsmtp.uni-regensburg.de> <632C33B1020000A10004E017@gwsmtp.uni-regensburg.de>
From: Danny Mayer <mayer@pdmconsulting.net>
In-Reply-To: <632C33B1020000A10004E017@gwsmtp.uni-regensburg.de>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/tzbKZf2o8QHtQ8rfC_Q761gGZQc>
Subject: Re: [Ntp] Antw: Re: Antw: [EXT] Re: Antwort: Re: Symmetric mode
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 24 Sep 2022 23:24:28 -0000

On 9/22/22 6:06 AM, Ulrich Windl wrote:
>>>> Hal Murray <halmurray@sonic.net> schrieb am 22.09.2022 um 11:43 in
> Nachricht
> <20220922094344.C06B228C1D8@107-137-68-211.lightspeed.sntcca.sbcglobal.net>:
>
>> Ulrich.Windl@rz.uni‑regensburg.de said:
>>>> The IP addresses and ports are not included in the data authenticated
>>>> by the NTP MAC. You can replay an authenticated NTP messages from any
>>>> address and any port.
>>> But this problem isn't specific to peer messages, right? So what is the
>>> specific peer issue?
>> With client/server, the client can put a nonce in the packet.  That prevents
>> replay attacks.
>>
>> With NTP v3+v4, there isn't an official slot for a nonce in the packet
>> format,
>> but as long as the client checks that the transmit time stamp (xmt) is
>> returned in the originate time stamp (org) slot that will catch replay
>> attacks.
>>
>> That assumes the client put a time stamp in the xmt slot.  It can also be
>> used
>> as a nonce since the server doesn't use it after copying it over to the org
>> slot of the reply packet.
> I guess someone in the past didn't think that it would be easy to replay
> authenticated packets from a different address.
> Wouldn't it be easier to include the server's IP (and port, maybe version,
> too) as extension field, so that the address would be considered when checking
> the MAC? Then a client or server would have to (or at least: can) check whether
> the IP packet's sending address matches the authenticated address. But still
> that (IP source address) may be fake, too...
It would be a nice idea if it wasn't for the fact that some packet may 
be going through a NAT and the IP address that the server sees may be 
different from the one that the client uses to send the packet.

Danny