Share
## https://sploitus.com/exploit?id=14AE7F82-8766-58D3-96D5-B82006C089B1
# CVE-2026-0740
## ๐งฉ Overview
**CVE-2026-0740** is an unauthenticated arbitrary file upload vulnerability affecting:
> **Ninja Forms File Uploads โค 3.3.26 (WordPress plugin)**
This flaw allows attackers to upload arbitrary files to the server without authentication, potentially leading to **remote code execution (RCE)**.
---
## โ ๏ธ Disclaimer
This project is provided for **educational and authorized security testing purposes only**.
* Do **NOT** use this against systems you do not own or have explicit permission to test.
* The author assumes **no responsibility** for misuse or damage.
---
## โจ Features
* Unauthenticated exploitation
* Custom file upload support
* Path traversal for controlled file placement
* Proxy (SOCKS5) support
* Custom headers support
* Colored & structured logging output
---
## ๐ฆ Requirements
* Python 3.9+
Install dependencies:
```bash
pip install httpx httpx-socks
```
---
## ๐ Usage
```bash
python3 CVE-2026-0740.py -t http://target.com -f shell.php
```
### Options
| Argument | Description |
| --------------- | --------------------------------- |
| `-t, --target` | Target URL |
| `-f, --file` | File to upload |
| `-d, --dest` | Destination path (path traversal) |
| `-x, --proxy` | SOCKS5 proxy |
| `-H, --headers` | Custom headers |
| `--timeout` | Request timeout |
| `--no-color` | Disable colored output |
| `-q, --quiet` | Quiet mode |
| `--verify-ssl` | Enable SSL verification |
---
## ๐งช Example
```bash
python3 CVE-2026-0740.py \
-t https://victim.com \
-f shell.php \
-d ../../../../shell.php
```
---
## ๐ How It Works
1. Requests a **nonce** via `admin-ajax.php`
2. Uses the nonce to perform a **file upload**
3. Exploits **path traversal** to control destination
4. Confirms upload and returns accessible file URL
---
## ๐ Affected Component
* Plugin: **Ninja Forms File Uploads**
* Endpoint: `/wp-admin/admin-ajax.php`
* Actions:
* `nf_fu_get_new_nonce`
* `nf_fu_upload`
---
## ๐ก๏ธ Mitigation
* Update plugin to the latest version
* Disable unnecessary file upload functionality
* Implement WAF rules
* Restrict executable file uploads
* Monitor `/wp-content/uploads/` directory
---
## ๐จโ๐ป Author
* **0xgh057r3c0n**
---
## ๐ License
This project is licensed under the MIT License โ see the [LICENSE](./LICENSE) file for details.
---
## โญ Contributing
Pull requests are welcome. For major changes, open an issue first to discuss what you would like to change.