Apache ActiveMQ 5.x < 5.15.5 Multiple Vulnerabilities - Nessus
Critical Plugin ID: 112192This page contains detailed information about the Apache ActiveMQ 5.x < 5.15.5 Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 112192
Name: Apache ActiveMQ 5.x < 5.15.5 Multiple Vulnerabilities
Filename: activemq_5_15_5.nasl
Vulnerability Published: 2018-08-06
This Plugin Published: 2018-08-30
Last Modification Time: 2022-04-11
Plugin Version: 1.7
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies:
activemq_web_console_detect.nasl
Required KB Items [?]: installed_sw/ActiveMQ
Vulnerability Information
Severity: Critical
Vulnerability Published: 2018-08-06
Patch Published: 2018-08-06
CVE [?]: CVE-2012-0881, CVE-2014-0114, CVE-2015-5182, CVE-2016-3092, CVE-2016-5425, CVE-2016-6325, CVE-2016-8735, CVE-2018-7489, CVE-2018-8006
CPE [?]: cpe:/a:apache:activemq
Synopsis
A web application running on the remote host is affected by multiple vulnerabilities.
Description
The version of Apache ActiveMQ running on the remote host is 5.x prior to 5.15.5. It is, therefore, affected by multiple vulnerabilities.
Solution
Upgrade to Apache ActiveMQ version 5.15.5 or later.
Public Exploits
Target Network Port(s): 8161
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the Apache ActiveMQ 5.x < 5.15.5 Multiple Vulnerabilities vulnerability:
- Metasploit: exploit/multi/http/struts_code_exec_classloader
[Apache Struts ClassLoader Manipulation Remote Code Execution] - Exploit-DB: exploits/linux/local/40488.txt
[EDB-40488: Apache Tomcat 8/7/6 (RedHat Based Distros) - Local Privilege Escalation] - Exploit-DB: exploits/multiple/remote/41690.rb
[EDB-41690: Apache Struts < 1.3.10 / < 2.3.16.2 - ClassLoader Manipulation Remote Code Execution (Metasploit)] - GitHub: https://github.com/AIPOCAI/CVE-2012-0881
[CVE-2012-0881: PoC for exploiting CVE-2012-0881 : Apache Xerces2 Java Parser before 2.12.0 allows ...] - GitHub: https://github.com/aenlr/strutt-cve-2014-0114
[CVE-2014-0114] - GitHub: https://github.com/ian4hu/super-pom
[CVE-2014-0114] - GitHub: https://github.com/rgielen/struts1filter
[CVE-2014-0114: A request parameter filter solution for Struts 1 CVE-2014-0114 based on the work of ...] - GitHub: https://github.com/stevegy/jmap
[CVE-2014-0114] - GitHub: https://github.com/vikasvns2000/StrutsExample
[CVE-2014-0114] - GitHub: https://github.com/zema1/oracle-vuln-crawler
[CVE-2014-0114] - GitHub: https://github.com/starnightcyber/vul-info-collect
[CVE-2016-5425] - GitHub: https://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet
[CVE-2016-8735] - GitHub: https://github.com/SexyBeast233/SecBooks
[CVE-2016-8735] - GitHub: https://github.com/bibortone/Jexboss
[CVE-2016-8735] - GitHub: https://github.com/c002/Java-Application-Exploits
[CVE-2016-8735] - GitHub: https://github.com/fengjixuchui/RedTeamer
[CVE-2016-8735] - GitHub: https://github.com/ianxtianxt/CVE-2016-8735
[CVE-2016-8735] - GitHub: https://github.com/ilmari666/cybsec
[CVE-2016-8735] - GitHub: https://github.com/joaomatosf/jexboss
[CVE-2016-8735] - GitHub: https://github.com/milkdevil/jexboss
[CVE-2016-8735] - GitHub: https://github.com/safe6Sec/PentestNote
[CVE-2016-8735] - GitHub: https://github.com/woods-sega/woodswiki
[CVE-2016-8735] - GitHub: https://github.com/dotanuki-labs/android-oss-cves-research
[CVE-2018-7489] - GitHub: https://github.com/ilmari666/cybsec
[CVE-2018-7489] - GitHub: https://github.com/klarna/kco_rest_java
[CVE-2018-7489] - GitHub: https://github.com/pawankeshri/aws-sdk-java-master
[CVE-2018-7489] - GitHub: https://github.com/sdstoehr/har-reader
[CVE-2018-7489] - GitHub: https://github.com/speedycloud/java-sdk
[CVE-2018-7489] - GitHub: https://github.com/tafamace/CVE-2018-7489
[CVE-2018-7489] - GitHub: https://github.com/yahoo/cubed
[CVE-2018-7489] - GitHub: https://github.com/zema1/oracle-vuln-crawler
[CVE-2018-7489] - GitHub: https://github.com/ricedu/struts1-patch
[CVE-2014-0114: Struts1 CVE-2014-0114 classLoader manipulation vulnerability patch]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS Score Source [?]: CVE-2018-7489
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 6.2 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.2 (Medium) |
CVSS Base Score: | 9.8 (Critical) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 9.1 (Critical) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 9.1 (Critical) |
Go back to menu.
Plugin Source
This is the activemq_5_15_5.nasl nessus plugin source code. This script is Copyright (C) 2018-2022 and is owned by Tenable, Inc. or an Affiliate thereof.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(112192);
script_version("1.7");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id(
"CVE-2012-0881",
"CVE-2014-0114",
"CVE-2015-5182",
"CVE-2016-3092",
"CVE-2016-5425",
"CVE-2016-6325",
"CVE-2016-8735",
"CVE-2018-7489",
"CVE-2018-8006"
);
script_bugtraq_id(
67121,
68753,
91453,
93472,
93478,
94463,
103203,
105156
);
script_name(english:"Apache ActiveMQ 5.x < 5.15.5 Multiple Vulnerabilities");
script_set_attribute(attribute:"synopsis", value:
"A web application running on the remote host is affected by multiple
vulnerabilities.");
script_set_attribute(attribute:"description", value:
"The version of Apache ActiveMQ running on the remote host is 5.x prior
to 5.15.5. It is, therefore, affected by multiple vulnerabilities.");
script_set_attribute(attribute:"see_also", value:"http://activemq.apache.org/activemq-5155-release.html");
script_set_attribute(attribute:"solution", value:
"Upgrade to Apache ActiveMQ version 5.15.5 or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-7489");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'Apache Struts ClassLoader Manipulation Remote Code Execution');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2018/08/06");
script_set_attribute(attribute:"patch_publication_date", value:"2018/08/06");
script_set_attribute(attribute:"plugin_publication_date", value:"2018/08/30");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:apache:activemq");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2018-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("activemq_web_console_detect.nasl");
script_require_keys("installed_sw/ActiveMQ");
script_require_ports("Services/www", 8161);
exit(0);
}
include("http.inc");
include("vcf.inc");
app = 'ActiveMQ';
get_install_count(app_name:app, exit_if_zero:TRUE);
port = get_http_port(default:8161);
app_info = vcf::get_app_info(app:app, port:port, webapp:TRUE);
constraints = [
{ "min_version" : "5.0.0", "max_version" : "5.15.4", "fixed_version" : "5.15.5" }
];
vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE, flags:{xss:TRUE, xsrf:TRUE});
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/activemq_5_15_5.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\activemq_5_15_5.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/activemq_5_15_5.nasl
Go back to menu.
How to Run
Here is how to run the Apache ActiveMQ 5.x < 5.15.5 Multiple Vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select CGI abuses plugin family.
- On the right side table select Apache ActiveMQ 5.x < 5.15.5 Multiple Vulnerabilities plugin ID 112192.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl activemq_5_15_5.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a activemq_5_15_5.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - activemq_5_15_5.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state activemq_5_15_5.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: See also:
- https://www.tenable.com/plugins/nessus/112192
- http://activemq.apache.org/activemq-5155-release.html
- https://vulners.com/nessus/ACTIVEMQ_5_15_5.NASL
- 73922 - CentOS 5 : struts (CESA-2014:0474)
- 82203 - Debian DLA-57-1 : libstruts1.2-java security update
- 77306 - Debian DSA-2940-1 : libstruts1.2-java - security update
- 139992 - EulerOS 2.0 SP8 : xerces-j2 (EulerOS-SA-2020-1889)
- 140835 - EulerOS 2.0 SP3 : xerces-j2 (EulerOS-SA-2020-2068)
- 142063 - EulerOS 2.0 SP5 : xerces-j2 (EulerOS-SA-2020-2277)
- 142350 - EulerOS 2.0 SP2 : xerces-j2 (EulerOS-SA-2020-2405)
- 77351 - Fedora 20 : struts-1.3.10-10.fc20 (2014-9380)
- 99593 - MySQL Enterprise Monitor 3.1.x < 3.1.7.8023 / 3.2.x < 3.2.7.1204 / 3.3.x < 3.3.3.1199 Multiple Vulnerabilities (April 2017 CPU)
- 78749 - Oracle Enterprise Data Quality Multiple Vulnerabilities (October 2014 CPU)
- 99594 - Oracle Enterprise Manager Grid Control Multiple Vulnerabilities (April 2017 CPU) (SWEET32)
- 101837 - Oracle Enterprise Manager Grid Control Multiple Vulnerabilities (July 2017 CPU) (httpoxy)
- 78542 - Oracle Identity Manager (October 2014 CPU
- 73935 - Oracle Linux 5 : struts (ELSA-2014-0474)
- 78700 - Oracle Adaptive Access Manager Server Arbitrary Code Execution (October 2014 CPU)
- 118230 - Oracle Database Server Multiple Vulnerabilities (October 2018 CPU)
- 99930 - Oracle Secure Global Desktop Multiple Vulnerabilities (April 2017 CPU) (SWEET32)
- 111228 - Oracle WebCenter Portal Multiple Vulnerabilities (July 2018 CPU)
- 109209 - Oracle WebCenter Sites Remote Vulnerability (April 2018 CPU)
- 111209 - Oracle WebLogic Server Multiple Vulnerabilities (July 2018 CPU)
- 78541 - Oracle WebLogic Server Multiple Vulnerabilities (October 2014 CPU)
- 73901 - RHEL 5 : struts (RHSA-2014:0474)
- 79018 - RHEL 6 : struts (RHSA-2014:0500)
- 73919 - Apache Struts ClassLoader Manipulation
- 95438 - Apache Tomcat 6.0.x < 6.0.48 / 7.0.x < 7.0.73 / 8.0.x < 8.0.39 / 8.5.x < 8.5.8 / 9.0.x < 9.0.0.M13 Multiple Vulnerabilities
- 141092 - Ubuntu 16.04 LTS : Tomcat vulnerabilities (USN-4557-1)
- 77728 - VMware Security Updates for vCenter Server (VMSA-2014-0008)
- 77630 - VMSA-2014-0008 : VMware vSphere product updates to third-party libraries
- 76967 - IBM WebSphere Application Server 7.0 < Fix Pack 33 Multiple Vulnerabilities
- 79691 - IBM WebSphere Portal 7.0.0.x < 7.0.0.2 CF29 Multiple Vulnerabilities
- 79216 - IBM WebSphere Portal 8.5.0 < 8.5.0 CF02 Multiple Vulnerabilities
- 77535 - IBM WebSphere Portal Apache Struts ClassLoader Manipulation RCE
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file activemq_5_15_5.nasl version 1.7. For more plugins, visit the Nessus Plugin Library.
Go back to menu.