Summary
bbs-go through 4.4.6 contains an improper certificate validation vulnerability that allows network-positioned attackers to intercept SMTP traffic because sendEmail() sets InsecureSkipVerify to true. Attackers can present any certificate to capture SMTP PLAIN auth credentials and read or modify outgoing password-reset and verification emails.
Remediation
References
- Patchhttps://github.com/mlogclub/bbs-go/commit/1a06e35fa6314ee2d3ada70685a7afa740baf6f5
- Advisoryhttps://www.vulncheck.com/advisories/bbs-go-through-4.4.6-improper-tls-certificate-validation-in-smtp-email-service
- Referencehttps://github.com/mlogclub/bbs-go/issues/310
- Referencehttps://github.com/mlogclub/bbs-go
- Referencehttps://github.com/mlogclub/bbs-go/blob/v4.4.6/internal/services/email_service.go#L86-L113