关联漏洞
描述
PDF Generator Addon for Elementor Page Builder <= 1.7.5 - Unauthenticated Arbitrary File Download
介绍
# CVE-2024-9935 - PDF Generator Addon for Elementor Page Builder <= 1.7.5 - Unauthenticated Arbitrary File Download
[](https://buymeacoffee.com/verylazytech/extras)
[](https://medium.com/@verylazytech)
[](https://github.com/verylazytech)
[](https://buymeacoffee.com/verylazytech)
## Overview
The PDF Generator Addon for Elementor Page Builder plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 1.7.5 via the rtw_pgaepb_dwnld_pdf() function. This makes it possible for unauthenticated attackers to read the contents of arbitrary files on the server, which can contain sensitive information.
# Affected Devices
- PDF Generator Addon for Elementor Page Builder <= 1.7.5
# Affected Components
This plugin is designed to generate PDFs from Elementor pages within WordPress sites. The vulnerability arises from a path traversal flaw in the rtw_pgaepb_dwnld_pdf() function, which allows unauthenticated attackers to read arbitrary files on the server, potentially exposing sensitive information.
**Read about it** — [CVE-2024-9935](https://nvd.nist.gov/vuln/detail/CVE-2024-9935)
> **Disclaimer**: This Proof of Concept (POC) is made for educational and ethical testing purposes only. Usage of this tool for attacking targets without prior mutual consent is illegal. It is the end user’s responsibility to obey all applicable local, state, and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.
## Getting Started
### Finding Targets
To find potential targets, use Fofa (similar to Shodan.io):
- **Fofa Dork**: body="wp-content/plugins/pdf-generator-addon-for-elementor-page-builder/" && body="wp-content/themes/"

### Cloning the Repository
First, clone the repository:
```bash
git clone https://github.com/verylazytech/CVE-2024-9935
```
Run the Exploit:
### For Linux / MacOs:
```bash
bash ./cve-2024-9935.sh <target_url> <file_path_to_download> <action: download|view>
```
### POC:
#### View file - /etc/passwd:

#### Download File - /etc/passwd:

文件快照
[4.0K] /data/pocs/8ac7a25f6ba2ad43e4d9ef3fb8a11abf558e76b1
├── [3.4K] cve-2024-9935.sh
└── [2.8K] README.md
0 directories, 2 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。