NewStart CGSL MAIN 4.05 : nss Vulnerability (NS-SA-2019-0131) - Nessus

Medium   Plugin ID: 127386

This page contains detailed information about the NewStart CGSL MAIN 4.05 : nss Vulnerability (NS-SA-2019-0131) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 127386
Name: NewStart CGSL MAIN 4.05 : nss Vulnerability (NS-SA-2019-0131)
Filename: newstart_cgsl_NS-SA-2019-0131_nss.nasl
Vulnerability Published: 2019-04-29
This Plugin Published: 2019-08-12
Last Modification Time: 2021-01-14
Plugin Version: 1.4
Plugin Type: local
Plugin Family: NewStart CGSL Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/cpu, Host/local_checks_enabled, Host/ZTE-CGSL/release, Host/ZTE-CGSL/rpm-list

Vulnerability Information


Severity: Medium
Vulnerability Published: 2019-04-29
Patch Published: 2019-07-17
CVE [?]: CVE-2018-12384
CPE [?]: N/A

Synopsis

The remote machine is affected by a vulnerability.

Description

The remote NewStart CGSL host, running version MAIN 4.05, has nss packages installed that are affected by a vulnerability:

- A flaw was found in the way NSS responded to an SSLv2-compatible ClientHello with a ServerHello that had an all-zero random. A man-in-the-middle attacker could use this flaw in a passive replay attack. (CVE-2018-12384)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the vulnerable CGSL nss packages. Note that updated packages may not be available yet. Please contact ZTE for more information.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (GitHub)
Exploit Ease: Exploits (PoCs) are available

Here's the list of publicly known exploits and PoCs for verifying the NewStart CGSL MAIN 4.05 : nss Vulnerability (NS-SA-2019-0131) vulnerability:

  1. GitHub: https://github.com/rjrelyea/ca-certificate-scripts
    [CVE-2018-12384]

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-12384
CVSS V2 Vector: AV:N/AC:M/Au:N/C:P/I:N/A:N/E:U/RL:OF/RC:C
CVSS Base Score:4.3 (Medium)
Impact Subscore:2.9
Exploitability Subscore:8.6
CVSS Temporal Score:3.2 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:3.2 (Low)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C
CVSS Base Score:5.9 (Medium)
Impact Subscore:3.6
Exploitability Subscore:2.2
CVSS Temporal Score:5.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.2 (Medium)

Go back to menu.

Plugin Source


This is the newstart_cgsl_NS-SA-2019-0131_nss.nasl nessus plugin source code. This script is Copyright (C) 2019-2021 and is owned by Tenable, Inc. or an Affiliate thereof.

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

# The descriptive text and package checks in this plugin were
# extracted from ZTE advisory NS-SA-2019-0131. The text
# itself is copyright (C) ZTE, Inc.

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

if (description)
{
  script_id(127386);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/14");

  script_cve_id("CVE-2018-12384");

  script_name(english:"NewStart CGSL MAIN 4.05 : nss Vulnerability (NS-SA-2019-0131)");

  script_set_attribute(attribute:"synopsis", value:
"The remote machine is affected by a vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote NewStart CGSL host, running version MAIN 4.05, has nss packages installed that are affected by a
vulnerability:

  - A flaw was found in the way NSS responded to an
    SSLv2-compatible ClientHello with a ServerHello that had
    an all-zero random. A man-in-the-middle attacker could
    use this flaw in a passive replay attack.
    (CVE-2018-12384)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  script_set_attribute(attribute:"see_also", value:"http://security.gd-linux.com/notice/NS-SA-2019-0131");
  script_set_attribute(attribute:"solution", value:
"Upgrade the vulnerable CGSL nss packages. Note that updated packages may not be available yet. Please contact ZTE for
more information.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-12384");

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

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/04/29");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/07/17");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/08/12");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"NewStart CGSL Local Security Checks");

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

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/ZTE-CGSL/release", "Host/ZTE-CGSL/rpm-list", "Host/cpu");

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("rpm.inc");

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);

release = get_kb_item("Host/ZTE-CGSL/release");
if (isnull(release) || release !~ "^CGSL (MAIN|CORE)") audit(AUDIT_OS_NOT, "NewStart Carrier Grade Server Linux");

if (release !~ "CGSL MAIN 4.05")
  audit(AUDIT_OS_NOT, 'NewStart CGSL MAIN 4.05');

if (!get_kb_item("Host/ZTE-CGSL/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);

cpu = get_kb_item("Host/cpu");
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "NewStart Carrier Grade Server Linux", cpu);

flag = 0;

pkgs = {
  "CGSL MAIN 4.05": [
    "nss-3.36.0-9.el6_10",
    "nss-debuginfo-3.36.0-9.el6_10",
    "nss-devel-3.36.0-9.el6_10",
    "nss-pkcs11-devel-3.36.0-9.el6_10",
    "nss-sysinit-3.36.0-9.el6_10",
    "nss-tools-3.36.0-9.el6_10"
  ]
};
pkg_list = pkgs[release];

foreach (pkg in pkg_list)
  if (rpm_check(release:"ZTE " + release, reference:pkg)) flag++;

if (flag)
{
  security_report_v4(
    port       : 0,
    severity   : SECURITY_WARNING,
    extra      : rpm_report_get()
  );
  exit(0);
}
else
{
  tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "nss");
}

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

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

Go back to menu.

How to Run


Here is how to run the NewStart CGSL MAIN 4.05 : nss Vulnerability (NS-SA-2019-0131) 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 NewStart CGSL Local Security Checks plugin family.
  6. On the right side table select NewStart CGSL MAIN 4.05 : nss Vulnerability (NS-SA-2019-0131) plugin ID 127386.
  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 newstart_cgsl_NS-SA-2019-0131_nss.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a newstart_cgsl_NS-SA-2019-0131_nss.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - newstart_cgsl_NS-SA-2019-0131_nss.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 newstart_cgsl_NS-SA-2019-0131_nss.nasl -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 118402 - Amazon Linux 2 : nss (ALAS-2018-1095)
  • 118362 - Amazon Linux AMI : nss (ALAS-2018-1095)
  • 117832 - CentOS 7 : nss (CESA-2018:2768)
  • 118022 - CentOS 6 : nss (CESA-2018:2898)
  • 118741 - EulerOS 2.0 SP2 : nss (EulerOS-SA-2018-1358)
  • 118760 - EulerOS 2.0 SP3 : nss (EulerOS-SA-2018-1366)
  • 123855 - EulerOS Virtualization 2.5.3 : nss (EulerOS-SA-2019-1169)
  • 124900 - EulerOS Virtualization for ARM 64 3.0.1.0 : nss (EulerOS-SA-2019-1397)
  • 120262 - Fedora 28 : nspr / nss / nss-softokn / nss-util (2018-1a7a5c54c2)
  • 117532 - Fedora 27 : nspr / nss / nss-softokn / nss-util (2018-4a21a8ca59)
  • 120778 - Fedora 29 : nspr / nss / nss-softokn / nss-util (2018-c72d2d89ec)
  • 121068 - Juniper Junos Space 18.4.x < 18.4R1 Multiple Vulnerabilities (JSA10917)
  • 127200 - NewStart CGSL CORE 5.04 / MAIN 5.04 : nss Multiple Vulnerabilities (NS-SA-2019-0033)
  • 119670 - openSUSE Security Update : mozilla-nss (openSUSE-2018-1540)
  • 119948 - openSUSE Security Update : mozilla-nspr and mozilla-nss (openSUSE-2018-1618)
  • 123164 - openSUSE Security Update : mozilla-nspr and mozilla-nss (openSUSE-2019-1039)
  • 123408 - openSUSE Security Update : mozilla-nss (openSUSE-2019-998)
  • 117768 - Oracle Linux 7 : nss (ELSA-2018-2768)
  • 118027 - Oracle Linux 6 : nss (ELSA-2018-2898)
  • 118051 - OracleVM 3.3 / 3.4 : nss (OVMSA-2018-0264)
  • 117778 - RHEL 7 : nss (RHSA-2018:2768)
  • 118030 - RHEL 6 : nss (RHSA-2018:2898)
  • 117788 - Scientific Linux Security Update : nss on SL7.x x86_64 (20180925)
  • 118058 - Scientific Linux Security Update : nss on SL6.x i386/x86_64 (20181009)
  • 120193 - SUSE SLED15 / SLES15 Security Update : MozillaFirefox, mozilla-nspr / mozilla-nss (SUSE-SU-2018:4235-1)
  • 119871 - SUSE SLED12 / SLES12 Security Update : MozillaFirefox, mozilla-nspr / mozilla-nss (SUSE-SU-2018:4236-1)
  • 121062 - Ubuntu 14.04 LTS / 16.04 LTS / 18.04 LTS / 18.10 : nss vulnerabilities (USN-3850-1)
  • 119086 - Virtuozzo 6 : nss / nss-devel / nss-pkcs11-devel / nss-sysinit / etc (VZLSA-2018-2898)
  • 127385 - NewStart CGSL MAIN 4.05 : java-1.7.0-openjdk Multiple Vulnerabilities (NS-SA-2019-0131)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file newstart_cgsl_NS-SA-2019-0131_nss.nasl version 1.4. For more plugins, visit the Nessus Plugin Library.

Go back to menu.