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
PoC---CVE-2023-26482-RCE-LAB-Nextcloud | Kitploit
Tools/GitHubGitHub/isabbii/poc---cve-2023-26482-rce-lab-nextcloud
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed TeamingLabs & Practice

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHub
isabbii/poc---cve-2023-26482-rce-lab-nextcloud

PoC---CVE-2023-26482-RCE-LAB-Nextcloud

View Repository
6 months agoNot yet reviewed

Next cloud

Proof of Concept & Analysis

Security Notice

This repository reproduces a publicly disclosed and patched vulnerability in a controlled Docker lab environment for educational and research purposes.

The environment is intentionally vulnerable and must only be deployed in isolated test environments. Do not attempt to exploit systems without explicit authorization.

The goal of this project is to demonstrate vulnerability analysis, exploitation workflow, and mitigation strategies.

This lab reproduces CVE-2023-26482, a Missing Scope Validation vulnerability in Nextcloud Server that allows an authenticated user to create malicious workflows, leading to Remote Code Execution (RCE) if the "Workflow Script" app is installed.

image

Prerequisites

  • Docker & Docker Compose
  • Python 3
  • requests library

Setup

  1. Start the environment:

    root@kitploit:~
    docker-compose up -d
    
  2. Configure the instance (Automated): Run the setup script to install the vulnerable workflow_script app and create a test user

    root@kitploit:~
    bash setup.sh
    

    Note: This might take a few minutes as it waits for Nextcloud to fully initialization.

  3. Install Python dependencies:

    root@kitploit:~
    pip install -r requirements.txt
    

Exploitation

  1. Run the exploit:

    root@kitploit:~
    python exploit.py
    

    This script will:

    • Log in as attacker.
    • Create a Global/Admin workflow rule (which should be forbidden) to execute a command (touch /tmp/pwned) when a file with MIME type text/plain is uploaded.
  2. Trigger the RCE:

    • Log in to http://localhost:8080 with attacker / AttackerPassword123!.
    • Upload a text file (e.g., test.txt).
    • The command should execute in the container.

Verification

Check if the file /tmp/pwned exists in the container:

root@kitploit:~
docker-compose exec app ls -l /tmp/pwned

Demonstration

Firstly let's begin with user credentials created for the lab, witheout admin permissions :

image

As you can see overhere, the user attacker doesn't have admin permissions : image

Let's start the exploit.py file :

image

As you can see here, we just have to upload a random .txt file

image

Here we go ! :

image

Reference

https://nvd.nist.gov/vuln/detail/cve-2023-26482? https://app.opencve.io/cve/CVE-2023-26482?

This vulnerability (CVE-2023-26482) can be corrected by upgrading the Nextcloud Server to a fixed version (≥ 24.0.10 or ≥ 25.0.4).

Download Tool