### [CVE-2011-4415](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4415) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen) ### Description The ap_pregsub function in server/util.c in the Apache HTTP Server 2.0.x through 2.0.64 and 2.2.x through 2.2.21, when the mod_setenvif module is enabled, does not restrict the size of values of environment variables, which allows local users to cause a denial of service (memory consumption or NULL pointer dereference) via a .htaccess file with a crafted SetEnvIf directive, in conjunction with a crafted HTTP request header, related to (1) the "len +=" statement and (2) the apr_pcalloc function call, a different vulnerability than CVE-2011-3607. ### POC #### Reference - http://www.halfdog.net/Security/2011/ApacheModSetEnvIfIntegerOverflow/ - http://www.halfdog.net/Security/2011/ApacheModSetEnvIfIntegerOverflow/DemoExploit.html #### Github - https://github.com/ARPSyndicate/cvemon - https://github.com/DButter/whitehat_public - https://github.com/Dokukin1/Metasploitable - https://github.com/GiJ03/ReconScan - https://github.com/Iknowmyname/Nmap-Scans-M2 - https://github.com/MrFrozenPepe/Pentest-Cheetsheet - https://github.com/NikulinMS/13-01-hw - https://github.com/RoliSoft/ReconScan - https://github.com/SecureAxom/strike - https://github.com/Zhivarev/13-01-hw - https://github.com/issdp/test - https://github.com/kasem545/vulnsearch - https://github.com/matoweb/Enumeration-Script - https://github.com/smabramov/Vulnerabilities-and-attacks-on-information-systems - https://github.com/syadg123/pigat - https://github.com/teamssix/pigat - https://github.com/xxehacker/strike - https://github.com/zzzWTF/db-13-01