ID CVE-2012-2983
Summary file/edit_html.cgi in Webmin 1.590 and earlier does not perform an authorization check before showing a file's unedited contents, which allows remote attackers to read arbitrary files via the file field.
References
Vulnerable Configurations
  • Gentoo webmin 1.590
    cpe:2.3:a:gentoo:webmin:1.590
  • Gentoo webmin 1.580
    cpe:2.3:a:gentoo:webmin:1.580
  • Gentoo webmin 1.570
    cpe:2.3:a:gentoo:webmin:1.570
  • Gentoo webmin 1.550
    cpe:2.3:a:gentoo:webmin:1.550
  • Gentoo webmin 1.560
    cpe:2.3:a:gentoo:webmin:1.560
  • Gentoo webmin 1.530
    cpe:2.3:a:gentoo:webmin:1.530
  • Gentoo webmin 1.520
    cpe:2.3:a:gentoo:webmin:1.520
  • Gentoo webmin 1.510
    cpe:2.3:a:gentoo:webmin:1.510
  • Gentoo webmin 1.500
    cpe:2.3:a:gentoo:webmin:1.500
  • Gentoo webmin 1.480
    cpe:2.3:a:gentoo:webmin:1.480
  • Gentoo webmin 1.470
    cpe:2.3:a:gentoo:webmin:1.470
  • Gentoo webmin 1.450
    cpe:2.3:a:gentoo:webmin:1.450
  • Gentoo webmin 1.440
    cpe:2.3:a:gentoo:webmin:1.440
  • Gentoo webmin 1.430
    cpe:2.3:a:gentoo:webmin:1.430
  • Gentoo webmin 1.420
    cpe:2.3:a:gentoo:webmin:1.420
  • Gentoo webmin 1.410
    cpe:2.3:a:gentoo:webmin:1.410
  • Gentoo webmin 1.400
    cpe:2.3:a:gentoo:webmin:1.400
  • Gentoo webmin 1.390
    cpe:2.3:a:gentoo:webmin:1.390
  • Gentoo webmin 1.380
    cpe:2.3:a:gentoo:webmin:1.380
  • Gentoo webmin 1.370
    cpe:2.3:a:gentoo:webmin:1.370
  • Gentoo webmin 1.340
    cpe:2.3:a:gentoo:webmin:1.340
  • Gentoo webmin 1.330
    cpe:2.3:a:gentoo:webmin:1.330
  • Gentoo webmin 1.320
    cpe:2.3:a:gentoo:webmin:1.320
  • Gentoo webmin 1.310
    cpe:2.3:a:gentoo:webmin:1.310
  • Gentoo webmin 1.300
    cpe:2.3:a:gentoo:webmin:1.300
  • Gentoo webmin 1.290
    cpe:2.3:a:gentoo:webmin:1.290
  • Gentoo webmin 1.280
    cpe:2.3:a:gentoo:webmin:1.280
  • Gentoo webmin 1.270
    cpe:2.3:a:gentoo:webmin:1.270
  • Gentoo webmin 1.260
    cpe:2.3:a:gentoo:webmin:1.260
  • Gentoo webmin 1.240
    cpe:2.3:a:gentoo:webmin:1.240
  • Gentoo webmin 1.230
    cpe:2.3:a:gentoo:webmin:1.230
  • Gentoo webmin 1.220
    cpe:2.3:a:gentoo:webmin:1.220
  • Gentoo webmin 1.210
    cpe:2.3:a:gentoo:webmin:1.210
  • Gentoo webmin 1.200
    cpe:2.3:a:gentoo:webmin:1.200
  • Gentoo webmin 1.180
    cpe:2.3:a:gentoo:webmin:1.180
  • Gentoo webmin 1.170
    cpe:2.3:a:gentoo:webmin:1.170
  • Gentoo webmin 1.160.ebuild
    cpe:2.3:a:gentoo:webmin:1.160
  • Gentoo webmin 1.150.ebuild
    cpe:2.3:a:gentoo:webmin:1.150
  • Gentoo webmin 1.140.ebuild
    cpe:2.3:a:gentoo:webmin:1.140
CVSS
Base: 5.0 (as of 12-09-2012 - 10:28)
Impact:
Exploitability:
CWE CWE-287
CAPEC
  • Authentication Abuse
    An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker. This attack may exploit assumptions made by the target's authentication procedures, such as assumptions regarding trust relationships or assumptions regarding the generation of secret values. This attack differs from Authentication Bypass attacks in that Authentication Abuse allows the attacker to be certified as a valid user through illegitimate means, while Authentication Bypass allows the user to access protected material without ever being certified as an authenticated user. This attack does not rely on prior sessions established by successfully authenticating users, as relied upon for the "Exploitation of Session Variables, Resource IDs and other Trusted Credentials" attack patterns.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Utilizing REST's Trust in the System Resource to Register Man in the Middle
    This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to place man in the middle once SSL is terminated. Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required. Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The attacker can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the attacker gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
  • Man in the Middle Attack
    This type of attack targets the communication between two components (typically client and server). The attacker places himself in the communication channel between the two components. Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first goes to the attacker, who has the opportunity to observe or alter it, and it is then passed on to the other component as if it was never intercepted. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for Man-in-the-Middle attacks yields an implicit lack of trust in communication or identify between two components.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL NONE NONE
metasploit via4
description This module exploits a directory traversal in Webmin 1.580. The vulnerability exists in the edit_html.cgi component and allows an authenticated user with access to the File Manager Module to access arbitrary files with root privileges. The module has been tested successfully with Webmin 1.580 over Ubuntu 10.04.
id MSF:AUXILIARY/ADMIN/WEBMIN/EDIT_HTML_FILEACCESS
last seen 2018-09-24
modified 2017-08-25
published 2012-09-15
reliability Normal
reporter Rapid7
source https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/admin/webmin/edit_html_fileaccess.rb
title Webmin edit_html.cgi file Parameter Traversal Arbitrary File Access
nessus via4
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2014-062.NASL
    description Multiple vulnerabilities was discovered and corrected in webmin : Multiple XSS, CSRF, and arbitrary code execution vulnerabilities that impact Webmin versions prior to 1.620 (CVE-2012-2981, CVE-2012-2982, CVE-2012-2983, CVE-2012-4893, SA51201). The 1.680 version fixed security issues that could be exploited by un-trusted Webmin users in the PHP Configuration and Webalizer modules. The Authen::Libwrap perl module used by Webmin is also being provided. The updated packages have been upgraded to the 1.680 version which is not vulnerable to these issues.
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 73066
    published 2014-03-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=73066
    title Mandriva Linux Security Advisory : webmin (MDVSA-2014:062)
  • NASL family CGI abuses
    NASL id WEBMIN_1_600.NASL
    description According to its self-reported version, the Webmin install hosted on the remote host is 1.590 or lower. It is, therefore, affected by multiple vulnerabilities.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 117602
    published 2018-09-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=117602
    title Webmin <= 1.590 Multiple Vulnerabilities
refmap via4
cert-vn VU#788478
confirm
misc
sectrack 1027507
Last major update 29-05-2013 - 23:16
Published 11-09-2012 - 14:55
Back to Top