Information -------------------- Name : XSS vulnerability in Webmin Software : All versions prior to and including 1.540 are affected. Vendor Hompeage : http://www.webmin.com Vulnerability Type : Cross-Site Scripting Severity : Medium Researcher : Javier Bassi Description ------------------ Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. https://secure.wikimedia.org/wikipedia/en/wiki/Webmin Details ------------------- Webmin is affected by a XSS vulnerability in all versions prior to and including 1.540. Webmin fails to sanitize $real in useradmin/index.cgi. $real is the "Full Name" in the finger information of the user. useradmin/index.cgi is the control panel of the "Users & Groups" section in webmin. An attacker that has a normal user on the victim's machine could be able to change his Full Name with chfn command, inject XSS and execute commands as root. Developing a exploit: ------------------- With Webmin you can execute shell commands and the only security measure Webmin has is checking the Referer in the HTTP headers. So we can't use