Arbitrary File Read in Webmin edit_html.cgi
CVE-2012-2983 is an arbitrary file read vulnerability in file/edit_html.cgi in Webmin 1.590 and earlier. The CGI script does not perform a required authorization check before displaying a file's unedited contents. An attacker can supply a crafted file parameter to cause the application to return the contents of arbitrary files. Available context also characterizes the issue as a directory traversal flaw that allows viewing any file as user root, indicating the file access is not properly restricted to an intended directory or authorized resource set.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a remote attacker to read arbitrary files accessible to the Webmin process, including files readable as root in affected deployments. This can expose sensitive system and application data such as configuration files, credentials, keys, and other privileged information, which may facilitate further compromise.
If you can’t patch tonight, do this now.
Restrict access to the Webmin interface to trusted hosts and administrative networks only. Limit exposure of Webmin over the Internet, enforce strong authentication, and reduce the chance of attacker access from untrusted locations. Network-level access controls can materially reduce exploitability while patching is pending.
Patch, then assume compromise.
Upgrade Webmin to a fixed release later than 1.590 that includes the vendor patch for CVE-2012-2983. The referenced fix is Webmin commit 4cd7bad70e23e4e19be8ccf7b9f245445b2b3b80. If immediate upgrade is not possible, apply the vendor patch from the Webmin development branch addressing this CVE.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.