ID CVE-2018-19986 Type cve Reporter cve@mitre.org Modified 2019-10-03T00:03:00
Description
In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the vulnerability affects D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices. In the SetRouterSettings.php source code, the RemotePort parameter is saved in the $path_inf_wan1."/web" internal configuration memory without any regex checking. And in the IPTWAN_build_command function of the iptwan.php source code, the data in $path_inf_wan1."/web" is used with the iptables command without any regex checking. A vulnerable /HNAP1/SetRouterSettings XML message could have shell metacharacters in the RemotePort element such as the telnetd string.
{"id": "CVE-2018-19986", "bulletinFamily": "NVD", "title": "CVE-2018-19986", "description": "In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the vulnerability affects D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices. In the SetRouterSettings.php source code, the RemotePort parameter is saved in the $path_inf_wan1.\"/web\" internal configuration memory without any regex checking. And in the IPTWAN_build_command function of the iptwan.php source code, the data in $path_inf_wan1.\"/web\" is used with the iptables command without any regex checking. A vulnerable /HNAP1/SetRouterSettings XML message could have shell metacharacters in the RemotePort element such as the `telnetd` string.", "published": "2019-05-13T14:29:00", "modified": "2019-10-03T00:03:00", "cvss": {"score": 10.0, "vector": "AV:N/AC:L/Au:N/C:C/I:C/A:C"}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19986", "reporter": "cve@mitre.org", "references": ["https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990"], "cvelist": ["CVE-2018-19986"], "type": "cve", "lastseen": "2021-02-02T06:52:34", "edition": 5, "viewCount": 17, "enchantments": {"dependencies": {"references": [], "modified": "2021-02-02T06:52:34", "rev": 2}, "score": {"value": 2.7, "vector": "NONE", "modified": "2021-02-02T06:52:34", "rev": 2}, "vulnersScore": 2.7}, "cpe": ["cpe:/o:d-link:dir-818lw_firmware:2.05.b03", "cpe:/o:d-link:dir-822_firmware:202krb06"], "affectedSoftware": [{"cpeName": "d-link:dir-822_firmware", "name": "d-link dir-822 firmware", "operator": "eq", "version": "202krb06"}, {"cpeName": "d-link:dir-818lw_firmware", "name": "d-link dir-818lw firmware", "operator": "eq", "version": "2.05.b03"}], "cvss2": {"acInsufInfo": false, "cvssV2": {"accessComplexity": "LOW", "accessVector": "NETWORK", "authentication": "NONE", "availabilityImpact": "COMPLETE", "baseScore": 10.0, "confidentialityImpact": "COMPLETE", "integrityImpact": "COMPLETE", "vectorString": "AV:N/AC:L/Au:N/C:C/I:C/A:C", "version": "2.0"}, "exploitabilityScore": 10.0, "impactScore": 10.0, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "HIGH", "userInteractionRequired": false}, "cvss3": {"cvssV3": {"attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 9.8, "baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "version": "3.0"}, "exploitabilityScore": 3.9, "impactScore": 5.9}, "cpe23": ["cpe:2.3:o:d-link:dir-822_firmware:202krb06:*:*:*:*:*:*:*", "cpe:2.3:o:d-link:dir-818lw_firmware:2.05.b03:*:*:*:*:*:*:*"], "cwe": ["CWE-78"], "scheme": null, "affectedConfiguration": [{"cpeName": "d-link:dir-818lw", "name": "d-link dir-818lw", "operator": "eq", "version": "-"}, {"cpeName": "d-link:dir-822", "name": "d-link dir-822", "operator": "eq", "version": "-"}], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"children": [{"cpe_match": [{"cpe23Uri": "cpe:2.3:o:d-link:dir-818lw_firmware:2.05.b03:*:*:*:*:*:*:*", "vulnerable": true}], "operator": "OR"}, {"cpe_match": [{"cpe23Uri": "cpe:2.3:h:d-link:dir-818lw:-:*:*:*:*:*:*:*", "vulnerable": false}], "operator": "OR"}], "operator": "AND"}, {"children": [{"cpe_match": [{"cpe23Uri": "cpe:2.3:o:d-link:dir-822_firmware:202krb06:*:*:*:*:*:*:*", "vulnerable": true}], "operator": "OR"}, {"cpe_match": [{"cpe23Uri": "cpe:2.3:h:d-link:dir-822:-:*:*:*:*:*:*:*", "vulnerable": false}], "operator": "OR"}], "operator": "AND"}]}, "extraReferences": [{"name": "https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990", "refsource": "MISC", "tags": ["Third Party Advisory", "Exploit"], "url": "https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990"}]}