Re: [core] Denial of service for clients: draft-ietf-core-too-many-reqs-04

Ari Keränen <ari.keranen@ericsson.com> Sun, 21 October 2018 18:13 UTC

Return-Path: <ari.keranen@ericsson.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 368DF128766 for <core@ietfa.amsl.com>; Sun, 21 Oct 2018 11:13:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.384
X-Spam-Level:
X-Spam-Status: No, score=-3.384 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.064, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=XTCPAvoA; dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=ericsson.com header.b=Y6jKkE1K
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 LqgX_6D_jUXf for <core@ietfa.amsl.com>; Sun, 21 Oct 2018 11:13:55 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 C4527128CF2 for <core@ietf.org>; Sun, 21 Oct 2018 11:13:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1540145630; x=1542737630; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XPmIH5+JtD/3Wi92n2hD1xb8k8fSmFlA5CjFjmdy8jk=; b=XTCPAvoAK+3mDEq916HK5j1nvm6c2Nv90wByEcBc8JnWbo0V4/7vEKE2ad6BgBjo hhnSGDwPvhzDvpEbyAvVPGm86NocxqyVuAZJEjLpuf02Qbocz+9B2Ttd1ZAVij2M WL75RbIhtzewiFWs2vfGaOYFHpWIqQR+GOoKlpy1uio=;
X-AuditID: c1b4fb2d-b4fff70000003a27-c1-5bccc1de4a43
Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id A1.94.14887.ED1CCCB5; Sun, 21 Oct 2018 20:13:50 +0200 (CEST)
Received: from ESESSMB502.ericsson.se (153.88.183.163) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Sun, 21 Oct 2018 20:13:50 +0200
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB502.ericsson.se (153.88.183.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Sun, 21 Oct 2018 20:13:50 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l/Ib3Ku5W6tggbZHxZADUHjB8+PUWUsMHuDCOlPhsQ0=; b=Y6jKkE1KQS5imbnM9RHNydsfEzzk7/A/tFSdbPzAzpQsiNd/pwWs+TgerIHifAEylniW16JBNiROP0aAa6wxpONl2jV1E/u4pL85STh81bF0aaH2rFmoMiIHqnU82DFO4lhfq4TtHkrE9/561AIZUqp5c1V87+gKzWnfUnfOK74=
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com (20.176.166.145) by HE1PR07MB3131.eurprd07.prod.outlook.com (10.170.245.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.15; Sun, 21 Oct 2018 18:13:48 +0000
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::b074:afe2:469c:dd95]) by HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::b074:afe2:469c:dd95%2]) with mapi id 15.20.1273.014; Sun, 21 Oct 2018 18:13:47 +0000
From: =?utf-8?B?QXJpIEtlcsOkbmVu?= <ari.keranen@ericsson.com>
To: Mohit Sethi M <mohit.m.sethi@ericsson.com>, Carsten Bormann <cabo@tzi.org>
CC: The IESG <iesg@ietf.org>, Core <core@ietf.org>
Thread-Topic: [core] Denial of service for clients: draft-ietf-core-too-many-reqs-04
Thread-Index: AQHUZ27UAMFzPkRpTUWNJsOL7+2ePqUmEj4AgAPygoA=
Date: Sun, 21 Oct 2018 18:13:47 +0000
Message-ID: <3F22F63F-A123-4327-9096-00B4189EBC55@ericsson.com>
References: <1d5f2c7e-1feb-ce57-b130-31b654eb056e@ericsson.com> <0E8AA69E-36C4-4FEF-8B11-CFA77E70B08C@tzi.org>
In-Reply-To: <0E8AA69E-36C4-4FEF-8B11-CFA77E70B08C@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ari.keranen@ericsson.com;
x-originating-ip: [2001:14bb:180:9de9:c917:11cd:c0cb:e1a5]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; HE1PR07MB3131; 6:6wAWYUPOCZcHlZIuWUsm6BeacrLy7xSnFhUq+uJmHIrUs4ay6wbKly9ij5wB+BTU4Us3DLJCRcHzgMzNPGjydr3SU5seY/LR9bOgMBq0i5zA4AgqVypGb8TnLQ3L9KwFnsSkAwcg/BCjTwEYl+V6L1NmppkLIHkFwly++J/S16HLlLOe1iIBdt0JOwq8CACyA6J006WxcopJYI7zYc9W/2GR0npvFqmQx1OyMSdcq58Jn5IbPXmt14ddRrVScgPmq03Cpsb61Ina58Z6IDhDDq++zOzbDPJ3IvDU/oiOEweTJLoWRTlfC3iXoGi3qCBVJKEs3AkglupVHjn0NPkvwgd4mFf67iZlMH+M7JhvERLT5qN/vs84RRbhmgMG7EetoTuBvg0/cMu+ItnBIZvJEspsf8W4A/QKQcURtzoLxfKiOrCr8WzUxgKIOGirmyKZRb67fhxT2yabLtBMSARCoA==; 5:BWcmUpyisUGwQhK6ZIO+qanLnZf/suJ7GY2lI8RxF7gzbWQv7GDhKowg3fUF4tXgfYkKWTg2JEPtd4BNd49UfE/+GNjIWCXBNmqtSg8iLI8O64RHyUfBaBZsdpvQASLMc0ckOt+rYLb5D4KBtcEb2GADYfZi7dqhSm74L2ilOqg=; 7:JmWpYa9KMyz1CPuDsyFXrMZcjPRJstWHrY8vwlRyWTy6ISHtz7cKiOPGTpjXVBcbl91NfY2V1dXYwTJdEKk6rcDwru8Q2Km+lBW1JQXun4CxKxVVmZK5W140HoXF+BBFAG6ZpaqIOk8RiRQkUHJSKg==
x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR;
x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10009020)(366004)(346002)(396003)(39860400002)(136003)(376002)(199004)(189003)(316002)(81156014)(7736002)(71200400001)(71190400001)(966005)(606006)(2906002)(14454004)(82746002)(110136005)(25786009)(8936002)(54906003)(6246003)(478600001)(6512007)(446003)(5250100002)(486006)(11346002)(256004)(476003)(53936002)(102836004)(14444005)(97736004)(54896002)(6306002)(2616005)(236005)(86362001)(83716004)(345774005)(85182001)(229853002)(33656002)(2900100001)(6436002)(68736007)(53546011)(186003)(6486002)(6506007)(4326008)(5660300001)(99936001)(99286004)(81166006)(105586002)(106356001)(46003)(76176011)(6116002)(85202003)(36756003)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3131; H:HE1PR07MB4236.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
x-ms-office365-filtering-correlation-id: b27d1102-6369-488b-919c-08d63780f249
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(49563074)(7193020); SRVR:HE1PR07MB3131;
x-ms-traffictypediagnostic: HE1PR07MB3131:
x-microsoft-antispam-prvs: <HE1PR07MB313182714C4C2FAE0BE979F385FB0@HE1PR07MB3131.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820)(192374486261705)(248295561703944)(37575265505322)(158342451672863);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(102415395)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(4983020)(52105095)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:HE1PR07MB3131; BCL:0; PCL:0; RULEID:; SRVR:HE1PR07MB3131;
x-forefront-prvs: 083289FD26
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: OhtIr/hBBet2qRRLJ2wlyjBy6M34yJDYPJHkH7fAF33Tqadr0LkP8L0DXsTkIzRRo/oFj76sMvw6OTacqFrmfUvMsmhCc+kCBzFQydr4xxBu+bTrhEZiBiHKGR5j0Paz5wGnjqobQvUyJYzwd87AG53JY/EUYVqpy0UmrVY5NOWmL47fT+uZe1yl0hG/sGomg1g7Y9RgGunWZ5ZDqmjaxR8ILvIxuatdy3wpkz9LOFP8iyiutawVxPYAa5N7Jih2wg2b9uGpiq6SD/rbdCJs1EbQJOhdWZPFC+9JqpiwHxfjjkAXTc34Pz/8b0kxDPIhghlddcernod7Rw9F8JKgQy8EeLlqEEX8GT36UrkjwHA=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/signed; boundary=Apple-Mail-A4227FAE-6EA8-41CC-A5B4-76346ACFCB00; protocol="application/pkcs7-signature"; micalg=sha1
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: b27d1102-6369-488b-919c-08d63780f249
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Oct 2018 18:13:47.8346 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3131
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA2WSfSzUcRzHfe/3+507c+3XhftMa+XSA815KAvnqVqbrSmtNHOiW37DcOx+ KLUM0RYacpq7EZmVPKYSpjGWycNWnsoUi1AS5TTykOXue222/nt9Pu/35/35frYvjxAuUZa8 CEUco1TIo8RcE1Id0HDFbqytV+aw9sXZ5ZVqlHJpmaslXArWcwlvwqesbIXjc680wo8TaOIe ykRFJDBKe89LJuFTldLY1ICrSwU3UTKq8c9AfB7QR2BxsY7KQCY8Id2BYKB8gcTFEoL3E6kc XJRx4H5FGkc3QtI5BIyt2mNBxYGuonnDyASC5JR6Qufi0h4wmd5C6diMPg3Zi0P6aYJ2gvXB QlLHO2h/GG7qI7HnAmRUaAjMbvBL3UTibfugqO2PPkdAe8FY+bqehXQsrA5NIR3zaSlM/2zR +xFtAcvdVYZdIhiZLObgQ81gvK+Hi9kcZj5vUNgvg2/dXca47wb5Y4ME5l3QX5yJdIcB/Y4L U/ONBsEROh+3Elho4kJzy6Qh1Rf6y2spzH0IukbOY7YFjbqDxBwJ2t8zCHMSPMhTETnIQbPl sZrNXILOQ7C8Ukdp9Fdvhy71JIlNIZD1oc7Au6FhrpDAbAOtmY8MfStQZY4bYz4It5dyqf/7 UlgpnECYnWG2YwFt9ZQg0wpkzjIsGx3mdFjCKCMus2yMQqJg4p6izR/Y9nzNrhFVzh5rRzQP iU0F09W9MiElT2ATo9uR9WbOxJPKt8iSVMQoGLGZQPO6RyYUhMoTrzHKmBBlfBTDtqOdPFIs EkgqXgYK6TB5HBPJMLGM8p/K4fEtk9GB5bKjouz4AX520cMTHjZaiWu11+ycq/y46M0h47bg Wxv8lFxFnPSueZiXZ5bI1/HUj8w1O6NglTwov+ZMlHX41z1G5SFB+09WWfhpNZ+at+31ps4l vDhrVeql7cy4OJw/UBJamka6f0yauV74bNTZql67KPmeckN5x7c2PX+WosQkGy53tCWUrPwv AHLb74kDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/zEsSVgJyNe3WeEeBj2-nN92sg_E>
Subject: Re: [core] Denial of service for clients: draft-ietf-core-too-many-reqs-04
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Sun, 21 Oct 2018 18:13:56 -0000

Thank you for the review comments Mohit & Carsten!

I have addressed your comments in the draft version in Github (and plan to submit new version tomorrow):
https://github.com/core-wg/too-many-reqs/pull/4/files

* There’s now reference to MaxAge
* Added a note that you can trust the response code only to extent you trust the underlying security mechanisms


Cheers,
Ari

> On 19 Oct 2018, at 8.57, Carsten Bormann <cabo@tzi.org>; wrote:
> 
>> On Oct 19, 2018, at 07:44, Mohit Sethi M <mohit.m.sethi@ericsson.com>; wrote:
>> 
>> Perhaps you would want to go further and say that this response code 
>> SHALL/SHOULD be authenticated and integrity protected?
> 
> I think any security considerations section could include a sentence that the receiver of a message should trust it only as far as the authentication/freshness for the message carries.  If the attacker can inject responses at will, the client already has a problem.
> The sentence at the end of section 5 already elucidates the specific form of the problem that this response code adds to that.
> 
> More specifically, if a client sends a request in nosec mode, there is not really that much the server can do to reply with authentication.
> 
> Grüße, Carsten
> 
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core