Apache Jetspeed User Manager Service SQLi - Nessus
High Plugin ID: 90248This page contains detailed information about the Apache Jetspeed User Manager Service SQLi Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 90248
Name: Apache Jetspeed User Manager Service SQLi
Filename: apache_jetspeed_usermanager_sqli.nasl
Vulnerability Published: 2016-03-03
This Plugin Published: 2016-03-28
Last Modification Time: 2022-04-11
Plugin Version: 1.8
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies:
apache_jetspeed_detect.nbin
Required KB Items [?]: installed_sw/Apache Jetspeed
Vulnerability Information
Severity: High
Vulnerability Published: 2016-03-03
Patch Published: N/A
CVE [?]: CVE-2016-0710
CPE [?]: cpe:/a:apache:jetspeed
Synopsis
The remote host is affected by a SQL injection vulnerability.
Description
The Apache Jetspeed application running on the remote host is affected by a SQL injection vulnerability in the User Manager service due to improper sanitization of user-supplied input to the 'user' and 'role' parameters. An unauthenticated, remote attacker can exploit this to inject SQL queries, resulting in the manipulation of the back-end database or the disclosure of information.
Note that Apache Jetspeed is reported to be affected by other vulnerabilities as well; however, Nessus has not tested for these.
Solution
Upgrade to Apache Jetspeed version 2.3.1 when it becomes available.
Public Exploits
Target Network Port(s): 8080
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the Apache Jetspeed User Manager Service SQLi vulnerability:
- Metasploit: exploit/multi/http/apache_jetspeed_file_upload
[Apache Jetspeed Arbitrary File Upload] - Exploit-DB: exploits/java/remote/39643.rb
[EDB-39643: Apache Jetspeed - Arbitrary File Upload (Metasploit)]
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-2016-0710
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:ND
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: | 8.8 (High) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 2.8 |
CVSS Temporal Score: | 8.2 (High) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 8.2 (High) |
Go back to menu.
Plugin Source
This is the apache_jetspeed_usermanager_sqli.nasl nessus plugin source code. This script is Copyright (C) 2016-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(90248);
script_version("1.8");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2016-0710");
script_name(english:"Apache Jetspeed User Manager Service SQLi");
script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by a SQL injection vulnerability.");
script_set_attribute(attribute:"description", value:
"The Apache Jetspeed application running on the remote host is affected
by a SQL injection vulnerability in the User Manager service due to
improper sanitization of user-supplied input to the 'user' and 'role'
parameters. An unauthenticated, remote attacker can exploit this to
inject SQL queries, resulting in the manipulation of the back-end
database or the disclosure of information.
Note that Apache Jetspeed is reported to be affected by other
vulnerabilities as well; however, Nessus has not tested for these.");
script_set_attribute(attribute:"see_also", value:"https://portals.apache.org/jetspeed-2/security-reports.html");
script_set_attribute(attribute:"solution", value:
"Upgrade to Apache Jetspeed version 2.3.1 when it becomes available.");
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:ND");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/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-2016-0710");
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 Jetspeed Arbitrary File Upload');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2016/03/03");
script_set_attribute(attribute:"plugin_publication_date", value:"2016/03/28");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:apache:jetspeed");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2016-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("apache_jetspeed_detect.nbin");
script_require_keys("installed_sw/Apache Jetspeed");
script_require_ports("Services/www", 8080);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");
app = "Apache Jetspeed";
get_install_count(app_name:app, exit_if_zero:TRUE);
port = get_http_port(default:8080);
install = get_single_install(
app_name : app,
port : port
);
dir = install['path'];
install_url = build_url(port:port, qs:dir);
stimes = make_list(3, 9, 15);
num_queries = max_index(stimes);
vuln = FALSE;
for (i = 0; i < max_index(stimes); i++)
{
http_set_read_timeout(stimes[i] + 10);
then = unixtime();
url = "/services/usermanager/users/?";
sqli ="roles=foo%27%20AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP(" + stimes[i] + ")))foo)%20AND%20%27bar%27%3D%27bar";
res = http_send_recv3(
method : "GET",
port : port,
item : dir + url + sqli,
exit_on_fail : TRUE
);
now = unixtime();
ttime = now - then;
time_per_query += 'Query #' + (i+1) + ' : ' + query + ' Sleep Time : ' +
stimes[i] + ' secs Response Time : ' + ttime + ' secs\n';
overalltime += ttime;
if ( (ttime >= stimes[i]) && (ttime <= (stimes[i] + 5)) )
{
vuln = TRUE;
output =
'Blind SQL Injection Results' +
'\n Query : (SELECT * FROM (SELECT(sleep(' +stimes[i]+ ')))foo)' +
'\n Response time : ' + ttime + ' secs' +
'\n Number of queries executed : ' + num_queries +
'\n Total test time : ' + overalltime + ' secs' +
'\n Time per query : ' +
'\n'+ " " + time_per_query;
continue;
}
else
vuln = FALSE;
}
if (vuln)
{
security_report_v4(
port : port,
severity : SECURITY_HOLE,
generic : TRUE,
sqli : TRUE, # Sets SQLInjection KB key
request : make_list(build_url(port:port, qs:dir + url + sqli)),
output : output
);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app, install_url);
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/apache_jetspeed_usermanager_sqli.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\apache_jetspeed_usermanager_sqli.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/apache_jetspeed_usermanager_sqli.nasl
Go back to menu.
How to Run
Here is how to run the Apache Jetspeed User Manager Service SQLi 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 Jetspeed User Manager Service SQLi plugin ID 90248.
- 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 apache_jetspeed_usermanager_sqli.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a apache_jetspeed_usermanager_sqli.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - apache_jetspeed_usermanager_sqli.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 apache_jetspeed_usermanager_sqli.nasl -t <IP/HOST>
Go back to menu.
References
See also:
- https://www.tenable.com/plugins/nessus/90248
- https://portals.apache.org/jetspeed-2/security-reports.html
- https://vulners.com/nessus/APACHE_JETSPEED_USERMANAGER_SQLI.NASL
- 153885 - Apache HTTP Server 2.4.49 Path Traversal (CVE-2021-41773)
- 155600 - Apache HTTP Server 2.4.49 & 2.4.50 Path Traversal (CVE-2021-42013)
- 160297 - Apache APISIX Dashboard < 2.10.1 Authentication Bypass (Direct Check)
- 46740 - Apache Axis2 Default Credentials
- 46741 - Apache Axis2 'xsd' Parameter Directory Traversal
- 156753 - Apache Druid Log4Shell Direct Check (CVE-2021-44228)
- 156558 - Apache JSPWiki Log4Shell Direct Check (CVE-2021-44228)
- 156473 - Apache OFBiz Log4Shell Direct Check (CVE-2021-44228)
- 159323 - Apache Shiro Default Cipher Key (CVE-2016-4437)
- 131734 - Apache Solr Config API Velocity Template RCE (Direct Check)
- 126447 - Apache Solr 5.x <= 5.5.5 or 6.x <= 6.6.5 Deserialization Vulnerability (CVE-2019-0192)
- 132315 - Apache Solr 8.1.1, 8.2.0 Remote JMX RMI Deserialization Vulnerability
- 156471 - Apache Solr Log4Shell Direct Check (CVE-2021-44228)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file apache_jetspeed_usermanager_sqli.nasl version 1.8. For more plugins, visit the Nessus Plugin Library.
Go back to menu.