IPUX CL5452/CL5132 IP Camera (UltraSVCamX.ocx) ActiveX Stack Buffer Overflow

Title: IPUX CL5452/CL5132 IP Camera (UltraSVCamX.ocx) ActiveX Stack Buffer Overflow
Advisory ID: ZSL-2014-5213
Type: Local/Remote
Impact: System Access
Risk: (4/5)
Release Date: 02.12.2014
The device is H.264 Wired/Wireless IP Camera with 1.3 Mega-pixel sensor. With high performance H.264 video compression, the file size of video stream is extremely reduced, as to optimize the network bandwidth efficiency. It has full Pan/Tilt function and 3X digital zoom feature for a larger space monitoring. The built-in USB port provides a convenient and portable storage option for local storage of event and schedule recording, especially network disconnected.
The UltraSVCam ActiveX Control 'UltraSVCamX.ocx' suffers from a stack buffer overflow vulnerability when parsing large amount of bytes to several functions in UltraSVCamLib, resulting in memory corruption overwriting several registers including the SEH. An attacker can gain access to the system of the affected node and execute arbitrary code.


(3ef0.3e0c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\Downloaded Program Files\UltraSVCamX.ocx -
eax=41414149 ebx=00000001 ecx=00003e0c edx=02163f74 esi=41414141 edi=02163f74
eip=77e8466c esp=003eef8c ebp=003eefc0 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010246
77e8466c 833800 cmp dword ptr [eax],0 ds:002b:41414149=????????


Big Good Holdings Limited - http://www.ipux.net
Fitivision Technology Inc. - http://www.fitivision.com
Affected Version
Bullet Type ICL5132 (firmware: ICL5132 2.0.0-2 20130730 r1112)
Bullet Type ICL5452
Tested On
Microsoft Windows 7 Professional SP1 (EN)
Vendor Status
[16.11.2014] Vulnerability discovered.
[30.11.2014] Vendor contacted.
[02.12.2014] No reply from the vendor.
[02.12.2014] Public security advisory released.
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
[1] http://packetstormsecurity.com/files/129346
[2] http://cxsecurity.com/issue/WLB-2014120006
[3] http://www.exploit-db.com/exploits/35421/
[4] http://www.securityfocus.com/bid/71403
[5] http://www.securityfocus.com/bid/71405
[6] http://osvdb.org/show/osvdb/115369
[02.12.2014] - Initial release
[04.12.2014] - Added reference [4] and [5]
[06.12.2014] - Added reference [6]
Zero Science Lab

Web: http://www.zeroscience.mk
e-mail: lab@zeroscience.mk