Solaris 10 (sparc) : 119213-31 - Nessus

Medium   Plugin ID: 107310

This page contains detailed information about the Solaris 10 (sparc) : 119213-31 Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 107310
Name: Solaris 10 (sparc) : 119213-31
Filename: solaris10_119213-31.nasl
Vulnerability Published: 2006-09-05
This Plugin Published: 2018-03-12
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/Solaris/showrev

Vulnerability Information


Severity: Medium
Vulnerability Published: 2006-09-05
Patch Published: 2015-02-19
CVE [?]: CVE-2006-4339, CVE-2006-4842, CVE-2006-5201, CVE-2006-7140
CPE [?]: cpe:/o:oracle:solaris:10, p-cpe:/a:oracle:solaris:10:119213

Synopsis

The remote host is missing Sun Security Patch number 119213-31

Description

NSS_NSPR_JSS 3.17.2: NSPR 4.10.7 / NSS 3.1. Date this patch was last updated by Sun : Feb/19/15

Solution

Install patch 119213-31 or higher

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Solaris 10 (sparc) : 119213-31 vulnerability:

  1. Metasploit: exploit/solaris/local/libnspr_nspr_log_file_priv_esc
    [Solaris libnspr NSPR_LOG_FILE Privilege Escalation]
  2. Exploit-DB: exploits/solaris/local/2543.sh
    [EDB-2543: Solaris 10 libnspr - 'LD_PRELOAD' Arbitrary File Creation Privilege Escalation (1)]
  3. Exploit-DB: exploits/solaris/local/2569.sh
    [EDB-2569: Solaris 10 libnspr - 'LD_PRELOAD' Arbitrary File Creation Privilege Escalation (2)]
  4. Exploit-DB: exploits/solaris/local/2641.sh
    [EDB-2641: Solaris 10 libnspr - 'Constructor' Arbitrary File Creation Privilege Escalation (3)]
  5. Exploit-DB: exploits/solaris/local/28788.sh
    [EDB-28788: Sun Solaris Netscape Portable Runtime API 4.6.1 - Local Privilege Escalation (1)]
  6. Exploit-DB: exploits/solaris/local/28789.sh
    [EDB-28789: Sun Solaris Netscape Portable Runtime API 4.6.1 - Local Privilege Escalation (2)]
  7. Exploit-DB: exploits/solaris/local/45433.rb
    [EDB-45433: Solaris - libnspr NSPR_LOG_FILE Privilege Escalation (Metasploit)]
  8. GitHub: https://github.com/0xdea/exploits
    [CVE-2006-4842]
  9. Immunity Canvas: CANVAS

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-2006-7140
CVSS V2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:5.8 (Medium)
Impact Subscore:4.9
Exploitability Subscore:8.6
CVSS Temporal Score:4.8 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:4.8 (Medium)

Go back to menu.

Plugin Source


This is the solaris10_119213-31.nasl nessus plugin source code. This script is Copyright (C) 2018-2021 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text in this plugin was
# extracted from the Oracle SunOS Patch Updates.
#
include('deprecated_nasl_level.inc');
include('compat.inc');

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

  script_cve_id("CVE-2006-4339", "CVE-2006-4842", "CVE-2006-5201", "CVE-2006-7140");

  script_name(english:"Solaris 10 (sparc) : 119213-31");
  script_summary(english:"Check for patch 119213-31");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote host is missing Sun Security Patch number 119213-31"
  );
  script_set_attribute(
    attribute:"description", 
    value:
"NSS_NSPR_JSS 3.17.2: NSPR 4.10.7 / NSS 3.1.
Date this patch was last updated by Sun : Feb/19/15"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://getupdates.oracle.com/readme/119213-31"
  );
  script_set_attribute(attribute:"solution", value:"Install patch 119213-31 or higher");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2006-7140");
  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:"metasploit_name", value:'Solaris libnspr NSPR_LOG_FILE Privilege Escalation');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'CANVAS');
  script_cwe_id(310);

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:solaris:10:119213");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:solaris:10");

  script_set_attribute(attribute:"vuln_publication_date", value:"2006/09/05");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/02/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/03/12");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2018-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"Solaris Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/Solaris/showrev");

  exit(0);
}


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

showrev = get_kb_item("Host/Solaris/showrev");
if (empty_or_null(showrev)) audit(AUDIT_OS_NOT, "Solaris");
os_ver = pregmatch(pattern:"Release: (\d+.(\d+))", string:showrev);
if (empty_or_null(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Solaris");
full_ver = os_ver[1];
os_level = os_ver[2];
if (full_ver != "5.10") audit(AUDIT_OS_NOT, "Solaris 10", "Solaris " + os_level);
package_arch = pregmatch(pattern:"Application architecture: (\w+)", string:showrev);
if (empty_or_null(package_arch)) audit(AUDIT_UNKNOWN_ARCH);
package_arch = package_arch[1];
if (package_arch != "sparc") audit(AUDIT_ARCH_NOT, "sparc", package_arch);
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);

if (solaris_check_patch(release:"5.10", arch:"sparc", patch:"119213-31", obsoleted_by:"", package:"SUNWjss", version:"4.0,REV=2004.11.05.02.31") < 0) flag++;
if (solaris_check_patch(release:"5.10", arch:"sparc", patch:"119213-31", obsoleted_by:"", package:"SUNWpr", version:"4.5.1,REV=2004.11.05.02.30") < 0) flag++;
if (solaris_check_patch(release:"5.10", arch:"sparc", patch:"119213-31", obsoleted_by:"", package:"SUNWprd", version:"4.5.1,REV=2004.11.05.02.30") < 0) flag++;
if (solaris_check_patch(release:"5.10", arch:"sparc", patch:"119213-31", obsoleted_by:"", package:"SUNWtls", version:"3.9.5,REV=2005.01.14.17.27") < 0) flag++;
if (solaris_check_patch(release:"5.10", arch:"sparc", patch:"119213-31", obsoleted_by:"", package:"SUNWtlsd", version:"3.9.5,REV=2005.01.14.17.27") < 0) flag++;
if (solaris_check_patch(release:"5.10", arch:"sparc", patch:"119213-31", obsoleted_by:"", package:"SUNWtlsu", version:"3.9.5,REV=2005.01.14.17.27") < 0) flag++;

if (flag) {
  security_report_v4(
    port       : 0,
    severity   : SECURITY_WARNING,
    extra      : solaris_get_report()
  );
} else {
  patch_fix = solaris_patch_fix_get();
  if (!empty_or_null(patch_fix)) audit(AUDIT_PATCH_INSTALLED, patch_fix, "Solaris 10");
  tested = solaris_pkg_tests_get();
  if (!empty_or_null(tested)) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  audit(AUDIT_PACKAGE_NOT_INSTALLED, "SUNWjss / SUNWpr / SUNWprd / SUNWtls / SUNWtlsd / SUNWtlsu");
}

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

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

Go back to menu.

How to Run


Here is how to run the Solaris 10 (sparc) : 119213-31 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 10 (sparc) : 119213-31 plugin ID 107310.
  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 solaris10_119213-31.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


CWE | Common Weakness Enumeration:
  • CWE-310 (Category) Cryptographic Issues
See also: Similar and related Nessus plugins:
  • 107308 - Solaris 10 (sparc) : 119213-27 (BEAST)
  • 107309 - Solaris 10 (sparc) : 119213-30
  • 107311 - Solaris 10 (sparc) : 119213-32
  • 107312 - Solaris 10 (sparc) : 119213-33
  • 107313 - Solaris 10 (sparc) : 119213-36
  • 107376 - Solaris 10 (sparc) : 121229-02
  • 107811 - Solaris 10 (x86) : 119214-27 (BEAST)
  • 107812 - Solaris 10 (x86) : 119214-30
  • 107813 - Solaris 10 (x86) : 119214-31
  • 107814 - Solaris 10 (x86) : 119214-32
  • 107815 - Solaris 10 (x86) : 119214-33
  • 107816 - Solaris 10 (x86) : 119214-36
  • 107877 - Solaris 10 (x86) : 121230-02
  • 109882 - Solaris 10 (sparc) : 119213-38
  • 109884 - Solaris 10 (x86) : 119214-38
  • 109911 - Solaris 10 (sparc) : 119213-37
  • 109912 - Solaris 10 (x86) : 119214-37
  • 127177 - NewStart CGSL CORE 5.04 / MAIN 5.04 : openssl098e Multiple Vulnerabilities (NS-SA-2019-0020)
  • 127201 - NewStart CGSL CORE 5.04 / MAIN 5.04 : openssl Multiple Vulnerabilities (NS-SA-2019-0033)

Version


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

Go back to menu.