Saturday, February 27, 2021

Trojan-Spy.Win32.SpyEyes.elr Insecure Permissions

Discovery / credits: Malvuln - malvuln.com (c) 2021
Original source: https://malvuln.com/advisory/025d07f4610605031e501e6745d663aa.txt
Contact: [email protected]
Media: twitter.com/malvuln

Threat: Trojan-Spy.Win32.SpyEyes.elr
Vulnerability: Insecure Permissions
Description: The malware creates an insecure hidden dir named "40404504504" under c:\ drive, granting change (C) permissions to the authenticated user group. Standard users can rename the malware and reboot to disable it or replace with their own executable to escalate privileges when a privileged user logs on to the infected machine.
Type: PE32
MD5: 025d07f4610605031e501e6745d663aa
Vuln ID: MVID-2021-0112
Dropped files: 40404504504.exe, config.bin
Disclosure: 02/25/2021

Exploit/PoC:
#include "stdio.h"
#include "windows.h"

void main(void){

system("attrib -h C:\\40404504504\\40404504504.exe");
system("RENAME C:\\40404504504\\40404504504.exe 13");

puts("[+] Disabled by renaming C:\\40404504504\\40404504504.exe to 13 ...\n");

puts("[+] Trojan-Spy.Win32.SpyEyes.elr PWNED!");
puts("[+] MD5: 025d07f4610605031e501e6745d663aa");
puts("[+] By Malvuln");
system("pause");
}


C:\>cacls \40404504504
C:\40404504504 BUILTIN\Administrators:(OI)(CI)(ID)F
NT AUTHORITY\SYSTEM:(OI)(CI)(ID)F
BUILTIN\Users:(OI)(CI)(ID)R
NT AUTHORITY\Authenticated Users:(ID)C
NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)(ID)C

C:\40404504504>dir
Volume in drive C has no label.

Directory of C:\40404504504

02/10/2018 12:21 AM 111,616 40404504504.exe
02/25/2021 10:19 PM 8,056 config.bin
2 File(s) 119,672 bytes


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).
 

Copyright © 2020 Cyber Details - Vulnerability Database™

Thanks for everything Templateism - You should have written the code a little more complicated