Re: [Sip] draft-state-sip-relay-attack-00

"Nils Ohlmeier" <lists@ohlmeier.org> Wed, 11 March 2009 13:49 UTC

Return-Path: <lists@ohlmeier.org>
X-Original-To: sip@core3.amsl.com
Delivered-To: sip@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6F13F3A68CF for <sip@core3.amsl.com>; Wed, 11 Mar 2009 06:49:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UXpJnNE90gHC for <sip@core3.amsl.com>; Wed, 11 Mar 2009 06:49:16 -0700 (PDT)
Received: from bespin.rfc3261.net (cl-395.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:18a::2]) by core3.amsl.com (Postfix) with ESMTP id 34DE03A6823 for <sip@ietf.org>; Wed, 11 Mar 2009 06:49:16 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by bespin.rfc3261.net (Postfix) with ESMTP id AC6757F97; Wed, 11 Mar 2009 14:49:50 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at bespin.rfc3261.net
Received: from bespin.rfc3261.net ([127.0.0.1]) by localhost (bespin.rfc3261.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RMhUHbGHmnYG; Wed, 11 Mar 2009 14:49:50 +0100 (CET)
Received: from www.ohlmeier.com (localhost [127.0.0.1]) by bespin.rfc3261.net (Postfix) with ESMTP id 326917F82; Wed, 11 Mar 2009 14:49:50 +0100 (CET)
Received: from 192.100.130.229 (SquirrelMail authenticated user lando) by www.ohlmeier.com with HTTP; Wed, 11 Mar 2009 14:49:50 +0100 (CET)
Message-ID: <2ec0d47f2557274d61ca48882a379aa1.squirrel@www.ohlmeier.com>
In-Reply-To: <49B77BEB.4000501@iptel.org>
References: <49AE593F.6080807@iptel.org> <e4c7495a3f98d5a2a85ccf85047515f0.squirrel@www.ohlmeier.com> <20090307183313.GA4364@x61s.janakj.ryngle.net> <E6C2E8958BA59A4FB960963D475F7AC314C4DE6292@mail> <49B2F7F2.6030804@ohlmeier.org> <E6C2E8958BA59A4FB960963D475F7AC314C4DE62D4@mail> <E6C2E8958BA59A4FB960963D475F7AC314C4DE62F0@mail> <49B5006D.8050702@iptel.org> <E6C2E8958BA59A4FB960963D475F7AC314C4FAA08C@mail> <49B63B9F.9000101@iptel.org> <E6C2E8958BA59A4FB960963D475F7AC314E2E0A466@mail> <49B77BEB.4000501@iptel.org>
Date: Wed, 11 Mar 2009 14:49:50 +0100
From: Nils Ohlmeier <lists@ohlmeier.org>
To: Raphael Coeffic <rco@iptel.org>
User-Agent: SquirrelMail/1.4.15
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Cc: Nils Ohlmeier <lists@ohlmeier.org>, "sip@ietf.org" <sip@ietf.org>, Hadriel Kaplan <hkaplan@acmepacket.com>
Subject: Re: [Sip] draft-state-sip-relay-attack-00
X-BeenThere: sip@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Session Initiation Protocol <sip.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sip>
List-Post: <mailto:sip@ietf.org>
List-Help: <mailto:sip-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Mar 2009 13:49:17 -0000

> Hadriel Kaplan wrote:
>>
>>> -----Original Message-----
>>> From: Raphael Coeffic [mailto:rco@iptel.org]
>>> Sent: Tuesday, March 10, 2009 6:06 AM
>>>
>>> Hadriel Kaplan wrote:
>>>
>>> Forcing registrations is the path that IMS went for, I believe. But if
>>> you want to take advantage of this, you may have to deploy a little
>>> more
>>> IMS than you'd like to.
>>>
>>
>> The concept and practice of "forcing" UA's, which have AoR's belonging
>> to a domain, to REGISTER their contact binding for those AoR's in order
>> to make calls, has been around a lot longer than IMS has.  Invoking the
>> "that sounds like IMS" defense is a cheap guilt-by-association argument,
>> and not relevant.  One might as well argue that using INVITE's or RTP
>> "is the path that IMS went for".
>>
>> You keep making it sound like sending a SIP request which does not
>> create a dialog is somehow a difficult mechanism to implement, or
>> "forces" people to do something they don't want to.  What is it forcing?
>>
>>
> Well, it is not required as per RFC 3261 ;-)
>
>> You're looking for a means of authenticating a UA without being subject
>> to a relay attack.  Using a different SIP Method name, which can only be
>> initiated by the client with the credentials, and one that UA's cannot
>> be baited to provide by random third parties, is one solution to the
>> problem.  If you don't like the string "REGISTER", then how about
>> "OPTIONS"?
>>
>>
> No, I think you missunderstood me. I still think that requiring a
> registration and checking the source IP and port against the registered
> contact is a fair measure to take. However, it introduces more traffic
> in some scenarios, where it is not necessarily needed. REGISTERs could
> become the "background load" in the servers. This also puts a lot of
> state into some proxies that does not need it, etc...
> My concern is just that it seems like there is no better solution.

Sure to create a Contact binding via an authenticated REGISTER is one
possible solution.
But I think this only works because you rely on the fact that REGISTERs
are not being retargeted like INVITEs. Which then in the end means you
simply can forget about authenticating all other requests, as long as the
Contact or IP/port was successfully authenticated via the "one hop"
REGISTER method (refer-to: IMS).
The advantage of this solution is clearly that it can be easily deployed
by hopefully most of the service providers today.

But I believe the proper technical solution would be that the server
authenticates itself in the challenge, plus adding protected informations
to the challenge which allows the receiver of the challenge to verify that
this challenge was/is targeted to himself.
The dis-advantage is clearly that this would be only possible with
extensions of the existing protocols. But we would/might gain other
benefits by such a solution as well.

Regards
  Nils Ohlmeier