Re: [sipcore] Comments on draft-ietf-sipcore-sip-authn-02

Rifaat Shekh-Yusef <rifaat.ietf@gmail.com> Fri, 08 June 2018 19:16 UTC

Return-Path: <rifaat.ietf@gmail.com>
X-Original-To: sipcore@ietfa.amsl.com
Delivered-To: sipcore@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CFCD2130F75 for <sipcore@ietfa.amsl.com>; Fri, 8 Jun 2018 12:16:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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_NONE=-0.0001, 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 A4HFQIK4lnYA for <sipcore@ietfa.amsl.com>; Fri, 8 Jun 2018 12:16:24 -0700 (PDT)
Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::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 7896D130F06 for <sipcore@ietf.org>; Fri, 8 Jun 2018 12:16:24 -0700 (PDT)
Received: by mail-ua0-x233.google.com with SMTP id x18-v6so9601663uaj.9 for <sipcore@ietf.org>; Fri, 08 Jun 2018 12:16:24 -0700 (PDT)
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=YLnBRszKCRcaPwyUd6xv/z1sinOuJa4lEgGJARgbyb8=; b=TwXqouFTs0gGxvFjUpodUt88m0P2TmteOKgilu98p0RS9+R9FJb4nMZKmT+fTBbKiB Wv3nIFs8OXB5xLMuZxlWgUNWfid2mrq5YJFaI3eVkiclrbo5Ipbn84O9yl715ZGK2KeZ vXaEThngIQRDZNiNojKEq6RWEZzuNGtm7tBAseH/AvYOqKeTyJKsKVlvEKTWJ6dGYFTw tPTSH+sBpRwNueX308RZZMy9iIYMpJDtwvtgxOVToAFsRDRsDn8rqalSMAKjJI4myeMk 5Yu1pbLEqoXJnH3RiTi3/qzvavgl1OZsqzPP414pL6YgGJ/tBdJlqosOIMwThyErCN1u AyVA==
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=YLnBRszKCRcaPwyUd6xv/z1sinOuJa4lEgGJARgbyb8=; b=J6APpnI6TNG90bJKYLez3jpbKz4OaE+M7y+il7391XEs0oFmr0DyKiPg1pk912uGGq KoLMCuT3J9uJNUZwjWgB6ozqIFId/kCxUQMrwyoYuLmPxu9k/0GMTuFr9WIIG6dMT7Ea kuldhpILIIL9U+pXGGlX6ZogCUGTOzYgnXSABslnjBx7D6hVOT0gNZZEzb3z0HqACDpJ lhA3I6LQj2im9Ixa4zfHI1ZOFev4feG9vvbxgaY9ubTxiHHl2d000lO15wfyxFCq+j3m X8+k2R9nA2TjC3gCzqKYssAdeYJPF7V3z+WIS89F3/Ka4TWu/7tRavyBaAvXxARc34N+ 4V3w==
X-Gm-Message-State: APt69E3uRGsvgI08GSdaAI8EcjmxnIZdTJq3UmwEMNsf8X6HFT6liAsh r80h1crEhxssRppJy6TpH6Qj2FnWR7nNBoz4CMoy0g==
X-Google-Smtp-Source: ADUXVKJh3xja5sR4OJVyv4F5toFjJD486S+4icOK+i0FjLMqU/ga7Kp8gdEKPIVOl7O7aQctYBZaNty7kZcr09q1HkE=
X-Received: by 2002:ab0:1523:: with SMTP id o32-v6mr4967233uae.194.1528485383092; Fri, 08 Jun 2018 12:16:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:ab0:458c:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 12:16:22 -0700 (PDT)
In-Reply-To: <CAF_j7yZPaG07LpEx+-aA6qDQQd00EfigNtd5TUxsXbPykPiPZA@mail.gmail.com>
References: <CAF_j7yZPaG07LpEx+-aA6qDQQd00EfigNtd5TUxsXbPykPiPZA@mail.gmail.com>
From: Rifaat Shekh-Yusef <rifaat.ietf@gmail.com>
Date: Fri, 08 Jun 2018 15:16:22 -0400
Message-ID: <CAGL6epK24wvDfvA5c+rpR7XeNbwYmCNAxFRvxZtMX=i9QOQRWw@mail.gmail.com>
To: Yehoshua Gev <yoshigev@gmail.com>
Cc: SIPCORE <sipcore@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000004dbf3d056e263c7b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/sipcore/UxpaMkwcUgidC-hLIvBvoWky1LE>
Subject: Re: [sipcore] Comments on draft-ietf-sipcore-sip-authn-02
X-BeenThere: sipcore@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: SIP Core Working Group <sipcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sipcore>, <mailto:sipcore-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sipcore/>
List-Post: <mailto:sipcore@ietf.org>
List-Help: <mailto:sipcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Jun 2018 19:16:27 -0000

Hi Yehoshua,

Thanks for your review and comments.
See my replies inline.

Regards,
 Rifaat


On Thu, Jun 7, 2018 at 3:54 AM, Yehoshua Gev <yoshigev@gmail.com> wrote:

> Hi,
>
> Several comments:
>
> Section 2.2.4: There is a reference to RFC 4474 for the list of SIP
> headers to be included in digest-string.
> I think it would be good to specifically indicate that the digest-string
> equals to signed-identity-digest of RFC 4474, but without the enclosing
> quotes.
>

I am not clear on what you mean by "digest-string equals to
signed-identity-digest "
The goal is to use the shared-key to provide a hash of digest-string as
proof that the client has access to the shared-key.


>
> Section 3.2: The last paragraph does not indicate what should be done in
> case of authentication failure (due to missing authentication token in the
> request or usage of invalid token).
> RFC 6750 section 3 requires the use of 401 with WWW-Authenticate header,
> and details the syntax of that header.
> I believe that the draft can add a reference to that section, saying that
> the same syntax should be used in SIP.
>

Yeah, I agree that the document should explicitly cover the failure use
case.
I will address that in the next version of the document.


> Section 4:
> a. I think that a note should be added that the syntax of the Bearer
> scheme defined here for SIP deviates from the syntax defined by RFC 6750
> (in that that the token is given in a name=value format). I believe this is
> done to conform to the current SIP ABNF - maybe this should be written as a
> reasoning for the deviation.
>

That is correct. I will add a note.


>
> b.. Given the proposed syntax, I don't see a reason to forbid extensions.
> Maybe the syntax could be written like:
>   credentials /= ("Bearer" LWS bearer-response)
>   bearer-response = "access_token" EQUAL access_token *(COMMA auth-param)
>
>
We could do that. Do you have a specific parameter in mind?
I will look into the proper syntax for this.



> General:
> The draft describes how registrations are authenticated.
> There are scenarios for which there is no registration done (like
> click-to-call, where only outbound calls are done).
> Maybe the draft should be expanded to include any SIP request.
>
>
Good point. I will add some text around that.



> This might even be a security issue:
> In regular SIP Digest authentication, the Authorization header is included
> in all requests even after successful registration, probably as SIP doesn't
> require that subsequent requests are sent over the same [authenticated/
> secured] transport-layer connection.
> Section 2 of the draft roughly corresponds to the methods described in
> section 4 (Obtaining Authorization) of RFC 6749.
> But, in RFC 6749 these methods are only used to obtain an access token to
> be used on subsequent requests, whilst in the draft they are used for
> achieving access.
> I'm not an expert on OAuth, but I believe the only methods to achieve
> access are defined in section 7 (Accessing Protected Resources) of RFC
> 6749, which require the usage of an access token with Authorization header
> (similar to section 3 of the draft).
>
>
Section 2.1.2 defines the idea of a shared-key to be used to establish new
connection and re-register to the proxy after a connection is lost, without
the need for a new code.
This same mechanism could be used with all subsequent requests, not only
registration. I will add some text to explicitly state that.

Regards,
 Rifaat




> Thanks,
> Yehoshua Gev
>
>
> _______________________________________________
> sipcore mailing list
> sipcore@ietf.org
> https://www.ietf.org/mailman/listinfo/sipcore
>
>