10 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:L/Au:N/C:C/I:C/A:C
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.8 High
AI Score
Confidence
High
0.005 Low
EPSS
Percentile
77.6%
Monitorix HTTP Server is prone to a remote code execution (RCE)
vulnerability.
# SPDX-FileCopyrightText: 2013 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.103855");
script_version("2024-01-25T05:06:22+0000");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_name("Monitorix HTTP Server < 3.3.1 RCE Vulnerability - Active Check");
script_tag(name:"last_modification", value:"2024-01-25 05:06:22 +0000 (Thu, 25 Jan 2024)");
script_tag(name:"creation_date", value:"2013-12-12 14:22:20 +0100 (Thu, 12 Dec 2013)");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2013 Greenbone AG");
script_dependencies("gb_get_http_banner.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl");
script_mandatory_keys("Monitorix/banner");
script_require_ports("Services/www", 8080);
# nb: This is NOT CVE-2013-7070 or CVE-2013-7071 (both are XSS flaws)...
script_xref(name:"URL", value:"http://www.monitorix.org/news.html#N331");
script_xref(name:"URL", value:"https://web.archive.org/web/20210122021643/https://www.securityfocus.com/bid/63913/");
script_xref(name:"URL", value:"https://github.com/mikaku/Monitorix/issues/30");
script_tag(name:"summary", value:"Monitorix HTTP Server is prone to a remote code execution (RCE)
vulnerability.");
script_tag(name:"vuldetect", value:"Sends a special crafted HTTP GET request and checks the
response.");
script_tag(name:"insight", value:"The handle_request() routine did not properly perform input
sanitization which led into a number of security vulnerabilities.");
script_tag(name:"impact", value:"Successful exploit will result in the execution of arbitrary
commands in the context of the affected server.");
script_tag(name:"affected", value:"Monitorix HTTP Server prior to version 3.3.1.");
script_tag(name:"solution", value:"Update to version 3.3.1 or later.");
script_tag(name:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
port = http_get_port( default:8080 );
banner = http_get_remote_headers( port:port );
if( ! banner || banner !~ "Monitorix" )
exit( 0 );
foreach dir( make_list_unique( "/", http_cgi_dirs( port:port ) ) ) {
if( dir == "/" )
dir = "";
url = dir + "/|id|";
if( ret = http_vuln_check( port:port, url:url, pattern:"uid=[0-9]+.*gid=[0-9]+.*" ) ) {
report = 'It was possible to execute the "id" command on the remote host.\n\n' +
'By requesting the URL "' + url + '" we received the following response:' +
'\n\n' + ret + '\n';
security_message( port:port, data:report );
exit( 0 );
}
}
exit( 99 );
10 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:L/Au:N/C:C/I:C/A:C
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.8 High
AI Score
Confidence
High
0.005 Low
EPSS
Percentile
77.6%