Vulnerabilities > CVE-2007-0051 - Use of Externally-Controlled Format String vulnerability in Apple Iphoto 6.0.5

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
apple
CWE-134
nessus
exploit available

Summary

Format string vulnerability in Apple iPhoto 6.0.5 (316), and other versions before 6.0.6, allows remote user-assisted attackers to execute arbitrary code via a crafted photocast with format string specifiers in the title of an RSS iPhoto feed.

Vulnerable Configurations

Part Description Count
Application
Apple
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Format String Injection
    An attacker includes formatting characters in a string input field on the target application. Most applications assume that users will provide static text and may respond unpredictably to the presence of formatting character. For example, in certain functions of the C programming languages such as printf, the formatting character %s will print the contents of a memory location expecting this location to identify a string and the formatting character %n prints the number of DWORD written in the memory. An attacker can use this to read or write to memory locations or files, or simply to manipulate the value of the resulting text in unexpected ways. Reading or writing memory may result in program crashes and writing memory could result in the execution of arbitrary code if the attacker can write to the program stack.
  • String Format Overflow in syslog()
    This attack targets the format string vulnerabilities in the syslog() function. An attacker would typically inject malicious input in the format string parameter of the syslog function. This is a common problem, and many public vulnerabilities and associated exploits have been posted.

Exploit-Db

descriptioniLife iPhoto Photocast (XML title) Remote Format String PoC. CVE-2007-0051. Dos exploit for osx platform
fileexploits/osx/dos/3080.rb
idEDB-ID:3080
last seen2016-01-31
modified2007-01-04
platformosx
port
published2007-01-04
reporterMoAB
sourcehttps://www.exploit-db.com/download/3080/
titleiLife iPhoto Photocast XML title Remote Format String PoC
typedos

Nessus

NASL familyMacOS X Local Security Checks
NASL idMACOSX_IPHOTO606.NASL
descriptionThe remote host is running a version of iPhoto 6 that is older than version 6.0.6. As such, it contains a security vulnerability that may allow an attacker to execute arbitrary code on this host. To exploit this flaw, an attacker would need to lure a user on the remote host into subscribing to a malicious photocast album
last seen2019-10-28
modified2007-03-13
plugin id24812
published2007-03-13
reporterThis script is Copyright (C) 2007-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/24812
titleiPhoto < 6.0.6
code
#TRUSTED 01c630600dccec610f07db92155f6fc4ecc7e3f5c665c3ac1377e5288f61c1feef212cf6c2f876ac2f0294c048a575e2f6b8631b16b29a821bbfd7a3354281eb113daf2bf01824cfaf3880b03ab4159edf0b1ba1fe09d700f8d3a202250cb623b60fddd0378e6652d74a75954b42657b813b08630711015e5030623c456510d8b767f8934afd578d025b9ad5c05b8bbf6096690f62eca9c6f74acd2f774b54f1955d07cdf72006bfb42982bffff9a2d6a115d7dc694d73118de27c53729664e67200f7e3ed7d679c3eb091c60a1bce00a1edca368938d66a491924c19b0bba882adb423d183dbb65d6744193dee5b0b709d98714a8a8546e53d8247fe6a58cf72c78df3a41f44a9d5d1b8c4d928ca0c67f2735e523a51f05c2e058bb88804c284f44e6efb0cc8513b1753af699adb591877f59877d3d78da6511ad9a4de64cf61e2967eadff5e2e0898021a7ea10bd8835aac98c74e2d16bb363d86876f30075395e496025b358205f95b7470fb5b4918aa1b0042ed8aad7e5912681ebdc59aee388411677c354c6c56caedd0397f6e54ad6ec29997c01ca4074c094e04af473b0531870ddf24f77b4f6b42893059e71f70069d272ef5255f1c6402f0c9b64695a19a20b167fe2ed63431c941dcf45c38a3c4077b1f17ea905e3a7a0f9b333979e70d2b4aaa745b2f85a4d992437f491aeaacd8cc3537a13775ad7a55ba64d6d
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
 script_id(24812);
 script_version("1.16");
 script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14");

 script_cve_id("CVE-2007-0051");
 script_bugtraq_id(21871);

 script_name(english:"iPhoto < 6.0.6");
 script_summary(english:"Check for iPhoto 6.0.6");

 script_set_attribute(attribute:"synopsis", value:
"The remote system is missing a security update");
 script_set_attribute(attribute:"description", value:
"The remote host is running a version of iPhoto 6 that is older than
version 6.0.6.  As such, it contains a security vulnerability that may
allow an attacker to execute arbitrary code on this host. 

To exploit this flaw, an attacker would need to lure a user on the
remote host into subscribing to a malicious photocast album");
 script_set_attribute(attribute:"solution", value:
"http://docs.info.apple.com/article.html?artnum=305215");
 script_set_attribute(attribute:"see_also", value:"http://docs.info.apple.com/article.html?artnum=305215");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:POC/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:"vuln_publication_date", value:"2007/01/04");
 script_set_attribute(attribute:"patch_publication_date", value:"2005/07/19");
 script_set_attribute(attribute:"plugin_publication_date", value:"2007/03/13");

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

 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);
}


include("misc_func.inc");
include("ssh_func.inc");
include("macosx_func.inc");



if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
  enable_ssh_wrappers();
else disable_ssh_wrappers();

cmd = GetBundleVersionCmd(file:"iPhoto.app", path:"/Applications");
uname = get_kb_item("Host/uname");
if ( egrep(pattern:"Darwin.*", string:uname) )
{
  if ( islocalhost() )
   buf = pread(cmd:"/bin/bash", argv:make_list("bash", "-c", cmd));
  else
  {
   ret = ssh_open_connection();
   if ( ! ret ) exit(0);
   buf = ssh_cmd(cmd:cmd);
   ssh_close_connection();
  }

 if (buf !~ "^[0-9]") exit(1, "Failed to get version - '"+buf+"'.");
 if ( buf )
 {
  vers = split(buf, sep:'.', keep:FALSE);
  if ( int(vers[0]) == 6 && int(vers[1]) == 0 && int(vers[2]) < 6  ) security_warning(0);
 }
}