<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<!-- This template is for creating an Internet Draft using xml2rfc,
    which is available here: http://xml.resource.org. -->
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!-- used by XSLT processors -->
<!-- For a complete list and description of processing instructions (PIs), 
    please see http://xml.resource.org/authoring/README.html. -->
<!-- Below are generally applicable Processing Instructions (PIs) that most I-Ds might want to use.
    (Here they are set differently than their defaults in xml2rfc v1.32) -->
<?rfc strict="yes" ?>
<!-- give errors regarding ID-nits and DTD validation -->
<!-- control the table of contents (ToC) -->
<?rfc toc="yes"?>
<!-- generate a ToC -->
<?rfc tocdepth="4"?>
<!-- the number of levels of subsections in ToC. default: 3 -->
<!-- control references -->
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC
] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- sort the reference entries alphabetically -->
<!-- control vertical white space 
    (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one blank line between list items -->
<!-- end of list of popular I-D processing instructions -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-tls-md5-sha1-deprecate-09" ipr="trust200902" updates="5246" obsoletes="" submissionType="IETF" xml:lang="en" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.10.0 -->
  <!-- category values: std, bcp, info, exp, and historic
    ipr values: trust200902, noModificationTrust200902, noDerivativesTrust200902,
       or pre5378Trust200902
    you can add the attributes updates="NNNN" and obsoletes="NNNN" 
    they will automatically be output with "(if approved)" -->

 <!-- ***** FRONT MATTER ***** -->

 <front>
    <!-- The abbreviated title is used in the page header - it is only necessary if the 
        full title is longer than 39 characters -->

   <title abbrev="draft-ietf-tls-md5-sha1-deprecate">Deprecating MD5 and SHA-1 signature hashes in (D)TLS 1.2</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-tls-md5-sha1-deprecate-09"/>
    <!-- add 'role="editor"' below for the editors if appropriate -->

   <!-- Another author who claims to be an editor -->

   <author fullname="Loganaden Velvindron" initials="L.V." surname="Velvindron">
      <organization>cyberstorm.mu</organization>
      <address>
        <postal>
          <street/>
          <!-- Reorder these if your country does things differently -->

         <city>Rose Hill</city>
          <region/>
          <code/>
          <country>MU</country>
        </postal>
        <phone>+230 59762817</phone>
        <email>logan@cyberstorm.mu</email>
        <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
    <author fullname="Kathleen Moriarty" initials="K.M." surname="Moriarty">
      <organization abbrev="CIS">Center for Internet Security</organization>
      <address>
        <postal>
          <street/>
          <city>East Greenbush</city>
          <region>NY</region>
          <country>United States of America</country>
        </postal>
        <email>Kathleen.Moriarty.ietf@gmail.com</email>
      </address>
    </author>
    <author fullname="Alessandro Ghedini" initials="A.G." surname="Ghedini">
      <organization>Cloudflare Inc.</organization>
      <address>
        <email>alessandro@cloudflare.com</email>
      </address>
    </author>
    <date year="2021"/>
    <!-- If the month and year are both specified and are the current ones, xml2rfc will fill 
        in the current day for you. If only the current year is specified, xml2rfc will fill 
	 in the current day and month for you. If the year is not the current one, it is 
	 necessary to specify at least a month (xml2rfc assumes day="1" if not specified for the 
	 purpose of calculating the expiry date).  With drafts it is normally sufficient to 
	 specify just the year. -->

   <!-- Meta-data Declarations -->

   <area>General</area>
    <workgroup>Internet Engineering Task Force</workgroup>
    <!-- WG name at the upperleft corner of the doc,
        IETF is fine for individual submissions.  
	 If this element is not present, the default is "Network Working Group",
        which is used by the RFC Editor as a nod to the history of the IETF. -->

   <keyword>tls</keyword>
    <!-- Keywords will be incorporated into HTML output
        files in a meta tag but they have no effect on text or nroff
        output. If you submit your draft to the RFC Editor, the
        keywords will be used for the search engine. -->

   <abstract>
      <t>
           The MD5 and SHA-1 hashing algorithms are increasingly vulnerable to attack and this document deprecates their use in TLS 1.2 digital signatures.
        However, this document does not deprecate SHA-1 in HMAC for record protection. This document updates RFC 5246.
      </t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <t>The usage of MD5 and SHA-1 for signature hashing in TLS 1.2 is specified in <xref target="RFC5246" format="default"/>. MD5 and SHA-1 have been proven to be insecure, 
     subject to collision attacks <xref target="Wang" format="default"/>. In 2011, <xref target="RFC6151" format="default"/> detailed the security considerations, including collision attacks 
     for MD5.  NIST formally deprecated use of SHA-1 in 2011 
   <xref target="NISTSP800-131A-R2" format="default"/> and 
    disallowed its use for digital signatures at the end of 2013, based on both the Wang et al. attack and the 
    potential for brute-force attack.  In 2016, researchers from INRIA identified
    a new class of transcript collision attacks on TLS (and other protocols)
    that rely on efficient collision-finding algorithms on the underlying hash
    constructions <xref target="Transcript-Collision" format="default"/>.  Further, in 2017,
    researchers from Google and CWI Amsterdam 
    <xref target="SHA-1-Collision" format="default"/> 
    proved SHA-1 collision attacks were practical.
     This document updates <xref target="RFC5246" format="default"/> 
     in such a way that MD5 and SHA-1 MUST NOT
     be used for digital signatures.  However, this document does not deprecate SHA-1 in HMAC for record protection.
     Note that the CABF has also deprecated use of SHA-1 for use in certificate signatures <xref target="CABF" format="default"/>.
</t>
      <section numbered="true" toc="default">
        <name>Requirements Language</name>
        <t>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 BCP
   14 <xref target="RFC2119" format="default"/> <xref target="RFC8174" format="default"/> when, and only when, they appear in all
   capitals, as shown here.</t>
      </section>
    </section>
    <section anchor="Signature_algorithms" numbered="true" toc="default">
      <name>Signature Algorithms</name>
      <t>
   Clients MUST include the signature_algorithms extension. Clients MUST NOT include MD5
   and SHA-1 in this extension.
      </t>
    </section>
    <section anchor="cert_requests" numbered="true" toc="default">
      <name>Certificate Request</name>
      <t>
   Servers SHOULD NOT include MD5 and SHA-1 in CertificateRequest messages.  
      </t>
    </section>
    <section anchor="serverkeyexchange" numbered="true" toc="default">
      <name>Server Key Exchange</name>
      <t>
   Servers MUST NOT include MD5 and SHA-1 in ServerKeyExchange 
   messages.  If the client receives a ServerKeyExchange message
   indicating MD5 or SHA-1, then it MUST abort the connection with
   an illegal_parameter alert. 
      </t>
    </section>
    <section anchor="CertificateVerify" numbered="true" toc="default">
      <name>Certificate Verify</name>
      <t>
   Clients MUST NOT include MD5 and SHA-1 in CertificateVerify messages. If a
   server receives a CertificateVerify message with MD5 or SHA-1 it MUST
   abort the connection with an illegal_parameter alert.
      </t>
    </section>
    <section anchor="IANA" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t> The document updates the "TLS SignatureScheme" registry to change the recommended status of 
SHA-1 based signature schemes to N (not recommended) as defined by <xref target="RFC8447" format="default"/>.  
The following entries are to be updated:
</t>
      <table align="center">
        <thead>
          <tr>
            <th align="center">Value</th>
            <th align="center">Description</th>
            <th align="center">Recommended</th>
            <th align="center">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="center">0x0201</td>
            <td align="center">rsa_pkcs1_sha1</td>
            <td align="center">N</td>
            <td align="center">
              <xref target="RFC8446" format="default"/> [RFCTBD]</td>
          </tr>
          <tr>
            <td align="center">0x0203</td>
            <td align="center">ecdsa_sha1</td>
            <td align="center">N</td>
            <td align="center">
              <xref target="RFC8446" format="default"/> [RFCTBD]</td>
          </tr>
        </tbody>
      </table>
      <t>Other entries of the registry remain the same. </t>
      <t>
IANA is also requested to update the Reference for the TLS SignatureAlgorithm and TLS HashAlgorithm registries to refer to this RFC:
</t>
      <t>
OLD:
</t>
      <t>
Reference
</t>
      <t>
[RFC5246][RFC8447]
</t>
      <t>
NEW:
</t>
      <t>
Reference
</t>
      <t>
[RFC5246][RFC8447][RFC-to-be]
</t>
    </section>
    <section anchor="Security" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t> Concerns with TLS 1.2 implementations falling back to SHA-1 is an issue. 
              This document updates the TLS 1.2 specification to deprecate support for MD5
              and SHA-1 for digital signatures. However, this document does not deprecate SHA-1 in HMAC for record protection.
      </t>
    </section>
    <section anchor="Acknowledgement" numbered="true" toc="default">
      <name>Acknowledgement</name>
      <t> The authors would like to thank Hubert Kario for his help in writing the initial 
              draft. We are also grateful to Daniel Migault, Martin Thomson, Sean Turner, Christopher Wood and David Cooper
             for their feedback.
      </t>
    </section>
  </middle>
  <!--  *****BACK MATTER ***** -->

 <back>
    <!-- References split into informative and normative -->

   <!-- There are 2 ways to insert reference entries from the citation libraries:
    1. define an ENTITY at the top, and use "ampersand character"RFC2629; here (as shown)
    2. simply use a PI "less than character"?rfc include="reference.RFC.2119.xml"?> here
       (for I-Ds: include="reference.I-D.narten-iana-considerations-rfc2434bis.xml")

    Both are cited textually in the same manner: by using xref elements.
    If you use the PI option, xml2rfc will, by default, try to find included files in the same
    directory as the including file. You can also define the XML_LIBRARY environment variable
    with a value containing a set of directories to search.  These can be either in the local
    filing system or remote ones accessed by http (http://domain/dir/... ).-->

   <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <!--?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?-->
     <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5246.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8446.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8447.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <!-- Here we use entities that we defined at the beginning. -->

     <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6151.xml"/>
        <reference anchor="NISTSP800-131A-R2" target="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf">
          <front>
            <title>
Transitioning the Use of Cryptographic Algorithms and Key Lengths
</title>
            <author initials="E.B" surname="Barker" fullname="Elaine Barker">
              <organization/>
            </author>
            <author initials="A.R" surname="Roginsky" fullname="Allen Roginsky">
              <organization/>
            </author>
            <date month="March" year="2019"/>
          </front>
        </reference>
        <reference anchor="CABF" target="https://cabforum.org/2014/10/16/ballot-118-sha-1-sunset/">
          <front>
            <title>
Ballot 118 -- SHA-1 Sunset (passed)
</title>
            <author>
              <organization>CA/Browser Forum</organization>
            </author>
            <date year="2014"/>
          </front>
        </reference>
        <reference anchor="Transcript-Collision" target="https://hal.inria.fr/hal-01244855/document">
          <front>
            <title>
Transcript Collision Attacks: Breaking Authentication in TLS, IKE, and SSH
</title>
            <author initials="K.B" surname="Bhargavan" fullname="Karthikeyan Bhargavan">
              <organization/>
            </author>
            <author initials="G.L" surname="Leurent" fullname="Gaetan Leurent">
              <organization/>
            </author>
            <date month="February" year="2016"/>
          </front>
        </reference>
        <reference anchor="SHA-1-Collision" target="https://eprint.iacr.org/2017/190">
          <front>
            <title>
The first collision for full SHA-1
</title>
            <author initials="M.S" surname="Stevens" fullname="Marc Stevens">
              <organization/>
            </author>
            <author initials="E.B" surname="Bursztein" fullname="Elie Bursztein">
              <organization/>
            </author>
            <author initials="P.K" surname="Karpman" fullname="Pierre Karpman">
              <organization/>
            </author>
            <author initials="A.A" surname="Albertini" fullname="Ange Albertini">
              <organization/>
            </author>
            <author initials="Y.M" surname="Markov" fullname="Yarik Markov">
              <organization/>
            </author>
            <date month="March" year="2019"/>
          </front>
        </reference>
        <reference anchor="Wang" target="https://www.iacr.org/archive/crypto2005/36210017/36210017.pdf">
          <front>
            <title>
Finding Collisions in the Full SHA-1
</title>
            <author initials="X.W" surname="Wang" fullname="Xiaoyun Wang">
              <organization/>
            </author>
            <author initials="Y.Y" surname="Yin" fullname="Yiqun Lisa Yin">
              <organization/>
            </author>
            <author initials="H.Y" surname="Yu" fullname="Hongbo Yu">
              <organization/>
            </author>
            <date year="2005"/>
          </front>
        </reference>
      </references>
    </references>
    <!-- Change Log

  -->
 </back>
</rfc>
