Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check) - Nessus

Critical   Plugin ID: 138553

This page contains detailed information about the Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 138553
Name: Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check)
Filename: crowd_cve-2019-11580.nasl
Vulnerability Published: 2019-05-22
This Plugin Published: 2020-07-16
Last Modification Time: 2022-04-11
Plugin Version: 1.18
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: crowd_detect.nasl
Required KB Items [?]: www/crowd

Vulnerability Information


Severity: Critical
Vulnerability Published: 2019-05-22
Patch Published: 2019-05-22
CVE [?]: CVE-2019-11580
CPE [?]: cpe:/a:atlassian:crowd
Exploited by Malware: True

Synopsis

The version of Atlassian Crowd installed on the remote host is affected by a remote code execution (RCE) vulnerability.

Description

The version of Atlassian Crowd installed on the remote host is affected by a remote code execution (RCE) vulnerability. An unauthenticated, remote attacker can exploit this, by using pdkinstall development plugin, to install arbitrary plugins, which permits remote code execution.

Solution

Upgrade to version 3.0.5, 3.1.6, 3.2.8, 3.3.5, 3.4.4 or later.

Public Exploits


Target Network Port(s): 8095
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, GitHub, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check) vulnerability:

  1. Metasploit: exploit/multi/http/atlassian_crowd_pdkinstall_plugin_upload_rce
    [Atlassian Crowd pdkinstall Unauthenticated Plugin Upload RCE]
  2. GitHub: https://github.com/Ares-X/VulWiki
    [CVE-2019-11580]
  3. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2019-11580]
  4. GitHub: https://github.com/SouthWind0/southwind0.github.io
    [CVE-2019-11580]
  5. GitHub: https://github.com/ThePirateWhoSmellsOfSunflowers/TheHackerLinks
    [CVE-2019-11580]
  6. GitHub: https://github.com/lp008/Hack-readme
    [CVE-2019-11580]
  7. GitHub: https://github.com/trikhanhhk/CVE_2019_11580
    [CVE-2019-11580: Exploit CVE 2019 11580]
  8. GitHub: https://github.com/trikhanhhk/EXPLOIT_CVE_2019_11580
    [CVE-2019-11580]
  9. GitHub: https://github.com/jas502n/CVE-2019-11580
    [CVE-2019-11580: CVE-2019-11580 Atlassian Crowd and Crowd Data Center RCE]
  10. GitHub: https://github.com/shelld3v/CVE-2019-11580
    [CVE-2019-11580: A CVE-2019-11580 shell]

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-2019-11580
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.4 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.4 (Critical)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


This is the crowd_cve-2019-11580.nasl nessus plugin source code. This script is Copyright (C) 2020-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

#TRUSTED 8f52b3443adbdc031337caca6a3f34431f1b341d3c8301cf3e855f7f3363fbf0bf9b7f0d58e3328a37d6dece24c4c9dcc73ccf78c27c66d987dbdaf6186643afcfe8dbbc2a0517f9fa9531f0240b05a4751809b449e7dc3066482ae086e25a8f94806188dd42bd8ab78dda28cd63fada8492a35233a18a0929ee865082646260d7509392ad29c59b136b7ce199b50c9b7bcfd6458681e82364f52769b833c14183c063bfcf2ba969406b456addd06a58c41686d4c22ae421eea1298aa494c5dfa1ed98dd838ec86de8cc085782289be07f9c3eca1aa874f02206fe704079a7488502da717dcb6223d5b571ad82a45452823e72986ed6a0581d646c30d1d53de860ee91ddd19597a98583110f32b85345b2c36163508b0ccee993f8919c893d2d9e79690bed760d1572886b9e870ec31650c8cbfc554058b352c177810529591eb45f6d9a9d0c1ae0d00d20abe798b9809d0ca28b76a78c63a1bb316535270ee0d30a8efb58ee8a33560d87ee2120ade6e00838d2bead85bb289646fa07933c19f1ef493bb3eb0002b72f80b1a0b67aef6bd2be04668761d49be8c98d3f8fbfff92b0b56f028087c9e4d08fedad1efa53ca16080353f0be83d9346be201249ffeb2db1d808bc47055cce92b6574b049eeda084c90cf42d51403e4c9491d22eb322b7339937ad22dce432806931ddb73d6073e66e35ed7578ed43065921e1ca2bb
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(138553);
  script_version("1.18");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2019-11580");
  script_bugtraq_id(108637);
  script_xref(name:"IAVA", value:"2020-A-0499");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/05/03");

  script_name(english:"Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check)");

  script_set_attribute(attribute:"synopsis", value:
"The version of Atlassian Crowd installed on the remote host is affected by a remote code execution (RCE) vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Atlassian Crowd installed on the remote host is affected by a remote code execution (RCE) vulnerability.
An unauthenticated, remote attacker can exploit this, by using pdkinstall development plugin, to install arbitrary
plugins, which permits remote code execution.");
  # https://confluence.atlassian.com/crowd/crowd-security-advisory-2019-05-22-970260700.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f66fbb1c");
  script_set_attribute(attribute:"see_also", value:"https://www.corben.io/atlassian-crowd-rce/");
  script_set_attribute(attribute:"solution", value:
"Upgrade to version 3.0.5, 3.1.6, 3.2.8, 3.3.5, 3.4.4 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:H/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:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-11580");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Atlassian Crowd pdkinstall Unauthenticated Plugin Upload RCE');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/05/22");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/05/22");
  script_set_attribute(attribute:"plugin_publication_date", value:"2020/07/16");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:atlassian:crowd");
  script_set_attribute(attribute:"stig_severity", value:"I");
  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) 2020-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("crowd_detect.nasl");
  script_require_keys("www/crowd");
  script_require_ports("Services/www", 8095);

  exit(0);
}

include('http.inc');
include('install_func.inc');

appname = 'Atlassian Crowd';
app_id  = 'crowd';

# Exit if app is not detected on the target
get_install_count(app_name:app_id, exit_if_zero:TRUE);

port = get_http_port(default:8095);
install = get_single_install(app_name:app_id, webapp:TRUE, port:port);

base_path = install['path'];
url = '/admin/uploadplugin.action';

res = http_send_recv3(
  method : 'POST',
  port   : port,
  item   : base_path + url,
  exit_on_fail : TRUE
);

if ('400' >< res[0] && ('Unable to install plugin' >< res[2] || 'All plugins could not be validated' >< res[2]))
{
  security_report_v4(
    port        : port,
    severity    : SECURITY_HOLE,
    generic     : TRUE,
    request     : make_list(http_last_sent_request()),
    output      : res[0] + res[2]
  );
}
else
{
  audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, build_url(qs:install['path'], port:port));
}


The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/crowd_cve-2019-11580.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\crowd_cve-2019-11580.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/crowd_cve-2019-11580.nasl

Go back to menu.

How to Run


Here is how to run the Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check) plugin ID 138553.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. 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 crowd_cve-2019-11580.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a crowd_cve-2019-11580.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - crowd_cve-2019-11580.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 crowd_cve-2019-11580.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: IAVA | Information Assurance Vulnerability Alert:
  • 2020-A-0499
See also: Similar and related Nessus plugins:
  • 125477 - Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE Vulnerability
  • 110772 - Atlassian Crowd < 2.11.2 OAuth Plugin IconUriServlet Internal Network Resource Disclosure CSRF

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file crowd_cve-2019-11580.nasl version 1.18. For more plugins, visit the Nessus Plugin Library.

Go back to menu.