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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-27954 PoC — WordPress Automatic plugin <= 3.92.0 - Unauthenticated Arbitrary File Download and SSRF vulnerability

Source
Associated Vulnerability
Title: WordPress Automatic plugin <= 3.92.0 - Unauthenticated Arbitrary File Download and SSRF vulnerability (CVE-2024-27954)
Description:Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in WP Automatic Automatic allows Path Traversal, Server Side Request Forgery.This issue affects Automatic: from n/a through 3.92.0.
Readme
# CVE-2024-27954 - WordPress wp-automatic Plugin LFI Scanner

This project provides a Python-based Local File Inclusion (LFI) vulnerability scanner targeting **CVE-2024-27954**, a critical flaw found in the WordPress plugin **wp-automatic**. The vulnerability allows unauthenticated attackers to read arbitrary files on the server using a `file://` injection vector.

## 🚨 Vulnerability Summary

- **CVE-ID:** CVE-2024-27954
- **Component:** WordPress `wp-automatic` Plugin
- **Impact:** Local File Inclusion (LFI)
- **Risk:** Remote unauthenticated file read (e.g., `/etc/passwd`, config files, source code)
- **Vector:** Untrusted `link` parameter using `file://` scheme

---

## 🔧 Features

- Scan single or multiple target URLs
- Test for a single or multiple LFI file paths
- Proxy support (e.g., BurpSuite)
- Multithreaded scanning
- Output vulnerable targets to file
- Human-readable console output

---

## 📦 Requirements

- Python 3.x
- `requests` module

Install dependencies:

```bash
pip install requests
```
## 🚀 Usage
```bash
python3 CVE-2024-27954.py --url http://TARGET --lfi-path /etc/passwd
```
| Argument       | Description                                        |
| -------------- | -------------------------------------------------- |
| `--url`        | Single target URL (e.g. `http://TARGET:8080`)      |
| `--list`       | File containing list of target URLs (one per line) |
| `--lfi-path`   | Single file path to test (default: `/etc/passwd`)  |
| `--paths-file` | File with multiple file paths (one per line)       |
| `--proxy`      | Proxy (e.g. `http://127.0.0.1:8080`)               |
| `--output`     | File to save vulnerable results                    |
| `--threads`    | Number of concurrent threads (default: `3`)        |


## 📂 Example Usages
```bash
python3 CVE-2024-27954.py --url "http://TARGET" --lfi-path /etc/passwd --proxy "http://127.0.0.1:8080" --output results.txt
```
```bash
python3 CVE-2024-27954.py --url "http://TARGET" --lfi-path /etc/shadow --proxy "http://127.0.0.1:8080" --output results.txt
```
<img width="1349" height="433" alt="1" src="https://github.com/user-attachments/assets/ae898bb0-b03e-4b65-97d1-2f835744a144" />

---
# ⚠️ Disclaimer

This tool is intended for educational and authorized penetration testing purposes only. Unauthorized access to systems may be illegal. Use responsibly.

----

## Official Channels

- [YouTube @rootctf](https://www.youtube.com/@rootctf)
- [X @r0otk3r](https://x.com/r0otk3r)
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
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 →