Solaris 11 : Multiple Kernel Vulnerabilities - Nessus

High   Plugin ID: 100997

This page contains detailed information about the Solaris 11 : Multiple Kernel Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 100997
Name: Solaris 11 : Multiple Kernel Vulnerabilities
Filename: solaris_jun2017_SRU_11_3_21_5_0.nasl
Vulnerability Published: 2017-06-19
This Plugin Published: 2017-06-22
Last Modification Time: 2021-01-14
Plugin Version: 1.7
Plugin Type: local
Plugin Family: Solaris Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/Solaris11/release

Vulnerability Information


Severity: High
Vulnerability Published: 2017-06-19
Patch Published: 2017-06-19
CVE [?]: CVE-2017-3629, CVE-2017-3630, CVE-2017-3631
CPE [?]: cpe:/o:oracle:solaris:11.3

Synopsis

The remote Solaris host is missing a vendor-supplied security patch.

Description

The remote Solaris host is missing a vendor-supplied security patch. It is, therefore, affected by the following vulnerabilities :

- Multiple security bypass vulnerabilities exist in the Kernel subcomponent that allow a specially crafted application to circumvent the stack guard page security mechanism. A local attacker can exploit these, by using stack clash methods, to gain elevated privileges. (CVE-2017-3629, CVE-2017-3630)

- A privilege escalation vulnerability exists in the Kernel subcomponent when UID binaries are invoked via a hard-link using a different pathname. A local attacker can exploit this to gain elevated privileges. (CVE-2017-3631)

Solution

Install SRU 11.3.21.5.0 from the Oracle support website.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
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 Solaris 11 : Multiple Kernel Vulnerabilities vulnerability:

  1. Metasploit: exploit/solaris/local/rsh_stack_clash_priv_esc
    [Solaris RSH Stack Clash Privilege Escalation]
  2. Exploit-DB: exploits/solaris_x86/local/42270.c
    [EDB-42270: Oracle Solaris 11.1/11.3 (RSH) - 'Stack Clash' Local Privilege Escalation]
  3. Exploit-DB: exploits/solaris/local/45625.rb
    [EDB-45625: Solaris - RSH Stack Clash Privilege Escalation (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 V2 Vector [?]: AV:L/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:7.2 (High)
Impact Subscore:10.0
Exploitability Subscore:3.9
CVSS Temporal Score:6.0 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.0 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:5.9
Exploitability Subscore:1.8
CVSS Temporal Score:7.2 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.2 (High)

Go back to menu.

Plugin Source


This is the solaris_jun2017_SRU_11_3_21_5_0.nasl nessus plugin source code. This script is Copyright (C) 2017-2021 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(100997);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/14");

  script_cve_id(
    "CVE-2017-3629",
    "CVE-2017-3630",
    "CVE-2017-3631"
  );
  script_bugtraq_id(
    99150,
    99151,
    99153
  );

  script_name(english:"Solaris 11 : Multiple Kernel Vulnerabilities");
  script_summary(english:"Checks the release version of the Solaris kernel.");

  script_set_attribute(attribute:"synopsis", value:
"The remote Solaris host is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description",  value:
"The remote Solaris host is missing a vendor-supplied security patch.
It is, therefore, affected by the following vulnerabilities :

  - Multiple security bypass vulnerabilities exist in the
    Kernel subcomponent that allow a specially crafted
    application to circumvent the stack guard page security
    mechanism. A local attacker can exploit these, by using
    stack clash methods, to gain elevated privileges.
    (CVE-2017-3629, CVE-2017-3630)

  - A privilege escalation vulnerability exists in the
    Kernel subcomponent when UID binaries are invoked via a
    hard-link using a different pathname. A local attacker
    can exploit this to gain elevated privileges.
    (CVE-2017-3631)");
  # http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/3757499.xml
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?bc84c529");
  # http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-3629-3757403.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?e1490b6d");
  script_set_attribute(attribute:"see_also", value:"https://support.oracle.com/rs?type=doc&id=2277900.1");
  script_set_attribute(attribute:"solution", value:
"Install SRU 11.3.21.5.0 from the Oracle support website.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/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:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Solaris RSH Stack Clash Privilege Escalation');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2017/06/19");
  script_set_attribute(attribute:"patch_publication_date", value:"2017/06/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2017/06/22");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:solaris:11.3");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2017-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/Solaris11/release");

  exit(0);
}


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

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
release = get_kb_item("Host/Solaris11/release");
if (isnull(release)) audit(AUDIT_OS_NOT, "Solaris11");


fix_release = "0.5.11-0.175.3.21.0.5.0";

flag = 0;

if (solaris_check_release(release:"0.5.11-0.175.3.21.0.5.0", sru:"11.3.21.5.0") > 0) flag++;

if (flag)
{
  security_report_v4(
    port       : 0,
    severity   : SECURITY_HOLE,
    extra      : solaris_get_report2()
  );
  exit(0);
}
audit(AUDIT_OS_RELEASE_NOT, "Solaris", "a version below " + fix_release, release);

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

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

Go back to menu.

How to Run


Here is how to run the Solaris 11 : Multiple Kernel Vulnerabilities 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 Solaris Local Security Checks plugin family.
  6. On the right side table select Solaris 11 : Multiple Kernel Vulnerabilities plugin ID 100997.
  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 solaris_jun2017_SRU_11_3_21_5_0.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a solaris_jun2017_SRU_11_3_21_5_0.nasl -t <IP/HOST>

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 109176 - Oracle Solaris Critical Patch Update : apr2018_SRU11_3_31_6_0 (Spectre)
  • 135667 - Oracle Solaris Critical Patch Update : apr2020_SRU11_3_36_20_0
  • 135668 - Oracle Solaris Critical Patch Update : apr2020_SRU11_4_15_5_0
  • 80936 - Oracle Solaris Critical Patch Update : jan2015_SRU11_1_11_4_0
  • 80937 - Oracle Solaris Critical Patch Update : jan2015_SRU11_1_15_4_0
  • 88003 - Oracle Solaris Critical Patch Update : jan2016_SRU11_3_4_5_0
  • 121223 - Oracle Solaris Critical Patch Update : jan2019_SRU11_4_3_5_0 (Foreshadow) (Spectre)
  • 132997 - Oracle Solaris Critical Patch Update : jan2020_SRU11_4_16_4_0
  • 111188 - Oracle Solaris Critical Patch Update : jul2018_SRU11_3_31_6_0
  • 126764 - Oracle Solaris Critical Patch Update : jul2019_SRU11_3_36_13_0
  • 126768 - Oracle Solaris Critical Patch Update : jul2019_SRU11_4_8_5_0
  • 138539 - Oracle Solaris Critical Patch Update : jul2020_SRU11_4_21_69_0
  • 151922 - Oracle Solaris Critical Patch Update : jul2021_SRU11_3_36_26_0
  • 76829 - Oracle Solaris Critical Patch Update : oct2012_SRU10_5
  • 130006 - Oracle Solaris Critical Patch Update : oct2019_SRU11_3_36_15_0
  • 130007 - Oracle Solaris Critical Patch Update : oct2019_SRU11_4_12_5_0
  • 141772 - Oracle Solaris Critical Patch Update : oct2020_SRU11_3_36_23_0
  • 141773 - Oracle Solaris Critical Patch Update : oct2020_SRU11_4_24_75_2
  • 11513 - Solaris in.lpd Crafted Job Request Arbitrary Remote Command Execution
  • 142712 - Oracle Solaris PAM parse_user_name() buffer overflow (CVE-2020-14871)

Version


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

Go back to menu.