Webmin through 2.670 contains an improper certificate validation vulnerability in generic_ldap_connect in ldap-client-lib.pl that accepts any LDAPS or StartTLS server certificate. Man-in-the-middle attackers can impersonate the LDAP server to capture the bind DN password, often the root DN, and return forged directory data.
https://github.com/webmin/webmin/issues/2941
https://github.com/webmin/webmin/blob/2.670/ldap-client/ldap-client-lib.pl#L337
https://github.com/webmin/webmin/blob/2.670/ldap-client/ldap-client-lib.pl#L240
https://github.com/webmin/webmin