CVE-2017-15042 Cleartext transmission of credentials in net/smtp
MediumCVSS 5.9
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
Description
An unintended cleartext issue exists in Go before 1.8.4 and 1.9.x before 1.9.1. RFC 4954 requires that, during SMTP, the PLAIN auth scheme must only be used on network connections secured with TLS. The original implementation of smtp.PlainAuth in Go 1.0 enforced this requirement, and it was documented to do so. In 2013, upstream issue #5184, this was changed so that the server may decide whether PLAIN is acceptable. The result is that if you set up a man-in-the-middle SMTP server that doesn't advertise STARTTLS and does advertise that PLAIN auth is OK, the smtp.PlainAuth implementation sends the username and password.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| stdlib(Go) | >= 1.1.0-0, < 1.8.4 | 1.8.4 |
| stdlib(Go) | >= 1.9.0-0, < 1.9.1 | 1.9.1 |
| golang go | <= 1.8.3 | No fix listed |
| golang go | = 1.9 | No fix listed |
References
- go.dev patch
- go.googlesource.com patch
- go.dev issue-tracking
- groups.google.com
- 101197 third-party-advisory vdb-entry
- RHSA-2017:3463 vendor-advisory
- RHSA-2018:0878 vendor-advisory
- github.com issue-tracking patch vendor-advisory
- golang.org issue-tracking patch vendor-advisory
- golang.org vendor-advisory
- groups.google.com mailing-list vendor-advisory
- GLSA-201710-23 third-party-advisory vendor-advisory