[TLS] tls-flags: abort on malformed extension

Yoav Nir <ynir.ietf@gmail.com> Sat, 28 August 2021 20:36 UTC

Return-Path: <ynir.ietf@gmail.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1CDAC3A1D04 for <tls@ietfa.amsl.com>; Sat, 28 Aug 2021 13:36:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham 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 b2TQw6kdV2-M for <tls@ietfa.amsl.com>; Sat, 28 Aug 2021 13:36:30 -0700 (PDT)
Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (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 8F1103A1D01 for <tls@ietf.org>; Sat, 28 Aug 2021 13:36:30 -0700 (PDT)
Received: by mail-wm1-x335.google.com with SMTP id z9-20020a7bc149000000b002e8861aff59so7632740wmi.0 for <tls@ietf.org>; Sat, 28 Aug 2021 13:36:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=ft3Qsu3P1o+VniODR8fibPI2e6Z+danGTY1vOZ6CZvY=; b=hzOcKbyRwddKbPCfFMmLKR7XPeigBGxt+qD/KfOtk/A/47nBpLRKxjauFtvLPFPZs7 l9flqEDEKA3LeiQVmX26gj2Y/oEsN22CqlSnKop8z9eb38QO4QcivNvIgN44xQrSeOnf Eh8heln1AGC4rXNVrKswJQqkQiauxzjoz1kAVG5ZEj0WFGbK7bMdGda8sofqV/H0/q2T 80lzYldFqNYoNm6ZVfiuNDvgqqAbj6tCi0Mlhzz+5PpAc8TyFqUtEJWZCO9smhBbQyf7 UkrSMV0aPHyL19qLK763ET7eJ3EKShOmQa43+SF+JO8heMPdBh2nADj1w2UGCL5cYkbQ xznA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=ft3Qsu3P1o+VniODR8fibPI2e6Z+danGTY1vOZ6CZvY=; b=sSCm2e68GC8og1/alySP/4s0MNRfaLCJHma1SmIRpAYwEwybXZ/PkkDyKLAI3B+33T AGXdceJyLmN+RS2p8BcY+KJGj+d092ZOyohD6UAYWwX9U8yM5ZR2wA16BSIfT755rRyh 0ZMwnspQQztDKGOsJV7rdtVKkEJJep5mKDdbCmreNp/1LyWjOdNObgFpzOIl9MKfrknb 0jwoY+NDr13bKEzhla87UMOOM1TKFkQ7NgdgKQjf4UHgbUamL1/5y/eZmc6he+NWRToS 3iPSMoCyauuLxGlxlX3aiCM8U15yRoyCHOZXe5ysBGWkSdgMUEK9H+Y8TX8U14+ueRdq Kb3A==
X-Gm-Message-State: AOAM531PJu6xxV7O4IZ85J8vjJ9NJvSB8gqaczZZPcjmQSGyChyF5BW7 bshs952a0yX8vlAuMWeHUMTOZ4sgO5LEGg==
X-Google-Smtp-Source: ABdhPJxyG3NehLw6XJBHMRq4SDj3Zs+g32GjsHjoWSnUiMOrO9f/ic9q73zJ+G7shrocRR5kp1hJ7A==
X-Received: by 2002:a7b:c316:: with SMTP id k22mr25251351wmj.56.1630182986441; Sat, 28 Aug 2021 13:36:26 -0700 (PDT)
Received: from smtpclient.apple ([46.120.57.183]) by smtp.gmail.com with ESMTPSA id r16sm6226328wrg.71.2021.08.28.13.36.25 for <tls@ietf.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Aug 2021 13:36:25 -0700 (PDT)
From: Yoav Nir <ynir.ietf@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_9585B69F-5366-4F00-8F7A-8E5BCB19C5DC"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Message-Id: <5BFCE990-52C0-4C0C-BD8A-AC3DB0A48084@gmail.com>
Date: Sat, 28 Aug 2021 23:36:23 +0300
To: "<tls@ietf.org>" <tls@ietf.org>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/mnSmjC-MEULXIZSkWrVo8LI8E-Q>
Subject: [TLS] tls-flags: abort on malformed extension
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 28 Aug 2021 20:36:36 -0000

Hi.

To address Michael StJohns comment from 19-July, I submitted PR #12:

https://github.com/tlswg/tls-flags/pull/12 <https://github.com/tlswg/tls-flags/pull/12>

What is says is that any implementation receiving a malformed tls_flags extensions should abort the handshake. The text provides a list (which I hope is comprehensive) of all the ways this specific extension can be malformed. 

Please comment here or on the PR is this makes sense to everybody.

Yoav