Vulnerabilities > CVE-2008-2304 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Apple Core Image FUN House

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
apple
CWE-119
exploit available

Summary

Buffer overflow in Apple Core Image Fun House 2.0 and earlier in CoreImage Examples in Xcode tools before 3.1 allows user-assisted attackers to execute arbitrary code or cause a denial of service (application crash) via a .funhouse file with a string XML element that contains many characters.

Vulnerable Configurations

Part Description Count
Application
Apple
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionCore Image Fun House <= 2.0 Arbitrary Code Execution PoC (OSX). CVE-2008-2304. Dos exploit for osx platform
fileexploits/osx/dos/6043.rb
idEDB-ID:6043
last seen2016-01-31
modified2008-07-11
platformosx
port
published2008-07-11
reporterAdriel T. Desautels
sourcehttps://www.exploit-db.com/download/6043/
titleCore Image Fun House <= 2.0 - Arbitrary Code Execution PoC OSX
typedos

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 30189 CVE(CAN) ID: CVE-2008-2304 Xcode是苹果机器上所使用的开发工具。 Xcode工具中包含有名为Core Image Fun House的示例应用程序,用于处理带有.funhouse扩展名的内容。Funhouse应用没有正确地解析XML数据,如果用户受骗打开了特制的.funhouse文件的话,就可能触发缓冲区溢出。以下是负责解析上述文件的代码: // render origin handles using AppKit directly - - (CIImage *)drawPoints:(CIImage *)im { ... ~ NSString *str, *str2, *localizedParameter; ... ~ else if ([type isEqualToString:@&quot;image&quot;]) ~ { ~ // image effect stack element ~ // show an image origin (in its center) ~ CGRect r = [[es imageAtIndex:i] extent]; ~ NSPoint offset = [es offsetAtIndex:i]; ~ pt.x = offset.x + (r.origin.x + r.size.width * 0.5); ~ pt.y = offset.y + (r.origin.y + r.size.height * 0.5); ~ str = [[es filenameAtIndex:i] stringByAppendingString:@&quot; center&quot;]; ~ [self drawPoint:pt label:str intoContext:cg]; ~ } } 上述代码会调用以下代码: /* ~ Drawing */ // draw an onscreen handle for an image origin, text origin, or filter point // the handle is a &quot;center symbol&quot; - a circle with crosshairs through it. // the handle is labelled with the string &quot;str&quot;. // all items are &quot;shadowed&quot; - - (void)drawPoint:(NSPoint)pt label:(NSString *)str intoContext:(CGContextRef)cg { ... ~ char cstr[256]; ... ~ if (!movingNow) ~ { ~ [str getCString:cstr]; &lt;-- Vulnerability Exists Here Apple XCode 2.0 - 3.0 临时解决方法: * 用[str getCString:cstr maxLength:254]替换有漏洞代码段中的[str getCString:cstr]。 厂商补丁: Apple ----- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://www.apple.com target=_blank>http://www.apple.com</a>
idSSV:3610
last seen2017-11-19
modified2008-07-14
published2008-07-14
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-3610
titleApple Xcode工具.funhouse文件XML数据处理缓冲区溢出漏洞