Lucene search

K
nessusThis script is Copyright (C) 2021-2024 and is owned by Tenable, Inc. or an Affiliate thereof.TEAMCITY_2020_2_4.NASL
HistoryJul 16, 2021 - 12:00 a.m.

TeamCity Server < 2020.2.4 Multiple Vulnerabilities

2021-07-1600:00:00
This script is Copyright (C) 2021-2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
65

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

7.4 High

AI Score

Confidence

Low

0.005 Low

EPSS

Percentile

76.8%

According to its its self-reported version number, the version of JetBrains TeamCity running on the remote host is a version prior to 2020.2.4. It is, therefore, affected by multiple vulnerabilities:

  • A command injection vulnerability exists in JetBrains TeamCity. An unauthenticated, remote attacker can exploit this to execute arbitrary commands. (CVE-2021-31915)

  • An arbitrary code execution vulnerability exists in JetBrains TeamCity. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands. (CVE-2021-31914)

  • A remote code execution vulnerability exists in JetBrains TeamCity. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands. (CVE-2021-31909)

Note that Nessus did not actually test for these issues, but instead has relied on the version found in the server’s banner.

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

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

if (description)
{
  script_id(151791);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/06/14");

  script_cve_id(
    "CVE-2020-7908",
    "CVE-2020-7909",
    "CVE-2020-7910",
    "CVE-2020-7911",
    "CVE-2020-11686",
    "CVE-2020-11687",
    "CVE-2020-11688",
    "CVE-2020-11689",
    "CVE-2020-11938",
    "CVE-2020-15826",
    "CVE-2021-3315",
    "CVE-2021-26309",
    "CVE-2021-26310",
    "CVE-2021-31904",
    "CVE-2021-31906",
    "CVE-2021-31907",
    "CVE-2021-31908",
    "CVE-2021-31909",
    "CVE-2021-31910",
    "CVE-2021-31911",
    "CVE-2021-31912",
    "CVE-2021-31913",
    "CVE-2021-31914",
    "CVE-2021-31915"
  );

  script_xref(name:"IAVA", value:"2024-A-0334");
  script_xref(name:"IAVA", value:"2021-A-0308-S");

  script_name(english:"TeamCity Server < 2020.2.4 Multiple Vulnerabilities");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its its self-reported version number, the version of JetBrains TeamCity running on the
remote host is a version prior to 2020.2.4. It is, therefore, affected by
multiple vulnerabilities:
    
  - A command injection vulnerability exists in JetBrains TeamCity. An unauthenticated, remote
    attacker can exploit this to execute arbitrary commands. (CVE-2021-31915)

  - An arbitrary code execution vulnerability exists in JetBrains TeamCity. An unauthenticated, 
    remote attacker can exploit this to bypass authentication and execute arbitrary commands. (CVE-2021-31914)

  - A remote code execution vulnerability exists in JetBrains TeamCity. An unauthenticated, 
    remote attacker can exploit this to bypass authentication and execute arbitrary commands. (CVE-2021-31909)

Note that Nessus did not actually test for these issues, but instead
has relied on the version found in the server's banner.");
  # https://blog.jetbrains.com/blog/2021/05/07/jetbrains-security-bulletin-q1-2021/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8cd4a6be");
  script_set_attribute(attribute:"solution", value:
"Upgrade to JetBrains TeamCity version 2020.2.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:U/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:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-31915");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2021/05/06");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/04/15");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/07/16");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:jetbrains:teamcity");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Web Servers");

  script_copyright(english:"This script is Copyright (C) 2021-2024 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("jetbrains_teamcity_web_detect.nbin");
  script_require_keys("installed_sw/JetBrains TeamCity");
  script_require_ports("Services/www", 80, 443);

  exit(0);
}

include('vcf.inc');
include('vcf_extras.inc');

var port = get_http_port(default:80);

var app_info = vcf::get_app_info(app:'JetBrains TeamCity', port:port, webapp:TRUE);

var constraints = [
  { 'fixed_version' : '2020.2.4' }
];

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);
VendorProductVersionCPE
jetbrainsteamcitycpe:/a:jetbrains:teamcity

References

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

7.4 High

AI Score

Confidence

Low

0.005 Low

EPSS

Percentile

76.8%

Related for TEAMCITY_2020_2_4.NASL