1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
|
Network Working Group G. Camarillo
Request for Comments: 5018 Ericsson
Category: Standards Track September 2007
Connection Establishment in the Binary Floor Control Protocol (BFCP)
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Abstract
This document specifies how a Binary Floor Control Protocol (BFCP)
client establishes a connection to a BFCP floor control server
outside the context of an offer/answer exchange. Client and server
authentication are based on Transport Layer Security (TLS).
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3. TCP Connection Establishment . . . . . . . . . . . . . . . . . 2
4. TLS Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
5. Authentication . . . . . . . . . . . . . . . . . . . . . . . . 4
5.1. Certificate-Based Server Authentication . . . . . . . . . . 4
5.2. Client Authentication Based on a Pre-Shared Secret . . . . 5
6. Security Considerations . . . . . . . . . . . . . . . . . . . . 5
7. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . 7
8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 7
8.1. Normative References . . . . . . . . . . . . . . . . . . . 7
8.2. Informative References . . . . . . . . . . . . . . . . . . 8
Camarillo Standards Track [Page 1]
^L
RFC 5018 BFCP September 2007
1. Introduction
As discussed in the BFCP (Binary Floor Control Protocol)
specification [RFC4582], a given BFCP client needs a set of data in
order to establish a BFCP connection to a floor control server.
These data include the transport address of the server, the
conference identifier, and the user identifier.
Once a client obtains this information, it needs to establish a BFCP
connection to the floor control server. The way this connection is
established depends on the context of the client and the floor
control server. How to establish such a connection in the context of
an SDP (Session Description Protocol) [RFC4566] offer/answer
[RFC3264] exchange between a client and a floor control server is
specified in RFC 4583 [RFC4583]. This document specifies how a
client establishes a connection to a floor control server outside the
context of an SDP offer/answer exchange.
BFCP entities establishing a connection outside an SDP offer/answer
exchange need different authentication mechanisms than entities using
offer/answer exchanges. This is because offer/answer exchanges
provide parties with an initial integrity-protected channel that
clients and floor control servers can use to exchange the
fingerprints of their self-signed certificates. Outside the offer/
answer model, such a channel is not typically available. This
document specifies how to authenticate clients using PSK (Pre-Shared
Key)-TLS (Transport Layer Security) [RFC4279] and how to authenticate
servers using server certificates.
2. Terminology
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119].
3. TCP Connection Establishment
As stated in Section 1, a given BFCP client needs a set of data in
order to establish a BFCP connection to a floor control server.
These data include the transport address of the server, the
conference identifier, and the user identifier. It is outside the
scope of this document to specify how a client obtains this
information. This document assumes that the client obtains this
information using an out-of-band method.
Once the client has the transport address (i.e., IP address and port)
of the floor control server, it initiates a TCP connection towards
it. That is, the client performs an active TCP open.
Camarillo Standards Track [Page 2]
^L
RFC 5018 BFCP September 2007
If the client is provided with the floor control server's host name
instead of with its IP address, the client MUST perform a DNS lookup
in order to resolve the host name into an IP address. Clients
eventually perform an A or AAAA DNS lookup (or both) on the host
name.
In order to translate the target to the corresponding set of IP
addresses, IPv6-only or dual-stack clients MUST use name resolution
functions that implement the Source and Destination Address Selection
algorithms specified in [RFC3484]. (On many hosts that support IPv6,
APIs like getaddrinfo() provide this functionality and subsume
existing APIs like gethostbyname().)
The advantage of the additional complexity is that this technique
will output an ordered list of IPv6/IPv4 destination addresses based
on the relative merits of the corresponding source/destination pairs.
This will result in the selection of a preferred destination address.
However, the Source and Destination Selection algorithms of [RFC3484]
are dependent on broad operating system support and uniform
implementation of the application programming interfaces that
implement this behavior.
Developers should carefully consider the issues described by Roy
et al. [RFC4943] with respect to address resolution delays and
address selection rules. For example, implementations of
getaddrinfo() may return address lists containing IPv6 global
addresses at the top of the list and IPv4 addresses at the bottom,
even when the host is only configured with an IPv6 local scope
(e.g., link-local) and an IPv4 address. This will, of course,
introduce a delay in completing the connection.
The BFCP specification [RFC4582] describes a number of situations
when the TCP connection between a client and the floor control server
needs to be reestablished. However, that specification does not
describe the reestablishment process because this process depends on
how the connection was established in the first place.
When the existing TCP connection is closed following the rules in
[RFC4582], the client SHOULD reestablish the connection towards the
floor control server. If a TCP connection cannot deliver a BFCP
message from the client to the floor control server and times out,
the client SHOULD reestablish the TCP connection.
Camarillo Standards Track [Page 3]
^L
RFC 5018 BFCP September 2007
4. TLS Usage
[RFC4582] requires that all BFCP entities implement TLS [RFC4346] and
recommends that they use it in all their connections. TLS provides
integrity and replay protection, and optional confidentiality. The
floor control server MUST always act as the TLS server.
A floor control server that receives a BFCP message over TCP (no TLS)
SHOULD request the use of TLS by generating an Error message with an
Error code with a value of 9 (Use TLS).
5. Authentication
BFCP supports client authentication based on pre-shared secrets and
server authentication based on server certificates.
5.1. Certificate-Based Server Authentication
At TLS connection establishment, the floor control server MUST
present its certificate to the client. The certificate provided at
the TLS level MUST either be directly signed by one of the other
party's trust anchors or be validated using a certification path that
terminates at one of the other party's trust anchors [RFC3280].
A client establishing a connection to a server knows the server's
host name or IP address. If the client knows the server's host name,
the client MUST check it against the server's identity as presented
in the server's Certificate message, in order to prevent man-in-the-
middle attacks.
If a subjectAltName extension of type dNSName is present, that MUST
be used as the identity. Otherwise, the (most specific) Common Name
field in the Subject field of the certificate MUST be used. Although
the use of the Common Name is existing practice, it is deprecated and
Certification Authorities are encouraged to use the subjectAltName
instead.
Matching is performed using the matching rules specified by
[RFC3280]. If more than one identity of a given type is present in
the certificate (e.g., more than one dNSName name), a match in any
one of the set is considered acceptable. Names in Common Name fields
may contain the wildcard character *, which is considered to match
any single domain name component or component fragment (e.g., *.a.com
matches foo.a.com but not bar.foo.a.com. f*.com matches foo.com but
not bar.com).
Camarillo Standards Track [Page 4]
^L
RFC 5018 BFCP September 2007
If the client does not know the server's host name and contacts the
server directly using the server's IP address, the iPAddress
subjectAltName must be present in the certificate and must exactly
match the IP address known to the client.
If the host name or IP address known to the client does not match the
identity in the certificate, user-oriented clients MUST either notify
the user (clients MAY give the user the opportunity to continue with
the connection in any case) or terminate the connection with a bad
certificate error. Automated clients MUST log the error to an
appropriate audit log (if available) and SHOULD terminate the
connection (with a bad certificate error). Automated clients MAY
provide a configuration setting that disables this check, but MUST
provide a setting that enables it.
5.2. Client Authentication Based on a Pre-Shared Secret
Client authentication is based on a pre-shared secret between client
and server. Authentication is performed using PSK-TLS [RFC4279].
The BFCP specification mandates support for the
TLS_RSA_WITH_AES_128_CBC_SHA ciphersuite. Additionally, clients and
servers supporting this specification MUST support the
TLS_RSA_PSK_WITH_AES_128_CBC_SHA ciphersuite as well.
6. Security Considerations
Client and server authentication as specified in this document are
based on the use of TLS. Therefore, it is strongly RECOMMENDED that
TLS with non-null encryption is always used. Clients and floor
control servers MAY use other security mechanisms as long as they
provide similar security properties (i.e., replay and integrity
protection, confidentiality, and client and server authentication).
TLS PSK simply relies on a pre-shared key without specifying the
nature of the key. In practice, such keys have two sources: text
passwords and randomly generated binary keys. When keys are derived
from passwords, TLS PSK mode is subject to offline dictionary
attacks. In DHE (Diffie-Hellman Exchange) and RSA modes, an attacker
who can mount a single man-in-the-middle attack on a client/server
pair can then mount a dictionary attack on the password. In modes
without DHE or RSA, an attacker who can record communications between
a client/server pair can mount a dictionary attack on the password.
Accordingly, it is RECOMMENDED that, where possible, clients use
certificate-based server authentication ciphersuites with password-
derived PSKs in order to defend against dictionary attacks.
Camarillo Standards Track [Page 5]
^L
RFC 5018 BFCP September 2007
In addition, passwords SHOULD be chosen with enough entropy to
provide some protection against dictionary attacks. Because the
entropy of text varies dramatically and is generally far less than
that of an equivalent random bitstring, no hard and fast rules about
password length are possible. However, in general passwords SHOULD
be chosen to be at least 8 characters and selected from a pool
containing both upper and lower case, numbers, and special keyboard
characters (note that an 8-character ASCII password has a maximum
entropy of 56 bits and in general far lower). FIPS PUB 112 [PUB112]
provides some guidance on the relevant issues. If possible,
passphrases are preferable to passwords. It is RECOMMENDED that
implementations support, at minimum, 16-character passwords or
passphrases. In addition, a cooperating client and server pair MAY
choose to derive the TLS PSK shared key from the passphrase via a
password-based key derivation function such as PBKDF2 [RFC2898].
Because such key derivation functions may incorporate iteration
functions for key strengthening, they provide some additional
protection against dictionary attacks by increasing the amount of
work that the attacker must perform.
When the keys are randomly generated and of sufficient length,
dictionary attacks are not effective because such keys are highly
unlikely to be in the attacker's dictionary. Where possible, keys
SHOULD be generated using a strong random number generator as
specified in [RFC4086]. A minimum key length of 80 bits SHOULD be
used.
The remainder of this section analyzes some of the threats against
BFCP and how they are addressed.
An attacker may attempt to impersonate a client (a floor participant
or a floor chair) in order to generate forged floor requests or to
grant or deny existing floor requests. Client impersonation is
avoided by using TLS. The floor control server assumes that
attackers cannot hijack TLS connections from authenticated clients.
An attacker may attempt to impersonate a floor control server. A
successful attacker would be able to make clients think that they
hold a particular floor so that they would try to access a resource
(e.g., sending media) without having legitimate rights to access it.
Floor control server impersonation is avoided by having floor control
servers present their server certificates at TLS connection
establishment time.
Attackers may attempt to modify messages exchanged by a client and a
floor control server. The integrity protection provided by TLS
connections prevents this attack.
Camarillo Standards Track [Page 6]
^L
RFC 5018 BFCP September 2007
Attackers may attempt to pick messages from the network to get access
to confidential information between the floor control server and a
client (e.g., why a floor request was denied). TLS confidentiality
prevents this attack. Therefore, it is RECOMMENDED that TLS is used
with a non-null encryption algorithm.
7. Acknowledgments
Sam Hartman, David Black, Karim El Malki, and Vijay Gurbani provided
useful comments on this document. Eric Rescorla performed a detailed
security analysis of this document.
8. References
8.1. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997.
[RFC3264] Rosenberg, J. and H. Schulzrinne, "An Offer/Answer Model
with Session Description Protocol (SDP)", RFC 3264,
June 2002.
[RFC3280] Housley, R., Polk, W., Ford, W., and D. Solo, "Internet
X.509 Public Key Infrastructure Certificate and
Certificate Revocation List (CRL) Profile", RFC 3280,
April 2002.
[RFC3484] Draves, R., "Default Address Selection for Internet
Protocol version 6 (IPv6)", RFC 3484, February 2003.
[RFC4086] Eastlake, D., Schiller, J., and S. Crocker, "Randomness
Requirements for Security", BCP 106, RFC 4086, June 2005.
[RFC4279] Eronen, P. and H. Tschofenig, "Pre-Shared Key Ciphersuites
for Transport Layer Security (TLS)", RFC 4279,
December 2005.
[RFC4346] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.1", RFC 4346, April 2006.
[RFC4566] Handley, M., Jacobson, V., and C. Perkins, "SDP: Session
Description Protocol", RFC 4566, July 2006.
[RFC4582] Camarillo, G., Ott, J., and K. Drage, "The Binary Floor
Control Protocol (BFCP)", RFC 4582, November 2006.
Camarillo Standards Track [Page 7]
^L
RFC 5018 BFCP September 2007
[RFC4583] Camarillo, G., "Session Description Protocol (SDP) Format
for Binary Floor Control Protocol (BFCP) Streams",
RFC 4583, November 2006.
[PUB112] National Institute of Standards and Technology (NIST),
"Password Usage", FIPS PUB 112, May 1985.
8.2. Informative References
[RFC2898] Kaliski, B., "PKCS #5: Password-Based Cryptography
Specification Version 2.0", RFC 2898, September 2000.
[RFC4943] Roy, S., Durand, A., and J. Paugh, "IPv6 Neighbor
Discovery On-Link Assumption Considered Harmful",
RFC 4943, September 2007.
Author's Address
Gonzalo Camarillo
Ericsson
Hirsalantie 11
Jorvas 02420
Finland
EMail: Gonzalo.Camarillo@ericsson.com
Camarillo Standards Track [Page 8]
^L
RFC 5018 BFCP September 2007
Full Copyright Statement
Copyright (C) The IETF Trust (2007).
This document is subject to the rights, licenses and restrictions
contained in BCP 78, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in BCP 78 and BCP 79.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
http://www.ietf.org/ipr.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Camarillo Standards Track [Page 9]
^L
|