Mac OS X : Java for Mac OS X 10.6 Update 9 - Nessus

Critical   Plugin ID: 59463

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

Plugin Overview


ID: 59463
Name: Mac OS X : Java for Mac OS X 10.6 Update 9
Filename: macosx_java_10_6_update9.nasl
Vulnerability Published: 2012-04-17
This Plugin Published: 2012-06-13
Last Modification Time: 2022-03-08
Plugin Version: 1.16
Plugin Type: local
Plugin Family: MacOS X Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/MacOSX/Version

Vulnerability Information


Severity: Critical
Vulnerability Published: 2012-04-17
Patch Published: 2012-06-12
CVE [?]: CVE-2012-0551, CVE-2012-1711, CVE-2012-1713, CVE-2012-1716, CVE-2012-1718, CVE-2012-1719, CVE-2012-1721, CVE-2012-1722, CVE-2012-1723, CVE-2012-1724, CVE-2012-1725
CPE [?]: cpe:/a:apple:java_1.6
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.6 that is missing Update 9, which updates the Java version to 1.6.0_33. As such, it is affected by several security vulnerabilities, the most serious of which may allow an untrusted Java applet to execute arbitrary code with the privileges of the current user outside the Java sandbox.

In addition, the Java browser plugin and Java Web Start are deactivated if they remain unused for 35 days or do not meet the criteria for minimum safe version.

Solution

Upgrade to Java for Mac OS X 10.6 Update 9, which includes version 13.8.0 of the JavaVM Framework.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, 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.6 Update 9 vulnerability:

  1. Metasploit: exploit/multi/browser/java_verifier_field_access
    [Java Applet Field Bytecode Verifier Cache Remote Code Execution]
  2. Exploit-DB: exploits/java/remote/19717.rb
    [EDB-19717: Java Applet - Field Bytecode Verifier Cache Remote Code Execution (Metasploit)]
  3. GitHub: https://github.com/EthanNJC/CVE-2012-1723
    [CVE-2012-1723: Proof of concept exploit for CVE-2012-1723]

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-2012-1725
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.7 (High)

Go back to menu.

Plugin Source


This is the macosx_java_10_6_update9.nasl nessus plugin source code. This script is Copyright (C) 2012-2022 Tenable Network Security, Inc.

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

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

if (description)
{
  script_id(59463);
  script_version("1.16");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/03/08");

  script_cve_id(
    "CVE-2012-0551",
    "CVE-2012-1711",
    "CVE-2012-1713",
    "CVE-2012-1716",
    "CVE-2012-1718",
    "CVE-2012-1719",
    "CVE-2012-1721",
    "CVE-2012-1722",
    "CVE-2012-1723",
    "CVE-2012-1724",
    "CVE-2012-1725"
  );
  script_bugtraq_id(
    53136,
    53946,
    53947,
    53949,
    53950,
    53951,
    53953,
    53954,
    53958,
    53959,
    53960
  );
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/03/24");

  script_name(english:"Mac OS X : Java for Mac OS X 10.6 Update 9");

  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.6 that is missing Update 9, which updates the Java version to
1.6.0_33.  As such, it is affected by several security
vulnerabilities, the most serious of which may allow an untrusted Java
applet to execute arbitrary code with the privileges of the current
user outside the Java sandbox.

In addition, the Java browser plugin and Java Web Start are
deactivated if they remain unused for 35 days or do not meet the
criteria for minimum safe version.");
  script_set_attribute(attribute:"see_also", value:"http://lists.apple.com/archives/security-announce/2012/Jun/msg00001.html");
  script_set_attribute(attribute:"see_also", value:"http://support.apple.com/kb/HT5319");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Java for Mac OS X 10.6 Update 9, which includes version
13.8.0 of the JavaVM Framework.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2012-1725");

  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:'Java Applet Field Bytecode Verifier Cache Remote Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/04/17");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/06/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/06/13");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:apple:java_1.6");
  script_end_attributes();

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

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

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version");

  exit(0);
}


include("global_settings.inc");
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();

if (!get_kb_item("Host/local_checks_enabled")) exit(0, "Local checks are not enabled.");

os = get_kb_item("Host/MacOSX/Version");
if (!os) exit(0, "The host does not appear to be running Mac OS X.");
if (!ereg(pattern:"Mac OS X 10\.6([^0-9]|$)", string:os))
  exit(0, "The host is running "+os+" and therefore is not affected.");

plist = "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/version.plist";
cmd =
  'plutil -convert xml1 -o - \'' + plist + '\' | ' +
  'grep -A 1 CFBundleVersion | ' +
  'tail -n 1 | ' +
  'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
version = exec_cmd(cmd:cmd);
if (!strlen(version)) exit(1, "Failed to get the version of the JavaVM Framework.");

version = chomp(version);
if (!ereg(pattern:"^[0-9]+\.", string:version)) exit(1, "The JavaVM Framework version does not appear to be numeric ("+version+").");

fixed_version = "13.8.0";
if (ver_compare(ver:version, fix:fixed_version, strict:FALSE) == -1)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  Framework         : JavaVM' +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fixed_version + '\n';
    security_hole(port:0, extra:report);
  }
  else security_hole(0);
}
else exit(0, "The host is not affected since it is running Mac OS X 10.6 and has JavaVM Framework version "+version+".");

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_6_update9.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\macosx_java_10_6_update9.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/macosx_java_10_6_update9.nasl

Go back to menu.

How to Run


Here is how to run the Mac OS X : Java for Mac OS X 10.6 Update 9 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.6 Update 9 plugin ID 59463.
  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_6_update9.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a macosx_java_10_6_update9.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_6_update9.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_6_update9.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 69695 - Amazon Linux AMI : java-1.6.0-openjdk (ALAS-2012-88)
  • 59480 - CentOS 6 : java-1.6.0-openjdk (CESA-2012:0729)
  • 59481 - CentOS 5 : java-1.6.0-openjdk (CESA-2012:0730)
  • 59937 - CentOS 6 : java-1.7.0-openjdk (CESA-2012:1009)
  • 59839 - Debian DSA-2507-1 : openjdk-6 - several vulnerabilities
  • 72139 - GLSA-201401-30 : Oracle JRE/JDK: Multiple vulnerabilities (ROBOT)
  • 76303 - GLSA-201406-32 : IcedTea JDK: Multiple vulnerabilities (BEAST) (ROBOT)
  • 58846 - Oracle GlassFish Server 3.1.1 < 3.1.1.3 Multiple Vulnerabilities (April 2012 CPU)
  • 59464 - Mac OS X : Java for OS X 2012-004
  • 59561 - Mandriva Linux Security Advisory : java-1.6.0-openjdk (MDVSA-2012:095)
  • 74670 - openSUSE Security Update : java-1_6_0-openjdk (openSUSE-SU-2012:0828-1)
  • 59462 - Oracle Java SE Multiple Vulnerabilities (June 2012 CPU)
  • 64848 - Oracle Java SE Multiple Vulnerabilities (June 2012 CPU) (Unix)
  • 68541 - Oracle Linux 6 : java-1.6.0-openjdk (ELSA-2012-0729)
  • 68542 - Oracle Linux 5 : java-1.6.0-openjdk (ELSA-2012-0730)
  • 68566 - Oracle Linux 6 : java-1.7.0-openjdk (ELSA-2012-1009)
  • 59489 - RHEL 6 : java-1.6.0-openjdk (RHSA-2012:0729)
  • 59490 - RHEL 5 : java-1.6.0-openjdk (RHSA-2012:0730)
  • 59492 - RHEL 5 / 6 : java-1.6.0-sun (RHSA-2012:0734)
  • 59637 - RHEL 6 : java-1.7.0-openjdk (RHSA-2012:1009)
  • 59638 - RHEL 6 : java-1.7.0-oracle (RHSA-2012:1019)
  • 62196 - RHEL 6 : java-1.7.0-ibm (RHSA-2012:1289)
  • 62932 - RHEL 6 : java-1.7.0-ibm (RHSA-2012:1467) (ROBOT)
  • 78975 - RHEL 5 / 6 : IBM Java Runtime in Satellite Server (RHSA-2013:1455) (BEAST) (ROBOT)
  • 78976 - RHEL 5 / 6 : IBM Java Runtime in Satellite Server (RHSA-2013:1456) (ROBOT)
  • 61328 - Scientific Linux Security Update : java-1.6.0-openjdk on SL5.x i386/x86_64 (20120613)
  • 61329 - Scientific Linux Security Update : java-1.6.0-openjdk on SL6.x i386/x86_64 (20120613)
  • 61330 - Scientific Linux Security Update : java-1.6.0-sun on SL5.x i386/x86_64 (20120613)
  • 64167 - SuSE 11.1 Security Update : java-1_6_0-openjdk (SAT Patch Number 6437)
  • 64170 - SuSE 11.2 Security Update : IBM Java (SAT Patch Number 6839)
  • 59964 - Ubuntu 10.04 LTS / 11.04 / 11.10 / 12.04 LTS : icedtea-web, openjdk-6 vulnerabilities (USN-1505-1)
  • 61729 - Ubuntu 11.04 / 11.10 : icedtea-web regression (USN-1505-2)
  • 66909 - VMware vCenter Update Manager Multiple Vulnerabilities (VMSA-2012-0013)
  • 66806 - VMware vCenter Multiple Vulnerabilities (VMSA-2012-0013)

Version


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

Go back to menu.