| Summary: | ssl.match_hostname(): sub string wildcard should not match IDNA prefix | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Toshio Ernie Kuratomi <a.badger> |
| Component: | python3 | Assignee: | Matej Stuchlik <mstuchli> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | amcnabb, bkabrda, jberan, makowski.fedora, mstuchli, tomspur |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-29 10:36:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1224999 | ||
|
Description
Toshio Ernie Kuratomi
2013-10-27 15:00:36 UTC
Updates for python-backports-ssl_match_hostname: * https://admin.fedoraproject.org/updates/python-backports-ssl_match_hostname-3.4.0.2-1.fc20 * https://admin.fedoraproject.org/updates/python-backports-ssl_match_hostname-3.4.0.2-1.fc19 * https://admin.fedoraproject.org/updates/python-backports-ssl_match_hostname-3.4.0.2-1.fc18 * https://admin.fedoraproject.org/updates/python-backports-ssl_match_hostname-3.4.0.2-1.el6 (In reply to Toshio Ernie Kuratomi from comment #0) > Something like: > If the upstream code supports python3 as well then the code would be like this: try: # Python3.2+ from ssl import CertificateError, match_hostname except ImportError: try: # backports.ssl_match_hostname from pypi installed from backports.ssl_match_hostname import CertificateError, match_hostname except ImportError: CertificateError = None match_hostname = None if not CertificateError: # Use the upstream's copied code to define CertificateError if not match_hostname: # Use the upstream's copied code to define match_hostname Updates for python-setuptools: * https://admin.fedoraproject.org/updates/python-setuptools-0.9.8-2.fc20 * (rawhide) http://koji.fedoraproject.org/koji/buildinfo?buildID=474369 Updates for Python3: * https://admin.fedoraproject.org/updates/python3-3.3.0-5.fc18 * https://admin.fedoraproject.org/updates/python3-3.3.2-8.fc19 * https://admin.fedoraproject.org/updates/python3-3.3.2-8.fc20 @security team, any word on what we're going to do with this issue for packages which bundle ssl.match_hostname() ? (In reply to Toshio Ernie Kuratomi from comment #5) > @security team, any word on what we're going to do with this issue for > packages which bundle ssl.match_hostname() ? Just for information and if need , here the list of packages we patched under Mageia : https://bugs.mageia.org/show_bug.cgi?id=11785#c17 python3-3.3.0-4.5.mga3.src python-virtualenv-1.10.1-1.2.mga3.src python-requests-0.13.5-2.2.mga3.src bzr-2.5.1-3.2.mga3.src python-pip-1.3.1-2.2.mga3.src python-tornado-2.3-2.2.mga3.src python-urllib3-1.7.1-1.1.mga3.src python-setuptools-0.9.8-2.2.mga3.src python-virtualenv is really painfull, we should work with upstream to work on the fact that it is bundling setuptools and pip (https://bugzilla.redhat.com/show_bug.cgi?id=749378) |