{"vuid":"VU#788478","idnumber":"788478","name":"Webmin contains input validation vulnerabilities","keywords":["Webmin","cwe-20","cwe-22","cwe77","input validation","directory traversal"],"overview":"Webmin 1.580, and possibly earlier versions, has been reported to contain input validation vulnerabilities.","clean_desc":"The advisories from American Information Security Group report the following vulnerabilities. CWE-20: Improper Input Validation - CVE-2012-2981\n\"An input validation flaw allows for authenticated users to execute arbitrary Perl statements, commands, or libraries by parsing any file provided.\" CWE-77: Improper Neutralization of Special Elements used in a Command - CVE-2012-2982\n\"An input validation flaw within /file/show.cgi allows for authenticated users to execute arbitrary system commands as a privileged user. Additionally, anyone with a previously established session can be made to execute arbitrary commands on the server by embedding the attack in HTML code–such as IMG SRC tags within HTML emails.\" CWE-22: Improper Limitation of a Pathname to a Restricted Directory - CVE-2012-2983\n\"A directory traversal flaw within edit_html.cgi allows an attacker to view any file as user root.\" Full details of each vulnerability are available in the American Information Security Group advisories linked in the References section.","impact":"An authenticated attacker may be able to execute arbitrary commands.","resolution":"We are currently unaware of a practical solution to this problem. The vendor is aware of the vulnerabilities and has patches available in the development branch but an official version including the patches was not available at the time of publication. Patch for CVE-2012-2981\nhttps://github.com/webmin/webmin/commit/ed7365064c189b8f136a9f952062249167d1bd9e Patch for CVE-2012-2982\nhttps://github.com/webmin/webmin/commit/1f1411fe7404ec3ac03e803cfa7e01515e71a213 Patch for CVE-2012-2983\nhttps://github.com/webmin/webmin/commit/4cd7bad70e23e4e19be8ccf7b9f245445b2b3b80 Please consider the following workarounds.","workarounds":"Restrict access As a general good security practice, only allow connections from trusted hosts and networks. Restricting access would prevent an attacker from accessing Webmin using stolen credentials from a blocked network location.","sysaffected":"","thanks":"Thanks to the American Information Security Group for reporting this vulnerability.","author":"This document was written by Jared Allar.","public":["http://www.webmin.com/","https://github.com/webmin/webmin/commit/ed7365064c189b8f136a9f952062249167d1bd9e","https://github.com/webmin/webmin/commit/1f1411fe7404ec3ac03e803cfa7e01515e71a213","https://github.com/webmin/webmin/commit/4cd7bad70e23e4e19be8ccf7b9f245445b2b3b80","http://americaninfosec.com/research/index.html","http://www.americaninfosec.com/research/dossiers/AISG-12-000.pdf","http://www.americaninfosec.com/research/dossiers/AISG-12-001.pdf","http://www.americaninfosec.com/research/dossiers/AISG-12-002.pdf"],"cveids":["CVE-2012-2981","CVE-2012-2982","CVE-2012-2983"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2012-07-05T12:34:54Z","publicdate":"2012-09-06T00:00:00Z","datefirstpublished":"2012-09-06T20:41:09Z","dateupdated":"2014-08-15T03:03:27Z","revision":27,"vrda_d1_directreport":"1","vrda_d1_population":"2","vrda_d1_impact":"2","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"0","cam_population":"0","cam_impact":"0","cam_easeofexploitation":"0","cam_attackeraccessrequired":"0","cam_scorecurrent":"0","cam_scorecurrentwidelyknown":"0","cam_scorecurrentwidelyknownexploited":"0","ipprotocol":"","cvss_accessvector":"N","cvss_accesscomplexity":"M","cvss_authentication":null,"cvss_confidentialityimpact":"C","cvss_integrityimpact":"C","cvss_availabilityimpact":"C","cvss_exploitablity":null,"cvss_remediationlevel":"TF","cvss_reportconfidence":"C","cvss_collateraldamagepotential":"ND","cvss_targetdistribution":"M","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"8.5","cvss_basevector":"AV:N/AC:M/Au:S/C:C/I:C/A:C","cvss_temporalscore":"6.9","cvss_environmentalscore":"5.167256976","cvss_environmentalvector":"CDP:ND/TD:M/CR:ND/IR:ND/AR:ND","metric":0.0,"vulnote":null}