Reviewer:   Derrell Piper
Review type: Early review
Summary:    Has Issues

Don’t panic, but this is an early security directorate review of this
document, done while it is still in the IPsecME working group and
before IETF last call.  These comments were written primarily for the
benefit of the security area directors.  Document editors and WG chairs
should treat these comments just like any other working group comments.

The document defines USE_BEET_MODE for negotiating BEET mode Child SAs
in IKEv2, modeled on USE_TRANSPORT_MODE.  The mechanism is simple and
the notify is covered by the IKE SA's integrity protection, so an
on-path attacker cannot strip it to force a downgrade.  My concerns are
with what happens when the negotiated result is not what the initiator
wanted, and with rekeying.

Issues:

1. Traffic on a Child SA the initiator must delete (Sections 2, 2.1).
   When the responder omits USE_BEET_MODE the Child SA is established
   in Tunnel mode, and an initiator for which that is unacceptable MUST
   delete it.  Section 2 says the initiator MAY delete without first
   installing the SA, but only for the omitted-notify and ambiguous-
   response cases.  Section 2.1 requires deletion when the returned
   Traffic Selectors are not single addresses and says nothing about
   installation beyond an "as with an ambiguous response" cross-
   reference.  Neither section says what happens to traffic in the
   meantime, and that traffic can flow in both directions: RFC 7296
   Section 2.8 lets a CREATE_CHILD_SA responder begin sending on the
   new SA as soon as it sends its response, so once the initiator has
   processed the response, packets can arrive both before and after it
   sends its Delete (the same timing applies to a Child SA created in
   IKE_AUTH).  The draft should specify the observable behavior in both
   directions for as long as the SA exists, not only up to the Delete.
   Suggested text:

      The initiator MUST verify that the negotiated mode and Traffic
      Selectors are acceptable before using the Child SA.  If the
      initiator is required to delete the Child SA under Section 2 or
      2.1, it MUST NOT send traffic on that SA and MUST discard any
      inbound traffic received on it.

2. Rekeying a BEET Child SA (Section 2).  Section 2 already requires
   identical TSi and TSr on a BEET rekey.  The rule that the initiator
   include USE_BEET_MODE arguably covers rekeying too, but it is worded
   for a new Child SA, and RFC 7296 treats creating new Child SAs
   (Section 1.3.1) separately from rekeying (Section 1.3.3), where
   repeating USE_TRANSPORT_MODE is given as the usual practice.  What
   the draft leaves open is whether a response that omits
   USE_BEET_MODE, and so establishes a Tunnel mode SA, counts as a
   successful rekey of an existing BEET SA.  The identical
   single-address selectors would still confine traffic to the same
   address pair, but ESP would no longer represent and reconstruct the
   inner addresses the BEET way, which matters to deployments that
   rely on BEET's address mapping.  Suggested text:

      An initiator rekeying a BEET Child SA MUST include USE_BEET_MODE.
      If the response establishes a Child SA but omits USE_BEET_MODE,
      the initiator MUST delete the new Child SA without using it and
      MUST NOT treat the rekey as successful.  The existing Child SA
      remains in use until it is replaced or expires.

   Omission already has a defined meaning (Tunnel mode), so an
   unsuccessful rekey is more precise than an invalid response.  A
   NO_PROPOSAL_CHOSEN response creates no SA and needs no deletion.
   If rekeying keeps failing, RFC 7296 Section 2.8 requires closing
   the IKE SA when the existing SA has expired or is about to expire,
   which ties into the retry limit in issue 3.

   Two related cases are also unaddressed.  The draft does not say
   what a responder does with a rekey of a BEET SA that lacks
   USE_BEET_MODE or carries different Traffic Selectors; rejecting it
   with NO_PROPOSAL_CHOSEN or TS_UNACCEPTABLE would be the obvious
   choices.  And in a simultaneous rekey (RFC 7296 Section 2.8.1), if
   the crossing exchanges produce one BEET SA and one Tunnel mode SA,
   the lowest-nonce rule could leave the Tunnel mode SA as the
   survivor.  Combined with the rule suggested above, the nonce rule
   would close the BEET SA and the initiator would delete the Tunnel
   mode SA, leaving neither replacement and only the old SA, which
   would then have to be rekeyed again before it expires.  The draft
   should say which SA survives in that case.

3. Security Considerations (Section 4).  The section already covers the
   consequences of Tunnel mode fallback, including the HIP case.  It
   should also say that an on-path attacker cannot remove USE_BEET_MODE
   from an integrity-protected exchange and have the modified message
   accepted, so an accepted fallback reflects the authenticated
   responder's response rather than an on-path modification.  For
   enforcement while a deletion is pending, see issue 1.  The
   SHOULD NOT retry indefinitely guidance points only to Section 2,
   but invalid Traffic Selectors (Section 2.1) cause the same churn,
   and it would be more useful with a finite retry limit; backoff
   alone reduces the rate of churn but does not end it.

Nits:

- Section 2: in IKE_AUTH the responder SHOULD fall back to Tunnel mode
  rather than reject.  A pointer to RFC 7296 Section 2.21.2 would cover
  the case where it rejects anyway.

- The notify value is [TBD1].  Section 1.1 acknowledges the private use
  deployment, but strongSwan's value 40961 appears only in Section 5.2,
  which will be removed before publication.  A sentence on transition
  from the private value would help existing deployments.

- The normative reference to draft-ietf-ipsecme-rfc7402-beet-update is
  itself unpublished.  Please coordinate publication of the two
  documents.

Derrell

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
IPsec mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to