关联漏洞
描述
PoC: Plugin: Zita Site Builder <= 1.0.2 - Arbitrary Plugin Installation
介绍
# Zita Site Builder Exploit Guide
## Overview
**Zita Site Builder <= 1.0.2 - Missing Authorization to Arbitrary Plugin Installation**
The Zita Site Builder plugin for WordPress is vulnerable to unauthorized access of functionality due to a missing capability check on one of its functions in versions up to, and including, 1.0.2. This makes it possible for unauthenticated attackers to install and activate arbitrary plugins.
**CVE-2024-54369**
---
## Exploit Details
- **Affected Plugin**: Zita Site Builder
- **Affected Versions**: <= 1.0.2
- **Vulnerability Type**: Missing authorization to arbitrary plugin installation
### Description
The vulnerability arises due to a lack of proper permission checks within a critical function, allowing unauthenticated attackers to install and activate arbitrary plugins remotely. This can be exploited by crafting specific requests to the vulnerable endpoint.
---
## Script Usage
### Prerequisites
- Python 3.x installed.
- Required Python libraries: `requests`.
- Install using: `pip install requests`.
- Target URL of the WordPress site running the vulnerable Zita Site Builder plugin.
### Steps to Execute the Script
1. Clone this repository or download the script file.
2. Open a terminal and navigate to the script's directory.
3. Run the following command:
```bash
python CVE-2024-54369.py -u <TARGET_URL>
```
Replace `<TARGET_URL>` with the URL of the target WordPress site.
4. Optional: Specify plugins to install using the `-p` argument:
```bash
python CVE-2024-54369.py -u <TARGET_URL> -p "plugin-slug=PluginName"
```
### Expected Behavior
- The script checks the plugin version via the `readme.txt` file at:
`wp-content/plugins/ai-site-builder/readme.txt`.
- If the version is `1.0.2` or lower, the script proceeds to exploit the vulnerability.
- The script installs and activates the specified plugin(s).
---
## Example Output
```plaintext
[INFO] Version 1.0.2 is exploitable. Proceeding with exploitation in 10 seconds.
[INFO] HTTP Status Code: 200
[SUCCESS] The plugin 'ContactForm7' has been successfully installed and activated.
```
---
## Disclaimer
This script is intended for educational purposes and authorized security assessments only. Misuse of this script may result in legal consequences. Always obtain proper authorization before testing on any system.
---
文件快照
[4.0K] /data/pocs/6e8645650a56dc6b403f97189204b7ebba77421f
├── [3.7K] CVE-2024-54369.py
└── [2.3K] README.md
0 directories, 2 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。