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

Watson Ladd <watson@cloudflare.com> Mon, 03 June 2019 18:24 UTC

Return-Path: <watson@cloudflare.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 88EB9120155 for <ntp@ietfa.amsl.com>; Mon, 3 Jun 2019 11:24:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.009
X-Spam-Level:
X-Spam-Status: No, score=-2.009 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cloudflare.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 WBll8oCzDz4X for <ntp@ietfa.amsl.com>; Mon, 3 Jun 2019 11:24:37 -0700 (PDT)
Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 B0C4E120120 for <ntp@ietf.org>; Mon, 3 Jun 2019 11:24:37 -0700 (PDT)
Received: by mail-qt1-x82e.google.com with SMTP id y57so10607554qtk.4 for <ntp@ietf.org>; Mon, 03 Jun 2019 11:24:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=Jk8u6pjP44gtl0BNJ3sUPGSi2sLk2rq623t1uzCwOgE=; b=ehJb7uCqYSjqADCTVdomn50BrwvPijSrZ8hfbeDGA+XWrW+v1HKI1fOwyrfI9b2+Mt R37ls00IpA/miqGsRdoFM5o82X8AQlqVUziF5qKWowNfv0PRFhRd4G5phISeNmSZ5Gog uc3+PVi0QZ+A/d1ympuonN/oC6gAZMbxUzKm0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Jk8u6pjP44gtl0BNJ3sUPGSi2sLk2rq623t1uzCwOgE=; b=rthm9yOO6+8cEGnAjiINaLrupLOqsn2ZrSKAtdCtYtueaPHGScgJxcA4SW+AEexPEo 0/PQlwroWHNh/jONSz0K4CUJ46iCuYQYIOYKC/92xIfm5I822N5CGMK40OHJzYYmvVyW EWfxfwQHpwW0D54rVL7JLUkn5Tm00nm2MvyyuQF1Ruqd8DNVDP4CExWBirfeeSsquoNH /De6Jd/qcy/T311gvo1VZ4VGiCgKneykufIIIxf+PjyNTe+biio+jlpYkxGrw62Rx7xN KRvzqpeVX63K/Qqj68aIuNtZCF0FcZNvzp1Cnu0ME2CZrUwmNonNtYAA42Er/LzaITJZ TpgQ==
X-Gm-Message-State: APjAAAXZXpMcrQfhP1GrwdfBWxVWGYMDW7/HxsnEiLCjDQEhXmD60IAc sOc/cQb3VoAcM5XIQXJEUduxqg1LQBABplsQRZKDc8K5ED3nqg==
X-Google-Smtp-Source: APXvYqyk77rnbIWzIhmmericBT+epIyEoM3MzTYPcXVp+qXjsMOsD/w2MNUI4XxRS9gWfBtJfumFpNkV7ZNBcpNUDLg=
X-Received: by 2002:aed:24d9:: with SMTP id u25mr24832373qtc.111.1559586276378; Mon, 03 Jun 2019 11:24:36 -0700 (PDT)
MIME-Version: 1.0
From: Watson Ladd <watson@cloudflare.com>
Date: Mon, 03 Jun 2019 11:24:25 -0700
Message-ID: <CAN2QdAGS20q=7+r+qMFEBBu4gNmSDR9-vYDbvgC=ZnqWLEU-6w@mail.gmail.com>
To: NTP WG <ntp@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/xYc-CoPf8O2EJHpDD15CUI0cV-k>
Subject: [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: Mon, 03 Jun 2019 18:24:40 -0000

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