CVE-2018-10824
published 2018-10-17CVE-2018-10824: An issue was discovered 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…
PriorityP269critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
12.48%
95.8th percentile
An issue was discovered 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. The administrative password is stored in plaintext in the /tmp/csman/0 file. An attacker having a directory traversal (or LFI) can easily get full router access.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| dlink | dir-140l_firmware | <= 1.02 | — |
| dlink | dir-640l_firmware | <= 1.02 | — |
| dlink | dwr-111_firmware | <= 1.01 | — |
| dlink | dwr-116_firmware | <= 1.06 | — |
| dlink | dwr-512_firmware | <= 2.02 | — |
| dlink | dwr-712_firmware | <= 2.02 | — |
| dlink | dwr-912_firmware | <= 2.02 | — |
| dlink | dwr-921_firmware | <= 2.02 | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Alert on HTTP responses containing binary config file data from path '/tmp/csman/0' (or obfuscated equivalent), which exposes plaintext admin credentials. ↗
- →Chain detection: CVE-2018-10822 directory traversal (GET /uir//) used to retrieve the plaintext password file at /tmp/csman/0 — monitor for unauthenticated requests to this combined path. ↗
- ·The researcher obfuscated the exact plaintext password file path in the public PoC (replaced 'csman' with 'XXX') to reduce ease of exploitation on unpatched EOL devices; the NVD entry reveals the true path as /tmp/csman/0. ↗
- ·The directory traversal vulnerability (CVE-2018-10822) persists in newer firmware releases despite a prior fix attempt for CVE-2017-6190; both /.. and // traversal variants are effective. ↗
- ·Additional D-Link router models beyond those explicitly listed may share the same vulnerable firmware type and be susceptible to both CVE-2018-10822 and CVE-2018-10824. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
No detection rules found.
Exploit-DB
D-Link Routers - Directory Traversal
exploitdb·2018-10-12·CVSS 7.5
CVE-2018-10822 [HIGH] D-Link Routers - Directory Traversal
D-Link Routers - Directory Traversal
---
Directory Traversal
CVE: CVE-2018-10822
CVSS v3: 8.6
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Description: Directory traversal vulnerability in the web interface on 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.
NOTE: this vulnerability exists because of an incorrect fix for CVE-2017-6190.
PoC:
`$ curl http://routerip/uir//etc/passwd`
The vulnerability can be used retrieve administrative password using the other disclosed vulnerability - CVE-2018-10824.
Exploit-DB
D-Link Routers - Plaintext Password
exploitdb·2018-10-12·CVSS 7.5
CVE-2018-10824 [HIGH] D-Link Routers - Plaintext Password
D-Link Routers - Plaintext Password
---
## Password stored in plaintext
CVE: CVE-2018-10824
Description:
An issue was discovered on 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.
NOTE: I have changed the filename in description to XXX because the vendor leaves some EOL routers unpatched and the attack is too simple
The administrative password is stored in plaintext in the /tmp/XXX/0 file. An attacker having a directory traversal (or LFI) can easily get full router access.
PoC using the directory traversal vulnerability disclosed above - CVE-2018-10822
`$ curl http://routerip/uir//tmp/XX
No writeups or analysis indexed.
2018-10-17
Published