VYPR
Medium severity5.9NVD Advisory· Published Jul 17, 2017· Updated May 13, 2026

CVE-2017-1000007

CVE-2017-1000007

Description

txAWS (all current versions) fail to perform complete certificate verification resulting in vulnerability to MitM attacks and information disclosure.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
txawsPyPI
< 0.4.00.4.0

Patches

1
46b66c3dc315

Merge pull request #26 from twisted/24.certificate.verification

https://github.com/twisted/txawsTristan SeligmannJan 9, 2017via ghsa
2 files changed · +19 1
  • txaws/service.py+7 1 modified
    @@ -2,6 +2,8 @@
     # Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
     # Licenced under the txaws licence available at /LICENSE in the txaws source.
     
    +import warnings
    +
     from txaws.credentials import AWSCredentials
     from txaws import regions
     from txaws.util import parse
    @@ -42,12 +44,16 @@ class AWSServiceEndpoint(object):
             will be done when connecting to the endpoint.
         """
     
    -    def __init__(self, uri="", method="GET", ssl_hostname_verification=False):
    +    def __init__(self, uri="", method="GET", ssl_hostname_verification=True):
             self.host = ""
             self.port = None
             self.path = "/"
             self.method = method
             self.ssl_hostname_verification = ssl_hostname_verification
    +        if not self.ssl_hostname_verification:
    +            warnings.warn(
    +                "Operating with certificate verification disabled!", stacklevel=2,
    +            )
             self._parse_uri(uri)
             if not self.scheme:
                 self.scheme = "http"
    
  • txaws/tests/test_service.py+12 0 modified
    @@ -21,6 +21,18 @@ class AWSServiceEndpointTestCase(TXAWSTestCase):
         def setUp(self):
             self.endpoint = AWSServiceEndpoint(uri="http://my.service/da_endpoint")
     
    +    def test_warning_when_verification_disabled(self):
    +        """
    +        L{AWSServiceEndpoint} emits a warning when told not to perform
    +        certificate verification.
    +        """
    +        self.assertWarns(
    +            UserWarning,
    +            "Operating with certificate verification disabled!",
    +            __file__,
    +            lambda: AWSServiceEndpoint(ssl_hostname_verification=False),
    +        )
    +
         def test_simple_creation(self):
             endpoint = AWSServiceEndpoint()
             self.assertEquals(endpoint.scheme, "http")
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.