<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7641</bug_id>
          
          <creation_ts>2015-04-22 10:05:26 +0000</creation_ts>
          <short_desc>CVE-2014-9365 python: failure to validate certificates in the HTTP client with TLS (PEP 476)</short_desc>
          <delta_ts>2016-10-03 19:41:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sona Sarmadi">sona.sarmadi</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>akuster</cc>
    
    <cc>alejandro.hernandez</cc>
    
    <cc>jose.a.lamego</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50464</commentid>
    <comment_count>0</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2015-04-22 10:05:26 +0000</bug_when>
    <thetext>&quot;&quot;&quot;
When Python&apos;s standard library HTTP clients (httplib, urllib, urllib2, xmlrpclib) are used to access resources with HTTPS, by default the certificate is not checked against any trust store, nor is the hostname in the certificate checked against the requested host. It was possible to configure a trust root to be checked against, however there were no faculties for hostname checking.

This made MITM attacks against the HTTP clients trivial, and violated RFC 2818 (http://tools.ietf.org/html/rfc2818#section-3).

Python 2.7.9 has been issued to resolve this issue. It is also resolved in 3.4.3, which has not yet been released.
&quot;&quot;&quot;

References:
http://seclists.org/oss-sec/2014/q4/1022
https://lwn.net/Articles/611243/
https://www.python.org/dev/peps/pep-0476/
http://bugs.python.org/issue22417
http://bugs.python.org/issue22366
http://bugs.python.org/issue22417

This change depends on another PEP 466 &quot;Network Security Enhancements for Python 2.7.x&quot;:

https://www.python.org/dev/peps/pep-0466/

The PEP 466 covers a set of not directly related enhancement, one of them being update of the ssl module.  The update adds few features relevant here - SSLContext support, which defines connections parameters and verification done during handshake, name checking functions (previously packages for python 2.7 via a separate python-backports-ssl_match_hostname package), and functionality for loading system trust store.

Upstream bug for the ssl module part of PEP 466:

http://bugs.python.org/issue21308</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50467</commentid>
    <comment_count>1</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2015-04-22 12:02:02 +0000</bug_when>
    <thetext>Statement:

This issue affects dizzy and daisy branches which are using Python 2.7.3 version.
This issue does not affect master branch which uses Python 2.7.9  version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51175</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2015-05-20 19:41:26 +0000</bug_when>
    <thetext>This also affected Python 3.3, but it has been fixed here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=79a2fc2f6c84265baefcdb6bb74c4da3b8b600d4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63952</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-13 22:52:49 +0000</bug_when>
    <thetext>Armin, do you plan to resolve this for the dizzy branch, or should we close it as wontfix on the grounds that dizzy is past support now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66836</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-10-03 19:41:18 +0000</bug_when>
    <thetext>I am not planning on fixing this issue. Marking as wontfix.

There are several Yocto member&apos;s who provide commercial support and may be able to provide assistances on this issue.

https://www.yoctoproject.org/ecosystem/member-organizations.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>