Mac OS X Multiple Vulnerabilities (Security Update 2008-007) - Nessus

Critical   Plugin ID: 34374

This page contains detailed information about the Mac OS X Multiple Vulnerabilities (Security Update 2008-007) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 34374
Name: Mac OS X Multiple Vulnerabilities (Security Update 2008-007)
Filename: macosx_SecUpd2008-007.nasl
Vulnerability Published: 2007-10-15
This Plugin Published: 2008-10-10
Last Modification Time: 2018-07-14
Plugin Version: 1.31
Plugin Type: local
Plugin Family: MacOS X Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/MacOSX/packages, Host/uname

Vulnerability Information


Severity: Critical
Vulnerability Published: 2007-10-15
Patch Published: 2008-10-09
CVE [?]: CVE-2007-2691, CVE-2007-4850, CVE-2007-5333, CVE-2007-5342, CVE-2007-5461, CVE-2007-5969, CVE-2007-6286, CVE-2007-6420, CVE-2008-0002, CVE-2008-0226, CVE-2008-0227, CVE-2008-0674, CVE-2008-1232, CVE-2008-1389, CVE-2008-1678, CVE-2008-1767, CVE-2008-1947, CVE-2008-2079, CVE-2008-2364, CVE-2008-2370, CVE-2008-2371, CVE-2008-2712, CVE-2008-2938, CVE-2008-3294, CVE-2008-3432, CVE-2008-3641, CVE-2008-3642, CVE-2008-3643, CVE-2008-3645, CVE-2008-3646, CVE-2008-3647, CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, CVE-2008-4101, CVE-2008-4211, CVE-2008-4212, CVE-2008-4214, CVE-2008-4215
CPE [?]: cpe:/o:apple:mac_os_x

Synopsis

The remote host is missing a Mac OS X update that fixes various security issues.

Description

The remote host is running a version of Mac OS X 10.5 or 10.4 that does not have the security update 2008-007 applied.

This security update contains fixes for the following products :

- Apache - Certificates - ClamAV - ColorSync - CUPS - Finder - launchd - libxslt - MySQL Server - Networking - PHP - Postfix - PSNormalizer - QuickLook - rlogin - Script Editor - Single Sign-On - Tomcat - vim - Weblog

Solution

Install Security Update 2008-007 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, D2 Elliot)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Mac OS X Multiple Vulnerabilities (Security Update 2008-007) vulnerability:

  1. Metasploit: exploit/linux/mysql/mysql_yassl_hello
    [MySQL yaSSL SSL Hello Message Buffer Overflow]
  2. Metasploit: exploit/windows/mysql/mysql_yassl_hello
    [MySQL yaSSL SSL Hello Message Buffer Overflow]
  3. Metasploit: auxiliary/admin/http/tomcat_utf8_traversal
    [Tomcat UTF-8 Directory Traversal Vulnerability]
  4. Metasploit: auxiliary/admin/http/trendmicro_dlp_traversal
    [TrendMicro Data Loss Prevention 5.5 Directory Traversal]
  5. Exploit-DB: exploits/multiple/remote/6229.txt
    [EDB-6229: Apache Tomcat < 6.0.18 - 'utf8' Directory Traversal (PoC)]
  6. Exploit-DB: exploits/linux/remote/9953.rb
    [EDB-9953: MySQL 6.0 yaSSL 1.7.5 - Hello Message Buffer Overflow (Metasploit)]
  7. Exploit-DB: exploits/windows/remote/16701.rb
    [EDB-16701: MySQL yaSSL (Windows) - SSL Hello Message Buffer Overflow (Metasploit)]
  8. Exploit-DB: exploits/linux/remote/16849.rb
    [EDB-16849: MySQL yaSSL (Linux) - SSL Hello Message Buffer Overflow (Metasploit)]
  9. Exploit-DB: exploits/jsp/webapps/10085.txt
    [EDB-10085: toutvirtual virtualiq pro 3.2 - Multiple Vulnerabilities]
  10. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2007-2691]
  11. GitHub: https://github.com/ptester36/netology_ib_networks_lesson_9
    [CVE-2007-5969]
  12. GitHub: https://github.com/mudongliang/LinuxFlaw/tree/master/CVE-2008-1767
    [CVE-2008-1767]
  13. GitHub: https://github.com/CoolerVoid/Vision
    [CVE-2008-2079]
  14. GitHub: https://github.com/CoolerVoid/Vision2
    [CVE-2008-2079]
  15. GitHub: https://github.com/tomwillfixit/alpine-cvecheck
    [CVE-2008-2079]
  16. GitHub: https://github.com/GiJ03/ReconScan
    [CVE-2008-2364]
  17. GitHub: https://github.com/RoliSoft/ReconScan
    [CVE-2008-2364]
  18. GitHub: https://github.com/issdp/test
    [CVE-2008-2364]
  19. GitHub: https://github.com/matoweb/Enumeration-Script
    [CVE-2008-2364]
  20. GitHub: https://github.com/Naramsim/Offensive
    [CVE-2008-2938: Reproducible exploits for: CVE-2016-1240 CVE-2008-2938 CVE-2014-2064 CVE-2014-1904 ...]
  21. D2 Elliot: apache_tomcat_file_disclosure.html
    [Apache Tomcat File Disclosure]
  22. Immunity Canvas: D2ExploitPack

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:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


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

#
# (C) Tenable Network Security, Inc.
#


if (!defined_func("bn_random")) exit(0);
if (NASL_LEVEL < 3004) exit(0);



include("compat.inc");

if (description)
{
  script_id(34374);
  script_version("1.31");
  script_cvs_date("Date: 2018/07/14  1:59:35");

  script_cve_id(
    "CVE-2007-2691",
    "CVE-2007-4850",
    "CVE-2007-5333",
    "CVE-2007-5342",
    "CVE-2007-5461",
    "CVE-2007-5969",
    "CVE-2007-6286",
    "CVE-2007-6420",
    "CVE-2008-0002",
    "CVE-2008-0226",
    "CVE-2008-0227",
    "CVE-2008-0674",
    "CVE-2008-1232",
    "CVE-2008-1389",
    "CVE-2008-1678",
    "CVE-2008-1767",
    "CVE-2008-1947",
    "CVE-2008-2079",
    "CVE-2008-2364",
    "CVE-2008-2370",
    "CVE-2008-2371",
    "CVE-2008-2712",
    "CVE-2008-2938",
    "CVE-2008-3294",
    "CVE-2008-3432",
    "CVE-2008-3641",
    "CVE-2008-3642",
    "CVE-2008-3643",
    "CVE-2008-3645",
    "CVE-2008-3646",
    "CVE-2008-3647",
    "CVE-2008-3912",
    "CVE-2008-3913",
    "CVE-2008-3914",
    "CVE-2008-4101",
    "CVE-2008-4211",
    "CVE-2008-4212",
    "CVE-2008-4214",
    "CVE-2008-4215"
  );
  script_bugtraq_id(
    24016,
    26070,
    26765,
    27006,
    27140,
    27236,
    27413,
    27703,
    27706,
    27786,
    29106,
    29312,
    29502,
    29653,
    29715,
    30087,
    30279,
    30494,
    30496,
    30633,
    30795,
    30994,
    31051,
    31681,
    31692,
    31707,
    31708,
    31711,
    31715,
    31716,
    31718,
    31719,
    31720,
    31721,
    31722
  );

  script_name(english:"Mac OS X Multiple Vulnerabilities (Security Update 2008-007)");
  script_summary(english:"Check for the presence of Security Update 2008-007");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is missing a Mac OS X update that fixes various
security issues." );
  script_set_attribute(attribute:"description", value:
"The remote host is running a version of Mac OS X 10.5 or 10.4 that
does not have the security update 2008-007 applied. 

This security update contains fixes for the following products :

  - Apache
  - Certificates
  - ClamAV
  - ColorSync
  - CUPS
  - Finder
  - launchd
  - libxslt
  - MySQL Server
  - Networking
  - PHP
  - Postfix
  - PSNormalizer
  - QuickLook
  - rlogin
  - Script Editor
  - Single Sign-On
  - Tomcat
  - vim
  - Weblog" );
  script_set_attribute(attribute:"see_also", value:"http://support.apple.com/kb/HT3216" );
  script_set_attribute(attribute:"see_also", value:"http://lists.apple.com/archives/security-announce/2008/Oct/msg00001.html" );
  script_set_attribute(attribute:"solution", value:
"Install Security Update 2008-007 or later." );
  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:F/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:"d2_elliot_name", value:"Apache Tomcat File Disclosure");
  script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'MySQL yaSSL SSL Hello Message Buffer Overflow');
  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:'D2ExploitPack');
  script_cwe_id(16, 20, 22, 79, 94, 119, 189, 200, 264, 352, 362, 399);
script_set_attribute(attribute:"plugin_publication_date", value: "2008/10/10");
  script_set_attribute(attribute:"vuln_publication_date", value: "2007/10/15");
  script_set_attribute(attribute:"patch_publication_date", value: "2008/10/09");
  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:apple:mac_os_x");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"MacOS X Local Security Checks");
  script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/MacOSX/packages", "Host/uname");
  exit(0);
}


uname = get_kb_item("Host/uname");
if (!uname) exit(0);

if (egrep(pattern:"Darwin.* (8\.[0-9]\.|8\.1[01]\.)", string:uname))
{
  packages = get_kb_item("Host/MacOSX/packages");
  if (!packages) exit(0);

  if (!egrep(pattern:"^SecUpd(Srvr)?(2008-00[78]|2009-|20[1-9][0-9]-)", string:packages))
    security_hole(0);
}
else if (egrep(pattern:"Darwin.* (9\.[0-5]\.)", string:uname))
{
  packages = get_kb_item("Host/MacOSX/packages/boms");
  if (!packages) exit(0);

  if (!egrep(pattern:"^com\.apple\.pkg\.update\.security\.2008\.007\.bom", string:packages))
    security_hole(0);
}

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

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

Go back to menu.

How to Run


Here is how to run the Mac OS X Multiple Vulnerabilities (Security Update 2008-007) 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 Multiple Vulnerabilities (Security Update 2008-007) plugin ID 34374.
  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_SecUpd2008-007.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-16 (Category) Configuration
  • CWE-20 (Weakness) Improper Input Validation
  • CWE-22 (Weakness) Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-79 (Weakness) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-94 (Weakness) Improper Control of Generation of Code ('Code Injection')
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-189 (Category) Numeric Errors
  • CWE-200 (Weakness) Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-264 (Category) Permissions, Privileges, and Access Controls
  • CWE-352 (Weakness) Cross-Site Request Forgery (CSRF)
  • CWE-362 (Weakness) Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-399 (Category) Resource Management Errors
See also: Similar and related Nessus plugins:
  • 33790 - Mac OS X Multiple Vulnerabilities (Security Update 2008-005)
  • 33808 - Ubuntu 6.06 LTS / 7.04 / 7.10 / 8.04 LTS : libxslt vulnerabilities (USN-633-1)
  • 33839 - Fedora 8 : httpd-2.2.9-1.fc8 (2008-6314)
  • 33840 - Fedora 9 : httpd-2.2.9-1.fc9 (2008-6393)
  • 33866 - Apache Tomcat allowLinking UTF-8 Traversal Arbitrary File Access
  • 33885 - openSUSE 10 Security Update : libmysqlclient-devel (libmysqlclient-devel-5341)
  • 33886 - SuSE 10 Security Update : MySQL (ZYPP Patch Number 5338)
  • 34057 - RHEL 5 : tomcat (RHSA-2008:0648)
  • 34093 - GLSA-200809-04 : MySQL: Privilege bypass
  • 34151 - FreeBSD : mysql -- MyISAM table privileges security bypass vulnerability (388d9ee4-7f22-11dd-a66a-0019666436c2)
  • 34154 - SuSE 10 Security Update : Tomcat 5 (ZYPP Patch Number 5539)
  • 34155 - openSUSE 10 Security Update : tomcat5 (tomcat5-5542)
  • 34159 - MySQL Community Server 5.0 < 5.0.67 Multiple Vulnerabilities
  • 34168 - openSUSE 10 Security Update : tomcat55 (tomcat55-5547)
  • 34185 - Fedora 9 : tomcat6-6.0.18-1.1.fc9 (2008-7977)
  • 34226 - Fedora 9 : tomcat5-5.5.27-0jpp.2.fc9 (2008-8113)
  • 34227 - Fedora 8 : tomcat5-5.5.27-0jpp.2.fc8 (2008-8130)
  • 34697 - openSUSE 10 Security Update : apache2 (apache2-5628)
  • 34698 - SuSE 10 Security Update : Apache 2 (ZYPP Patch Number 5629)
  • 34699 - openSUSE 10 Security Update : apache2 (apache2-5648)
  • 34727 - MySQL Enterprise Server 5.0 < 5.0.70 Privilege Bypass
  • 34751 - RHEL 3 / 4 / 5 : httpd (RHSA-2008:0967)
  • 34772 - Safari < 3.2 Multiple Vulnerabilities
  • 34779 - SuSE 10 Security Update : Apache 2 (ZYPP Patch Number 5767)
  • 35279 - FreeBSD : mysql -- MyISAM table privileges security bypass vulnerability for symlinked paths (738f8f9e-d661-11dd-a765-0030843d3802)
  • 35339 - FreeBSD : mysql -- privilege escalation and overwrite of the system table information (8c451386-dff3-11dd-a765-0030843d3802)
  • 35342 - FreeBSD : mysql -- renaming of arbitrary tables by authenticated users (bb4e9a44-dff2-11dd-a765-0030843d3802)
  • 35920 - openSUSE 10 Security Update : apache2 (apache2-6054)
  • 36294 - Mandriva Linux Security Advisory : php (MDVSA-2009:022)
  • 36561 - Mandriva Linux Security Advisory : mysql (MDVSA-2008:150)
  • 36589 - Ubuntu 6.06 LTS / 7.10 / 8.04 LTS : apache2 vulnerabilities (USN-731-1)
  • 36926 - Mandriva Linux Security Advisory : tomcat5 (MDVSA-2008:188)
  • 37062 - CentOS 3 / 4 / 5 : httpd (CESA-2008:0967)
  • 37114 - Mandriva Linux Security Advisory : apache (MDVSA-2008:195)

Version


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

Go back to menu.