IPUX Cube Type CS303C IP Camera (UltraMJCamX.ocx) ActiveX Stack Buffer Overflow

Title: IPUX Cube Type CS303C IP Camera (UltraMJCamX.ocx) ActiveX Stack Buffer Overflow
Advisory ID: ZSL-2014-5214
Type: Local/Remote
Impact: System Access
Risk: (4/5)
Release Date: 02.12.2014
The device is Day and Night Cube Network camera with CMOS sensor. With Motion JPEG video compression, the file size of video stream is extremely reduced, as to optimize the network bandwidth efficiency. It has 3X digital zoom feature for a larger space monitoring. The ICS303C comes with a IR-cut filter and 4 built-in IR illuminators for both day and night applications.
The UltraMJCam ActiveX Control 'UltraMJCamX.ocx' suffers from a stack buffer overflow vulnerability when parsing large amount of bytes to several functions in UltraMJCamLib, 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.


(48d0.2e98): 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\UltraMJCamX.ocx -
eax=41414149 ebx=00000001 ecx=00002e98 edx=02636d5b esi=41414141 edi=02636d5b
eip=7796466c esp=0038ebf4 ebp=0038ec28 iopl=0 nv up ei pl zr na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010246
7796466c 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
Cube Type ICS303C (firmware: ICS303C 1.0.0-17 20140120 r1511)
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://www.exploit-db.com/exploits/35420/
[2] http://osvdb.org/show/osvdb/115368
[02.12.2014] - Initial release
[06.12.2014] - Added reference [2]
Zero Science Lab

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