cbcvebase.
CVE-2018-10822
published 2018-10-17

CVE-2018-10822: Directory traversal vulnerability in the web interface on D-Link DWR-116 through 1.06, DIR-140L through 1.02, DIR-640L through 1.02, DWR-512 through 2.02…

PriorityP268high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EXPLOIT
EPSS
39.27%
98.4th percentile
Directory traversal vulnerability in the web interface on D-Link 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, and DWR-111 through 1.01 devices allows remote attackers to read arbitrary files via a /.. or // after "GET /uir" in an HTTP request. NOTE: this vulnerability exists because of an incorrect fix for CVE-2017-6190.

Affected

8 ranges
VendorProductVersion rangeFixed in
dlinkdir-140l_firmware<= 1.02
dlinkdir-640l_firmware<= 1.02
dlinkdwr-111_firmware<= 1.01
dlinkdwr-116_firmware<= 1.06
dlinkdwr-512_firmware<= 2.02
dlinkdwr-712_firmware<= 2.02
dlinkdwr-912_firmware<= 2.02
dlinkdwr-921_firmware<= 2.02

Detection & IOCsextracted from sources · hover to see the quote

url/uir//etc/passwd
path/uir//etc/passwd
commandcurl http://routerip/uir//etc/passwd
commandcurl http://routerip/uir//tmp/XXX/0
  • Detect exploitation attempts by monitoring HTTP GET requests containing '/uir//' or '/uir/..' in the URI path, which are the two traversal patterns used in this CVE.
  • A successful exploit response to GET /uir//etc/passwd will contain the string matching 'root:.*:0:0:' in the HTTP response body — use this as a confirmation matcher.
  • Attackers may chain this directory traversal (CVE-2018-10822) with CVE-2018-10824 by requesting the plaintext password file at /tmp/XXX/0 via the /uir// prefix to obtain admin credentials without authentication.
  • Target HTTP path prefix for all exploit variants is '/uir'; any path traversal sequence (double-slash '//' or double-dot '/..') immediately following '/uir' should be treated as a high-confidence attack indicator on D-Link DWR/DIR series routers.
  • ·This vulnerability is a bypass of a previously incomplete patch; devices running firmware versions at or below the listed maximums (e.g., DWR-116 ≤1.06, DWR-921 ≤2.02) remain vulnerable even if CVE-2017-6190 was nominally 'fixed'.
  • ·The vulnerability is likely present on additional D-Link router models beyond those explicitly listed, as it affects a shared firmware type.
  • ·The exact filename of the plaintext password file under /tmp/ has been redacted by the researcher to limit trivial exploitation of EOL devices left unpatched by the vendor.

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.