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

Critical   Plugin ID: 25830

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

Plugin Overview


ID: 25830
Name: Mac OS X Multiple Vulnerabilities (Security Update 2007-007)
Filename: macosx_SecUpd2007-007.nasl
Vulnerability Published: 2004-11-09
This Plugin Published: 2007-08-02
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: Critical
Vulnerability Published: 2004-11-09
Patch Published: 2007-08-01
CVE [?]: CVE-2004-0996, CVE-2004-2541, CVE-2005-0758, CVE-2005-2090, CVE-2005-3128, CVE-2006-2842, CVE-2006-3174, CVE-2006-4019, CVE-2006-6142, CVE-2007-0450, CVE-2007-0478, CVE-2007-1001, CVE-2007-1262, CVE-2007-1287, CVE-2007-1358, CVE-2007-1460, CVE-2007-1461, CVE-2007-1484, CVE-2007-1521, CVE-2007-1583, CVE-2007-1711, CVE-2007-1717, CVE-2007-1860, CVE-2007-2403, CVE-2007-2404, CVE-2007-2405, CVE-2007-2406, CVE-2007-2407, CVE-2007-2408, CVE-2007-2409, CVE-2007-2410, CVE-2007-2442, CVE-2007-2443, CVE-2007-2446, CVE-2007-2447, CVE-2007-2589, CVE-2007-2798, CVE-2007-3742, CVE-2007-3744, CVE-2007-3745, CVE-2007-3746, CVE-2007-3747, CVE-2007-3748, CVE-2007-3944
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.4 or 10.3 which does not have the security update 2007-007 applied.

This update contains several security fixes for the following programs :

- bzip2 - CFNetwork - CoreAudio - cscope - gnuzip - iChat - Kerberos - mDNSResponder - PDFKit - PHP - Quartz Composer - Samba - SquirrelMail - Tomcat - WebCore - WebKit

Solution

Install the security update 2007-007 :

http://www.apple.com/support/downloads/securityupdate200700710410universal.html http://www.apple.com/support/downloads/securityupdate20070071039.html http://www.apple.com/support/downloads/securityupdate20070071039server.html

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 Multiple Vulnerabilities (Security Update 2007-007) vulnerability:

  1. Metasploit: exploit/multi/samba/usermap_script
    [Samba "username map script" Command Execution]
  2. Metasploit: auxiliary/dos/samba/lsa_addprivs_heap
    [Samba lsa_io_privilege_set Heap Overflow]
  3. Metasploit: auxiliary/dos/samba/lsa_transnames_heap
    [Samba lsa_io_trans_names Heap Overflow]
  4. Metasploit: exploit/linux/samba/lsa_transnames_heap
    [Samba lsa_io_trans_names Heap Overflow]
  5. Metasploit: exploit/osx/samba/lsa_transnames_heap
    [Samba lsa_io_trans_names Heap Overflow]
  6. Metasploit: exploit/solaris/samba/lsa_transnames_heap
    [Samba lsa_io_trans_names Heap Overflow]
  7. Exploit-DB: exploits/linux/remote/9950.rb
    [EDB-9950: Samba 3.0.21 < 3.0.24 - LSA trans names Heap Overflow (Metasploit)]
  8. Exploit-DB: exploits/unix/remote/16320.rb
    [EDB-16320: Samba 3.0.20 < 3.0.25rc3 - 'Username' map script' Command Execution (Metasploit)]
  9. Exploit-DB: exploits/solaris/remote/16329.rb
    [EDB-16329: Samba 3.0.24 (Solaris) - 'lsa_io_trans_names' Heap Overflow (Metasploit)]
  10. Exploit-DB: exploits/linux/remote/16859.rb
    [EDB-16859: Samba 3.0.24 (Linux) - 'lsa_io_trans_names' Heap Overflow (Metasploit)]
  11. Exploit-DB: exploits/osx/remote/16875.rb
    [EDB-16875: Samba 3.0.10 (OSX) - 'lsa_io_trans_names' Heap Overflow (Metasploit)]
  12. Exploit-DB: exploits/php/webapps/43839.txt
    [EDB-43839: SquirrelMail < 1.4.7 - Arbitrary Variable Overwrite]
  13. GitHub: https://github.com/phonito/phonito-scanner-action
    [CVE-2005-0758]
  14. GitHub: https://github.com/ActualSalt/Capstone-Red-vs-Blue-CySec-Report
    [CVE-2007-0450]
  15. GitHub: https://github.com/mgeeky/tomcatWarDeployer
    [CVE-2007-1860]
  16. GitHub: https://github.com/sagardevopss/sample_web_app
    [CVE-2007-1860]
  17. GitHub: https://github.com/sagardevopss/simple-maker
    [CVE-2007-1860]
  18. GitHub: https://github.com/yingshang/sturoad
    [CVE-2007-1860]
  19. GitHub: https://github.com/DOCTOR-ANR/cybercaptor-server
    [CVE-2007-2446]
  20. GitHub: https://github.com/Larryxi/My_tools
    [CVE-2007-2446]
  21. GitHub: https://github.com/fiware-cybercaptor/cybercaptor-server
    [CVE-2007-2446]
  22. GitHub: https://github.com/mudongliang/LinuxFlaw/tree/master/CVE-2007-2446
    [CVE-2007-2446]
  23. GitHub: https://github.com/0xKn/CVE-2007-2447
    [CVE-2007-2447]
  24. GitHub: https://github.com/0xkasra/CVE-2007-2447
    [CVE-2007-2447]
  25. GitHub: https://github.com/3hydraking/usermap_script_CVE-2007-2447
    [CVE-2007-2447]
  26. GitHub: https://github.com/3t4n/samba-3.0.24-CVE-2007-2447-vunerable-
    [CVE-2007-2447]
  27. GitHub: https://github.com/3x1t1um/CVE-2007-2447
    [CVE-2007-2447]
  28. GitHub: https://github.com/4n0nym0u5dk/usermap_script_CVE-2007-2447
    [CVE-2007-2447]
  29. GitHub: https://github.com/Alien0ne/CVE-2007-2447
    [CVE-2007-2447: CVE-2007-2447 - Samba usermap script]
  30. GitHub: https://github.com/GaloisInc/msf-haskell
    [CVE-2007-2447]
  31. GitHub: https://github.com/JoseBarrios/CVE-2007-2447
    [CVE-2007-2447: Remote Command Injection Vulnerability (CVE-2007-2447), allows remote attackers to ...]
  32. GitHub: https://github.com/SamHackingArticles/CVE-2007-2447
    [CVE-2007-2447]
  33. GitHub: https://github.com/Un4gi/CVE-2007-2447
    [CVE-2007-2447: Samba 3.0.20 username map script exploit]
  34. GitHub: https://github.com/Unam3dd/exploit_smb_usermap_script
    [CVE-2007-2447: Python Script Exploit SMB Usermap Script CVE-2007-2447]
  35. GitHub: https://github.com/Unix13/metasploitable2
    [CVE-2007-2447: PHP-CGI-REMOTE_CVE-2012-1823, UnrealIRCd, MySQL, PostgreSQL and SSH bruteforce, ...]
  36. GitHub: https://github.com/WildfootW/CVE-2007-2447_Samba_3.0.25rc3
    [CVE-2007-2447]
  37. GitHub: https://github.com/Ziemni/CVE-2007-2447-in-Python
    [CVE-2007-2447: Python implementation of 'Username' map script' RCE Exploit for Samba 3.0.20 < ...]
  38. GitHub: https://github.com/cherrera0001/CVE-2007-2447
    [CVE-2007-2447: Samba usermap script.]
  39. GitHub: https://github.com/gwyomarch/Lame-HTB-Writeup-FR
    [CVE-2007-2447]
  40. GitHub: https://github.com/k4u5h41/usermap_script_CVE-2007-2447
    [CVE-2007-2447]
  41. GitHub: https://github.com/macosta-42/Exploit-Development
    [CVE-2007-2447]
  42. GitHub: https://github.com/marcocastro100/Intrusion_Detection_System-Python
    [CVE-2007-2447]
  43. GitHub: https://github.com/persian64/CVE-2007-2447
    [CVE-2007-2447]
  44. GitHub: https://github.com/pwnd-root/exploits-and-stuff
    [CVE-2007-2447]
  45. GitHub: https://github.com/voukatas/PenTest_Metasploitable2
    [CVE-2007-2447]
  46. GitHub: https://github.com/xbufu/CVE-2007-2447
    [CVE-2007-2447: Exploit code for CVE-2007-2447 written in Python3.]
  47. GitHub: https://github.com/xlcc4096/exploit-CVE-2007-2447
    [CVE-2007-2447: Exploit for the vulnerability CVE-2007-2447]
  48. GitHub: https://github.com/yukitsukai47/PenetrationTesting_cheatsheet
    [CVE-2007-2447]
  49. GitHub: https://github.com/amriunix/CVE-2007-2447
    [CVE-2007-2447: CVE-2007-2447 - Samba usermap script]
  50. GitHub: https://github.com/b1fair/smb_usermap
    [CVE-2007-2447: A simple exploit for CVE-2007-2447]
  51. GitHub: https://github.com/nickvourd/smb-usermap-destroyer
    [CVE-2007-2447: Smb Usermap Destoyer is a python2 exploit for CVE-2007-2447 ( 'Username' map script' ...]
  52. GitHub: https://github.com/ozuma/CVE-2007-2447
    [CVE-2007-2447: Exploit Samba]
  53. GitHub: https://github.com/Ki11i0n4ir3/Sambaster
    [CVE-2007-2447: Cve-2007-2447 this script was rewrite the part of Metasploit modules to python3]
  54. 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: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_SecUpd2007-007.nasl nessus plugin source code. This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.

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

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


include("compat.inc");

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

 script_cve_id("CVE-2004-0996", "CVE-2004-2541", "CVE-2005-0758", "CVE-2005-2090", "CVE-2005-3128",
               "CVE-2006-2842", "CVE-2006-3174", "CVE-2006-4019", "CVE-2006-6142", "CVE-2007-0450",
               "CVE-2007-0478", "CVE-2007-1001", "CVE-2007-1262", "CVE-2007-1287", "CVE-2007-1358",
               "CVE-2007-1460", "CVE-2007-1461", "CVE-2007-1484", "CVE-2007-1521", "CVE-2007-1583",
               "CVE-2007-1711", "CVE-2007-1717", "CVE-2007-1860", "CVE-2007-2403", "CVE-2007-2404",
               "CVE-2007-2405", "CVE-2007-2406", "CVE-2007-2407", "CVE-2007-2408", "CVE-2007-2409",
               "CVE-2007-2410", "CVE-2007-2442", "CVE-2007-2443", "CVE-2007-2446", "CVE-2007-2447",
               "CVE-2007-2589", "CVE-2007-2798", "CVE-2007-3742", "CVE-2007-3744", "CVE-2007-3745",
               "CVE-2007-3746", "CVE-2007-3747", "CVE-2007-3748", "CVE-2007-3944");
 script_bugtraq_id(11697, 13582, 23910, 23972, 23973, 24195, 24196, 24197, 24198, 24653, 25159);

 script_name(english:"Mac OS X Multiple Vulnerabilities (Security Update 2007-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.4 or 10.3 which
does not have the security update 2007-007 applied. 

This update contains several security fixes for the following programs :

 - bzip2
 - CFNetwork
 - CoreAudio
 - cscope
 - gnuzip
 - iChat
 - Kerberos
 - mDNSResponder
 - PDFKit
 - PHP
 - Quartz Composer
 - Samba
 - SquirrelMail
 - Tomcat
 - WebCore
 - WebKit" );
 script_set_attribute(attribute:"see_also", value:"http://docs.info.apple.com/article.html?artnum=306172" );
 script_set_attribute(attribute:"solution", value:
"Install the security update 2007-007 :

http://www.apple.com/support/downloads/securityupdate200700710410universal.html
http://www.apple.com/support/downloads/securityupdate20070071039.html
http://www.apple.com/support/downloads/securityupdate20070071039server.html" );
 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:"metasploit_name", value:'Samba "username map script" Command Execution');
 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(16, 20, 22, 59, 79, 119, 352);

 script_set_attribute(attribute:"plugin_publication_date", value: "2007/08/02");
 script_set_attribute(attribute:"patch_publication_date", value: "2007/08/01");
 script_set_attribute(attribute:"vuln_publication_date", value: "2004/11/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_summary(english:"Check for the presence of the SecUpdate 2007-007");
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2007-2018 Tenable Network Security, Inc.");
 script_family(english:"MacOS X Local Security Checks");
 script_dependencies("ssh_get_info.nasl");
 script_require_keys("Host/MacOSX/packages");
 exit(0);
}


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



uname = get_kb_item("Host/uname");
if ( egrep(pattern:"Darwin.* (7\.[0-9]\.|8\.[0-9]\.|8\.10\.)", string:uname) )
{
  if (!egrep(pattern:"^SecUpd(Srvr)?(2007-00[789]|200[89]-|20[1-9][0-9]-)", 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_SecUpd2007-007.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\macosx_SecUpd2007-007.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/macosx_SecUpd2007-007.nasl

Go back to menu.

How to Run


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

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a macosx_SecUpd2007-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_SecUpd2007-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_SecUpd2007-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-59 (Weakness) Improper Link Resolution Before File Access ('Link Following')
  • CWE-79 (Weakness) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-352 (Weakness) Cross-Site Request Forgery (CSRF)
See also: Similar and related Nessus plugins:
  • 25224 - CentOS 3 / 4 / 5 : samba (CESA-2007:0354)
  • 25228 - Debian DSA-1291-1 : samba - several vulnerabilities
  • 57631 - GLSA-201201-05 : mDNSResponder: Multiple vulnerabilities
  • 25237 - Mandrake Linux Security Advisory : samba (MDKSA-2007:104-1)
  • 67499 - Oracle Linux 3 / 4 / 5 : samba (ELSA-2007-0354)
  • 25239 - RHEL 2.1 / 3 / 4 / 5 : samba (RHSA-2007:0354)
  • 25217 - Samba < 3.0.25 Multiple Vulnerabilities
  • 82580 - Samba 3.0.0 'SamrChangePassword' RCE
  • 25216 - Samba NDR MS-RPC Request Heap-Based Remote Buffer Overflow
  • 40370 - VMSA-2007-0006 : Critical security updates for all supported versions of VMware ESX Server, VMware Server, VMware Workstation, VMware ACE, and VMware Player
  • 29965 - Xerox WorkCentre Multiple Samba Vulnerabilities (XRX08-001)

Version


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

Go back to menu.