Mac OS X : Java for Mac OS X 10.5 Update 7 - Nessus

High   Plugin ID: 46673

This page contains detailed information about the Mac OS X : Java for Mac OS X 10.5 Update 7 Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 46673
Name: Mac OS X : Java for Mac OS X 10.5 Update 7
Filename: macosx_java_10_5_update7.nasl
Vulnerability Published: 2010-05-18
This Plugin Published: 2010-05-19
Last Modification Time: 2018-07-14
Plugin Version: 1.18
Plugin Type: local
Plugin Family: MacOS X Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/MacOSX/packages

Vulnerability Information


Severity: High
Vulnerability Published: 2010-05-18
Patch Published: 2010-05-18
CVE [?]: CVE-2009-3555, CVE-2009-3910, CVE-2010-0082, CVE-2010-0084, CVE-2010-0085, CVE-2010-0087, CVE-2010-0088, CVE-2010-0089, CVE-2010-0090, CVE-2010-0091, CVE-2010-0092, CVE-2010-0093, CVE-2010-0094, CVE-2010-0095, CVE-2010-0538, CVE-2010-0539, CVE-2010-0837, CVE-2010-0838, CVE-2010-0840, CVE-2010-0841, CVE-2010-0842, CVE-2010-0843, CVE-2010-0844, CVE-2010-0846, CVE-2010-0847, CVE-2010-0848, CVE-2010-0849, CVE-2010-0886, CVE-2010-0887
CPE [?]: N/A
Exploited by Malware: True

Synopsis

The remote host has a version of Java that is affected by multiple vulnerabilities.

Description

The remote Mac OS X host is running a version of Java for Mac OS X 10.5 that is missing Update 7.

The remote version of this software contains several security vulnerabilities, including some that may allow untrusted Java applets to obtain elevated privileges and lead to execution of arbitrary code with the privileges of the current user.

Solution

Upgrade to Java for Mac OS X 10.5 Update 7 or later.

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 Mac OS X : Java for Mac OS X 10.5 Update 7 vulnerability:

  1. Metasploit: exploit/windows/browser/java_ws_arginject_altjvm
    [Sun Java Web Start Plugin Command Line Argument Injection]
  2. Metasploit: exploit/windows/browser/java_ws_vmargs
    [Sun Java Web Start Plugin Command Line Argument Injection]
  3. Metasploit: exploit/windows/browser/java_mixer_sequencer
    [Java MixerSequencer Object GM_Song Structure Handling Vulnerability]
  4. Metasploit: exploit/multi/browser/java_rmi_connection_impl
    [Java RMIConnectionImpl Deserialization Privilege Escalation]
  5. Metasploit: exploit/multi/browser/java_trusted_chain
    [Java Statement.invoke() Trusted Method Chain Privilege Escalation]
  6. Exploit-DB: exploits/windows/local/41700.rb
    [EDB-41700: Sun Java Web Start Plugin - Command Line Argument Injection (Metasploit)]
  7. Exploit-DB: exploits/multiple/remote/10579.py
    [EDB-10579: TLS - Renegotiation]
  8. Exploit-DB: exploits/windows/remote/15056.py
    [EDB-15056: Java 6.19 CMM readMabCurveData - Remote Stack Overflow]
  9. Exploit-DB: exploits/multiple/remote/16297.rb
    [EDB-16297: Java - 'Statement.invoke()' Trusted Method Chain (Metasploit)]
  10. Exploit-DB: exploits/multiple/remote/16305.rb
    [EDB-16305: Java - RMIConnectionImpl Deserialization Privilege Escalation (Metasploit)]
  11. Exploit-DB: exploits/windows/remote/16585.rb
    [EDB-16585: Sun Java - Web Start Plugin Command Line Argument Injection (Metasploit)]
  12. Exploit-DB: exploits/windows/remote/18485.rb
    [EDB-18485: Java MixerSequencer Object - GM_Song Structure Handling (Metasploit)]
  13. GitHub: https://github.com/GiJ03/ReconScan
    [CVE-2009-3555]
  14. GitHub: https://github.com/RedHatProductSecurity/CVE-HOWTO
    [CVE-2009-3555]
  15. GitHub: https://github.com/RoliSoft/ReconScan
    [CVE-2009-3555]
  16. GitHub: https://github.com/ekiojp/hanase
    [CVE-2009-3555]
  17. GitHub: https://github.com/galeone/letsencrypt-lighttpd
    [CVE-2009-3555]
  18. GitHub: https://github.com/issdp/test
    [CVE-2009-3555]
  19. GitHub: https://github.com/johnwchadwick/cve-2009-3555-test-server
    [CVE-2009-3555: A TLS server using a vendored fork of the Go TLS stack that has renegotation ...]
  20. GitHub: https://github.com/matoweb/Enumeration-Script
    [CVE-2009-3555]
  21. GitHub: https://github.com/withdk/pulse-secure-vpn-mitm-research
    [CVE-2009-3555]
  22. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/15056.zip
    [EDB-15056]
  23. 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 V2 Vector [?]: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:8.1 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.1 (High)

Go back to menu.

Plugin Source


This is the macosx_java_10_5_update7.nasl nessus plugin source code. This script is Copyright (C) 2010-2018 Tenable Network Security, Inc.

#TRUSTED 952f5135f8e9fae359e8c06902c257f125b9d664543f7972e3dc74937124893143d09fa9344732bb2e15d89eac66ba7980bda8a8b92f412fe4ca2a58caac093219ffe7c8561ae7b4b3ee634ea3b77104bb90dcb6593f1983d27d981e4a67f72ffad45435de1b10d82b2a53be73edacd0513125831409ec9c23620c053c4620595174f323799da25532461f5debd88437c1e6e3f72ad5b138d4c2f5ca7fd47b18175ca301c7b073a11d4c4f34589c9c33e1f3f8113119bc6f680cca1943569b6693e5b53ea2d7d3af953399f7d0880aa469f6af66f88f14f93a177ae00b6689c6af18a7d3d9f43f2af8d8e489b864500015fdcd8246674ed223117a25a94fcac6facf0a153bde3c07ab5989ecfc0c338258c9a725f2f4c207f3b8e944d71e9df997ac7d6dc74b192fe675a05aab4a715b6047ad66696171c3a03676fd4bfe28c1ffa16e3afc338167d6aa71d83f2b6c99107689380c5c8c4ba031dcf609f93e9a847e6599ada484b2826d7a2a6751c5044b265ba4f4e8c08baa4e5e59da817a28becc56eb89a9b323abb1a26d2aa2be782feb47575dfeb51023ed16d1c73387624d23877520903b6f9cb24c135ea1251d5814ca40512577b4a1f6e86440f651b37bde8093a5220a801e6947b068cf6483df791cd4d43082f05b97d4534028903f1b4cb913836d56eb08727bf16609377006ea8735ce5c2a6f8fb575c1aebea1bf
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(46673);
  script_version("1.18");
  script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14");

  script_cve_id(
    "CVE-2009-3555",
    "CVE-2009-3910",
    "CVE-2010-0082",
    "CVE-2010-0084",
    "CVE-2010-0085",
    "CVE-2010-0087",
    "CVE-2010-0088",
    "CVE-2010-0089",
    "CVE-2010-0090",
    "CVE-2010-0091",
    "CVE-2010-0092",
    "CVE-2010-0093",
    "CVE-2010-0094",
    "CVE-2010-0095",
    "CVE-2010-0538",
    "CVE-2010-0539",
    "CVE-2010-0837",
    "CVE-2010-0838",
    "CVE-2010-0840",
    "CVE-2010-0841",
    "CVE-2010-0842",
    "CVE-2010-0843",
    "CVE-2010-0844",
    "CVE-2010-0846",
    "CVE-2010-0847",
    "CVE-2010-0848",
    "CVE-2010-0849",
    "CVE-2010-0886",
    "CVE-2010-0887"
  );
  script_bugtraq_id(36935, 39069, 39073, 39078, 40238, 40240);

  script_name(english:"Mac OS X : Java for Mac OS X 10.5 Update 7");
  script_summary(english:"Checks version of the JavaVM framework");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host has a version of Java that is affected by multiple
vulnerabilities."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The remote Mac OS X host is running a version of Java for Mac OS X
10.5 that is missing Update 7.

The remote version of this software contains several security
vulnerabilities, including some that may allow untrusted Java applets
to obtain elevated privileges and lead to execution of arbitrary code
with the privileges of the current user."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://support.apple.com/kb/HT4170"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://lists.apple.com/archives/security-announce/2010/May/msg00002.html"
  );
  script_set_attribute(
    attribute:"solution",
    value:"Upgrade to Java for Mac OS X 10.5 Update 7 or later."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  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:"metasploit_name", value:'Sun Java Web Start Plugin Command Line Argument Injection');
  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:"vuln_publication_date", value:"2010/05/18");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/05/18");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/05/19");

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

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

  script_copyright(english:"This script is Copyright (C) 2010-2018 Tenable Network Security, Inc.");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/MacOSX/packages");

  exit(0);
}


include("misc_func.inc");
include("ssh_func.inc");
include("macosx_func.inc");



if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
  enable_ssh_wrappers();
else disable_ssh_wrappers();

function exec(cmd)
{
  local_var ret, buf;

  if (islocalhost())
    buf = pread(cmd:"/bin/bash", argv:make_list("bash", "-c", cmd));
  else
  {
    ret = ssh_open_connection();
    if (!ret) exit(1, "ssh_open_connection() failed.");
    buf = ssh_cmd(cmd:cmd);
    ssh_close_connection();
  }
  if (buf !~ "^[0-9]") exit(1, "Failed to get the version - '"+buf+"'.");

  buf = chomp(buf);
  return buf;
}


packages = get_kb_item("Host/MacOSX/packages");
if (!packages) exit(1, "The 'Host/MacOSX/packages' KB item is missing.");

uname = get_kb_item("Host/uname");
if (!uname) exit(1, "The 'Host/uname' KB item is missing.");

# Mac OS X 10.5 only.
if (!egrep(pattern:"Darwin.* 9\.", string:uname)) exit(0, "The remote Mac is not running Mac OS X 10.5 and thus is not affected.");

plist = "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/version.plist";
cmd =
  'cat ' + plist + ' | ' +
  'grep -A 1 CFBundleVersion | ' +
  'tail -n 1 | ' +
  'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
version = exec(cmd:cmd);
if (!strlen(version)) exit(1, "Can't get version info from '"+plist+"'.");

ver = split(version, sep:'.', keep:FALSE);
for (i=0; i<max_index(ver); i++)
  ver[i] = int(ver[i]);

# Fixed in version 12.6.0.
if (
  ver[0] < 12 ||
  (ver[0] == 12 && ver[1] < 6)
)
{
  gs_opt = get_kb_item("global_settings/report_verbosity");
  if (gs_opt && gs_opt != 'Quiet')
  {
    report =
      '\n  Installed version : ' + version +
      '\n  Fixed version     : 12.6.0\n';
    security_hole(port:0, extra:report);
  }
  else security_hole(0);
}
else exit(0, "The remote host is not affected since JavaVM Framework version "+version+" is installed.");

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

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

Go back to menu.

How to Run


Here is how to run the Mac OS X : Java for Mac OS X 10.5 Update 7 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 MacOS X Local Security Checks plugin family.
  6. On the right side table select Mac OS X : Java for Mac OS X 10.5 Update 7 plugin ID 46673.
  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 macosx_java_10_5_update7.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-310 (Category) Cryptographic Issues
See also: Similar and related Nessus plugins:
  • 46176 - Mandriva Linux Security Advisory : java-1.6.0-openjdk (MDVSA-2010:084)
  • 46187 - openSUSE Security Update : java-1_6_0-openjdk (openSUSE-SU-2010:0182-1)
  • 46189 - openSUSE Security Update : java-1_6_0-openjdk (openSUSE-SU-2010:0182-1)
  • 46191 - openSUSE Security Update : java-1_6_0-openjdk (openSUSE-SU-2010:0182-1)
  • 46272 - RHEL 3 / 4 / 5 : java-1.4.2-ibm (RHSA-2010:0155)
  • 46273 - RHEL 5 : openssl (RHSA-2010:0162)
  • 46274 - RHEL 3 / 4 : openssl (RHSA-2010:0163)
  • 46275 - RHEL 5 : openssl097a (RHSA-2010:0164)
  • 46276 - RHEL 4 / 5 : nss (RHSA-2010:0165)
  • 46277 - RHEL 5 : gnutls (RHSA-2010:0166)
  • 46278 - RHEL 4 : gnutls (RHSA-2010:0167)
  • 46292 - RHEL 3 / 4 : seamonkey (RHSA-2010:0333)
  • 46293 - RHEL 4 / 5 : java-1.6.0-sun (RHSA-2010:0337)
  • 46294 - RHEL 4 / 5 : java-1.5.0-sun (RHSA-2010:0338)
  • 46295 - RHEL 5 : java-1.6.0-openjdk (RHSA-2010:0339)
  • 46300 - RHEL 4 / 5 : java-1.6.0-sun (RHSA-2010:0356)
  • 46304 - RHEL 4 / 5 : java-1.6.0-ibm (RHSA-2010:0383)
  • 46674 - Mac OS X : Java for Mac OS X 10.6 Update 2
  • 46677 - HP System Management Homepage < 6.1.0.102 / 6.1.0-103 Multiple Vulnerabilities
  • 46766 - IBM DB2 9.7 < Fix Pack 2 Multiple Vulnerabilities
  • 46807 - GLSA-201006-18 : Oracle JRE/JDK: Multiple vulnerabilities
  • 46814 - Oracle OpenOffice.org < 3.2.1 Multiple Vulnerabilities
  • 46863 - SuSE9 Security Update : IBM Java 1.4.2 (YOU Patch Number 12621)
  • 46873 - CentOS 5 : java-1.6.0-openjdk (CESA-2010:0339)
  • 47017 - RHEL 4 / 5 : IBM Java Runtime in Satellite Server (RHSA-2010:0471)
  • 47043 - RHEL 4 / 5 : java-1.5.0-ibm (RHSA-2010:0489)
  • 47159 - Ubuntu 8.04 LTS : nss vulnerability (USN-927-4)
  • 47232 - Fedora 12 : nss-3.12.5-8.fc12 (2010-1127)
  • 47330 - Fedora 11 : nss-3.12.6-1.2.fc11 (2010-3905)
  • 47331 - Fedora 13 : nss-3.12.6-1.2.fc13 (2010-3929)
  • 47332 - Fedora 12 : nss-3.12.6-1.2.fc12 (2010-3956)
  • 47385 - Fedora 11 : openssl-0.9.8n-1.fc11 (2010-5357)
  • 47408 - Fedora 13 : httpd-2.2.15-1.fc13 (2010-5942)
  • 47410 - Fedora 12 : java-1.6.0-openjdk-1.6.0.0-37.b17.fc12 (2010-6025)

Version


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

Go back to menu.