Webmin through 2.670 contains an improper certificate validation vulnerability in servers/link.cgi that accepts self-signed certificates for linked servers even when certificate checking is enabled. Man-in-the-middle attackers presenting a self-signed certificate with the correct hostname can capture stored HTTP Basic credentials for the remote Webmin and inject HTML into the local Webmin origin.
https://github.com/webmin/webmin/issues/2941
https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L9990
https://github.com/webmin/webmin/blob/2.670/servers/link.cgi#L82
https://github.com/webmin/webmin