Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check) - Nessus

High   Plugin ID: 38985

This page contains detailed information about the Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 38985
Name: Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check)
Filename: itunes_8_2.nasl
Vulnerability Published: N/A
This Plugin Published: 2009-06-02
Last Modification Time: 2018-07-13
Plugin Version: 1.17
Plugin Type: local
Plugin Family: Windows
Dependencies: itunes_detect.nasl
Required KB Items [?]: SMB/iTunes/Version

Vulnerability Information


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

Synopsis

The remote Windows host contains an application that is affected by a buffer overflow vulnerability.

Description

The remote version of Apple 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 Apple 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 Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check) 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)

Go back to menu.

Plugin Source


This is the 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(38985);
  script_version("1.17");

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

  script_name(english:"Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check)");
  script_summary(english:"Checks version of iTunes on Windows");

  script_set_attribute( attribute:"synopsis", value:
"The remote Windows host contains an application that is affected by a
buffer overflow vulnerability."  );
  script_set_attribute( attribute:"description", value:
"The remote version of Apple 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 Apple 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_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_cvs_date("Date: 2018/07/13 15:08:46");
  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:"Windows");
  script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");
  script_dependencies("itunes_detect.nasl");
  script_require_keys("SMB/iTunes/Version");

  exit(0);
}


include ("global_settings.inc");


version = get_kb_item("SMB/iTunes/Version");
if (isnull(version)) exit(0);

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

if(
  ver[0] < 8 ||
  (
    ver[0] == 8 &&
    (
      ver[1] < 2 ||
      (
        ver[1] == 2 && ver[2] == 0 && ver[3] < 23
      )
    )
  )
)
{
  if (report_verbosity > 0)
  {
    report = string(
      "\n",
      "iTunes ", version, " is installed on the remote host.\n"
    );
    security_hole(port:get_kb_item("SMB/transport"), extra:report);
  }
  else security_hole(get_kb_item("SMB/transport"));
}

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

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

Go back to menu.

How to Run


Here is how to run the Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check) 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 Windows plugin family.
  6. On the right side table select Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check) plugin ID 38985.
  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 itunes_8_2.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a 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 - 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 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)
  • 38987 - iTunes < 8.2 itms: URL Stack Overflow (Mac OS X)
  • 52534 - Apple iTunes < 10.2 Multiple Vulnerabilities (credentialed check)
  • 56469 - Apple iTunes < 10.5 Multiple Vulnerabilities (credentialed check)
  • 59497 - Apple iTunes < 10.6.3 Multiple Vulnerabilities (credentialed check)
  • 66498 - Apple iTunes < 11.0.3 Multiple Vulnerabilities (credentialed check)
  • 70588 - Apple iTunes < 11.1.2 Multiple Vulnerabilities (credentialed check)
  • 72104 - Apple iTunes < 11.1.4 Multiple Vulnerabilities (credentialed check)
  • 78597 - Apple iTunes < 12.0.1 Multiple Vulnerabilities (credentialed check)
  • 131132 - Apple iTunes < 12.10.2 Multiple Vulnerabilities (credentialed check)
  • 132416 - Apple iTunes < 12.10.3 Multiple Vulnerabilities (credentialed check)
  • 134222 - Apple iTunes < 12.10.4 Multiple Vulnerabilities (credentialed check)
  • 135032 - Apple iTunes < 12.10.5 Multiple Vulnerabilities (credentialed check) (HT211105)
  • 152751 - Apple iTunes < 12.11.4 Multiple Vulnerabilities (credentialed check)
  • 86001 - Apple iTunes < 12.3 Multiple Vulnerabilities (credentialed check)
  • 100300 - Apple iTunes < 12.6.1 WebKit Memory Corruption RCE (credentialed check)
  • 101954 - Apple iTunes < 12.6.2 Multiple Vulnerabilities (credentialed check)
  • 100025 - Apple iTunes < 12.6 Multiple Vulnerabilities (credentialed check)
  • 104359 - Apple iTunes < 12.7.1 WebKit Multiple Vulnerabilities (credentialed check)
  • 108795 - Apple iTunes < 12.7.4 WebKit Multiple Vulnerabilities (credentialed check)
  • 110384 - Apple iTunes < 12.7.5 Multiple Vulnerabilities (credentialed check)
  • 103506 - Apple iTunes < 12.7 WebKit Multiple Vulnerabilities (credentialed check)
  • 111105 - Apple iTunes < 12.8 Multiple Vulnerabilities (credentialed check)
  • 118718 - Apple iTunes < 12.9.1 Multiple Vulnerabilities (credentialed check)
  • 119767 - Apple iTunes < 12.9.2 Multiple Vulnerabilities (credentialed check)
  • 121473 - Apple iTunes < 12.9.3 Multiple Vulnerabilities (credentialed check)
  • 126476 - Apple iTunes for Windows < 12.9.5 Multiple Vulnerabilities (credentialed check)
  • 127047 - Apple iTunes < 12.9.6 Multiple Vulnerabilities (credentialed check)
  • 117880 - Apple iTunes < 12.9 Multiple Vulnerabilities (credentialed check)
  • 41060 - Apple iTunes < 9.0.1 PLS File Buffer Overflow (credentialed check)
  • 45390 - Apple iTunes < 9.1 Multiple Vulnerabilities (credentialed check)
  • 47037 - Apple iTunes < 9.2 Multiple Vulnerabilities (credentialed check)

Version


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

Go back to menu.