Re: [manet] Review of draft-ietf-manet-olsrv2-sec-threats-03

Abdussalam Baryun <abdussalambaryun@gmail.com> Mon, 19 December 2016 19:46 UTC

Return-Path: <abdussalambaryun@gmail.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 306DB1294B6; Mon, 19 Dec 2016 11:46:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 y4A3CmQPtDv2; Mon, 19 Dec 2016 11:46:08 -0800 (PST)
Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (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 5025F1295F7; Mon, 19 Dec 2016 11:39:23 -0800 (PST)
Received: by mail-qk0-x233.google.com with SMTP id t184so25709593qkd.0; Mon, 19 Dec 2016 11:39:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+EHfLe00RG51BKlVAgYKW07jR/z5FuLiY9Rj6y4bvJE=; b=uNYE0qlb6Sl3uwowOt28D1Mqw4Ayd8MOdeARMOSvERS1n5bz5GyoMOUQZZsfaLd5MB jULogBDctm/rK10khRjS5rAMKOlPu9IZ3vJCzsGjl1uBDyMU5+WaXlnpARbmLtV+He5v iocLFjYKM+sLhC+0GsKGP7TJ3W9h3CilZbtWgv6DYrYUyBySeNfXjx80QNDpN0bhnpwW 9Dzi8oTOpUtGjkdqr1y/4ySepVql3yHTfVtD4xj9rERf6ltV+2gjs+Tn0KAkI1e4htLf bjFJDAKXjBqlSG2JczjsRB56zCm2e0K49pYHUSqKO9EmVDZJKk3rbhOj44bSesNgerzH 8kYg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+EHfLe00RG51BKlVAgYKW07jR/z5FuLiY9Rj6y4bvJE=; b=mOICos096u+S0HQJLxr7pP9PmeuI8CeeAmo1LaKQGU47a2lySYRzfhcBTQz1tctlg0 UvJZY7IgWUC6qXztugoitO9csAuugiI/gRQe30OkuFE8X4nEuaiIV+VIYvHZT7YibX8h 7St/rxhXCjJb0d+MeTKP4dlN5ECUBS/S3RBTDJ0OORPfNFcOUC/CcM5c2+7YCP5VtSOH cL+oIFdTQFWS3329Kdy788EiTLQhbDXNXhz5AtjhA7W65KW6NMRs/IXvFeqFfS+ecFBK QR1N/f7TCTRBmrutD+FX2UVLM6SvTbyGVf3H2TBHmF67xPZLIy+Cb7+UoccKLVyG0WFj d+uQ==
X-Gm-Message-State: AIkVDXIOJVpNUVUQ6DWepbeCozSfpkRY5Fo3NMd9NB/RMpUOCmyyCymHDkhP497QIZrcVKe4+VWB7hrSMqkZ0w==
X-Received: by 10.55.164.5 with SMTP id n5mr4700637qke.307.1482176362435; Mon, 19 Dec 2016 11:39:22 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.107.162 with HTTP; Mon, 19 Dec 2016 11:39:21 -0800 (PST)
In-Reply-To: <B31EEDDDB8ED7E4A93FDF12A4EECD30DA51A49AC@GLKXM0003v.GREENLNK.net>
References: <148209096399.6405.5288912281902695282.idtracker@ietfa.amsl.com> <B31EEDDDB8ED7E4A93FDF12A4EECD30DA51A49AC@GLKXM0003v.GREENLNK.net>
From: Abdussalam Baryun <abdussalambaryun@gmail.com>
Date: Mon, 19 Dec 2016 21:39:21 +0200
Message-ID: <CADnDZ8_0oUg5iPTpHuBeQifHfot8E=LHa9qdTsHeHcimq8BfkQ@mail.gmail.com>
Subject: Re: [manet] Review of draft-ietf-manet-olsrv2-sec-threats-03
To: "Dearlove, Christopher (UK)" <chris.dearlove@baesystems.com>
Content-Type: multipart/alternative; boundary="94eb2c07692893d9ca0544081365"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/nJQkJApeI-ObE2v12rlkfbN219Y>
Cc: "manet@ietf.org" <manet@ietf.org>, "gen-art@ietf.org" <gen-art@ietf.org>, "draft-ietf-manet-olsrv2-sec-threats.all@ietf.org" <draft-ietf-manet-olsrv2-sec-threats.all@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Dec 2016 19:46:10 -0000

I recommend that if a reviewer did not find the answer to the simple
security question then the answer should be clear in the document. Please
note that this protocol has many RFCs involved but still this draft needs
to answer clearly the security threat questions. I think maybe
the confusion is that the draft refers to many drafts and does not clarify
the differences between packets and messages, not sure but the reviewer can
help with his observations. The main issues of threats is always about
packets and messages, so why not clarify those differences rather than
referring to other documents.

- We may understand from the below answer is that the question answer is
YES, and  NO if using ICVs or signatures. It states in the draft in page 4,
as OLSRv2 SHOULD use 7183 and MAY use other ....... (it is better not to
use MAY if you don't define/determine the other alternative).

- Section 3.2 page 7,  mentions the attacks threats of modify hop-limit. It
also mentions that hop-limit is not protected by integrity check,,, ( which
is  7183).

Recommend to clarify in draft:
The manet packet has no longer than one hop, it's messages that have
the hop-limit that may be attacked. So the attacker to manet using 7183,
 just can change the hop-limits of messages if has the keys.


AB

On Mon, Dec 19, 2016 at 12:40 PM, Dearlove, Christopher (UK) <
chris.dearlove@baesystems.com> wrote:

> Elwyn Davies
> > s3.2:  I do not know enough about the details of NHDP and OLSRv2 to know
> if this is a silly question:  Would it be possible for a compromised node
> to perform hop-limit or hop-count modification attacks even with RFC 6183
> security in place just by modifying these fields and reforwarding the
> packet even if it wasn't actually in the network topology?   If so, it
> would be desirable to mention this if it can do any harm.
>
> No, not a silly question at all. But there are details that make the
> answer longer than yes or no.
>
> (Typo: RFC 6183 is RFC 7183.)
>
> You need to distinguish packets from messages (this is RFC 5444
> territory). And NHDP doesn't matter here, as its message (HELLO) is not
> forwarded and any hop count or limit is either ignored or possibly used as
> a reason to reject.
>
> So OLSRv2 messages (TC) are forwarded, but at each hop they are put into a
> packet. That packet is assembled from one or more messages, and at each hop
> it is broken apart and a new packet formed. So the TC message may share a
> packet with different other messages at each hop.
>
> RFC 7183, which forwards to RFC 7182 where the actual work is defined,
> allows you to protect either messages, or packets (or both). Packet
> protection protects hop count and hop limit, but has other limitations (it
> is not end to end). Message protection is applied to each message, and is
> end to end (or rather, originator to each processing/forwarding router) but
> does not protect hop count and hop limit.
>
> So if using RFC 7183/7182 just to protect messages (it also covers sender
> addresses) then there is an attack. Attacker receives packet, sends new
> packet that resets hop count and limit in those messages it includes in a
> new packet to only one more hop before end of life. Sends quickly (normal
> forwarding may be delayed, especially if using RFC 5148) and possibly even
> elsewhere in network (wormhole attack). This "penultimate hop" message
> poisons the real message, if it arrives later, as it is seen before, and
> not forwarded, while the penultimate hop message will go one hop and stop.
> (Can we do this with a "last hop" message to poison even more successfully?
> That I would need to check some details in RFC 7181 to determine.)
>
> Could this be prevented? I can imagine a revision of RFC 7181's forwarding
> rules that recorded hop count/limit, and if seeing a longer range message
> decided to forward that even if seen before with a lower range. But that
> introduces a new attack of creating a sequence of increasing range messages
> to add to the traffic load. Or you could use both packet and message ICVs,
> which does prevent this attack but increases overhead. Or (potential future
> that I know someone is working on, but is not a solution now as far as I
> know) find a form of aggregating signature that overcomes this problem
> efficiently.
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
> _______________________________________________
> manet mailing list
> manet@ietf.org
> https://www.ietf.org/mailman/listinfo/manet
>