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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2024-9014 PoC — pgAdmin 安全漏洞

来源
关联漏洞
标题: pgAdmin 安全漏洞 (CVE-2024-9014)
Description:pgAdmin是一个用于开源数据库 PostgreSQL 的开源管理和开发平台。 pgAdmin 8.11及之前版本存在安全漏洞,该漏洞源于允许攻击者获取客户端ID和机密,导致未经授权访问用户数据。
介绍
# CVE-2024-9014 - pgAdmin 4 OAuth2 Authentication Bypass Exploit Tools

This repository contains tools to check for and exploit the **CVE-2024-9014** vulnerability in **pgAdmin 4**. The vulnerability allows an attacker to bypass OAuth2 authentication and access sensitive resources.

## Tools

### 1. **cve_2024_9014_check.py**

This script checks if a target system is vulnerable to **CVE-2024-9014** by examining its **pgAdmin 4** installation and looking for exposed OAuth2 configurations.

#### Usage

```bash
python3 cve_2024_9014_check.py --url <target_url> [--proxy <proxy_url>] [--output <output_file>]
```

- --url: Single target URL to check (e.g.,  http://example.com/).

- --list: File containing a list of target URLs -(one per line).

- --output: File to save the results.

- --proxy: Optional proxy (e.g., http://127.0.0.

#### Example
```bash
python3 cve_2024_9014_check.py --url <target_url> --proxy http://127.0.0.1:8080 --output results.txt
```
The script will check if the target is running pgAdmin 4 and whether it is vulnerable. Vulnerable targets will have exposed OAuth2 configuration.

#### Output

![1](https://github.com/user-attachments/assets/2df1a3d9-e8fb-40ad-a939-0ef2eefd77aa)

---

### 2. extract_oauth2_config.py

This script extracts the OAuth2 configuration from a pgAdmin 4 installation. It helps identify whether sensitive OAuth2 credentials are exposed in the HTML source.
```bash
python3 extract_oauth2_config.py -u <target_url> [--proxy <proxy_url>] [--output <output_file>]
```

The script will save the extracted OAuth2 configuration for vulnerable targets in a specified output file.

### Output

![2](https://github.com/user-attachments/assets/6ec42440-a39f-4b2a-8299-bc3f71828e1f)

---

## Requirements

- Python 3.x
- requests library (pip install requests)

## ⚠️  Disclaimer

This script is intended for authorized security testing and educational purposes only. Ensure you have permission to test the systems you're targeting. Unauthorized access or exploitation of systems is illegal.

## License

This project is licensed under the MIT License - see the LICENSE file for details.

---

## Official Channels

- [YouTube @rootctf](https://www.youtube.com/@rootctf)
- [X @r0otk3r](https://x.com/r0otk3r)
文件快照

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

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