home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_j_p / draft-ietf-otp-ext-02.txt < prev    next >
Text File  |  1997-04-16  |  16KB  |  466 lines

  1.  
  2. INTERNET DRAFT                                              Craig Metz
  3. draft-ietf-otp-ext-02.txt                               Kaman Sciences
  4. April 18, 1997
  5.  
  6.  
  7.                         OTP Extended Responses
  8.  
  9.  
  10. STATUS OF THIS MEMO
  11.  
  12.   This document is an Internet Draft. Internet Drafts are working
  13.   documents of the Internet Engineering Task Force (IETF), its Areas
  14.   and Working Groups. Note that other groups may also distribute
  15.   working documents as Internet Drafts.
  16.  
  17.   Internet Drafts are draft documents valid for a maximum of six
  18.   months. Drafts may be updated, replaced, or obsoleted by other
  19.   documents at any time. It is not appropriate to use Internet Drafts
  20.   as reference material or to cite them other than as a "working
  21.   draft" or "work in progress."
  22.  
  23.   To learn the current status of any Internet Draft, please check the
  24.   1id-abstracts.txt listing contained in the Internet-Drafts Shadow
  25.   Directories on ftp.is.co.za (Africa), ds.internic.net (US East
  26.   Coast), nic.nordu.net (Europe), ftp.isi.com (US West Coast), or
  27.   munnari.oz.au (Pacific Rim).
  28.  
  29.   The distribution of this Internet Draft is unlimited. It is filed as
  30.   <draft-ietf-otp-ext-02.txt> and it expires on October 18, 1997.
  31.  
  32. 1.0 ABSTRACT
  33.  
  34.   This document provides a specification for a type of response to an
  35.   OTP [RFC 1938] challenge that carries explicit indication of the
  36.   response's encoding. Codings for the two mandatory OTP data formats
  37.   using this new type of response are presented.
  38.  
  39.   This document also provides a specification for a response that
  40.   allows OTP generator to request that a server re-initialize a
  41.   sequence and change parameters such as the secret pass phrase.
  42.  
  43. 2.0 CONVENTIONS, TERMS, and NOTATION
  44.  
  45.   This document specifies the data formats and software behaviors
  46.   needed to use OTP extended responses. The data formats are described
  47.   three ways: using an ad-hoc UNIX manual page style syntax, using
  48.   augmented BNF described in sections two and three of RFC 822, and by
  49.   examples. Should there be any conflict between these descriptions,
  50.   the augmented BNF takes precedence. The software behaviors are
  51.   described in words, and specific behavior compliance requirements
  52.   are itemized using the requirements terminology described in section
  53.   four of RFC 1938.
  54.  
  55.  
  56.  
  57.  
  58.  
  59. C. Metz                                                       [Page 1]
  60.  
  61. INTERNET DRAFT          OTP Extended Responses          April 18, 1997
  62.  
  63.  
  64. 3.0 EXTENDED RESPONSES
  65.  
  66.   This document builds on the protocol and terminology specified in
  67.   RFC 1938 and assumes that you have already read this document and
  68.   understand its contents.
  69.  
  70.   An extended response is a single line of printable text terminated
  71.   by a new line sequence appropriate for the context of its use (e.g.,
  72.   ASCII CR followed by ASCII LF). It contains two or more tokens that
  73.   are separated with a single colon (':') character. The first token
  74.   contains a type specifier that indicates the format of the rest of
  75.   the response. The tokens that follow are argument data for the OTP
  76.   extended response. At least one token of data MUST be present.
  77.  
  78.   Syntax
  79.  
  80.   In UNIX manual page like syntax, the general form of an extended
  81.   response could be described as:
  82.  
  83.      <type-specifier>:<arg1>[:<arg2>[:...]]
  84.  
  85.   In augmented BNF syntax, the syntax of the general form of an
  86.   extended response is:
  87.  
  88.   extended-response = type 1*(":" argument) NL
  89.   type              = token
  90.   argument          = token
  91.   token             = 1*<any CHAR except ":" and CTLs>
  92.   NL                = CRLF / CR / LF / <other appropriate new line sequence>
  93.  
  94.   An example of the extended response using a mythical type named
  95.   "foo" is:
  96.  
  97.      foo:some data:some more data:12345
  98.  
  99.   Requirements
  100.  
  101.   A server compliant with this specification:
  102.  
  103.     1. MUST be able to receive and parse the general form of an extended
  104.        response
  105.     2. MUST process the type field in a case-insensitive manner
  106.     3. MUST reject any authentication attempt using an extended response
  107.        if it does not support that type of response
  108.     4. SHOULD provide an appropriate indication to the generator if the
  109.        response was rejected because of (3)
  110.     5. MUST limit the length of the input reasonably
  111.     6. MUST accept otherwise arbitrary amounts of whitespace wherever a
  112.        response allows it
  113.     7. MUST be able to receive and correctly process standard OTP
  114.        responses
  115.  
  116.  
  117. C. Metz                                                       [Page 2]
  118.  
  119. INTERNET DRAFT          OTP Extended Responses          April 18, 1997
  120.  
  121.  
  122.  
  123.   A generator compliant with this specification:
  124.  
  125.     1. SHOULD have an option that selects whether standard or extended
  126.        responses are generated
  127.     2. SHOULD make (1) easily available to the end user
  128.     3. SHOULD be configurable on a per-server or per-seed basis
  129.     4. MUST be able to generate standard OTP responses
  130.     5. SHOULD initially default to using standard responses
  131.     6. MUST generate the type field in lower case
  132.  
  133.  
  134. 4.0 THE "HEX" AND "WORD" RESPONSES
  135.  
  136.   There exists a very rare case in which a standard OTP response could
  137.   be a valid coding in both the hexadecimal and six-word formats. An
  138.   example of this is the response "ABE ACE ADA ADD BAD A."  The
  139.   solution to this problem mandated by the OTP specification is that
  140.   compliant servers MUST attempt to parse and verify a standard
  141.   response in both hexadecimal and six-word formats and must consider
  142.   the authentication successful if either succeeds.
  143.  
  144.   This problem can be solved easily using extended responses. The
  145.   "hex" response and the "word" response are two response types that
  146.   encode an OTP in an extended response that explicitly describes the
  147.   encoding. These responses start with a type label of "hex" for a
  148.   hexadecimal OTP and "word" for a six-word coded OTP. These responses
  149.   contain one argument field that contains a standard OTP response
  150.   coded in the indicated format.
  151.  
  152.   Syntax
  153.  
  154.   In UNIX manual page like syntax, the format of these responses could
  155.   be described as:
  156.  
  157.      hex:<hexadecimal number>
  158.      word:<six dictionary words>
  159.  
  160.   In augmented BNF syntax and with the definitions already provided,
  161.   the syntax of these responses is:
  162.  
  163.      hex-response  = "hex:" hex-64bit NL
  164.      hex-64bit     = 16(hex-char *LWSP-char)
  165.      hex-char      = ("A" / "B" / "C" / "D" / "E" / "F" /
  166.                       "a" / "b" / "c" / "d" / "e" / "f" /
  167.                       "0" / "1" / "2" / "3" / "4" / "5" /
  168.                       "6" / "7" / "8" / "9")
  169.  
  170.      word-response = "word:" word-64bit NL
  171.      word-64bit    = 6(otp-word 1*LWSP-char)
  172.      otp-word      = <any valid word in the standard OTP coding dictionary>
  173.  
  174.  
  175. C. Metz                                                       [Page 3]
  176.  
  177. INTERNET DRAFT          OTP Extended Responses          April 18, 1997
  178.  
  179.  
  180.  
  181.   Examples of these responses are:
  182.  
  183.           hex:8720 33d4 6202 9172
  184.           word:VAST SAUL TAKE SODA SUCH BOLT
  185.  
  186.   Requirements
  187.  
  188.   A server compliant with this specification:
  189.  
  190.      1. MUST process all arguments in a case-insensitive manner
  191.  
  192.   A generator compliant with this specification:
  193.  
  194.     1. MUST generate otp-word tokens in upper case with single spaces
  195.        separating them
  196.     2. MUST generate hexadecimal numbers using only lower case for
  197.        letters
  198.  
  199. 5.0 THE "INIT-HEX" AND "INIT-WORD" RESPONSES
  200.  
  201.   The OTP specification requires that implementations provide a means
  202.   for a client to re-initialize or change its OTP information with a
  203.   server but does not require any specific protocol for doing it.
  204.   Implementations that support the OTP extended responses described in
  205.   this document MUST support the response with the "init-hex" and
  206.   "init-word" type specifiers, which provide a standard way for a
  207.   client to re-initialize its OTP information with a server. This
  208.   response is intended to be used only by automated clients. Because
  209.   of this, the recommended form of this response uses the hexadecimal
  210.   encoding for binary data. It is possible for a user to type an
  211.   "init-hex" or "init-word" response.
  212.  
  213.   Syntax
  214.  
  215.   In UNIX manual page like syntax, the format of these responses could
  216.   be described as:
  217.  
  218.      init-hex:<current-OTP>:<new-params>:<new-OTP>
  219.      init-word:<current-OTP>:<new-params>:<new-OTP>
  220.  
  221.   In augmented BNF syntax and with the definitions already provided,
  222.   the syntax of the "init-hex" response is:
  223.  
  224.   init-hex-response = "init-hex:" current-OTP ":" new-params ":" new-OTP NL
  225.  
  226.   current-OTP     = hex-64bit
  227.   new-OTP         = hex-64bit
  228.  
  229.   new-params      = algorithm SPACE sequence-number SPACE seed
  230.   algorithm       = "md4" / "md5" / "sha1"
  231.  
  232.  
  233. C. Metz                                                       [Page 4]
  234.  
  235. INTERNET DRAFT          OTP Extended Responses          April 18, 1997
  236.  
  237.  
  238.   sequence-number = 4*3DIGIT
  239.   seed            = 16*1(ALPHA / DIGIT)
  240.  
  241.   In augmented BNF syntax and with the definitions already provided,
  242.   the syntax of the "init-word" response is:
  243.  
  244.   init-word-response = "init-word:" current-OTP ":" new-params ":" new-OTP NL
  245.  
  246.   current-OTP     = word-64bit
  247.   new-OTP         = word-64bit
  248.  
  249.   new-params      = algorithm SPACE sequence-number SPACE seed
  250.   algorithm       = "md4" / "md5" / "sha1"
  251.   sequence-number = 4*3DIGIT
  252.   seed            = 16*1(ALPHA / DIGIT)
  253.  
  254.   Note that all appropriate fields for the "init-hex" response MUST be
  255.   hexadecimally coded and that all appropriate fields for the "init-
  256.   word" response MUST be six-word coded.
  257.  
  258.   Examples of these responses are:
  259.  
  260.   init-hex:f6bd 6b33 89b8 7203:md5 499 ke6118:23d1 b253 5ae0 2b7e
  261.   init-hex:c9b2 12bb 6425 5a0f:md5 499 ke0986:fd17 cef1 b4df 093e
  262.  
  263.   init-word:MOOD SOFT POP COMB BOLO LIFE:md5 499 ke1235:
  264.   ARTY WEAR TAD RUG HALO GIVE
  265.   init-word:END KERN BALM NICK EROS WAVY:md5 499 ke1235:
  266.   BABY FAIN OILY NIL TIDY DADE
  267.  
  268.   (Note that all of these responses are one line. Due to their length,
  269.   they had to be split into multiple lines in order to be included
  270.   here. These responses MUST NOT span more than one line in actual
  271.   use)
  272.  
  273.   Description of Fields
  274.  
  275.   The current-OTP field contains the (RFC 1938) response to the OTP
  276.   challenge.  The new-params field contains the parameters for the
  277.   client's new requested challenge and the new-OTP field contains a
  278.   response to that challenge. If the re-initialization is successful,
  279.   a server MUST store the new OTP in its database as the last
  280.   successful OTP received and the sequence number in the next
  281.   challenge presented by the server MUST be one less than the sequence
  282.   number specified in the new-params field.
  283.  
  284.   The new-params field is hashed as a string the same way that a seed
  285.   or secret pass phrase would be. All other field values are hashed in
  286.   their uncoded binary forms, in network byte order and without any
  287.   padding.
  288.  
  289.  
  290.  
  291. C. Metz                                                       [Page 5]
  292.  
  293. INTERNET DRAFT          OTP Extended Responses          April 18, 1997
  294.  
  295.  
  296.   Requirements
  297.  
  298.   A server compliant with this specification:
  299.  
  300.     1. SHOULD NOT allow a user to use the same value for their seed and
  301.        secret pass phrase.
  302.     2. MUST disable all OTP access to any principal whose sequence
  303.        number would be less than one
  304.  
  305.   A generator compliant with this specification:
  306.  
  307.     1. SHOULD NOT allow a user to use the same value for their seed and
  308.        secret pass phrase
  309.     2. MUST take specific steps to prevent infinite loops of
  310.        re-initialization attempts in case of failure
  311.     3. SHOULD provide the user with some indication that the
  312.        re-initialization is taking place
  313.     4. SHOULD NOT do a re-initialization without the user's permission,
  314.        either for that specific instance or as a configuration option
  315.     5. SHOULD NOT retry a failed re-initialization without a user's
  316.        permission
  317.     6. SHOULD warn the user if the sequence number falls below ten
  318.     7. MUST refuse to generate OTPs with a sequence number below one
  319.  
  320. 6.0 SECURITY CONSIDERATIONS
  321.  
  322.   All of the security considerations for the OTP system also apply to
  323.   the OTP system with extended responses.
  324.  
  325.   These extended responses, like the OTP system itself, do not protect
  326.   the user against active attackers. The IPsec Authentication Header
  327.   should be used to provide this protection.
  328.  
  329.   The consequences of a successful active attack on the re-
  330.   initialization response may be more severe than simply hijacking a
  331.   single session. An attacker could substitute his own response for
  332.   that of a legitimate user. The attacker may then be able to use the
  333.   OTP system to authenticate himself as the user at will (at least
  334.   until detected).
  335.  
  336. 7.0 ACKNOWLEDGMENTS
  337.  
  338.   Like RFC 1938, the protocol described in this document was created
  339.   by contributors in the IETF OTP working group. Specific
  340.   contributions were made by Neil Haller, who provided input on the
  341.   overall design requirements of a re-initialization protocol, Denis
  342.   Pinkas, who suggested several modifications to the originally
  343.   proposed re-initialization protocol, and Phil Servita, who opened
  344.   the debate with the first real protocol proposal and provided lots
  345.   of specific input on the design of this and earlier protocols.
  346.  
  347.  
  348.  
  349. C. Metz                                                       [Page 6]
  350.  
  351. INTERNET DRAFT          OTP Extended Responses          April 18, 1997
  352.  
  353.  
  354.   Randall Atkinson and Ted T'so also contributed their views to
  355.   discussions about details of the protocol extensions in this
  356.   document.
  357.  
  358. 8.0 REFERENCES
  359.  
  360.   [RFC 822]   David H. Crocker, Standard for the Format of ARPA
  361.               Internet Text Messages, "Request for Comments (RFC)
  362.               822", August 13, 1982.
  363.  
  364.  
  365.   [RFC 1825]  R. Atkinson, Security Architecture for the Internet
  366.               Protocol, "Request for Comments (RFC) 1825", August 9,
  367.               1995.
  368.  
  369.   [RFC 1938]  N. Haller and C. Metz, A One-Time Password System,
  370.               "Request for Comments (RFC) 1938", Bellcore and Kaman
  371.               Sciences Corporation, May 1996.
  372.  
  373. 9.0 Author's Address
  374.  
  375.   Craig Metz
  376.   Kaman Sciences Corporation
  377.   For NRL Code 5544
  378.   4555 Overlook Avenue, S.W.
  379.   Washington, DC, 20375-5337, USA
  380.  
  381.   Email: cmetz@itd.nrl.navy.mil
  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. C. Metz                                                       [Page 7]
  408.  
  409. INTERNET DRAFT          OTP Extended Responses          April 18, 1997
  410.  
  411.  
  412.                  Appendix   -    Reference Responses
  413.  
  414.  
  415. The following responses were generated by a development version of the
  416. One-Time Passwords in Everything (OPIE) implementation of this
  417. specification.
  418.  
  419. All of these are responses to the challenge:
  420.  
  421.      otp-md5 499 ke1234
  422.  
  423. Note that the re-initialization responses use the same secret pass
  424. phrase for new and current and a new seed of "ke1235". Also, these
  425. responses have been split for formatting purposes into multiple lines;
  426. they MUST NOT be multiple lines in actual use.
  427.  
  428. The secret pass phrase for these responses is:
  429.  
  430.      This is a test.
  431.  
  432. The OTP standard hexadecimal response is:
  433.  
  434.      5bf0 75d9 959d 036f
  435.  
  436. The OTP standard six-word response is:
  437.  
  438.      BOND FOGY DRAB NE RISE MART
  439.  
  440. The OTP extended "hex" response is:
  441.  
  442.      hex:5Bf0 75d9 959d 036f
  443.  
  444. The OTP extended "word" response is:
  445.  
  446.      word:BOND FOGY DRAB NE RISE MART
  447.  
  448. The OTP extended "init-hex" response is:
  449.  
  450.      init-hex:5bf0 75d9 959d 036f:md5 499 ke1235:3712 dcb4 aa53 16c1
  451.  
  452. The OTP extended "init-word" response is:
  453.  
  454.      init-word:BOND FOGY DRAB NE RISE MART:md5 499 ke1235:
  455.      RED HERD NOW BEAN PA BURG
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465. C. Metz                                                       [Page 8]
  466.