Webmin through 2.670 contains an improper certificate validation vulnerability in switch_smtp_to_ssl in mailboxes/boxes-lib.pl and status/smtp-monitor.pl, which calls Net::SSLeay::connect without certificate verification or a hostname check. Man-in-the-middle attackers can present any certificate when SMTP with SSL or STARTTLS is configured to capture SMTP AUTH credentials and message content.
https://github.com/webmin/webmin/issues/2941
https://github.com/webmin/webmin/blob/2.670/status/smtp-monitor.pl#L123
https://github.com/webmin/webmin/blob/2.670/mailboxes/boxes-lib.pl#L1269
https://github.com/webmin/webmin