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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2020-25213 PoC — wordpress 代码问题漏洞

Source
Associated Vulnerability
Title:wordpress 代码问题漏洞 (CVE-2020-25213)
Description:WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。ghost是使用在其中的一个用于导入/导出WordPress数据的插件。relevant是使用在其中的一个相关内容显示插件。File Upload是使用在其中的一个文件上传插件。PHP是共同维护的一种开源的通用计算机脚本语言。该语言主要用于Web开发,支持多种数据库及操作系统。elFinder是一套基于Drupal平台的、开源的AJAX文件管理器。该产品提供多文件上传、图像缩放等功能。 Word
Description
Python Interactive Exploit for WP File Manager Vulnerability. The File Manager (wp-file-manager) plugin before 6.9 for WordPress allows remote attackers to upload and execute arbitrary PHP code because it renames an unsafe example elFinder connector file to have the .php extension.
Readme
# Python-CVE-2020-25213
Python Interactive Exploit for WP File Manager Vulnerability. The File Manager (wp-file-manager) plugin before 6.9 for WordPress allows remote attackers to upload and execute arbitrary PHP code because it renames an unsafe example elFinder connector file to have the .php extension.

The script uses the `argparse`, `requests`, `re`, `sys`, `os`, `json`, and `random` Python modules. 

To install these modules via `pip`, execute the following command in the command line:

```
pip install -r requirements.txt
```
When this command is executed, `pip` will read the `requirements.txt` file and install all the listed modules and their dependencies.

To use the script, you can provide the following arguments:

* `url` (required): The target WordPress website URL.
* `--upload-file` (optional): The file to upload to the server, if the WP File Manager is vulnerable.
* `--check` (optional): Check if the WP File Manager plugin is vulnerable.
* `--verbose` (optional): Enable verbose output.

Here are some examples of how to use the script:

To check if the WP File Manager plugin is vulnerable:

```
python exploit_wp_file_manager.py https://www.example.com --check
```

To upload a file to the server:

```
python exploit_wp_file_manager.py https://www.example.com --upload-file myfile.txt
```

To enable verbose output:

```
python exploit_wp_file_manager.py https://www.example.com --upload-file myfile.txt --verbose
```

Please note that exploiting vulnerabilities in software without permission is illegal and can have serious consequences. This script is for educational purposes only. Use it at your own risk.
File Snapshot

[4.0K] /data/pocs/e0ce59d35e1d1a16cece18c4ce02beef5e29adbc ├── [4.8K] exploit.py ├── [1.0K] LICENSE ├── [1.6K] README.md └── [ 29] requirements.txt 0 directories, 4 files
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.