Re: [core] Block aspects addressed in draft-ietf-core-attacks-on-coap-03.txt

Jon Shallow <supjps-ietf@jpshallow.com> Wed, 14 June 2023 09:31 UTC

Return-Path: <supjps-ietf@jpshallow.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4AECFC14F75F for <core@ietfa.amsl.com>; Wed, 14 Jun 2023 02:31:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.897
X-Spam-Level:
X-Spam-Status: No, score=-6.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] 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 Mq8Dc-_4T7s8 for <core@ietfa.amsl.com>; Wed, 14 Jun 2023 02:31:39 -0700 (PDT)
Received: from mail.jpshallow.com (mail.jpshallow.com [31.22.13.189]) (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 74581C14F74E for <core@ietf.org>; Wed, 14 Jun 2023 02:31:38 -0700 (PDT)
Received: from [192.168.0.78] (helo=N01332) by mail.jpshallow.com with esmtp (Exim 4.92.3) (envelope-from <jon.shallow@jpshallow.com>) id 1q9Mqm-0003Vz-81; Wed, 14 Jun 2023 10:31:36 +0100
From: Jon Shallow <supjps-ietf@jpshallow.com>
To: 'Christian Amsüss' <christian@amsuess.com>
Cc: core@ietf.org
References: <168650947092.62266.18419070105597824117@ietfa.amsl.com> <ZIjsKLxLNCIOu70Y@hephaistos.amsuess.com>
In-Reply-To: <ZIjsKLxLNCIOu70Y@hephaistos.amsuess.com>
Date: Wed, 14 Jun 2023 10:31:30 +0100
Message-ID: <050201d99ea3$007bee00$0173ca00$@jpshallow.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQFQ9kMdY8QbyvybiHQcMDIonPqKPAJ3yU/DsIeadcA=
Content-Language: en-gb
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/KKgoaU8B3T8mmtACKCvlx8mKvPw>
Subject: Re: [core] Block aspects addressed in draft-ietf-core-attacks-on-coap-03.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jun 2023 09:31:43 -0000

Hi Christian,

Thanks for coming back on this.

See
https://github.com/core-wg/attacks-on-coap/issues/3#issuecomment-1590834571
for some comments on this.  I think it is an attack vector for concurrent
requests that are not using both ETag and Request-Tag.

Regards

Jon

> -----Original Message-----
> From: Christian Amsüss [mailto: christian@amsuess.com]
> Sent: 13 June 2023 23:23
> To: jon@jpshallow.com
> Cc: core@ietf.org
> Subject: Block aspects addressed in draft-ietf-core-attacks-on-coap-03.txt
> 
> Hello Jon,
> 
> you've had comments on earlier versions of attacks-on-coap that did not
result
> in a text change, and I'd like to check with you whether you agree with
the
> resolution:
> 
> In [1], you outlined an attack where exchanges of the shape
> single-block1-many-block2 that have different request payloads would get
> mixed up. In my understanding, this is not a working attack, as the
requests
> pulling the later block2 responses would contain the original request --
and for
> identical requests, this is no different from the case of payload-less
requests of
> different times getting mixed up (which is what ETag is for).
> 
> If you still think there is some of [77] that needs to be considered,
please
> follow up here -- otherwise, I'd mentally mark this one as addressed.
> 
> Best regards, and thanks for bringing up the item c
> 
> [1]:
> https://mailarchive.ietf.org/arch/msg/core/tuI9NNtx5t3NDsK0zfhdvNGCmEg/
> [77]: https://github.com/core-wg/echo-request-tag/issues/77
> 
> --
> I shouldn't have written all those tank programs.
>   -- Kevin Flynn