iTunes < 8.2 itms: URL Stack Overflow (Mac OS X) - Nessus

High   Plugin ID: 38987

This page contains detailed information about the iTunes < 8.2 itms: URL Stack Overflow (Mac OS X) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 38987
Name: iTunes < 8.2 itms: URL Stack Overflow (Mac OS X)
Filename: macosx_itunes_8_2.nasl
Vulnerability Published: N/A
This Plugin Published: 2009-06-02
Last Modification Time: 2018-07-16
Plugin Version: 1.17
Plugin Type: local
Plugin Family: MacOS X Local Security Checks
Dependencies: macosx_itunes_detect.nasl
Required KB Items [?]: Host/MacOSX/Version, installed_sw/iTunes

Vulnerability Information


Severity: High
Vulnerability Published: N/A
Patch Published: 2009-06-01
CVE [?]: CVE-2009-0950
CPE [?]: cpe:/a:apple:itunes
Exploited by Malware: True

Synopsis

The remote Mac OS X host contains an application that is affected by a buffer overflow vulnerability.

Description

The remote version of iTunes is older than 8.2. Such versions are affected by a stack-based buffer overflow that can be triggered when parsing 'itms:' URLs. If an attacker can trick a user on the affected host into clicking on a malicious link, he can leverage this issue to crash the affected application or to execute arbitrary code on the affected system subject to the user's privileges.

Solution

Upgrade to iTunes 8.2 or later.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the iTunes < 8.2 itms: URL Stack Overflow (Mac OS X) vulnerability:

  1. Metasploit: exploit/multi/browser/itms_overflow
    [Apple OS X iTunes 8.1.1 ITMS Overflow]
  2. Exploit-DB: exploits/osx/remote/8861.rb
    [EDB-8861: Apple iTunes 8.1.1 - 'ITMS' Multiple Protocol Handler Buffer Overflow (Metasploit)]
  3. Exploit-DB: exploits/windows/remote/8934.py
    [EDB-8934: Apple iTunes 8.1.1.10 (Windows) - 'itms/itcp' Remote Buffer Overflow]
  4. Exploit-DB: exploits/windows/remote/11138.c
    [EDB-11138: Apple iTunes 8.1.x - 'daap' Remote Buffer Overflow]
  5. Exploit-DB: exploits/osx/remote/16296.rb
    [EDB-16296: Apple iTunes 8.1.1 (Mac OSX) - ITms Overflow (Metasploit)]

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)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:8.8 (High)
Impact Subscore:5.9
Exploitability Subscore:2.8
CVSS Temporal Score:8.4 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.4 (High)

Go back to menu.

Plugin Source


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

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

include("compat.inc");

if (description)
{
  script_id(38987);
  script_version("1.17");
  script_cvs_date("Date: 2018/07/16 12:48:31");

  script_cve_id("CVE-2009-0950");
  script_bugtraq_id(35157);

  script_name(english:"iTunes < 8.2 itms: URL Stack Overflow (Mac OS X)");
  script_summary(english:"Checks version of iTunes");

  script_set_attribute( attribute:"synopsis", value:
"The remote Mac OS X host contains an application that is affected by a
buffer overflow vulnerability."  );
  script_set_attribute( attribute:"description", value:
"The remote version of iTunes is older than 8.2. Such versions are
affected by a stack-based buffer overflow that can be triggered
when parsing 'itms:' URLs.  If an attacker can trick a user on the
affected host into clicking on a malicious link, he can leverage
this issue to crash the affected application or to execute arbitrary
code on the affected system subject to the user's privileges."  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://support.apple.com/kb/HT3592"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://lists.apple.com/archives/security-announce/2009/Jun/msg00001.html"
  );
  script_set_attribute(
    attribute:"solution",
    value:"Upgrade to iTunes 8.2 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_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/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:'Apple OS X iTunes 8.1.1 ITMS Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_cwe_id(119);

  script_set_attribute(attribute:"plugin_publication_date", value: "2009/06/02");
  script_set_attribute(attribute:"patch_publication_date", value: "2009/06/01");

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

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

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

  script_dependencies("macosx_itunes_detect.nasl");
  script_require_keys("Host/MacOSX/Version", "installed_sw/iTunes");

  exit(0);
}

include("vcf.inc");

os = get_kb_item("Host/MacOSX/Version");
if (!os) audit(AUDIT_OS_NOT, "Mac OS X");

app_info = vcf::get_app_info(app:"iTunes");

constraints = [{"fixed_version" : "8.2"}];

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);

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

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

Go back to menu.

How to Run


Here is how to run the iTunes < 8.2 itms: URL Stack Overflow (Mac OS X) 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 iTunes < 8.2 itms: URL Stack Overflow (Mac OS X) plugin ID 38987.
  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_itunes_8_2.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
See also: Similar and related Nessus plugins:
  • 38986 - Apple iTunes < 8.2 itms: URI Handling Overflow (uncredentialed check)
  • 38985 - Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check)
  • 59499 - iTunes < 10.6.3 m3u Multiple Buffer Overflow Vulnerabilities (Mac OS X)
  • 41059 - iTunes < 9.0.1 PLS File Buffer Overflow (Mac OS X)
  • 16151 - iTunes < 4.7.1
  • 47682 - EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow
  • 58074 - Firefox < 10.0.2 png_decompress_chunk Integer Overflow (Mac OS X)
  • 58072 - Firefox 3.6.x < 3.6.27 png_decompress_chunk Integer Overflow (Mac OS X)
  • 73741 - Flash Player for Mac <= 11.7.700.275 / 13.0.0.201 Pixel Bender Component Buffer Overflow (APSB14-13)
  • 125892 - Fortinet FortiOS (Mac OS X) <= 5.4, 5.6.x < 5.6.8, 6.0.x < 6.0.5 SSL VPN Buffer Overflow (FG-IR-18-387) (deprecated)
  • 125893 - Fortinet FortiOS (Mac OS X) < 5.6.11, 6.0.x < 6.0.5 SSL VPN Heap Buffer Overflow (FG-IR-18-388) (deprecated)
  • 135851 - libssh2 < 1.8.1 Integer Overflow Vulnerability.
  • 71571 - Apple Motion < 5.1 OZDocument::parseElement() Function MOTN File Subview Attribute Handling Integer Overflow
  • 58075 - Thunderbird 10.x < 10.0.2 png_decompress_chunk Integer Overflow (Mac OS X)
  • 58073 - Thunderbird 3.1.x < 3.1.19 png_decompress_chunk Integer Overflow (Mac OS X)

Version


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

Go back to menu.