{"exploit":{"id":"EDB-45677","name":"D-Link Routers - Plaintext Password","description":"D-Link Routers - Plaintext Password","cves":["CVE-2018-10824"],"author":"Blazej Adamczyk","published":"2018-10-12","platform":"hardware","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/45677","path":"exploits/hardware/webapps/45677.md","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-45677.md","vulnerabilities":[{"id":"CVE-2018-10824","state":"PUBLISHED","title":null,"titleSource":null,"description":"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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-10824","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2018-10824"},"updatedAt":"2024-08-05T07:46:46.962Z","retrievedAt":"2026-11-26T23:09:40.017Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-45677.png?v=2","url":"https://exploitbin.com/exploits/EDB-45677","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-45677/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-45677/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"## Password stored in plaintext\nCVE: CVE-2018-10824\n\nDescription:\n\nAn issue was discovered on D-Link routers:\n\nDWR-116 through 1.06,\nDIR-140L through 1.02,\nDIR-640L through 1.02,\nDWR-512 through 2.02,\nDWR-712 through 2.02,\nDWR-912 through 2.02,\nDWR-921 through 2.02,\nDWR-111 through 1.01,\nand probably others with the same type of firmware.\nNOTE: I have changed the filename in description to XXX because the vendor leaves some EOL routers unpatched and the attack is too simple\n\nThe 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.\n\nPoC using the directory traversal vulnerability disclosed above - CVE-2018-10822\n\n`$ curl http://routerip/uir//tmp/XXX/0`\nThis command returns a binary config file which contains admin username and password as well as many other router configuration settings. By using the directory traversal vulnerability it is possible to read the file without authentication.","sha256":"5327950f1ddcd0a31c712e6ec440a2cf591026495595bedb95f3f4f2b59eff7f","bytes":1003,"fetchedAt":"2026-11-26T23:09:37.343Z","encoding":"utf-8 (display only; download retains original bytes)"}