There was an error while loading. Please reload this page.
1 parent 3d4d01f commit 46b32f3Copy full SHA for 46b32f3
2 files changed
Lib/smtplib.py
@@ -695,6 +695,11 @@ def starttls(self, keyfile=None, certfile=None, context=None):
695
self.ehlo_resp = None
696
self.esmtp_features = {}
697
self.does_esmtp = 0
698
+ else:
699
+ # RFC 3207:
700
+ # 501 Syntax error (no parameters allowed)
701
+ # 454 TLS not available due to temporary reason
702
+ raise SMTPResponseException(resp, reply)
703
return (resp, reply)
704
705
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
Misc/NEWS
@@ -19,6 +19,9 @@ Core and Builtins
19
Library
20
-------
21
22
+- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by Team
23
+ Oststrom
24
+
25
- Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
26
27
- Issue #26012: Don't traverse into symlinks for ** pattern in
0 commit comments