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 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
|
<pre>Network Working Group V. Torvinen
Request for Comments: 4169 Turku Polytechnic
Category: Informational J. Arkko
M. Naslund
Ericsson
November 2005
<span class="h1">Hypertext Transfer Protocol (HTTP) Digest Authentication Using</span>
<span class="h1">Authentication and Key Agreement (AKA) Version-2</span>
Status of This Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
HTTP Digest, as specified in <a href="./rfc2617">RFC 2617</a>, is known to be vulnerable to
man-in-the-middle attacks if the client fails to authenticate the
server in TLS, or if the same passwords are used for authentication
in some other context without TLS. This is a general problem that
exists not just with HTTP Digest, but also with other IETF protocols
that use tunneled authentication. This document specifies version 2
of the HTTP Digest AKA algorithm (<a href="./rfc3310">RFC 3310</a>). This algorithm can be
implemented in a way that it is resistant to the man-in-the-middle
attack.
<span class="grey">Torvinen Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2">2</a>. HTTP Digest AKAv2 . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-2.1">2.1</a>. Password generation . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-2.2">2.2</a>. Session keys . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-3">3</a>. Example Digest AKAv2 Operation . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4">4</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.1">4.1</a>. Multiple Authentication Schemes and Algorithms . . . . . <a href="#page-7">7</a>
<a href="#section-4.2">4.2</a>. Session Protection . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.3">4.3</a>. Man-in-the-middle attacks . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.4">4.4</a>. Entropy . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5">5</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-5.1">5.1</a>. Registration Information . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6">6</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-6.1">6.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-6.2">6.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Hypertext Transfer Protocol (HTTP) Digest Authentication,
described in [<a href="#ref-4" title=""HTTP Authentication: Basic and Digest Access Authentication"">4</a>], has been extended in [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>] to support the
Authentication and Key Agreement (AKA) mechanism [<a href="#ref-7" title=""Security Architecture (Release 4)"">7</a>]. The AKA
mechanism performs authentication and session key agreement in
Universal Mobile Telecommunications System (UMTS) networks. HTTP
Digest AKA enables the usage of AKA as a one-time password generation
mechanism for Digest authentication.
HTTP Digest is known to be vulnerable to man-in-the-middle attacks,
even when run inside TLS, if the same HTTP Digest authentication
credentials are used in some other context without TLS. The attacker
may initiate a TLS session with a server, and when the server
challenges the attacker with HTTP Digest, the attacker masquerades
the server to the victim. If the victim responds to the challenge,
the attacker is able to use this response towards the server in HTTP
Digest. Note that this attack is an instance of a general attack
that affects a number of IETF protocols, such as PIC. The general
problem is discussed in [<a href="#ref-8" title=""Man-in-the-Middle in Tunnelled Authentication Protocols"">8</a>] and [<a href="#ref-9" title=""The Compound Authentication Binding Problem"">9</a>].
Because of the vulnerability described above, the use of HTTP Digest
"AKAv1" should be limited to the situations in which the client is
able to demonstrate that, in addition to the AKA response, it
possesses the AKA session keys. This is possible, for example, if
the underlying security protocol uses the AKA-generated session keys
to protect the authentication response. This is the case, for
example, in the 3GPP IP Multimedia Core Network Subsystem (IMS),
where HTTP Digest "AKAv1" is currently applied. However, HTTP Digest
<span class="grey">Torvinen Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
"AKAv1" should not be used with tunnelled security protocols that do
not utilize the AKA session keys. For example, the use of HTTP
Digest "AKAv1" is not necessarily secure with TLS if the server side
is authenticated using certificates and the client side is
authenticated using HTTP Digest AKA.
There are at least four potential solutions to the problem:
1. The use of the authentication credentials is limited to one
application only. In general, this approach is good and can be
recommended from the security point of view. However, this will
increase the total number of authentication credentials for an
end-user, and may cause scalability problems in the server side.
2. The keys used in the underlying security protocols are somehow
bound to the keys used in the tunneled authentication protocol.
However, this would cause problems with the current
implementations of underlying security protocols. For example,
it is not possible to use the session keys from TLS at the
application layer. Furthermore, this solution would only solve
the problem when HTTP Digest is used over one hop, and would
leave the problem of using HTTP Digest via multiple hops (e.g.,
via proxy servers) unsolved.
3. Authentication credentials are used in a cryptographically
different way for each media and/or access network. However, it
may be difficult to know which underlying media is used below the
application.
4. Authentication credentials are used in a cryptographically
different way for each application.
This document specifies a new algorithm version for HTTP Digest AKA
(i.e., "AKAv2"). "AKAv2" specifies a cryptographically different way
to use AKA credentials in use cases that are based on either HTTP
Digest authentication or UMTS authentication (cf. approach 4 above).
The only difference to "AKAv1" is that, in addition to an AKA
response RES, the AKA related session keys, IK and CK, are also used
as the password for HTTP Digest. AKAv2 is immune to the
man-in-the-middle attack described above. However, if AKAv2 is used
in some environment, both with and without some underlying security,
such as TLS, the problem still exists.
New HTTP Digest AKA algorithm versions can be registered with IANA,
based on Expert Review. Documentation of new algorithm versions is
not mandated as RFCs. However, "AKAv2" is documented as an RFC
because the use of different AKA algorithm versions includes security
implications of which the implementors should be aware. The
<span class="grey">Torvinen Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
extension version and security implications are presented in this
document.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Terminology</span>
This chapter explains the terminology used in this document.
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 [<a href="#ref-3" title=""Key words for use in RFCs to Indicate Requirement Levels"">3</a>].
AKA
Authentication and Key Agreement.
AKA is a challenge-response based mechanism that uses symmetric
cryptography. AKA can be run in a UMTS IM Services Identity
Module (ISIM) or in UMTS Subscriber Identity Module (USIM), which
reside on a smart-card-like device that also provides tamper
resistant storage of shared secrets.
CK
Cipher Key. An AKA session key for encryption.
CK'
Cipher Key. HTTP Digest AKAv2 session key for encryption. CK' is
derived from CK using a pseudo-random function.
IK
Integrity Key. An AKA session key for integrity check.
IK'
Integrity Key. HTTP Digest AKAv2 session key for integrity check.
IK' is derived from IK using a pseudo-random function.
ISIM
IP Multimedia Services Identity Module. Sometimes ISIM is
implemented using USIM.
RES
Authentication Response. Generated by the ISIM.
<span class="grey">Torvinen Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
PRF
Pseudo-random function that is used to construct the AKAv2
password and related session keys IK' and CK'. In this document,
PRF is presented in the format KD(secret, data), denoting a keyed
digest algorithm (KD) performed to the data ("data") with the
secret ("secret").
SIM
Subscriber Identity Module. GSM counter part for ISIM and USIM.
UMTS
Universal Mobile Telecommunications System.
USIM
UMTS Subscriber Identity Module. UMTS counter part for ISIM and
SIM.
XRES
Expected Authentication Response. In a successful authentication,
this is equal to RES.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. HTTP Digest AKAv2</span>
In general, the Digest AKAv2 operation is identical to the Digest
AKAv1 operation described in [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>]. This chapter specifies the parts
in which Digest AKAv2 is different from Digest AKAv1 operation. The
notation used in the Augmented BNF definitions for the new and
modified syntax elements in this section is as used in SIP [<a href="#ref-5" title=""SIP: Session Initiation Protocol"">5</a>], and
any elements not defined in this section are as defined in [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>].
In order to direct the client into using AKAv2 for authentication
instead of other AKA versions or other HTTP Digest algorithms, the
AKA version directive of [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>] shall have the following new value:
aka-version = "AKAv2"
The AKA version directive is used as a part of the algorithm field as
defined in [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>].
Example: algorithm=AKAv2-MD5
<span class="grey">Torvinen Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Password Generation</span>
The client shall use base64 encoded [<a href="#ref-1" title=""Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies"">1</a>] parameters PRF(RES||IK||CK,
"http-digest-akav2-password") as a "password" when calculating the
HTTP Digest response directive for AKAv2.
The server shall use base64 encoded [<a href="#ref-1" title=""Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies"">1</a>] parameters PRF(XRES||IK||CK,
"http-digest-akav2-password") as a "password" when checking the HTTP
Digest response or when calculating the "response-auth" of the
"Authentication-Info" header.
The pseudo-random function (PRF) used to construct the HTTP Digest
password is equal to HMAC [<a href="#ref-2" title=""HMAC: Keyed-Hashing for Message Authentication"">2</a>] using the hash algorithm that is used
in producing the digest and the checksum. For example, if the
algorithm is AKAv2-MD5, then the PRF is HMAC_MD5.
The string "http-digest-akav2-password" included in the key
derivation is case sensitive.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Session keys</span>
Even though the HTTP Digest AKA framework does not specify the use of
the session keys IK and CK for confidentiality and integrity
protection, the keys may be used for creating additional security
within HTTP authentication or some other security mechanism.
However, the original session keys IK and CK MUST NOT be directly
re-used for such additional security in "AKAv2". Instead, session
keys IK' and CK' are derived from the original keys IK and CK in the
following way:
IK' = PRF(IK, "http-digest-akav2-integritykey")
CK' = PRF(CK, "http-digest-akav2-cipherkey")
Any application using the HTTP authentication framework is allowed to
use these masked session keys. The unmasked session keys MAY also be
re-used in some other context if application-specific strings other
than "http-digest-akav2-integritykey" or
"http-digest-akav2-cipherkey" are used to mask the original session
keys.
The pseudo-random function (PRF) used to construct the HTTP Digest
session keys is equal to HMAC [<a href="#ref-2" title=""HMAC: Keyed-Hashing for Message Authentication"">2</a>] using the hash algorithm that is
used in producing the digest and the checksum. For example, if the
algorithm is AKAv2-MD5, then the PRF is HMAC_MD5. The algorithm MUST
be used in the HMAC format, as defined in [<a href="#ref-2" title=""HMAC: Keyed-Hashing for Message Authentication"">2</a>].
<span class="grey">Torvinen Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
The strings "http-digest-akav2-integritykey" and "http-digest-akav2-
cipherkey" included in the key derivation are case sensitive.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Example Digest AKAv2 Operation</span>
This document does not introduce any changes to the operations of
HTTP Digest or HTTP Digest AKA. Examples defined in [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>] apply
directly to AKAv2 with the following two exceptions:
1. The algorithm directive has a prefix "AKAv2" instead of "AKAv1".
2. The HTTP Digest password is derived from base64 encoded PRF(RES||
IK||CK, "http-digest-akav2-password") or PRF(XRES||IK||CK, "http-
digest-akav2-password") instead of (RES) or (XRES) respectively.
3. The optional session keys are derived from PRF(IK, "http-digest-
akav2-integritykey") and PRF(CK, "http-digest-akav2-cipherkey")
instead of IK and CK respectively.
Note that the password in "AKAv1" is in binary format. The "AKAv2"
password is base64 encoded [<a href="#ref-1" title=""Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies"">1</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Security Considerations</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Multiple Authentication Schemes and Algorithms</span>
The rules for a user agent for choosing among multiple authentication
schemes and algorithms are as defined in [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>], except that the user
agent MUST choose "AKAv2" if both "AKAv1" and "AKAv2" are present.
Since HTTP Digest is known to be vulnerable for bidding-down attacks
in environments where multiple authentication schemes and/or
algorithms are used, the system implementors should pay special
attention to scenarios in which both "AKAv1" and "AKAv2" are used.
The use of both AKA algorithm versions should be avoided, especially
if the AKA generated sessions keys or some other additional security
measures to authenticate the clients (e.g., client certificates) are
not used.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Session Protection</span>
Even though "AKAv2" uses the additional integrity (IK) and
confidentiality (CK) keys as a part of the HTTP Digest AKA password,
these session keys may still be used for creating additional security
within HTTP authentication or some other security mechanism. This
recommendation is based on the assumption that algorithms used in
HTTP Digest, such as MD5, are sufficiently strong one-way functions,
and, consequently, HTTP Digest responses leak no or very little
<span class="grey">Torvinen Informational [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
computational information about IK and CK. Furthermore, the session
keys are masked into IK' and CK' before they can be used for session
protection.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Man-in-the-Middle Attacks</span>
Reference [<a href="#ref-8" title=""Man-in-the-Middle in Tunnelled Authentication Protocols"">8</a>] describes a "man-in-the-middle" attack related to
tunnelled authentication protocols. The attack can occur in an EAP
context or any similar contexts where tunnelled authentication is
used and where the same authentication credentials are used without
protection in some other context or the client fails to authenticate
the server.
For example, the use of TLS with HTTP Digest authentication (i.e.,
TLS for server authentication, and subsequent use of HTTP Digest for
client authentication) is an instance of such scenario. HTTP
challenges and responses can be fetched from and to different TLS
tunnels without noticing their origin. The attack is especially easy
to perform if the client fails to authenticate the server. If the
same HTTP credentials are used with an unsecured connection, the
attack is also easy to perform.
This is how the "man-in-the-middle" attack works with HTTP Digest and
TLS if the victim (i.e., the client) fails to authenticate the
server:
1. The victim contacts the attacker using TLS. If the attacker has
a valid server certificate, the client may continue talking to
the attacker and use some HTTP authentication compatible
protocol, such as the Session Initiation Protocol (SIP).
2. The attacker contacts a real proxy/server also using TLS and an
HTTP-authentication-compatible protocol. The proxy/server
responds to the attacker with the HTTP Authentication challenge.
3. The attacker forwards the HTTP Authentication challenge from the
proxy/server to the victim. If the victim is not careful, and
does not check whether the identity in the server certificate in
TLS matches the realm in the HTTP authentication challenge, it
may send a new request that carries a valid response to the HTTP
Authentication challenge.
4. The attacker may use the response with the victims HTTP Digest
username and password to authenticate itself to the proxy/server.
<span class="grey">Torvinen Informational [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
The man-in-the-middle attack is not possible if the client compares
the identities in the TLS server certificate and the HTTP Digest
authentication challenge. Note that with HTTP Basic, the client
would send the password to the attacker.
Another variant of the "man-in-the-middle" attack is the so-called
"interleaving attack". This attack is possible if the HTTP Digest
authentication credentials are used in several contexts, and in one
of them without protection.
This is how the attack could proceed:
1. The attacker establishes a TLS tunnel to the proxy/server using
one-way server authentication. The attacker sends a request to
the proxy/server.
2. The proxy/server challenges the attacker with the HTTP Digest
challenge.
3. The attacker challenges the victim in some other context using
the challenge carried in the HTTP Digest challenge. The HTTP
Digest challenge needs to be modified to the format used in the
protocol of this other context.
4. The victim responds with a response.
5. The attacker uses the response from the other context for
authentication in HTTP Digest.
6. The proxy/server accepts the response, and delivers the service
to the attacker.
In some circumstances, HTTP Digest AKAv1 may be vulnerable for the
interleaving attack. In particular, if ISIM is implemented using
USIM, the HTTP Digest AKAv1 should not be used with tunneled security
protocols unless the AKA-related session keys, IK and CK, are somehow
used with the solution.
HTTP Digest AKAv2 is not vulnerable to this interleaving attack, and
it can be used with tunneled security protocols without using the
related AKA session keys.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Entropy</span>
AKAv1 passwords should only be used as one-time passwords if the
entropy of the used RES value is limited (e.g., only 32 bits). For
this reason, the re-use of the same RES value in authenticating
subsequent requests and responses is not recommended. Furthermore,
<span class="grey">Torvinen Informational [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
algorithms such as "MD5-sess", which limit the amount of material
hashed with a single key by producing a session key for
authentication, should not be used with AKAv1.
Passwords generated using AKAv2 can more securely be used for
authenticating subsequent requests and responses because the
concatenation of AKA credentials (i.e., RES||IK||CK) makes the
passwords significantly longer, and the pseudo-random function
heuristically provides an entropy equal to the length of this string,
or the length of the PRF output, whichever is the shortest. The user
agent does not need to assume that AKAv2 passwords are limited to
one-time use only, and it may try to re-use the AKAv2 passwords with
the server. However, note that AKAv2 passwords cannot be re-used
with the HTTP Digest AKAv2 algorithm because such an authentication
challenge will automatically generate a fresh password. AKAv2
passwords can be used with other HTTP Digest algorithms, such as
"MD5".
The underlying AKA protocol (e.g., UMTS AKA) has been designed to
keep CK and IK confidential, but will typically send RES in the
clear. We note that, even if (by some unfortunate misuse of AKA) RES
values were revealed, the inclusion of RES in PRF(RES||IK||CK) is
still beneficial, as it makes pre-calculated dictionaries of IK||CK
values rather useless (though such dictionaries are infeasible for
typical sizes of IK and CK).
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
This document specifies a new aka-version, "AKAv2", to the
aka-version namespace maintained by IANA. The procedure for
allocation of new aka-versions is defined in [<a href="#ref-6" title=""Hypertext Transfer Protocol (HTTP) Digest Authentication Using Authentication and Key Agreement (AKA)"">6</a>].
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Registration Information</span>
To: ietf-digest-aka@iana.org
Subject: Registration of a new AKA version
Version identifier: "AKAv2"
Contacts for further information: Vesa.Torvinen@turkuamk.fi,
jari.arkko@ericsson.com, or mats.naslund@ericsson.com
<span class="grey">Torvinen Informational [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-1">1</a>] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part One: Format of Internet Message Bodies",
<a href="./rfc2045">RFC 2045</a>, November 1996.
[<a id="ref-2">2</a>] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed-Hashing
for Message Authentication", <a href="./rfc2104">RFC 2104</a>, February 1997.
[<a id="ref-3">3</a>] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-4">4</a>] Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S.,
Leach, P., Luotonen, A., and L. Stewart, "HTTP Authentication:
Basic and Digest Access Authentication", <a href="./rfc2617">RFC 2617</a>, June 1999.
[<a id="ref-5">5</a>] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A.,
Peterson, J., Sparks, R., Handley, M., and E. Schooler, "SIP:
Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>, June 2002.
[<a id="ref-6">6</a>] Niemi, A., Arkko, J., and V. Torvinen, "Hypertext Transfer
Protocol (HTTP) Digest Authentication Using Authentication and
Key Agreement (AKA)", <a href="./rfc3310">RFC 3310</a>, September 2002.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-7">7</a>] 3rd Generation Partnership Project, "Security Architecture
(Release 4)", TS 33.102, December 2001.
[<a id="ref-8">8</a>] Asokan, N., Niemi, V., and K. Nyberg, "Man-in-the-Middle in
Tunnelled Authentication Protocols", Cryptology ePrint Archive,
<a href="http://eprint.iacr.org">http://eprint.iacr.org</a> Report 2002/163, October 2002.
[<a id="ref-9">9</a>] Puthenkulam, J., Lortz, V., Palekar, A., and D. Simon, "The
Compound Authentication Binding Problem", Work in Progress,
March 2003.
<span class="grey">Torvinen Informational [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
Authors' Addresses
Vesa Torvinen
Turku Polytechnic
Ylhaistentie 2
Salo FIN 24130
Finland
Phone: +358 10 5536210
EMail: vesa.torvinen@turkuamk.fi
Jari Arkko
Ericsson
Hirsalantie 1
Jorvas FIN 02420
Finland
Phone: +358 40 5079256
EMail: jari.arkko@ericsson.com
Mats Naeslund
Ericsson
Torshamnsgatan 23
Stockholm SE 16480
Sweden
Phone: +46 8 58533739
EMail: mats.naslund@ericsson.com
<span class="grey">Torvinen Informational [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4169">RFC 4169</a> HTTP Digest AKAv2 November 2005</span>
Full Copyright Statement
Copyright (C) The Internet Society (2005).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, 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 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 <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
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
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
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.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Torvinen Informational [Page 13]
</pre>
|