目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2023-37979 PoC — WordPress Plugin Ninja Forms 跨站脚本漏洞

来源
关联漏洞
标题: WordPress Plugin Ninja Forms 跨站脚本漏洞 (CVE-2023-37979)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress Plugin Ninja Forms 3.6.25及之前版本存在跨站脚本漏洞,该漏洞源于不会对某些参数进行转义,攻击者利用该漏洞可以将恶意脚本注入web网站。
介绍
# CVE-2023-37979 Exploit

![Python Version](https://img.shields.io/badge/python-3.x-blue.svg)
![Nuclei](https://img.shields.io/badge/Nuclei-template-yellow.svg)


| CVE ID       | CVSS Score      | Discovered   | Affected Plugin | Vendor          | Vulnerability Type        |
|--------------|-----------------|--------------|-----------------|-----------------|---------------------------|
| CVE-2023-37979| ![Medium](https://img.shields.io/badge/6.1-Medium-orange)   | 27/07/2023   | WordPress Plugin | Ninja-forms | Reflected XSS |

### Python Script
CVE `Python` script exploits the reflected Cross-Site Scripting (XSS) vulnerability CVE-2023-37979 found in the Ninja-forms WordPress plugin. This CVE could allow a malicious actor to inject malicious scripts, such as redirects, advertisements, and other HTML payloads into your website which will be executed when guests visit your site.
This vulnerability has been fixed in version 3.6.26

### Nuclei Template
I have created a CVE yaml file as a Nuclei template to detect vulnerable versions of the plugin (version 3.6.25 or lower). Although the vulnerability detection is already available in the Python script, I decided to publish its yaml version for Nuclei fans.

## Usage
```
Usage: CVE-2023-37979.py [OPTIONS] [TARGET]
  OPTIONS:
        --exploit:  Open a browser and execute the vulnerability.
  TARGET:
        An URL starts with 'http://' or 'https://'

Examples:
    > CVE-2023-37979.py https://vulnsite.com
    > CVE-2023-37979.py --exploit https://vulnsite.com
```

## How It Works
The script first checks if the Ninja-forms plugin is installed on the target site and if the version is vulnerable (version 3.6.25 or lower).
If the plugin is vulnerable, the script generates an HTML PoC file with the malicious payload.
The PoC file contains an HTML form that triggers the XSS vulnerability when submitted.
The generated PoC file will be opened in the default web browser automatically for testing.

> **Warning**
> This script is provided for educational and ethical purposes only. It must not be used against any unauthorized systems or for malicious purposes. The author is not responsible for any misuse of this script.

> **Note**
> Feel free to contribute.

> **Exploit DB**
> https://www.exploit-db.com/exploits/51644

## References
> https://patchstack.com/articles/multiple-high-severity-vulnerabilities-in-ninja-forms-plugin?_s_id=cve
> https://patchstack.com/database/vulnerability/ninja-forms/wordpress-ninja-forms-plugin-3-6-25-reflected-cross-site-scripting-xss-vulnerability?_s_id=cve
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →