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

High   Plugin ID: 38986

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

Plugin Overview


ID: 38986
Name: Apple iTunes < 8.2 itms: URI Handling Overflow (uncredentialed check)
Filename: itunes_8_2_banner.nasl
Vulnerability Published: 2009-06-01
This Plugin Published: 2009-06-02
Last Modification Time: 2018-07-13
Plugin Version: 1.20
Plugin Type: remote
Plugin Family: Peer-To-Peer File Sharing
Dependencies: itunes_sharing.nasl
Required KB Items [?]: iTunes/sharing

Vulnerability Information


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

Synopsis

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

Description

The version of Apple iTunes on the remote host is prior to version 8.2. It is, therefore, affected by a stack-based buffer overflow that can be triggered when parsing 'itms:' URLs. By convincing a user to click on a specially crafted link, a remote attacker can cause a denial of service or execute arbitrary code with the user's level of privileges.

Solution

Upgrade to Apple iTunes 8.2 or later.

Public Exploits


Target Network Port(s): 3689
Target Asset(s): Services/www
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 (uncredentialed 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_banner.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(38986);
  script_version("1.20");
  script_cvs_date("Date: 2018/07/13 15:08:46");

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

  script_name(english:"Apple iTunes < 8.2 itms: URI Handling Overflow (uncredentialed check)");
  script_summary(english:"Checks the version of iTunes.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host contains an application that is affected by a buffer
overflow vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Apple iTunes on the remote host is prior to version
8.2. It is, therefore, affected by a stack-based buffer overflow that
can be triggered when parsing 'itms:' URLs. By convincing a user to
click on a specially crafted link, a remote attacker can cause a
denial of service or execute arbitrary code with the user's level of
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:"vuln_publication_date", value:"2009/06/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2009/06/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2009/06/02");

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

  script_category(ACT_GATHER_INFO);
  script_family(english:"Peer-To-Peer File Sharing");
  script_copyright(english:"This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.");

  script_dependencies("itunes_sharing.nasl");
  script_require_keys("iTunes/sharing");
  script_require_ports("Services/www", 3689);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:3689, embedded:TRUE, ignore_broken:TRUE);

get_kb_item_or_exit("iTunes/" + port + "/enabled");

type = get_kb_item_or_exit("iTunes/" + port + "/type");
source = get_kb_item_or_exit("iTunes/" + port + "/source");
version = get_kb_item_or_exit("iTunes/" + port + "/version");

if (type == 'AppleTV') audit(AUDIT_LISTEN_NOT_VULN, "iTunes on AppleTV", port, version);

fixed_version = "8.2";

if (ver_compare(ver:version, fix:fixed_version, strict:FALSE) == -1)
{
  if (report_verbosity > 0)
  {
    report = '\n  Version source     : ' + source +
             '\n  Installed version  : ' + version +
             '\n  Fixed version      : ' + fixed_version + '\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
}
else audit(AUDIT_LISTEN_NOT_VULN, "iTunes", port, version);

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

Go back to menu.

How to Run


Here is how to run the Apple iTunes < 8.2 itms: URI Handling Overflow (uncredentialed 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 Peer-To-Peer File Sharing plugin family.
  6. On the right side table select Apple iTunes < 8.2 itms: URI Handling Overflow (uncredentialed check) plugin ID 38986.
  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_banner.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a itunes_8_2_banner.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_banner.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_banner.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:
  • 38985 - Apple iTunes < 8.2 itms: URI Handling Overflow (credentialed check)
  • 38987 - iTunes < 8.2 itms: URL Stack Overflow (Mac OS X)
  • 52535 - Apple iTunes < 10.2 Multiple Vulnerabilities (uncredentialed check)
  • 56470 - Apple iTunes < 10.5 Multiple Vulnerabilities (uncredentialed check)
  • 59498 - Apple iTunes < 10.6.3 Multiple Vulnerabilities (uncredentialed check)
  • 66499 - Apple iTunes < 11.0.3 Multiple Vulnerabilities (uncredentialed check)
  • 70589 - Apple iTunes < 11.1.2 Multiple Vulnerabilities (uncredentialed check)
  • 72105 - Apple iTunes < 11.1.4 Multiple Vulnerabilities (uncredentialed check)
  • 78598 - Apple iTunes < 12.0.1 Multiple Vulnerabilities (uncredentialed check)
  • 132415 - Apple iTunes < 12.10.3 Multiple Vulnerabilities (uncredentialed check)
  • 134221 - Apple iTunes < 12.10.4 Multiple Vulnerabilities (uncredentialed check)
  • 135031 - Apple iTunes < 12.10.5 Multiple Vulnerabilities (uncredentialed check) (HT211105)
  • 152752 - Apple iTunes < 12.11.4 Multiple Vulnerabilities (uncredentialed check)
  • 86601 - Apple iTunes < 12.3 Multiple Vulnerabilities (uncredentialed check)
  • 100301 - Apple iTunes < 12.6.1 WebKit Memory Corruption RCE (uncredentialed check)
  • 101955 - Apple iTunes < 12.6.2 Multiple Vulnerabilities (uncredentialed check)
  • 100026 - Apple iTunes < 12.6 Multiple Vulnerabilities (uncredentialed check)
  • 104360 - Apple iTunes < 12.7.1 WebKit Multiple Vulnerabilities (uncredentialed check)
  • 108796 - Apple iTunes < 12.7.3 WebKit Multiple Vulnerabilities (uncredentialed check)
  • 110383 - Apple iTunes < 12.7.5 Multiple Vulnerabilities (uncredentialed check)
  • 103507 - Apple iTunes < 12.7 WebKit Multiple Vulnerabilities (uncredentialed check)
  • 117878 - Apple iTunes < 12.8 Multiple Vulnerabilities (uncredentialed check)
  • 118717 - Apple iTunes < 12.9.1 Multiple Vulnerabilities (uncredentialed check)
  • 126475 - Apple iTunes for Windows < 12.9.5 Multiple Vulnerabilities (uncredentialed check)
  • 127046 - Apple iTunes < 12.9.6 Multiple Vulnerabilities (uncredentialed check)
  • 117879 - Apple iTunes < 12.9 Multiple Vulnerabilities (uncredentialed check)
  • 41061 - Apple iTunes < 9.0.1 PLS File Buffer Overflow (uncredentialed check)
  • 45391 - Apple iTunes < 9.1 Multiple Vulnerabilities (uncredentialed check)
  • 47038 - Apple iTunes < 9.2 Multiple Vulnerabilities (uncredentialed check)
  • 21041 - PeerCast procConnectArgs() Function URL Handling Remote Overflow
  • 29726 - PeerCast servhs.cpp handshakeHTTP Function SOURCE Request Remote Overflow

Version


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

Go back to menu.