Re: [Ntp] Details of the fragmentation attacks against NTP and port randomization

Watson Ladd <watsonbladd@gmail.com> Tue, 04 June 2019 03:16 UTC

Return-Path: <watsonbladd@gmail.com>
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 8A8C512004B for <ntp@ietfa.amsl.com>; Mon, 3 Jun 2019 20:16:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 4pMyvOM2aevP for <ntp@ietfa.amsl.com>; Mon, 3 Jun 2019 20:16:48 -0700 (PDT)
Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E4C0D120033 for <ntp@ietf.org>; Mon, 3 Jun 2019 20:16:47 -0700 (PDT)
Received: by mail-lf1-x12a.google.com with SMTP id y198so4740318lfa.1 for <ntp@ietf.org>; Mon, 03 Jun 2019 20:16:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K3+ZMSTx1mDRQ83V7eZcL1Sa/6k9e9P5OupWoicHaso=; b=jyq3a8QANgX4TSJ2uHiEZkNB1xK1O3rrsWUmuqqb3WZuudNag1XCTO0lmM3T62XW7N OofFssoGVu+K4nnBOCXTOIR9yC1Y6KnyHK5FzA07D0PQ6BTlXguS+kI3H6zQ8t3T2vBm RPYcfnFFMg2RPV55DB7ZrjYmShxhG+2LvXanQJwbzYXGEr3bGDfQya0V0uh4nQG3UQ3l BaZyC2EFS1v5TV7aVLdGp5golg8debYJ1YQGrli8ZQRWBcB2AhUtEXnZH3VKzp7nP2uS TCtQO1oMm5grtkVyJEkLQ1Yhv9w/Ua3n0Y19TP4j5MSb/UdNBtT7fiXLvXIO80lv1B0L 4iCg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K3+ZMSTx1mDRQ83V7eZcL1Sa/6k9e9P5OupWoicHaso=; b=lArVCxfx6BjfPeGEhL2qtPyit/Hs8ya5ysyS7w1keTfxY7Vo7TQOIVo7Eg2WETRALM z2EIIPgANxEK9HsucA+HbKjB5Uyw+ZZJaGihpITHB4wlInp3rV1nRWMCLNQ8t3j23SUI Q+EGfstkSUqViGbD9PwKGAyhG7wcq0acWBU21QicYteFSKGKgEMmmtQGpquzazPoprCj VpOzEdTNOTVgUp553Lw7kcP60qs+V6ZpjLAX5VTTXkyfj/21NiIoLwhOTEMlDiNToexR Ptvpl4d67VqeZ17HTaEO1BLtgQ+sjrG+VTtTNdpSfnaxGYJdV7JvqCWYn1hpl0dWNj79 jmsA==
X-Gm-Message-State: APjAAAXmx9QTyc5RaWQR6NNBTmyah/xtjaPzFsByc23X2ZMEcGo65ZAV GqsbZQFgnmfEVPkt5tvbw/e25DFYelegwqozaXiIhJ/H
X-Google-Smtp-Source: APXvYqym/vC37+NRvdV2ur25l1zXY0zzBENLCaELF0/Pc0MqFg5+0lBvkvRj/3vv7fyUy3ruqXAOdVVH2rb7ixVg01w=
X-Received: by 2002:a19:22d8:: with SMTP id i207mr14346715lfi.97.1559618206030; Mon, 03 Jun 2019 20:16:46 -0700 (PDT)
MIME-Version: 1.0
References: <CAN2QdAGS20q=7+r+qMFEBBu4gNmSDR9-vYDbvgC=ZnqWLEU-6w@mail.gmail.com> <739c2eaa-05f1-0b30-4b64-fc5d3f91ce5b@pdmconsulting.net>
In-Reply-To: <739c2eaa-05f1-0b30-4b64-fc5d3f91ce5b@pdmconsulting.net>
From: Watson Ladd <watsonbladd@gmail.com>
Date: Mon, 03 Jun 2019 20:16:35 -0700
Message-ID: <CACsn0cnggXO_Aw6wjWfuxRGrW8Df11Mc9-hsDPxp3u65F5wbtA@mail.gmail.com>
To: Danny Mayer <mayer@pdmconsulting.net>
Cc: Watson Ladd <watson=40cloudflare.com@dmarc.ietf.org>, NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/kQgWrCp9k82xDGaeyIUlwpUGof8>
Subject: Re: [Ntp] Details of the fragmentation attacks against NTP and port randomization
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Tue, 04 Jun 2019 03:16:51 -0000

On Mon, Jun 3, 2019 at 8:10 PM Danny Mayer <mayer@pdmconsulting.net> wrote:
>
> On 6/3/19 2:24 PM, Watson Ladd wrote:
>
> > Dear all,
> >
> > The debate over client port randomization is missing an important
> > fact: off-path attacks against NTP are not prevented by the origin
> > timestamp due to the OS handling of fragmentation. In
> > http://www.cs.bu.edu/~goldbe/papers/NTPattack.pdf we see that sending
> > a properly crafted IP fragment can selectively overwrite NTP packets,
> > thus allowing an attacker to modify received data without overwriting
> > the origin timestamp. I would recommend we adopt port randomization
> > to handle this problem.
> >
> > Sincerely,
> > Watson Ladd
>
> Actually if you read Section VI you will see that the last sentence of
> that section states that they do not consider it to be a sufficient defense.

I concur. Sadly we don't have anything better until we see NTS deployment.
>
> Danny
>
>
> _______________________________________________
> ntp mailing list
> ntp@ietf.org
> https://www.ietf.org/mailman/listinfo/ntp



-- 
"Man is born free, but everywhere he is in chains".
--Rousseau.