summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-06-11 20:19:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-06-11 20:19:34 (GMT)
commitab6e156ed3155e58a2f3c2defdd37d94c6cc76a2 (patch)
treea3150051e9d2ac48cb7670776ae159e17cb8301e
parent6bf8e61984f41b1c93a37489a9b54d2d5412c818 (diff)
parentb0557e729e07e63f36d91d1d631424616373a384 (diff)
downloadcpython-ab6e156ed3155e58a2f3c2defdd37d94c6cc76a2.zip
cpython-ab6e156ed3155e58a2f3c2defdd37d94c6cc76a2.tar.gz
cpython-ab6e156ed3155e58a2f3c2defdd37d94c6cc76a2.tar.bz2
merge 3.5
-rwxr-xr-xLib/smtplib.py5
-rw-r--r--Misc/NEWS3
2 files changed, 8 insertions, 0 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 4756973..dfbf5f9 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -773,6 +773,11 @@ class SMTP:
self.ehlo_resp = None
self.esmtp_features = {}
self.does_esmtp = 0
+ else:
+ # RFC 3207:
+ # 501 Syntax error (no parameters allowed)
+ # 454 TLS not available due to temporary reason
+ raise SMTPResponseException(resp, reply)
return (resp, reply)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
diff --git a/Misc/NEWS b/Misc/NEWS
index acf1a2e..9dc0295 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -41,6 +41,9 @@ Library
- Issue #20508: Improve exception message of IPv{4,6}Network.__getitem__.
Patch by Gareth Rees.
+- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by Team
+ Oststrom
+
- Issue #21386: Implement missing IPv4Address.is_global property. It was
documented since 07a5610bae9d. Initial patch by Roger Luethi.