Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-5084 PoC — Hash Form – Drag & Drop Form Builder <= 1.1.0 - Unauthenticated Arbitrary File Upload to Remote Code Execution

Source
Associated Vulnerability
Title:Hash Form – Drag & Drop Form Builder <= 1.1.0 - Unauthenticated Arbitrary File Upload to Remote Code Execution (CVE-2024-5084)
Description:The Hash Form – Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the 'file_upload_action' function in all versions up to, and including, 1.1.0. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected site's server which may make remote code execution possible.
Description
Hash Form – Drag & Drop Form Builder <= 1.1.0 - Unauthenticated Arbitrary File Upload to Remote Code Execution
Readme
# 🚀 HashForm Exploit Script

This script demonstrates the exploitation of CVE-2024-5084, a vulnerability in the Hash Form plugin for WordPress, which allows unauthenticated arbitrary file upload leading to remote code execution.

## 📖 Vulnerability Details

- **Name**: CVE-2024-5084
- **Description**: Unauthenticated Arbitrary File Upload to Remote Code Execution.
- **Affected Plugin**: Hash Form – Drag & Drop Form Builder <= 1.1.0
- **Source**: [Wordfence - Vulnerability Details](https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/hash-form/hash-form-drag-drop-form-builder-110-unauthenticated-arbitrary-file-upload-to-remote-code-execution)

## ⚙️ Installation

1. Clone the repository:
   ```bash
   git clone https://github.com/Chocapikk/CVE-2024-5084.git
   cd CVE-2024-5084
   ```

2. Install the required dependencies:
   ```bash
   pip install -r requirements.txt
   ```

## 🚀 Usage

1. Run the script:
   ```bash
   python exploit.py --url "http://target-site.com"
   ```

   Replace `http://target-site.com` with the base URL of the WordPress site you want to test.

2. If the upload is successful, you will enter an interactive shell to execute commands on the server.

## 🔍 Dorks

- **ZoomEye**: `banner:"var hashform_vars"`

## ⚠️ Disclaimer

**Disclaimer**: This script is intended for educational purposes only. Unauthorized use of this script on systems you do not own or do not have explicit permission to test is illegal and unethical. The author is not responsible for any misuse of this script.
File Snapshot

[4.0K] /data/pocs/299d41515c1237abb25e615aaa888be214099501 ├── [5.2K] exploit.py ├── [1.5K] README.md └── [ 70] requirements.txt 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →