RFC 6176 PROPOSED STANDARD TLS · SECURITY

Prohibit SSL 2.0: Prohibiting Secure Sockets Layer (SSL) Version 2.0

Requires TLS clients and servers never to negotiate the insecure SSL version 2.0.

On rfc-editor.org ↗
PUBLISHED
March 2011
AUTHORS
S. Turner, T. Polk
STREAM
IETF
BUILDS ON
RFC 2246 — TLS 1.0, RFC 4346 — TLS 1.1, RFC 5246 — TLS 1.2
UPDATED BY
RFC 8996 — Deprecate TLS 1.0/1.1
MINIMUM CLIENTHELLO VERSION
{ 0x03, 0x00 }
SSL 2.0 VERSION VALUE
{ 0x02, 0x00 }
DOI
10.17487/RFC6176
ERRATA
Reported errata

RFC text

Contents
Original text · RFC Editor View on rfc-editor.org ↗
Internet Engineering Task Force (IETF)                         S. Turner
Request for Comments: 6176                                          IECA
Updates: 2246, 4346, 5246                                        T. Polk
Category: Standards Track                                           NIST
ISSN: 2070-1721                                               March 2011


           Prohibiting Secure Sockets Layer (SSL) Version 2.0

Abstract

   This document requires that when Transport Layer Security (TLS)
   clients and servers establish connections, they never negotiate the
   use of Secure Sockets Layer (SSL) version 2.0.  This document updates
   the backward compatibility sections found in the Transport Layer
   Security (TLS).

Status of This Memo

   This is an Internet Standards Track document.

   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in Section 2 of RFC 5741.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   http://www.rfc-editor.org/info/rfc6176.

Copyright Notice

   Copyright (c) 2011 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

1.  Introduction

   Many protocols specified in the IETF rely on Transport Layer Security
   (TLS) [TLS1.0][TLS1.1][TLS1.2] for security services.  This is a good
   thing, but some TLS clients and servers also support negotiating the
   use of Secure Sockets Layer (SSL) version 2.0 [SSL2]; however, this
   version does not provide a sufficiently high level of security.  SSL
   version 2.0 has known deficiencies.  This document describes those
   deficiencies, and it requires that TLS clients and servers never
   negotiate the use of SSL version 2.0.

   RFC 4346 [TLS1.1], and later RFC 5246 [TLS1.2], explicitly warned
   implementers that the "ability to send version 2.0 CLIENT-HELLO
   messages will be phased out with all due haste".  This document
   accomplishes this by updating the backward compatibility sections
   found in TLS [TLS1.0][TLS1.1][TLS1.2].

1.1.  Requirements Terminology

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in
   [RFC2119].

2.  SSL 2.0 Deficiencies

   SSL version 2.0 [SSL2] deficiencies include the following:

   o  Message authentication uses MD5 [MD5].  Most security-aware users
      have already moved away from any use of MD5 [RFC6151].

   o  Handshake messages are not protected.  This permits a man-in-the-
      middle to trick the client into picking a weaker cipher suite than
      it would normally choose.

   o  Message integrity and message encryption use the same key, which
      is a problem if the client and server negotiate a weak encryption
      algorithm.

   o  Sessions can be easily terminated.  A man-in-the-middle can easily
      insert a TCP FIN to close the session, and the peer is unable to
      determine whether or not it was a legitimate end of the session.

3.  Changes to TLS

   Because of the deficiencies noted in the previous section:

   o  TLS clients MUST NOT send the SSL version 2.0 compatible CLIENT-
      HELLO message format.  Clients MUST NOT send any ClientHello
      message that specifies a protocol version less than
      { 0x03, 0x00 }.  As previously stated by the definitions of all
      previous versions of TLS, the client SHOULD specify the highest
      protocol version it supports.

   o  TLS servers MAY continue to accept ClientHello messages in the
      version 2 CLIENT-HELLO format as specified in RFC 5246 [TLS1.2],
      Appendix E.2.  Note that this does not contradict the prohibition
      against actually negotiating the use of SSL 2.0.

   o  TLS servers MUST NOT reply with an SSL 2.0 SERVER-HELLO with a
      protocol version that is less than { 0x03, 0x00 } and instead MUST
      abort the connection, i.e., when the highest protocol version
      offered by the client is { 0x02, 0x00 }, the TLS connection will
      be refused.

   Note that the number of servers that support this above-mentioned
   "MAY accept" implementation option is declining, and the SSL 2.0
   CLIENT-HELLO precludes the use of TLS protocol enhancements that
   require TLS extensions.  TLS extensions can only be sent as part of
   an (Extended) ClientHello handshake message.

4.  Security Considerations

   This entire document is about security considerations.

5.  Acknowledgements

   The idea for this document was inspired by discussions between Peter
   Saint Andre, Simon Josefsson, and others on the Extensible Messaging
   and Presence Protocol (XMPP) mailing list.

   We would also like to thank Michael D'Errico, Paul Hoffman, Nikos
   Mavrogiannopoulos, Tom Petch, Yngve Pettersen, Marsh Ray, Martin Rex,
   Yaron Sheffer, and Glen Zorn for their reviews and comments.

6.  References

6.1.  Normative References

   [RFC2119]   Bradner, S., "Key words for use in RFCs to Indicate
               Requirement Levels", BCP 14, RFC 2119, March 1997.

   [TLS1.0]    Dierks, T. and C. Allen, "The TLS Protocol Version 1.0",
               RFC 2246, January 1999.

   [TLS1.1]    Dierks, T. and E. Rescorla, "The Transport Layer Security
               (TLS) Protocol Version 1.1", RFC 4346, April 2006.

   [TLS1.2]    Dierks, T. and E. Rescorla, "The Transport Layer Security
               (TLS) Protocol Version 1.2", RFC 5246, August 2008.

6.2.  Informative References

   [MD5]       Rivest, R., "The MD5 Message-Digest Algorithm", RFC 1321,
               April 1992.

   [SSL2]      Hickman, Kipp, "The SSL Protocol", Netscape
               Communications Corp., Feb 9, 1995.

   [RFC6151]   Turner, S. and L. Chen, "Updated Security Considerations
               for the MD5 Message-Digest and the HMAC-MD5 Algorithms",
               RFC 6151, March 2011.

Authors' Addresses

   Sean Turner
   IECA, Inc.
   3057 Nutley Street, Suite 106
   Fairfax, VA 22031
   USA

   EMail: turners@ieca.com

   Tim Polk
   National Institute of Standards and Technology
   100 Bureau Drive, Mail Stop 8930
   Gaithersburg, MD 20899-8930
   USA

   EMail: tim.polk@nist.gov

AI ELI5

On this page
PROBLEMSome TLS clients and servers still supported negotiating SSL version 2.0, which has known deficiencies and does not give a sufficiently high level of security.
MECHANISMThe RFC updates the backward compatibility sections of TLS 1.0, 1.1 and 1.2: clients MUST NOT send an SSL 2.0 compatible CLIENT-HELLO and servers MUST NOT reply with an SSL 2.0 SERVER-HELLO.
STATUS TODAYSSL 2.0 may never be negotiated. The RFC is a Proposed Standard and the metadata lists RFC 8996 as updating it.

§1Why SSL 2.0 Goes

Many IETF protocols rely on TLS, but some TLS clients and servers also support negotiating SSL version 2.0, which has known deficiencies. This document requires that TLS clients and servers never negotiate it.

RFC 4346 and later RFC 5246 had warned that the ability to send version 2.0 CLIENT-HELLO messages "will be phased out with all due haste". RFC 6176 does this by updating the backward compatibility sections of RFC 2246, RFC 4346 and RFC 5246.

Earlier rule books said to stop using the old lock soon. This one says stop now.

§2The SSL 2.0 Deficiencies

The RFC lists four problems:

  • Message authentication uses MD5.
  • Handshake messages are not protected, so a man-in-the-middle can trick the client into picking a weaker cipher suite.
  • Message integrity and message encryption use the same key, which is a problem if a weak algorithm is negotiated.
  • Sessions can easily be terminated: a man-in-the-middle can insert a TCP FIN, and the peer cannot tell whether it was a legitimate end of the session.

The old lock used a weak seal, let a sneaky person change the deal before it started, used one key for two jobs, and could be slammed shut by a stranger.

§3What TLS Implementations Must Do

TLS clients MUST NOT send the SSL version 2.0 compatible CLIENT-HELLO format, and MUST NOT send any ClientHello specifying a protocol version less than { 0x03, 0x00 }. A client SHOULD specify the highest protocol version it supports.

TLS servers MAY continue to accept ClientHello messages in the version 2 CLIENT-HELLO format from RFC 5246, Appendix E.2, which does not contradict the ban on negotiating SSL 2.0. Servers MUST NOT reply with an SSL 2.0 SERVER-HELLO below { 0x03, 0x00 } and MUST abort the connection, so a client whose highest version is { 0x02, 0x00 } is refused.

Clients must not ask for the old lock. If a client only knows the old lock, the server hangs up.

§4Security Considerations

The RFC states that the entire document is about security considerations. It adds that the number of servers supporting the optional acceptance of the version 2 CLIENT-HELLO is declining, and that this hello format precludes TLS extensions, which can only be sent in an (Extended) ClientHello handshake message.

The old greeting also cannot carry the newer safety add-ons.

§5References