Fix KRB-FX-CF2 for enctypes with non-dense keyspaces
[heimdal.git] / doc / standardisation / draft-ietf-krb-wg-pkinit-alg-agility-00.txt
blobbf2dd5f2d2f6e73a63fe61bdac20180c6bd1e0d9
4 Network Working Group                               L. Hornquist Astrand
5 Internet-Draft                                      Stockholm University
6 Expires: September 2, 2006                                        L. Zhu
7                                                    Microsoft Corporation
8                                                               March 2006
11                        PK-INIT algorithm agility
12                 draft-ietf-krb-wg-pkinit-alg-agility-00
14 Status of this Memo
16    By submitting this Internet-Draft, each author represents that any
17    applicable patent or other IPR claims of which he or she is aware
18    have been or will be disclosed, and any of which he or she becomes
19    aware will be disclosed, in accordance with Section 6 of BCP 79.
21    Internet-Drafts are working documents of the Internet Engineering
22    Task Force (IETF), its areas, and its working groups.  Note that
23    other groups may also distribute working documents as Internet-
24    Drafts.
26    Internet-Drafts are draft documents valid for a maximum of six months
27    and may be updated, replaced, or obsoleted by other documents at any
28    time.  It is inappropriate to use Internet-Drafts as reference
29    material or to cite them other than as "work in progress."
31    The list of current Internet-Drafts can be accessed at
32    http://www.ietf.org/ietf/1id-abstracts.txt.
34    The list of Internet-Draft Shadow Directories can be accessed at
35    http://www.ietf.org/shadow.html.
37    This Internet-Draft will expire on September 2, 2006.
39 Copyright Notice
41    Copyright (C) The Internet Society (2006).
43 Abstract
45    The PK-INIT protocol have in several places hard coded crypto
46    algorithms.  The protocol specification needs to be updated so it can
47    support negotiation to upgrading to newer versions of crypto
48    algorithms.  This document addresses this issue.
55 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 1]
57 Internet-Draft          PK-INIT algorithm agility             March 2006
60 Table of Contents
62    1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  3
63    2.  Requirements notation  . . . . . . . . . . . . . . . . . . . .  4
64    3.  paChecksum agility . . . . . . . . . . . . . . . . . . . . . .  5
65    4.  CMS Digest Algorithm agility . . . . . . . . . . . . . . . . .  6
66    5.  Certificate Signer Algorithm Identifier agility  . . . . . . .  7
67    6.  octetstring2key function agility . . . . . . . . . . . . . . .  8
68    7.  Security Considerations  . . . . . . . . . . . . . . . . . . .  9
69    8.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 10
70    9.  Normative References . . . . . . . . . . . . . . . . . . . . . 10
71    Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 11
72    Intellectual Property and Copyright Statements . . . . . . . . . . 12
111 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 2]
113 Internet-Draft          PK-INIT algorithm agility             March 2006
116 1.  Introduction
118    The Kerberos PK-INIT document contains several hardcoded algorithms
119    that was know designed at design time that they had to be replaced by
120    something else at a later time, this document described how to use
121    other algorithms other then those that are hard-coded.
167 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 3]
169 Internet-Draft          PK-INIT algorithm agility             March 2006
172 2.  Requirements notation
174    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
175    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
176    document are to be interpreted as described in [RFC2119].
223 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 4]
225 Internet-Draft          PK-INIT algorithm agility             March 2006
228 3.  paChecksum agility
230    The paChecksum binds the PK-INIT part of the request to main body of
231    the Kerberos request (KDC-REQ-BODY).  This is to makes sure an
232    attacker can not change the request from the client to the server.
233    The problem is that paChecksum is hardcoded to use SHA1-1, however,
234    there is a mechaism to provide algorithm agility for the paChecksum
235    within the PK-INIT prototcol.  Newer clients can choose not send the
236    paChecksum field, but rather add some new fields after the existing
237    fields, older KDC will send back know failure-code so that newer
238    clients can fall back to the old protocol if local policy allows
239    that.
241    If the attacker can preserve the checksum in paChecksum, an attacker
242    can, for example, change the KDC-REQ-BODY is to downgrade the
243    encryption types used, expend the expiration time, etc, and then try
244    to brute-force the request.
246    In the Public Key Encryption case of PK-INIT the reply contains a
247    checksum over the whole request in the asChecksum field, in this case
248    the client will detect any modifications to the request.  Since the
249    asChecksum is using the associated checksum of the session key
250    encryption type, asChecksum field is algorithm agile.
252    One way to solve this problem is to add the asChecksum to the Diffie-
253    Hellman case reply too, and just ignore the paCheckSum field.  The
254    KDC should still not issue tickets that are too weak, since that
255    exposes the problem.  This is regardless of the using PK-INIT or not.
257    Questions for wg: Wait for Kerberos Extensions that will solve this
258    problem (ignore the problem for how), or use add asChecksum to DH
259    case.
279 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 5]
281 Internet-Draft          PK-INIT algorithm agility             March 2006
284 4.  CMS Digest Algorithm agility
286    The client can tell KDC what the supported CMS types are in the
287    requset packet, but there are no equivalent for KDC to the the client
288    what the digest algorithm are support in an reply.
290    Have KDC send the CMS list of supported encryption types in the
291    e-data field of KRB-ERROR when returning the
292    KDC_ERR_DIGEST_IN_SIGNED_DATA_NOT_ACCEPTED error.
294    DER encoded TS-SD-PARAMETERS specifies supported digest algorithms.
295    The list is in decreasing preference order.
299    TD-SD-PARAMETERS ::= SEQUENCE OF AlgorithmIdentifier
335 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 6]
337 Internet-Draft          PK-INIT algorithm agility             March 2006
340 5.  Certificate Signer Algorithm Identifier agility
342    The KDC can reject a certificate based on the signers hash algorithm
343    with the error KDC_ERR_DIGEST_IN_CERT_NOT_ACCEPTED, but doesn't tell
344    the client what algorithm are supported.
346    DER encoded TS-DC-PARAMETERS specifies supported certificate digest
347    algorithms.  The AllowedAlgorithms is in decreasing preference order.
348    RejectedAlgorithm may be include my the KDC to tell what algorithm
349    was rejected in case the rejected certificate was part of a computed
350    chain.
354    TD-DC-PARAMETERS ::= SEQUENCE {
355        AllowedAlgorithms [0] SEQUENCE OF AlgorithmIdentifier,
356        RejectedAlgorithm [1] AlgorithmIdentifier OPTIONAL
357    }
391 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 7]
393 Internet-Draft          PK-INIT algorithm agility             March 2006
396 6.  octetstring2key function agility
398    The PK-INIT standard uses a home-grown string 2 key function in the
399    DH case.  The function uses SHA-1 to mix and stretch the DH shared
400    key.
402    Describe how the client announces that is supports the new String to
403    key function.  Probably by stuffing it into the supportCMSTypes field
404    in the request.
406    Use NIST SP 800 56B when its published.
447 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 8]
449 Internet-Draft          PK-INIT algorithm agility             March 2006
452 7.  Security Considerations
454    This document describes negotiation of checksum types and other
455    cryptographic functions.  Most of this negotiation is done
456    unauthenticated with no way to very
503 Hornquist Astrand & Zhu  Expires September 2, 2006              [Page 9]
505 Internet-Draft          PK-INIT algorithm agility             March 2006
508 8.  IANA Considerations
510    No IANA considerations.
512 9.  Normative References
514    [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
515               Requirement Levels", BCP 14, RFC 2119, March 1997.
559 Hornquist Astrand & Zhu  Expires September 2, 2006             [Page 10]
561 Internet-Draft          PK-INIT algorithm agility             March 2006
564 Authors' Addresses
566    Love Hornquist Astrand
567    Stockholm University
568    SE-106 91  STOCKHOLM
569    SWEDEN
571    Email: lha@it.su.se
574    Larry Zhu
575    Microsoft Corporation
576    One Microsoft Way
577    Redmond, WA  98052
578    US
580    Email: lzhu@microsoft.com
615 Hornquist Astrand & Zhu  Expires September 2, 2006             [Page 11]
617 Internet-Draft          PK-INIT algorithm agility             March 2006
620 Intellectual Property Statement
622    The IETF takes no position regarding the validity or scope of any
623    Intellectual Property Rights or other rights that might be claimed to
624    pertain to the implementation or use of the technology described in
625    this document or the extent to which any license under such rights
626    might or might not be available; nor does it represent that it has
627    made any independent effort to identify any such rights.  Information
628    on the procedures with respect to rights in RFC documents can be
629    found in BCP 78 and BCP 79.
631    Copies of IPR disclosures made to the IETF Secretariat and any
632    assurances of licenses to be made available, or the result of an
633    attempt made to obtain a general license or permission for the use of
634    such proprietary rights by implementers or users of this
635    specification can be obtained from the IETF on-line IPR repository at
636    http://www.ietf.org/ipr.
638    The IETF invites any interested party to bring to its attention any
639    copyrights, patents or patent applications, or other proprietary
640    rights that may cover technology that may be required to implement
641    this standard.  Please address the information to the IETF at
642    ietf-ipr@ietf.org.
645 Disclaimer of Validity
647    This document and the information contained herein are provided on an
648    "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
649    OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
650    ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
651    INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
652    INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
653    WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
656 Copyright Statement
658    Copyright (C) The Internet Society (2006).  This document is subject
659    to the rights, licenses and restrictions contained in BCP 78, and
660    except as set forth therein, the authors retain all their rights.
663 Acknowledgment
665    Funding for the RFC Editor function is currently provided by the
666    Internet Society.
671 Hornquist Astrand & Zhu  Expires September 2, 2006             [Page 12]