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-oncrpc-rpcsec_gss-02.txt < prev    next >
Text File  |  1997-02-11  |  49KB  |  1,239 lines

  1.  
  2. ONC RPC Working Group                                      M. Eisler
  3. Internet Draft                                             A. Chiu
  4. Document: draft-ietf-oncrpc-rpcsec_gss-02.txt              L. Ling
  5.                                                            February 1997
  6.  
  7.  
  8.                    RPCSEC_GSS Protocol Specification
  9.  
  10. Abstract
  11.  
  12.    This memo describes an ONC/RPC security flavor that allows RPC
  13.    protocols to access the Generic Security Services Application
  14.    Programming Interface (referred to henceforth as GSS-API).
  15.  
  16. Status of this Memo
  17.  
  18.    This document is an Internet-Draft.  Internet-Drafts are working
  19.    documents of the Internet Engineering Task Force (IETF), its areas,
  20.    and its working groups.  Note that other groups may also distribute
  21.    working documents as Internet-Drafts.
  22.  
  23.    Internet-Drafts are draft documents valid for a maximum of six
  24.    months.  This Internet-Draft expires in August 1997.  Internet-Drafts
  25.    may be updated, replaced, or obsoleted by other documents at any
  26.    time. It is not appropriate to use Internet-Drafts as reference
  27.    material or to cite them other than as "work in progress."
  28.  
  29.    To learn the current status of any Internet-Draft, please check the
  30.    "1id-abstracts.txt" listing contained in the Internet-Drafts Shadow
  31.    Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
  32.    munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or
  33.    ftp.isi.edu (US West Coast).
  34.  
  35.    Comments on this document should be sent to the IETF ONCRPC Working
  36.    Group discussion list:
  37.  
  38.         oncrpc-wg@sunroof.eng.sun.com
  39.  
  40.    Distribution of this memo is unlimited.
  41.  
  42.  
  43. Table of Contents
  44.  
  45.    1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2
  46.    2.  Review of the RPC Message Protocol . . . . . . . . . . . . . . 2
  47.    3.  Flavor Number Assignment . . . . . . . . . . . . . . . . . . . 5
  48.    4.  New auth_stat Values . . . . . . . . . . . . . . . . . . . . . 5
  49.    5.  Elements of the RPCSEC_GSS Security Protocol . . . . . . . . . 6
  50.    5.1.  Version Selection  . . . . . . . . . . . . . . . . . . . . . 7
  51.    5.2.  Context Creation . . . . . . . . . . . . . . . . . . . . . . 7
  52.    5.2.1.  Mechanism and QOP Selection  . . . . . . . . . . . . . . . 7
  53.    5.2.2.  Context Creation Requests  . . . . . . . . . . . . . . . . 8
  54.    5.2.3.  Context Creation Responses . . . . . . . . . . . . . . . . 9
  55.    5.2.3.1.  Context Creation Response - Successful Acceptance  . . . 9
  56.  
  57.  
  58.  
  59. Expires: August 1997                                            [Page 1]
  60.  
  61. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  62.  
  63.  
  64.    5.2.3.1.1.  Client Processing of Successful Context Creation
  65.                Responses  . . . . . . . . . . . . . . . . . . . . .  10
  66.    5.2.3.2.  Context Creation Response - Unsuccessful Cases . . . .  10
  67.    5.3.  RPC Data Exchange  . . . . . . . . . . . . . . . . . . . .  11
  68.    5.3.1.  RPC Request Header . . . . . . . . . . . . . . . . . . .  11
  69.    5.3.2.  RPC Request Data . . . . . . . . . . . . . . . . . . . .  12
  70.    5.3.2.1.  RPC Request Data - No Data Integrity . . . . . . . . .  12
  71.    5.3.2.2.  RPC Request Data - With Data Integrity . . . . . . . .  12
  72.    5.3.2.3.  RPC Request Data - With Data Privacy . . . . . . . . .  13
  73.    5.3.3.  Server Processing of RPC Data Requests . . . . . . . . .  13
  74.    5.3.3.1.  Context Management . . . . . . . . . . . . . . . . . .  13
  75.    5.3.3.2.  Server Reply - Request Accepted  . . . . . . . . . . .  14
  76.    5.3.3.3.  Server Reply - Request Denied  . . . . . . . . . . . .  15
  77.    5.3.3.4.  Mapping of GSS-API Errors to Server Responses  . . . .  16
  78.    5.3.3.4.1.  GSS_GetMIC() Failure . . . . . . . . . . . . . . . .  16
  79.    5.3.3.4.2.  GSS_VerifyMIC() Failure  . . . . . . . . . . . . . .  16
  80.    5.3.3.4.3.  GSS_Unwrap() Failure . . . . . . . . . . . . . . . .  17
  81.    5.3.3.4.4.  GSS_Wrap() Failure . . . . . . . . . . . . . . . . .  17
  82.    5.4.  Context Destruction  . . . . . . . . . . . . . . . . . . .  17
  83.    6.  Set of GSS-API Mechanisms  . . . . . . . . . . . . . . . . .  17
  84.    7.  Security Considerations  . . . . . . . . . . . . . . . . . .  18
  85.    7.1.  Privacy of Call Header . . . . . . . . . . . . . . . . . .  18
  86.    7.2.  Sequence Number Attacks  . . . . . . . . . . . . . . . . .  18
  87.    7.2.1.  Sequence Numbers Above the Window  . . . . . . . . . . .  18
  88.    7.2.2.  Sequence Numbers Within or Below the Window  . . . . . .  18
  89.    7.3.  Message Stealing Attacks . . . . . . . . . . . . . . . . .  19
  90.    8.  Acknowledgements . . . . . . . . . . . . . . . . . . . . . .  19
  91.    9.  References . . . . . . . . . . . . . . . . . . . . . . . . .  19
  92.    10.  Authors' Addresses  . . . . . . . . . . . . . . . . . . . .  20
  93.  
  94. 1.  Introduction
  95.  
  96.    This document describes the protocol used by the RPCSEC_GSS security
  97.    flavor.  Security flavors have been called authentication flavors for
  98.    historical reasons. This memo recognizes that there are two other
  99.    security services besides authentication, integrity, and privacy, and
  100.    so defines a new RPCSEC_GSS security flavor.
  101.  
  102.    The protocol is described using the XDR language [Srinivasan-xdr].
  103.    The reader is assumed to be familiar with ONC RPC and the security
  104.    flavor mechanism [Srinivasan-rpc].  The reader is also assumed to be
  105.    familiar with the GSS-API framework [Linn].  The RPCSEC_GSS security
  106.    flavor uses GSS-API interfaces to provide security services that are
  107.    independent of the underlying security mechanism.
  108.  
  109. 2.  Review of the RPC Message Protocol
  110.  
  111.    This memo refers to several fields of the RPC protocol. For
  112.    convenience of reviewers, as this document is in Internet-Draft
  113.    state, an XDR language description of the RPC message protocol is
  114.    provided here.
  115.  
  116.       /* RPC message type */
  117.  
  118.  
  119.  
  120.  
  121. Expires: August 1997                                            [Page 2]
  122.  
  123. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  124.  
  125.  
  126.       enum msg_type {
  127.           CALL  = 0,
  128.           REPLY = 1
  129.       };
  130.  
  131.       /* Reply types */
  132.  
  133.       enum reply_stat {
  134.           MSG_ACCEPTED = 0,
  135.           MSG_DENIED   = 1
  136.       };
  137.  
  138.       /* Security flavors */
  139.  
  140.       enum auth_flavor {
  141.           AUTH_NONE = 0,
  142.           AUTH_SYS = 1,
  143.           AUTH_SHORT = 2
  144.       };
  145.  
  146.       /* Status of accepted messages */
  147.  
  148.       enum accept_stat {
  149.           SUCCESS = 0,
  150.           PROG_UNAVAIL = 1,
  151.           PROG_MISMATCH = 2,
  152.           PROC_UNAVAIL = 3,
  153.           GARBAGE_ARGS = 4,
  154.           SYSTEM_ERR = 5
  155.       };
  156.  
  157.       /* Status of rejected messages */
  158.  
  159.       enum reject_stat {
  160.           RPC_MISMATCH = 0,
  161.           AUTH_ERROR = 1
  162.       };
  163.  
  164.       /* Why authentication failed */
  165.  
  166.       enum auth_stat {
  167.           AUTH_OK = 0,
  168.  
  169.           /* failed at remote end */
  170.  
  171.           AUTH_BADCRED = 1,
  172.           AUTH_REJECTEDCRED = 2,
  173.           AUTH_BADVERF = 3,
  174.           AUTH_REJECTEDVERF = 4,
  175.           AUTH_TOOWEAK = 5,
  176.  
  177.           /* failed locally */
  178.  
  179.           AUTH_INVALIDRESP = 6,
  180.  
  181.  
  182.  
  183. Expires: August 1997                                            [Page 3]
  184.  
  185. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  186.  
  187.  
  188.           AUTH_FAILED = 7
  189.       };
  190.  
  191.       /* Opaque structure of credential and verifier */
  192.  
  193.       struct opaque_auth {
  194.           auth_flavor flavor;
  195.           opaque body<400>;
  196.       };
  197.  
  198.       /* The RPC message */
  199.  
  200.       struct rpc_msg {
  201.           unsigned int xid;
  202.           union switch (msg_type mtype) {
  203.           case CALL:
  204.               call_body cbody;
  205.           case REPLY:
  206.               reply_body rbody;
  207.           } body;
  208.       };
  209.  
  210.       /* Body of RPC call */
  211.  
  212.       struct call_body {
  213.           unsigned int rpcvers;
  214.           unsigned int prog;
  215.           unsigned int vers;
  216.           unsigned int proc;
  217.           opaque_auth  cred;
  218.           opaque_auth  verf;
  219.  
  220.           /* procedure specific parameters start here */
  221.       };
  222.  
  223.       /* Body of RPC reply */
  224.  
  225.       union reply_body switch (reply_stat stat) {
  226.       case MSG_ACCEPTED:
  227.           accepted_reply areply;
  228.       case MSG_DENIED:
  229.           rejected_reply rreply;
  230.       } reply;
  231.  
  232.       /* Accepted reply */
  233.  
  234.       struct accepted_reply {
  235.           opaque_auth verf;
  236.           union switch (accept_stat stat) {
  237.           case SUCCESS:
  238.               opaque results[0];
  239.  
  240.               /* procedure-specific results start here */
  241.  
  242.  
  243.  
  244.  
  245. Expires: August 1997                                            [Page 4]
  246.  
  247. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  248.  
  249.  
  250.           case PROG_MISMATCH:
  251.               struct {
  252.                   unsigned int low;
  253.                   unsigned int high;
  254.               } mismatch_info;
  255.  
  256.           default:
  257.  
  258.               /*
  259.                * Void.  Cases include PROG_UNAVAIL,
  260.                * PROC_UNAVAIL, GARBAGE_ARGS, and
  261.                * SYSTEM_ERR.
  262.                */
  263.  
  264.               void;
  265.           } reply_data;
  266.       };
  267.  
  268.       /* Rejected reply */
  269.  
  270.       union rejected_reply switch (reject_stat stat) {
  271.       case RPC_MISMATCH:
  272.           struct {
  273.               unsigned int low;
  274.               unsigned int high;
  275.           } mismatch_info;
  276.       case AUTH_ERROR:
  277.           auth_stat stat;
  278.       };
  279.  
  280. 3.  Flavor Number Assignment
  281.  
  282.    The RPCSEC_GSS security flavor has been assigned the value of 6:
  283.  
  284.       enum auth_flavor {
  285.           ...
  286.           RPCSEC_GSS = 6      /* RPCSEC_GSS security flavor */
  287.       };
  288.  
  289. 4.  New auth_stat Values
  290.  
  291.    RPCSEC_GSS requires the addition of two new values to the auth_stat
  292.    enumerated type definition:
  293.  
  294.       enum auth_stat {
  295.               ...
  296.               /*
  297.                * RPCSEC_GSS errors
  298.                */
  299.               RPCSEC_GSS_CREDPROBLEM = 13,
  300.               RPCSEC_GSS_CTXPROBLEM = 14
  301.       };
  302.    The descriptions of these two new values are defined later in this
  303.    memo.
  304.  
  305.  
  306.  
  307. Expires: August 1997                                            [Page 5]
  308.  
  309. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  310.  
  311.  
  312. 5.  Elements of the RPCSEC_GSS Security Protocol
  313.  
  314.    An RPC session based on the RPCSEC_GSS security flavor consists of
  315.    three phases: context creation, RPC data exchange, and context
  316.    destruction.  In the following discussion, protocol elements for
  317.    these three phases are described.
  318.  
  319.    The following description of the RPCSEC_GSS protocol uses some of the
  320.    definitions within XDR language description of the RPC protocol.
  321.  
  322.    Context creation and destruction use control messages that are not
  323.    dispatched to service procedures registered by an RPC server.  The
  324.    program and version numbers used in these control messages are the
  325.    same as the RPC service's program and version numbers.  The procedure
  326.    number used is NULLPROC (zero).  A field in the credential
  327.    information (the gss_proc field which is defined in the
  328.    rpc_gss_cred_t structure below) specifies whether a message is to be
  329.    interpreted as a control message or a regular RPC message.  If this
  330.    field is set to RPCSEC_GSS_DATA, no control action is implied; in
  331.    this case, it is a regular data message.  If this field is set to any
  332.    other value, a control action is implied.  This is described in the
  333.    following sections.
  334.  
  335.    Just as with normal RPC data exchange messages, the transaction
  336.    identifier (the xid field in struct rpc_msg), should be set to unique
  337.    values on each call for context creation and context destruction.
  338.  
  339.    The following definitions are used for describing the protocol.
  340.  
  341.       /* RPCSEC_GSS control procedures */
  342.  
  343.  
  344.       enum rpc_gss_proc_t {
  345.               RPCSEC_GSS_DATA = 0,
  346.               RPCSEC_GSS_INIT = 1,
  347.               RPCSEC_GSS_CONTINUE_INIT = 2,
  348.               RPCSEC_GSS_DESTROY = 3
  349.       };
  350.  
  351.       /* RPCSEC_GSS services */
  352.  
  353.       enum rpc_gss_service_t {
  354.           /* Note: the enumerated value for 0 is reserved. */
  355.           rpc_gss_svc_none = 1,
  356.           rpc_gss_svc_integrity = 2,
  357.           rpc_gss_svc_privacy = 3
  358.       };
  359.  
  360.       /* Credential */
  361.  
  362.       /*
  363.        * Note: version 0 is reserved for possible future
  364.        * definition of a version negotiation protocol
  365.        *
  366.  
  367.  
  368.  
  369. Expires: August 1997                                            [Page 6]
  370.  
  371. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  372.  
  373.  
  374.        */
  375.       #define RPCSEC_GSS_VERS_1 1
  376.  
  377.       struct rpc_gss_cred_t {
  378.           union switch (unsigned int version) { /* version of
  379.                                                       RPCSEC_GSS */
  380.           case RPCSEC_GSS_VERS_1:
  381.               struct {
  382.                   rpc_gss_proc_t gss_proc;  /* control procedure */
  383.                   unsigned int seq_num;   /* sequence number */
  384.                   rpc_gss_service_t service; /* service used */
  385.                   opaque handle<>;       /* context handle */
  386.               } rpc_gss_cred_vers_1_t;
  387.           }
  388.       };
  389.  
  390.       /* Maximum sequence number value */
  391.  
  392.       #define MAXSEQ 0x80000000
  393.  
  394. 5.1.  Version Selection
  395.  
  396.    This document defines just one protocol version (RPCSEC_GSS_VERS_1).
  397.    The client should assume that the server supports RPCSEC_GSS_VERS_1
  398.    and issue a Context Creation message (as described in the section
  399.    'Context Creation'). If the server does not support
  400.    RPCSEC_GSS_VERS_1, the RPC response will have a reply_stat of
  401.    MSG_DENIED, a rejection status of AUTH_ERROR, and an auth_stat of
  402.    AUTH_REJECTED_CRED.
  403.  
  404. 5.2.  Context Creation
  405.  
  406.    Before RPC data is exchanged on a session using the RPCSEC_GSS
  407.    flavor, a context must be set up between the client and the server.
  408.    Context creation may involve zero or more RPC exchanges.  The number
  409.    of exchanges depends on the security mechanism.
  410.  
  411. 5.2.1.  Mechanism and QOP Selection
  412.  
  413.    There is no facility in the RPCSEC_GSS protocol to negotiate GSS-API
  414.    mechanism identifiers or QOP values. At minimum, it is expected that
  415.    implementations of the RPCSEC_GSS protocol provide interfaces in the
  416.    RPC programming layer to:
  417.  
  418.    *    specify mechanism identifiers, QOP values, and RPCSEC_GSS
  419.         service values on the client side, and to
  420.  
  421.    *    return mechanism identifiers, QOP values, and RPCSEC_GSS service
  422.         values on a per-request basis to the server side.
  423.  
  424.    Additionally, implementations may depend on negotiation schemes
  425.    constructed as pseudo-mechanisms under the GSS-API, such as the
  426.    Simple GSS-API Negotiation Mechanism [Baize]. Because such schemes
  427.    are below the GSS-API layer, the RPCSEC_GSS protocol, as specified in
  428.  
  429.  
  430.  
  431. Expires: August 1997                                            [Page 7]
  432.  
  433. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  434.  
  435.  
  436.    this document, can make use of them.
  437.  
  438. 5.2.2.  Context Creation Requests
  439.  
  440.    The first RPC request from the client to the server initiates context
  441.    creation.  Within the RPC message protocol's call_body structure,
  442.    rpcvers is set to 2. prog and vers are always those for the service
  443.    being accessed.  The proc is always set to NULLPROC (zero).
  444.  
  445.    Within the RPC message protocol's cred structure, flavor is set to
  446.    RPCSEC_GSS (6).  The opaque data of the cred structure (the body
  447.    field) constituting the credential encodes the rpc_gss_cred_t
  448.    structure defined previously.
  449.  
  450.    The values of the fields contained in the rpc_gss_cred_t structure
  451.    are set as follows.  The version field is set to the version of the
  452.    RPCSEC_GSS protocol the client wants to use.  The remainder of this
  453.    memo documents version RPCSEC_GSS_VERS_1 of RPCSEC_GSS, and so the
  454.    version field would be set to RPCSEC_GSS_VERS_1.  The gss_proc field
  455.    must be set to RPCSEC_GSS_INIT for the first creation request.  In
  456.    subsequent creation requests, the gss_proc field must be set to
  457.    RPCSEC_GSS_CONTINUE_INIT.  In a creation request, the seq_num and
  458.    service fields are undefined and both must be ignored by the server.
  459.    In the first creation request, the handle field is NULL (opaque data
  460.    of zero length).  In subsequent creation requests, handle must be
  461.    equal to the value returned by the server.  The handle field serves
  462.    as the identifier for the context, and will not change for the
  463.    duration of the context, including responses to
  464.    RPCSEC_GSS_CONTINUE_INIT.
  465.  
  466.    The verifier field in the RPC message header is also described by the
  467.    opaque_auth structure.  All creation requests have the NULL verifier
  468.    (AUTH_NONE flavor with zero length opaque data).
  469.  
  470.    Following the verifier are the call data (procedure specific
  471.    parameters).  Note that the proc field of the call_body structure is
  472.    set to NULLPROC, and thus normally there would be zero octets
  473.    following the verifier.  However, since there is no RPC data exchange
  474.    during a context creation, it is safe to transfer information
  475.    following the verifier.  It is necessary to "overload" the call data
  476.    in this way, rather than pack the GSS-API token into the RPC header,
  477.    because RPC Version 2 restricts the amount of data that can be sent
  478.    in the header.  The opaque body of the credential and verifier fields
  479.    can be each at most 400 octets long, and GSS tokens can be longer
  480.    than 800 octets.
  481.  
  482.    The call data for a context creation request is described by the
  483.    following structure for all creation requests:
  484.  
  485.       struct rpc_gss_init_arg {
  486.           opaque gss_token<>;
  487.       };
  488.  
  489.    Here, gss_token is the token returned by the call to  GSS-API's
  490.  
  491.  
  492.  
  493. Expires: August 1997                                            [Page 8]
  494.  
  495. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  496.  
  497.  
  498.    GSS_Init_sec_context() routine, opaquely encoded.  The value of this
  499.    field will likely be different in each creation request, if there is
  500.    more than one creation request.  If no token is returned by the call
  501.    to GSS_Init_sec_context(), the context must have been created
  502.    (assuming no errors), and there will not be any more creation
  503.    requests.
  504.  
  505.    When GSS_Init_sec_context() is called, the parameters
  506.    replay_det_req_flag and sequence_req_flag must be turned off. The
  507.    reasons for this are:
  508.  
  509.    *    ONC RPC can be used over unreliable transports and provides no
  510.         layer to reliably re-assemble messages. Thus it is possible for
  511.         gaps in message sequencing to occur, as well as out of order
  512.         messages.
  513.  
  514.    *    RPC servers can be multi-threaded, and thus the order in which
  515.         GSS-API messages are signed or wrapped can be different from the
  516.         order in which the messages are verified or unwrapped, even if
  517.         the requests are sent on reliable transports.
  518.  
  519.    *    To maximize convenience of implementation, the order in which an
  520.         ONC RPC entity will verify the header and verify/unwrap the body
  521.         of an RPC call or reply is left unspecified.
  522.  
  523.    The RPCSEC_GSS protocol provides for protection from replay attack,
  524.    yet tolerates out-of-order delivery or processing of messages and
  525.    tolerates dropped requests.
  526.  
  527. 5.2.3.  Context Creation Responses
  528.  
  529. 5.2.3.1.  Context Creation Response - Successful Acceptance
  530.  
  531.    The response to a successful creation request has an MSG_ACCEPTED
  532.    response with a status of SUCCESS.  The results field encodes result
  533.    argument that has the following structure:
  534.  
  535.       struct rpc_gss_init_res {
  536.               opaque handle<>;
  537.               unsigned int gss_major;
  538.               unsigned int gss_minor;
  539.               unsigned int seq_window;
  540.               opaque gss_token<>;
  541.       };
  542.  
  543.    Here, handle is non-NULL opaque data that serves as the context
  544.    identifier. The client must use this value in all subsequent requests
  545.    (whether control messages or otherwise).  The gss_major and gss_minor
  546.    fields contain the results of the call to GSS_Accept_sec_context()
  547.    executed by the server.  If gss_major is not one of GSS_S_COMPLETE or
  548.    GSS_S_CONTINUE_NEEDED, the context setup has failed; in this case
  549.    handle and gss_token must be set to NULL by the server.  The value of
  550.    gss_minor is dependent on the value of gss_major and the security
  551.    mechanism used.  The gss_token field contains any token returned by
  552.  
  553.  
  554.  
  555. Expires: August 1997                                            [Page 9]
  556.  
  557. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  558.  
  559.  
  560.    the GSS_Accept_sec_context() call executed by the server.  A token
  561.    may be returned for both successful values of gss_major.  If the
  562.    value is GSS_S_COMPLETE, it indicates that the server is not
  563.    expecting any more tokens, and the RPC Data Exchange phase must begin
  564.    on the subsequent request from the client. If the value is
  565.    GSS_S_CONTINUE_NEEDED, the server is expecting another token.  Hence
  566.    the client must send at least one more creation request (with
  567.    gss_proc set to RPCSEC_GSS_CONTINUE_INIT in the request's credential)
  568.    carrying the required token.
  569.  
  570.    In a successful response, the seq_window field is set to the sequence
  571.    window length supported by the server for this context.  This window
  572.    specifies the maximum number of client requests that may be
  573.    outstanding for this context. The server will accept "seq_window"
  574.    requests at a time, and these may be out of order.  The client may
  575.    use this number to determine the number of threads that can
  576.    simultaneously send requests on this context.
  577.  
  578.    If gss_major is GSS_S_COMPLETE, the verifier's (the verf element in
  579.    the response) flavor field to to RPCSEC_GSS, and the body field set
  580.    to the checksum of the seq_window (in network order). The QOP used
  581.    for this checksum is 0 (zero), which is the default QOP.  For all
  582.    other values of gss_major, a NULL verifier (AUTH_NONE flavor with
  583.    zero-length opaque data) is used.
  584.  
  585. 5.2.3.1.1.  Client Processing of Successful Context Creation Responses
  586.  
  587.    If the value of gss_major in the response is GSS_S_CONTINUE_NEEDED,
  588.    then the client, per the GSS-API specification, must invoke
  589.    GSS_Init_sec_context() using the token returned in gss_token in the
  590.    context creation response. The client must then generate a context
  591.    creation request, with gss_proc set to RPCSEC_GSS_CONTINUE_INIT.
  592.  
  593.    If the value of gss_major in the response is GSS_S_COMPLETE, and if
  594.    the client's previous invocation of GSS_Init_sec_context() returned a
  595.    gss_major value of GSS_S_CONTINUE_NEEDED, then the client, per the
  596.    GSS-API specification, must invoke GSS_Init_sec_context() using the
  597.    token returned in gss_token in the context creation response. If
  598.    GSS_Init_sec_context() returns GSS_S_COMPLETE, the context is
  599.    successfully set up, and the RPC data exchange phase must begin on
  600.    the subsequent request from the client.
  601.  
  602. 5.2.3.2.  Context Creation Response - Unsuccessful Cases
  603.  
  604.    An MSG_ACCEPTED reply (to a creation request) with an acceptance
  605.    status of other than SUCCESS has a NULL verifier (flavor set to
  606.    AUTH_NONE, and zero length opaque data in the body field), and is
  607.    formulated as usual for different status values.
  608.  
  609.    An MSG_DENIED reply (to a creation request) is also formulated as
  610.    usual.  Note that MSG_DENIED could be returned because the server's
  611.    RPC implementation does not recognize the RPCSEC_GSS security flavor.
  612.    RFC 1831 does not specify the appropriate reply status in this
  613.    instance.  Solaris 2 implementations return a rejection status of
  614.  
  615.  
  616.  
  617. Expires: August 1997                                           [Page 10]
  618.  
  619. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  620.  
  621.  
  622.    AUTH_ERROR with an auth_stat of AUTH_REJECTEDCRED. Even though two
  623.    new values (RPCSEC_GSS_CREDPROBLEM and RPCSEC_GSS_CTXPROBLEM) have
  624.    been defined for the auth_stat type, neither of these two can be
  625.    returned in responses to context creation requests.  The new values
  626.    are relevant to for responses to normal (data) requests.  This is
  627.    described later.
  628.  
  629.    MSG_DENIED might also be returned if the RPCSEC_GSS version number in
  630.    the credential is not supported on the server. In that case, the
  631.    server returns a rejection status of AUTH_ERROR, with an auth_stat of
  632.    AUTH_REJECTED_CRED.
  633.  
  634. 5.3.  RPC Data Exchange
  635.  
  636.    The data exchange phase is entered after a context has been
  637.    successfully set up. The format of the data exchanged depends on the
  638.    security service used for the request.  Although clients can change
  639.    the security service and QOP used on a per-request basis, this may
  640.    not be acceptable to all RPC services; some RPC services may "lock"
  641.    the data exchange phase into using the the QOP and service used on
  642.    the first data exchange message.  For all three modes of service (no
  643.    data integrity, data integrity, data privacy), the RPC request header
  644.    has the same format.
  645.  
  646. 5.3.1.  RPC Request Header
  647.  
  648.    The credential has the opaque_auth structure described earlier.  The
  649.    flavor field is set to RPCSEC_GSS.  The credential body is created by
  650.    XDR encoding the rpc_gss_cred_t structure listed earlier into an
  651.    octet stream, and then opaquely encoding this octet stream as the
  652.    body field.
  653.  
  654.    Values of the fields contained in the rpc_gss_cred_t structure are
  655.    set as follows.  The version field is set to same version value that
  656.    was used to create the context, which within the scope of this memo
  657.    will always be RPCSEC_GSS_VERS_1.  The gss_proc field is set to
  658.    RPCSEC_GSS_DATA.  The service field is set to indicate the desired
  659.    service (one of rpc_gss_svc_none, rpc_gss_svc_integrity, or
  660.    rpc_gss_svc_privacy).  The handle field is set to the context handle
  661.    value received from the RPC server during context creation.  The
  662.    seq_num field can start at any value below MAXSEQ, and must be
  663.    incremented (by one or more) for successive requests.  Use of
  664.    sequence numbers is described in detail when server processing of the
  665.    request is discussed.
  666.  
  667.    The verifier has the opaque_auth structure described earlier.  The
  668.    flavor field is set to RPCSEC_GSS.  The body field is set as follows.
  669.    The checksum of the RPC header (up to and including the credential)
  670.    is computed using the GSS_GetMIC() call with the desired QOP.  This
  671.    returns the checksum as an opaque octet stream and its length.  This
  672.    is encoded into the body field.  Note that the QOP is not explicitly
  673.    specified anywhere in the request.  It is implicit in the checksum or
  674.    encrypted data.  The same QOP value as is used for the header
  675.    checksum must also be used for the data (for checksumming or
  676.  
  677.  
  678.  
  679. Expires: August 1997                                           [Page 11]
  680.  
  681. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  682.  
  683.  
  684.    encrypting), unless the service used for the request is
  685.    rpc_gss_svc_none.
  686.  
  687. 5.3.2.  RPC Request Data
  688.  
  689. 5.3.2.1.  RPC Request Data - No Data Integrity
  690.  
  691.    If the service specified is rpc_gss_svc_none, the data (procedure
  692.    arguments) are not integrity or privacy protected.  They are sent in
  693.    exactly the same way as they would be if the AUTH_NONE flavor were
  694.    used (following the verifier).  Note, however, that since the RPC
  695.    header is integrity protected, the sender will still be authenticated
  696.    in this case.
  697.  
  698. 5.3.2.2.  RPC Request Data - With Data Integrity
  699.  
  700.    When data integrity is used, the request data is represented as
  701.    follows:
  702.  
  703.       struct rpc_gss_integ_data {
  704.           opaque databody_integ<>;
  705.           opaque checksum<>;
  706.       };
  707.  
  708.    The databody_integ field is created as follows.  A structure
  709.    consisting of a sequence number followed by the procedure arguments
  710.    is constructed. This is shown below as the type rpc_gss_data_t:
  711.  
  712.  
  713.       struct rpc_gss_data_t {
  714.           unsigned int seq_num;
  715.           proc_req_arg_t arg;
  716.       };
  717.  
  718.    Here, seq_num must have the same value as in the credential.  The
  719.    type proc_req_arg_t is the procedure specific XDR type describing the
  720.    procedure arguments (and so is not specified here).  The octet stream
  721.    corresponding to the XDR encoded rpc_gss_data_t structure and its
  722.    length are placed in the databody_integ field. Note that because the
  723.    XDR type of databody_integ is opaque, the XDR encoding of
  724.    databody_integ will include an initial four octet length field,
  725.    followed by the XDR encoded octet stream of rpc_gss_data_t.
  726.  
  727.    The checksum field represents the checksum of the XDR encoded octet
  728.    stream corresponding to the XDR encoded rpc_gss_data_t structure
  729.    (note, this is not the checksum of the databody_integ field).  This
  730.    is obtained using the GSS_GetMIC() call, with the same QOP as was
  731.    used to compute the header checksum (in the verifier). The
  732.    GSS_GetMIC() call returns the checksum as an opaque octet stream and
  733.    its length. The checksum field of struct rpc_gss_integ_data has an
  734.    XDR type of opaque. Thus the checksum length from GSS_GetMIC() is
  735.    encoded as a four octet  length field, followed by the checksum,
  736.    padded to a multiple of four octets.
  737.  
  738.  
  739.  
  740.  
  741. Expires: August 1997                                           [Page 12]
  742.  
  743. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  744.  
  745.  
  746. 5.3.2.3.  RPC Request Data - With Data Privacy
  747.  
  748.    When data privacy is used, the request data is represented as
  749.    follows:
  750.  
  751.       struct rpc_gss_priv_data {
  752.           opaque databody_priv<>
  753.       };
  754.  
  755.    The databody_priv field is created as follows.  The rpc_gss_data_t
  756.    structure described earlier is constructed again in the same way as
  757.    for the case of data integrity.  Next, the GSS_Wrap() call is invoked
  758.    to encrypt the octet stream corresponding to the rpc_gss_data_t
  759.    structure, using the same value for QOP (argument qop_req to
  760.    GSS_Wrap()) as was used for the header checksum (in the verifier) and
  761.    conf_req_flag (an argument to GSS_Wrap()) of TRUE.  The GSS_Wrap()
  762.    call returns an opaque octet stream (representing the encrypted
  763.    rpc_gss_data_t structure) and its length, and this is encoded as the
  764.    databody_priv field. Since databody_priv has an XDR type of opaque,
  765.    the length returned by GSS_Wrap() is encoded as the four octet
  766.    length, followed by the encrypted octet stream (padded to a multiple
  767.    of four octets).
  768.  
  769. 5.3.3.  Server Processing of RPC Data Requests
  770.  
  771. 5.3.3.1.  Context Management
  772.  
  773.    When a request is received by the server, the following are verified
  774.    to be acceptable:
  775.  
  776.    *    the version number in the credential
  777.  
  778.    *    the service specified in the credential
  779.  
  780.    *    the context handle specified in the credential
  781.  
  782.    *    the header checksum in the verifier (via GSS_VerifyMIC())
  783.  
  784.    *    the sequence number (seq_num) specified in the credential (more
  785.         on this follows)
  786.  
  787.    The gss_proc field in the credential must be set to RPCSEC_GSS_DATA
  788.    for data requests (otherwise, the message will be interpreted as a
  789.    control message).
  790.  
  791.    The server maintains a window of "seq_window" sequence numbers,
  792.    starting with the last sequence number seen and extending backwards.
  793.    If a sequence number higher than the last number seen is received
  794.    (AND if GSS_VerifyMIC() on the header checksum from the verifier
  795.    returns GSS_S_COMPLETE), the window is moved forward to the new
  796.    sequence number.  If the last sequence number seen is N, the server
  797.    is prepared to receive requests with sequence numbers in the range N
  798.    through (N - seq_window + 1), both inclusive.  If the sequence number
  799.    received falls below this range, it is silently discarded.  If the
  800.  
  801.  
  802.  
  803. Expires: August 1997                                           [Page 13]
  804.  
  805. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  806.  
  807.  
  808.    sequence number is within this range, and the server has not seen it,
  809.    the request is accepted, and the server turns on a bit to "remember"
  810.    that this sequence number has been seen.  If the server determines
  811.    that it has already seen a sequence number within the window, the
  812.    request is silently discarded. The server should select a seq_window
  813.    value based on the number requests it expects to process
  814.    simultaneously. For example, in a threaded implementation seq_window
  815.    might be equal to the number of server threads. There are no known
  816.    security issues with selecting a large window. The primary issue is
  817.    how much space the server is willing to allocate to keep track of
  818.    requests received within the window.
  819.  
  820.    The reason for discarding requests silently is that the server is
  821.    unable to determine if the duplicate or out of range request was due
  822.    to a sequencing problem in the client, network, or the operating
  823.    system, or due to some quirk in routing, or a replay attack by an
  824.    intruder.  Discarding the request allows the client to recover after
  825.    timing out, if indeed the duplication was unintentional or well
  826.    intended.  Note that a consequence of the silent discard is that
  827.    clients may increment the seq_num by more than one. The effect of
  828.    this is that the window will move forward more quickly. It is not
  829.    believed that there is any benefit to doing this.
  830.  
  831.    Note that the sequence number algorithm requires that the client
  832.    increment the sequence number even if it is retrying a request with
  833.    the same RPC transaction identifier.  It is not infrequent for
  834.    clients to get into a situation where they send two or more attempts
  835.    and a slow server sends the reply for the first attempt. With
  836.    RPCSEC_GSS, each request and reply will have a unique sequence
  837.    number. If the client wishes to improve turn around time on the RPC
  838.    call, it can cache the RPCSEC_GSS sequence number of each request it
  839.    sends. Then when it receives a response with a matching RPC
  840.    transaction identifier, it can compute the checksum of each sequence
  841.    number in the cache to try to match the checksum in the reply's
  842.    verifier.
  843.  
  844.    The data is decoded according to the service specified in the
  845.    credential.  In the case of integrity or privacy, the server ensures
  846.    that the QOP value is acceptable, and that it is the same as that
  847.    used for the header checksum in the verifier.  Also, in the case of
  848.    integrity or privacy, the server will reject the message (with a
  849.    reply status of MSG_ACCEPTED, and an acceptance status of
  850.    GARBAGE_ARGS) if the sequence number embedded in the request body is
  851.    different from the sequence number in the credential.
  852.  
  853. 5.3.3.2.  Server Reply - Request Accepted
  854.  
  855.    An MSG_ACCEPTED reply to a request in the data exchange phase will
  856.    have the verifier's (the verf element in the response) flavor field
  857.    set to RPCSEC_GSS, and the body field set to the checksum (the output
  858.    of GSS_GetMIC()) of the sequence number (in network order) of the
  859.    corresponding request.  The QOP used is the same as the QOP used for
  860.    the corresponding request.
  861.  
  862.  
  863.  
  864.  
  865. Expires: August 1997                                           [Page 14]
  866.  
  867. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  868.  
  869.  
  870.    If the status of the reply is not SUCCESS, the rest of the message is
  871.    formatted as usual.
  872.  
  873.    If the status of the message is SUCCESS, the format of the rest of
  874.    the message depends on the service specified in the corresponding
  875.    request message. Basically, what follows the verifier in this case
  876.    are the procedure results, formatted in different ways depending on
  877.    the requested service.
  878.  
  879.    If no data integrity was requested, the procedure results are
  880.    formatted as for the AUTH_NONE security flavor.
  881.  
  882.    If data integrity was requested, the results are encoded in exactly
  883.    the same way as the procedure arguments were in the corresponding
  884.    request.  See the section 'RPC Request Data - With Data Integrity.'
  885.    The only difference is that the structure representing the
  886.    procedure's result - proc_res_arg_t - must be substituted in place of
  887.    the request argument structure proc_req_arg_t.  The QOP used for the
  888.    checksum must be the same as that used for constructing the reply
  889.    verifier.
  890.  
  891.    If data privacy was requested, the results are encoded in exactly the
  892.    same way as the procedure arguments were in the corresponding
  893.    request.  See the section 'RPC Request Data - With Data Privacy.'
  894.    The QOP used for  encryption must be the same as that used for
  895.    constructing the reply verifier.
  896.  
  897. 5.3.3.3.  Server Reply - Request Denied
  898.  
  899.    An MSG_DENIED reply (to a data request) is formulated as usual.  Two
  900.    new values (RPCSEC_GSS_CREDPROBLEM and RPCSEC_GSS_CTXPROBLEM) have
  901.    been defined for the auth_stat type.  When the reason for denial of
  902.    the request is a reject_stat of AUTH_ERROR, one of the two new
  903.    auth_stat values could be returned in addition to the existing
  904.    values.  These two new values have special significance from the
  905.    existing reasons for denial of a request.
  906.  
  907.    The server maintains a list of contexts for the clients that are
  908.    currently in session with it.  Normally, a context is destroyed when
  909.    the client ends the session corresponding to it.  However, due to
  910.    resource constraints, the server may destroy a context prematurely
  911.    (on an LRU basis, or if the server machine is rebooted, for example).
  912.    In this case, when a client request comes in, there may not be a
  913.    context corresponding to its handle. The server rejects the request,
  914.    with the reason RPCSEC_GSS_CREDPROBLEM in this case.  Upon receiving
  915.    this error, the client must refresh the context - that is,
  916.    reestablish it after destroying the old one - and try the request
  917.    again.  This error is also returned if the context handle matches
  918.    that of a different context that was allocated after the client's
  919.    context was destroyed (this will be detected by a failure in
  920.    verifying the header checksum).
  921.  
  922.    If the GSS_VerifyMIC() call in the verifier (the header checksum)
  923.    fails to return GSS_S_COMPLETE, the server rejects the requests and
  924.  
  925.  
  926.  
  927. Expires: August 1997                                           [Page 15]
  928.  
  929. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  930.  
  931.  
  932.    returns an auth_stat of RPCSEC_GSS_CREDPROBLEM.
  933.  
  934.    When the client's sequence number exceeds the maximum the server will
  935.    allow, the server will reject the request with the reason
  936.    RPCSEC_GSS_CTXPROBLEM.  Also, if security credentials become stale
  937.    while in use (due to ticket expiry in the case of the Kerberos V5
  938.    mechanism, for example), the failures which result cause the
  939.    RPCSEC_GSS_CTXPROBLEM reason to be returned.  In these cases also,
  940.    the client must refresh the context, and retry the request.
  941.  
  942.    For other errors, retrying will not rectify the problem and the
  943.    client must not refresh the context until the problem causing the
  944.    client request to be denied is rectified.
  945.  
  946.    If the version field in the credential does not match the version of
  947.    RPCSEC_GSS that was used when the context was created, the
  948.    AUTH_BADCRED value is returned.
  949.  
  950.    If there is a problem with the credential, such a bad length, illegal
  951.    control procedure, or an illegal service, the appropriate auth_stat
  952.    status is AUTH_BADCRED.
  953.  
  954.    Other errors can be returned as appropriate.
  955.  
  956. 5.3.3.4.  Mapping of GSS-API Errors to Server Responses
  957.  
  958.    During the data exchange phase, the server may invoke GSS_GetMIC(),
  959.    GSS_VerifyMIC(), GSS_Unwrap(), and GSS_Wrap(). If any of these
  960.    routines fail to return GSS_S_COMPLETE, then various unsuccessful
  961.    responses can be returned. The are described as follows for each of
  962.    the aforementioned four interfaces.
  963.  
  964. 5.3.3.4.1.  GSS_GetMIC() Failure
  965.  
  966.    When GSS_GetMIC() is called to generate the verifier in the response,
  967.    a failure results in an RPC response with a reply status of
  968.    MSG_DENIED, reject status of AUTH_ERROR and an auth status of
  969.    RPCSEC_GSS_CTXPROBLEM.
  970.  
  971.    When GSS_GetMIC() is called to sign the call results (service is
  972.    rpc_gss_svc_integrity), a failure results in no RPC response being
  973.    sent. Since ONC RPC server applications will typically control when a
  974.    response is sent, the failure indication will be returned to the
  975.    server application and it can take appropriate action (such as
  976.    logging the error).
  977.  
  978. 5.3.3.4.2.  GSS_VerifyMIC() Failure
  979.  
  980.    When GSS_VerifyMIC() is called to verify the verifier in request, a
  981.    failure results in an RPC response with a reply status of MSG_DENIED,
  982.    reject status of AUTH_ERROR and an auth status of
  983.    RPCSEC_GSS_CREDPROBLEM.
  984.  
  985.    When GSS_VerifyMIC() is called to verify the call arguments (service
  986.  
  987.  
  988.  
  989. Expires: August 1997                                           [Page 16]
  990.  
  991. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  992.  
  993.  
  994.    is rpc_gss_svc_integrity), a failure results in an RPC response with
  995.    a reply status of MSG_ACCEPTED, and an acceptance status of
  996.    GARBAGE_ARGS.
  997.  
  998. 5.3.3.4.3.  GSS_Unwrap() Failure
  999.  
  1000.    When GSS_Unwrap() is called to decrypt the call arguments (service is
  1001.    rpc_gss_svc_privacy), a failure results in an RPC response with a
  1002.    reply status of MSG_ACCEPTED, and an acceptance status of
  1003.    GARBAGE_ARGS.
  1004.  
  1005. 5.3.3.4.4.  GSS_Wrap() Failure
  1006.  
  1007.    When GSS_Wrap() is called to encrypt the call results (service is
  1008.    rpc_gss_svc_privacy), a failure results in no RPC response being
  1009.    sent. Since ONC RPC server applications will typically control when a
  1010.    response is sent, the failure indication will be returned to the
  1011.    application and it can take appropriate action (such as logging the
  1012.    error).
  1013.  
  1014. 5.4.  Context Destruction
  1015.  
  1016.    When the client is done using the session, it must send a control
  1017.    message informing the server that it no longer requires the context.
  1018.    This message is formulated just like a data request packet, with the
  1019.    following differences:  the credential has gss_proc set to
  1020.    RPCSEC_GSS_DESTROY, the procedure specified in the header is
  1021.    NULLPROC, and there are no procedure arguments.  The sequence number
  1022.    in the request must be valid, and the header checksum in the verifier
  1023.    must be valid, for the server to accept the message.
  1024.  
  1025.    The server sends a response as it would to a data request.  The
  1026.    client and server must then destroy the context for the session.
  1027.  
  1028.    If the request to destroy the context fails for some reason, the
  1029.    client need not take any special action.  The server must be prepared
  1030.    to deal with situations where clients never inform the server that
  1031.    they no longer are in session and so don't need the server to
  1032.    maintain a context.  An LRU mechanism or an aging mechanism should be
  1033.    employed by the server to clean up in such cases.
  1034.  
  1035. 6.  Set of GSS-API Mechanisms
  1036.  
  1037.    RPCSEC_GSS is effectively a "pass-through" to the GSS-API layer, and
  1038.    as such it is inappropriate for the RPCSEC_GSS specification to
  1039.    enumerate a minimum set of required security mechanisms and/or
  1040.    quality of protections.
  1041.  
  1042.    If an application protocol specification references RPCSEC_GSS, the
  1043.    protocol specification must list a mandatory set of GSS-API
  1044.    mechanisms and QOPs, such that an implementation cannot claim
  1045.    conformance to the protocol specification unless it implements the
  1046.    mandatory set of mechanisms and QOPs. Furthermore, the application
  1047.    protocol specification must define rpc_gss_svc_integrity as one of
  1048.  
  1049.  
  1050.  
  1051. Expires: August 1997                                           [Page 17]
  1052.  
  1053. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  1054.  
  1055.  
  1056.    the required security services for each { mechanism, QOP } pair in
  1057.    the mandatory set.
  1058.  
  1059.    For example, a network filing protocol built on RPC that depends on
  1060.    RPCSEC_GSS for security, might require that Kerberos V5 with the
  1061.    default QOP using the rpc_gss_svc_integrity service be supported by
  1062.    implementations conforming to the network filing protocol
  1063.    specification.
  1064.  
  1065. 7.  Security Considerations
  1066.  
  1067. 7.1.  Privacy of Call Header
  1068.  
  1069.    The reader will note that for the privacy option, only the call
  1070.    arguments and results are encrypted. Information about the
  1071.    application in the form of RPC program number, program version
  1072.    number, and program procedure number is transmitted in the clear.
  1073.    Encrypting these fields in the RPC call header would have changed the
  1074.    size and format of the call header. This would have required revising
  1075.    the RPC protocol which was beyond the scope of this proposal. Storing
  1076.    the encrypted numbers in the credential would have obviated a
  1077.    protocol change, but would have introduced more overloading of fields
  1078.    and would have made implementations of RPC more complex. Even if the
  1079.    fields were encrypted somehow, in most cases an attacker can
  1080.    determine the program number and version number by examining the
  1081.    destination address of the request and querying the rpcbind service
  1082.    on the destination host [Srinivasan-bind].  In any case, even by not
  1083.    encrypting the three numbers, RPCSEC_GSS still improves the state of
  1084.    security over what existing RPC services have had available
  1085.    previously. Implementors of new RPC services that are concerned about
  1086.    this risk may opt to design in a "sub-procedure" field that is
  1087.    included in the service specific call arguments.
  1088.  
  1089. 7.2.  Sequence Number Attacks
  1090.  
  1091. 7.2.1.  Sequence Numbers Above the Window
  1092.  
  1093.    An attacker cannot coax the server into raising the sequence number
  1094.    beyond the range the legitimate client is aware of (and thus engineer
  1095.    a denial of server attack) without constructing an RPC request that
  1096.    will pass the header checksum. If the cost of verifying the header
  1097.    checksum is sufficiently large (depending on the speed of the
  1098.    processor doing the checksum and the cost of checksum algorithm), it
  1099.    is possible to envision a denial of service attack (vandalism, in the
  1100.    form of wasting processing resources) whereby the attacker sends
  1101.    requests that are above the window. The simplest method might be for
  1102.    the attacker to monitor the network traffic and then choose a
  1103.    sequence number that is far above the current sequence number. Then
  1104.    the attacker can send bogus requests using the above window sequence
  1105.    number.
  1106.  
  1107. 7.2.2.  Sequence Numbers Within or Below the Window
  1108.  
  1109.    If the attacker sends requests that within or below the window, then
  1110.  
  1111.  
  1112.  
  1113. Expires: August 1997                                           [Page 18]
  1114.  
  1115. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  1116.  
  1117.  
  1118.    even if the header checksum is successfully verified, the server will
  1119.    silently discard the requests because the server assumes it has
  1120.    already processed the request. In this case, a server can optimize by
  1121.    skipping the header checksum verification if the sequence number is
  1122.    below the window, or if it is within the window, do not attempt the
  1123.    checksum verification if the sequence number has already been seen.
  1124.  
  1125. 7.3.  Message Stealing Attacks
  1126.  
  1127.    This proposal does not address attacks where an attacker can block or
  1128.    steal messages without being detected by the server. To implement
  1129.    such protection would be tantamount to assuming a state in the RPC
  1130.    service. RPCSEC_GSS does not worsen this situation.
  1131.  
  1132. 8.  Acknowledgements
  1133.  
  1134.    Much of protocol was based on the AUTH_GSSAPI security flavor
  1135.    developed by Open Vision Technologies [Jaspan].  In particular, we
  1136.    acknowledge Barry Jaspan, Marc Horowitz, John Linn, and Ellen
  1137.    McDermott.
  1138.  
  1139.    Raj Srinivasan designed RPCSEC_GSS [Eisler] with input from Mike
  1140.    Eisler.  Raj, Roland Schemers, Lin Ling, and Alex Chiu contributed to
  1141.    SunSoft's implementation of RPCSEC_GSS.
  1142.  
  1143.    Brent Callaghan, Marc Horowitz, Barry Jaspan, John Linn, Hilarie
  1144.    Orman, Martin Rex, Ted Ts'o, and John Wroclawski analyzed the
  1145.    specification and gave valuable feedback.
  1146.  
  1147.    Steve Nahm and Kathy Slattery reviewed various drafts of this
  1148.    specification.
  1149.  
  1150. 9.  References
  1151.  
  1152.  
  1153. [Baize]             Baize, E., and Pinkas, D.  (1996).
  1154.                     draft-ietf-cat-snego-02.txt "Simple GSS-API
  1155.                     Negotiation Mechanism," This is a work in progress
  1156.                     which may be updated, replaced, or obsoleted at any
  1157.                     time.
  1158.  
  1159. [Eisler]            Eisler, M., Schemers, R., and Srinivasan, R. (1996).
  1160.                     "Security Mechanism Independence in ONC RPC," To be
  1161.                     published in the Proceedings of 1996 Usenix Security
  1162.                     Symposium.
  1163.  
  1164. [Jaspan]            Jaspan, B. (1995). "GSS-API Security for ONC RPC,"
  1165.                     `95 Proceedings of The Internet Society Symposium on
  1166.                     Network and Distributed System Security, pp. 144-
  1167.                     151.
  1168.  
  1169. [Linn]              Linn, J. (1997). RFC 2078, "Generic Security Service
  1170.                     Application Program Interface, Version 2."
  1171.  
  1172.  
  1173.  
  1174.  
  1175. Expires: August 1997                                           [Page 19]
  1176.  
  1177. Internet Draft     RPCSEC_GSS Protocol Specification       February 1997
  1178.  
  1179.  
  1180. [Srinivasan-bind]   Srinivasan, R. (1995). RFC 1833, "Binding Protocols
  1181.                     for ONC RPC Version 2."
  1182.  
  1183. [Srinivasan-rpc]    Srinivasan, R. (1995). RFC 1831, "RPC: Remote
  1184.                     Procedure Call Protocol Specification Version 2."
  1185.  
  1186. [Srinivasan-xdr]    Srinivasan, R. (1995). RFC 1832, "XDR: External Data
  1187.                     Representation Standard."
  1188.  
  1189.  
  1190. 10.  Authors' Addresses
  1191.  
  1192.    Michael Eisler
  1193.    Sun Microsystems, Inc.
  1194.    M/S UCOS03
  1195.    2550 Garcia Avenue
  1196.    Mountain View, CA 94043
  1197.  
  1198.    Phone: +1 (719) 599-9026
  1199.  
  1200.    E-mail: mre@eng.sun.com
  1201.  
  1202.    Alex Chiu
  1203.    Sun Microsystems, Inc.
  1204.    M/S UMPK17-203
  1205.    2550 Garcia Avenue
  1206.    Mountain View, CA 94043
  1207.  
  1208.    Phone: +1 (415) 786-6465
  1209.  
  1210.    E-mail: hacker@eng.sun.com
  1211.  
  1212.    Lin Ling
  1213.    Sun Microsystems, Inc.
  1214.    M/S UMPK17-201
  1215.    2550 Garcia Avenue
  1216.    Mountain View, CA 94043
  1217.  
  1218.    Phone: +1 (415) 786-5084
  1219.  
  1220.    E-mail: lling@eng.sun.com
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237. Expires: August 1997                                           [Page 20]
  1238.  
  1239.