verylazytech / CVE-2024-9047

POC - WordPress File Upload plugin, in the wfu_file_downloader.php file before version <= 4.24.11

Home Page:https://www.verylazytech.com/vulnerabilities-and-exploits/cve-poc/poc-wordpress-file-upload-plugin-in-the-wfu_file_downloader.php-file-before-version-less-than-4.24.1

Repository from Github https://github.comverylazytech/CVE-2024-9047Repository from Github https://github.comverylazytech/CVE-2024-9047

POC - WordPress File Upload plugin, in the wfu_file_downloader.php file before version <= 4.24.11 - (CVE-2024-9047)

My Shop Medium Github Buy Me A Coffee X

Overview

The WordPress File Upload plugin is vulnerable due to improper input validation in the wfu_file_downloader.php file, affecting versions <= 4.24.11. This vulnerability allows unauthenticated users to download arbitrary files from the server's filesystem, leading to potential data exfiltration and system compromise.

Affected Devices

Websites running WordPress with the File Upload Plugin version <= 4.24.11.

Affected Components

The vulnerability resides in the wfu_file_downloader.php component of the File Upload Plugin, which mishandles the file and handler parameters in its requests. This allows directory traversal attacks to access sensitive files.

Read about itCVE-2024-9047

Disclaimer: This Proof of Concept (POC) is made for educational and ethical testing purposes only. Usage of this tool for attacking targets without prior mutual consent is illegal. It is the end user’s responsibility to obey all applicable local, state, and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

Getting Started

Finding Targets

To identify potential targets, you can use Fofa (a search engine similar to Shodan.io) with the following query:

  • Fofa Dork: body="wp-content/plugins/wp-file-upload" && body="wordpress-file-upload-style-css"

Fofa-cve-2024-9047

Cloning the Repository

First, clone the repository:

git clone https://github.com/verylazytech/CVE-2024-9047
cd CVE-2024-9047
chmod +x cve-2024-9047

Run the Exploit:

For Linux / MacOs:

bash ./cve-2024-9047.sh <url> <file>
  • Replace with the target's URL (e.g., www.example.com).
  • Replace with the desired file path on the target server (e.g., /etc/passwd).

Example Usage

./cve-2024-9047.sh www.vulnerablewebsite.com /etc/passwd
  • The script will check the plugin version and, if vulnerable, attempt to retrieve the specified file.

cve-2024-9047

About

POC - WordPress File Upload plugin, in the wfu_file_downloader.php file before version <= 4.24.11

https://www.verylazytech.com/vulnerabilities-and-exploits/cve-poc/poc-wordpress-file-upload-plugin-in-the-wfu_file_downloader.php-file-before-version-less-than-4.24.1


Languages

Language:Shell 100.0%