[CVE-2013-1597] to dump the camera's memory and retrieve user credentials,

[CVE-2013-1598] to execute arbitrary commands from the administration web interface (pre-authentication with firmware 0300a and post-authentication with firmware 0400a).

4. Vulnerable Packages

Vivotek PT7135 IP camera with firmware 0300a.

Vivotek PT7135 IP camera with firmware 0400a.

Other Vivotek cameras/firmware are probably affected too, but they were not checked.

5. Non-Vulnerable Packages

Vendor did not provide details. Contact Vivotek for further information.

6. Vendor Information, Solutions and Workarounds

There was no official answer from Vivotek after several attempts to report these vulnerabilities (see [Sec. 9]). Contact vendor for further information.

Some mitigation actions may be:

Do not expose the camera to internet unless absolutely necessary.

Filter RTSP traffic (default port 554) if possible.

Have at least one proxy filtering /../../ and getparam.cgi in HTTP requests.

Filter strings in the parameter system.ntp on every request made to the binary farseer.out.

7. Credits

[CVE-2013-1594] was originally discovered and reported [2] by Alejandro Leon Morales [3] and re-discovered on new firmware versions by Flavio De Cristofaro from Core Security.

[CVE-2013-1595] and [CVE-2013-1596] were discovered and researched by Martin Rocha from Core Impact Pro Team. The PoC of [CVE-2013-1596] was made by Martin Rocha with help of Juan Cotta from Core QA Team.

[CVE-2013-1597] and [CVE-2013-1598] were discovered and researched by Francisco Falcon and Nahuel Riva from Core Exploit Writers Team.

The publication of this advisory was coordinated by Fernando Miranda from Core Advisories Team.

The following GET requests can exploit the vulnerability (requests may change according to firmware versions and vendors devices):

http://192.168.1.100/cgi-bin/admin/getparam.cgi

http://192.168.1.100/setup/parafile.html

8.2. Remote Buffer Overflow

[CVE-2013-1595] The following Python script can be used to trigger the vulnerability. This script will send to the RTSP service a specially crafted packet with the header field Authorization fully completed with the character a (0x61). As a result, the Instruction Pointer register (IP) will be overwritten with 0x61616161, which is a typical buffer overrun condition.

8.3. RTSP Authentication Bypass

[CVE-2013-1596] This vulnerability is triggered by sending specially crafted RTSP packets to remote TCP port 554 of a Vivotek PT7135 camera. As a result, the video stream can be accessed by an unauthenticated remote attacker.

8.4. User Credentials Leaked via Path Traversal

[CVE-2013-1597] The following Python code exploits a path traversal and dumps the camera's memory. Valid user credentials can be extracted from this memory dump by an unauthenticated remote attacker (firmware 0300a). The same attack is still valid with firmware 0400a but the user has to be authenticated in order to exploit this flaw.

9. Report Timeline

2013-03-06: CORE Security notifies the Vivotek Customer Support of the vulnerability (tracking ID CRM:00930113) and requests a security manager to send a draft report regarding these vulnerabilities. No reply received.

2013-03-11: CORE asks for a security manager to send a confidential report.

2013-03-14: CORE notifies the Vivotek Technical Support of the vulnerability (tracking ID CRM:00930485).

2013-03-18: CORE opens a new ticket in the Vivotek Technical Support (tracking ID CRM:00930670).

10. References

11. About CoreLabs

CoreLabs, the research center of CORE Security, is charged with anticipating the future needs and requirements for information security technologies. We conduct our research in several important areas of computer security including system vulnerabilities, cyber attack planning and simulation, source code auditing, and cryptography. Our results include problem formalization, identification of vulnerabilities, novel solutions and prototypes for new technologies. CoreLabs regularly publishes security advisories, technical papers, project information and shared software tools for public use at: http://corelabs.coresecurity.com.

12. About CORE Security

At CORE Security we help more than 1,400 customers worldwide preempt critical security threats throughout their IT environments, and communicate the risk the threats pose to the business. Our patented, proven, award-winning enterprise solutions are backed by more than 15 years of applied expertise from CoreLabs, the company's innovative security research center.

CORE Security's software solutions build on over a decade of trusted research and leading-edge threat expertise from the company's Security Consulting Services, CoreLabs and Engineering groups. CORE Security can be reached at +1 (617) 399-6980 or on the Web at: http://www.coresecurity.com.