ID

VAR-201907-1064


CVE

CVE-2017-8404


TITLE

D-Link DCS-1130 Command injection vulnerability in devices

Trust: 0.8

sources: JVNDB: JVNDB-2017-014551

DESCRIPTION

An issue was discovered on D-Link DCS-1130 devices. The device provides a user with the capability of setting a SMB folder for the video clippings recorded by the device. It seems that the POST parameters passed in this request (to test if email credentials and hostname sent to the device work properly) result in being passed as commands to a "system" API in the function and thus result in command injection on the device. If the firmware version is dissected using binwalk tool, we obtain a cramfs-root archive which contains the filesystem set up on the device that contains all the binaries. The library "libmailutils.so" is the one that has the vulnerable function "sub_1FC4" that receives the values sent by the POST request. If we open this binary in IDA-pro we will notice that this follows an ARM little endian format. The function sub_1FC4 in IDA pro is identified to be receiving the values sent in the POST request and the value set in POST parameter "receiver1" is extracted in function "sub_15AC" which is then passed to the vulnerable system API call. The vulnerable library function is accessed in "cgibox" binary at address 0x0008F598 which calls the "mailLoginTest" function in "libmailutils.so" binary as shown below which results in the vulnerable POST parameter being passed to the library which results in the command injection issue. D-Link DCS-1130 The device contains a command injection vulnerability.Information is obtained, information is altered, and service operation is disrupted (DoS) There is a possibility of being put into a state. D-LinkDCS-1130 is a network camera of D-Link Corporation of Taiwan, China. A command injection vulnerability exists in the Video feature in the D-LinkDCS-1130. An attacker could exploit the vulnerability to control the device and execute arbitrary code. This vulnerability stems from the fact that the network system or product does not correctly filter special elements in the process of constructing executable commands from external input data

Trust: 2.34

sources: NVD: CVE-2017-8404 // JVNDB: JVNDB-2017-014551 // CNVD: CNVD-2019-21077 // VULHUB: VHN-116607 // VULMON: CVE-2017-8404

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2019-21077

AFFECTED PRODUCTS

vendor:d linkmodel:dcs-1130scope: - version: -

Trust: 1.4

vendor:dlinkmodel:dcs-1130scope:eqversion: -

Trust: 1.0

sources: CNVD: CNVD-2019-21077 // JVNDB: JVNDB-2017-014551 // NVD: CVE-2017-8404

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2017-8404
value: CRITICAL

Trust: 1.0

NVD: CVE-2017-8404
value: CRITICAL

Trust: 0.8

CNVD: CNVD-2019-21077
value: HIGH

Trust: 0.6

CNNVD: CNNVD-201907-130
value: CRITICAL

Trust: 0.6

VULHUB: VHN-116607
value: HIGH

Trust: 0.1

VULMON: CVE-2017-8404
value: HIGH

Trust: 0.1

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

Trust: 1.9

CNVD: CNVD-2019-21077
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-116607
severity: HIGH
baseScore: 10.0
vectorString: AV:N/AC:L/AU:N/C:C/I:C/A:C
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: COMPLETE
integrityImpact: COMPLETE
availabilityImpact: COMPLETE
exploitabilityScore: 10.0
impactScore: 10.0
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

nvd@nist.gov: CVE-2017-8404
baseSeverity: CRITICAL
baseScore: 9.8
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
exploitabilityScore: 3.9
impactScore: 5.9
version: 3.1

Trust: 1.0

NVD: CVE-2017-8404
baseSeverity: CRITICAL
baseScore: 9.8
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
exploitabilityScore: NONE
impactScore: NONE
version: 3.0

Trust: 0.8

sources: CNVD: CNVD-2019-21077 // VULHUB: VHN-116607 // VULMON: CVE-2017-8404 // JVNDB: JVNDB-2017-014551 // CNNVD: CNNVD-201907-130 // NVD: CVE-2017-8404

PROBLEMTYPE DATA

problemtype:CWE-77

Trust: 1.9

sources: VULHUB: VHN-116607 // JVNDB: JVNDB-2017-014551 // NVD: CVE-2017-8404

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201907-130

TYPE

command injection

Trust: 0.6

sources: CNNVD: CNNVD-201907-130

CONFIGURATIONS

sources: JVNDB: JVNDB-2017-014551

PATCH

title:DCS-1130url:https://eu.dlink.com/uk/en/products/dcs-1130-wireless-n-network-camera

Trust: 0.8

title:IoT_vulnerabilitiesurl:https://github.com/ethanhunnt/IoT_vulnerabilities

Trust: 0.1

sources: VULMON: CVE-2017-8404 // JVNDB: JVNDB-2017-014551

EXTERNAL IDS

db:NVDid:CVE-2017-8404

Trust: 3.3

db:PACKETSTORMid:153226

Trust: 2.5

db:JVNDBid:JVNDB-2017-014551

Trust: 0.8

db:CNNVDid:CNNVD-201907-130

Trust: 0.7

db:CNVDid:CNVD-2019-21077

Trust: 0.6

db:VULHUBid:VHN-116607

Trust: 0.1

db:VULMONid:CVE-2017-8404

Trust: 0.1

sources: CNVD: CNVD-2019-21077 // VULHUB: VHN-116607 // VULMON: CVE-2017-8404 // JVNDB: JVNDB-2017-014551 // PACKETSTORM: 153226 // CNNVD: CNNVD-201907-130 // NVD: CVE-2017-8404

REFERENCES

url:https://github.com/ethanhunnt/iot_vulnerabilities/blob/master/dlink_dcs_1130_security.pdf

Trust: 3.2

url:http://packetstormsecurity.com/files/153226/dlink-dcs-1130-command-injection-csrf-stack-overflow.html

Trust: 3.0

url:https://seclists.org/bugtraq/2019/jun/8

Trust: 2.4

url:https://nvd.nist.gov/vuln/detail/cve-2017-8404

Trust: 1.5

url:https://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2017-8404

Trust: 0.8

url:https://cwe.mitre.org/data/definitions/77.html

Trust: 0.1

url:https://nvd.nist.gov

Trust: 0.1

url:https://github.com/ethanhunnt/iot_vulnerabilities

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8408

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8413

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8405

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8406

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8410

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8412

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8409

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8415

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8417

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8416

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8411

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8407

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2017-8414

Trust: 0.1

sources: CNVD: CNVD-2019-21077 // VULHUB: VHN-116607 // VULMON: CVE-2017-8404 // JVNDB: JVNDB-2017-014551 // PACKETSTORM: 153226 // CNNVD: CNNVD-201907-130 // NVD: CVE-2017-8404

CREDITS

Mandar Satam

Trust: 0.1

sources: PACKETSTORM: 153226

SOURCES

db:CNVDid:CNVD-2019-21077
db:VULHUBid:VHN-116607
db:VULMONid:CVE-2017-8404
db:JVNDBid:JVNDB-2017-014551
db:PACKETSTORMid:153226
db:CNNVDid:CNNVD-201907-130
db:NVDid:CVE-2017-8404

LAST UPDATE DATE

2024-11-23T21:37:04.949000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2019-21077date:2019-07-04T00:00:00
db:VULHUBid:VHN-116607date:2019-07-08T00:00:00
db:VULMONid:CVE-2017-8404date:2021-04-26T00:00:00
db:JVNDBid:JVNDB-2017-014551date:2019-07-09T00:00:00
db:CNNVDid:CNNVD-201907-130date:2021-04-27T00:00:00
db:NVDid:CVE-2017-8404date:2024-11-21T03:33:58.043

SOURCES RELEASE DATE

db:CNVDid:CNVD-2019-21077date:2019-07-04T00:00:00
db:VULHUBid:VHN-116607date:2019-07-02T00:00:00
db:VULMONid:CVE-2017-8404date:2019-07-02T00:00:00
db:JVNDBid:JVNDB-2017-014551date:2019-07-09T00:00:00
db:PACKETSTORMid:153226date:2019-06-07T15:06:02
db:CNNVDid:CNNVD-201907-130date:2019-07-02T00:00:00
db:NVDid:CVE-2017-8404date:2019-07-02T19:15:10.413