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.