POC详情: f71ec39e4736bd705e896c8cf519bc14013ffdb4

来源
关联漏洞
标题: Apache HTTP Server 路径遍历漏洞 (CVE-2021-41773)
描述:Apache HTTP Server是美国阿帕奇(Apache)基金会的一款开源网页服务器。该服务器具有快速、可靠且可通过简单的API进行扩充的特点。 Apache HTTP Server 2.4.49版本存在路径遍历漏洞,攻击者可利用该漏洞使用路径遍历攻击将URL映射到预期文档根以外的文件。
介绍
# CVE-2021-41773
# Docker 
```
$ sudo docker build -t <image_name> .
$ sudo docker run -d -t -p 80:80 --name <container_name> <image_name> /bin/bash
$ sudo docker exec -it <container_name> ./bin/apachectl -k restart
```

### To access docker container for custom config file
```
$ docker exec -it <container> /bin/bash
file config in /usr/local/apache2/conf/httpd.conf
after config run command

$ /usr/local/apache2/bin ./apachectl -k restart

```
##                                                        Usage Script
[+] python ./exploit.py [-OPTIONS] [Target/List of Targets]

    [+] -h : help
    
    [+] -url <target>: specifict the target to check 
    
    [+] -list <filename>: Scan multiple targets

# Example
**-h: help**

![image](https://user-images.githubusercontent.com/83699106/160898090-606cc8af-ed1b-4b89-bf8e-e6042eb86cb7.png)


**-url: url**

![image](https://user-images.githubusercontent.com/83699106/160897688-b5ccb973-6824-4329-9bcc-dea34a5dc8af.png)

**-list: path to file**

![image](https://user-images.githubusercontent.com/83699106/160897762-53d84a2a-b44e-4018-8429-1ac71c4cf185.png)

![image](https://user-images.githubusercontent.com/83699106/163481783-81205843-ae39-4f1f-af9d-d9329f9bd00b.png)

文件快照

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