Webmin through 2.670 contains a stored cross-site scripting vulnerability in ldap-client/popup_browser.cgi that allows attackers to inject markup by storing it in LDAP attribute values printed without HTML encoding. Attackers with write access to an LDAP directory entry, needing no Webmin account, can execute scripts in the Webmin origin when an administrator browses that entry.
https://github.com/webmin/webmin/issues/2941
https://github.com/webmin/webmin/commit/a2a3b1a87b15813851eece07965a6021a3e1789b
https://github.com/webmin/webmin/blob/2.670/ldap-client/popup_browser.cgi#L98-L99
https://github.com/webmin/webmin/blob/2.670/ldap-client/popup_browser.cgi#L60-L61
https://github.com/webmin/webmin