POC详情: f45a2e79d9dfbcde7d5273daa98f1ecb30cf1806

来源
关联漏洞
标题: aiohttp 路径遍历漏洞 (CVE-2024-23334)
描述:aiohttp是一个开源的用于 asyncio 和 Python 的异步 HTTP 客户端/服务器框架。 aiohttp 3.9.2之前版本存在路径遍历漏洞,该漏洞源于当follow_symlinks设置为 True 时,不会进行检查读取的文件是否位于根目录内,这可能会导致目录遍历漏洞。
描述
aiohttp LFI (CVE-2024-23334)
介绍
# CVE-2024-23334 PoC

## Description
This repository contains a Proof of Concept (PoC) for CVE-2024-23334, demonstrating how malicious actors can exploit vulnerabilities in aiohttp using LFI .

> [!CAUTION]
> Disclaimer: IMPORTANT: This PoC is for educational purposes only. Unauthorized access to computer systems and networks is illegal !!!

## Installation
1. Clone the repository:
   ```bash
   git clone https://github.com/jhonnybonny/CVE-2024-23334
   cd CVE-2024-23334
   python3 -m venv .env
   chmod +x ./.env/bin/activate
   source ./.env/bin/activate
   pip3 install -r requirements.txt
   ```
2.Start the server:
   ```bash
   python3 server.py
   ```
![Screenshot 2024-03-19 at 18 47 09](https://github.com/jhonnybonny/CVE-2024-23334/assets/87495218/2bb31fe4-2493-40d2-95b3-59744014fd1b)

3.Scanner:
   ```bash
   nuclei -t aiohttp.yaml -u http://localhost:8081
   ```
or
   ```bash
   nuclei -t aiohttp.yaml -l aiohttp.csv
   ```
![Screenshot 2024-03-19 at 18 41 07](https://github.com/jhonnybonny/CVE-2024-23334/assets/87495218/81d2ced7-b69f-4e53-9bf4-a200c61434d4)

3.Exploit:
   ```bash
   python3 exploit.py -s http://localhost:8081
   ```
![Screenshot 2024-03-19 at 18 45 47](https://github.com/jhonnybonny/CVE-2024-23334/assets/87495218/7d17ef82-2a5a-4198-9d49-5b569c38deaa)


文件快照

[4.0K] /data/pocs/f45a2e79d9dfbcde7d5273daa98f1ecb30cf1806 ├── [ 819] aiohttp.yaml ├── [1022] exploit.py ├── [1.3K] README.md ├── [ 15] requirements.txt └── [ 637] server.py 0 directories, 5 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。