Skip to content

Commit

Permalink
allows cgi and cgid module for Apache HTTP Server 2.4.49
Browse files Browse the repository at this point in the history
  • Loading branch information
phith0n committed Oct 6, 2021
1 parent cc583ff commit 1072844
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httpd/CVE-2021-41773/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM vulhub/httpd:2.4.49
LABEL maintainer="phithon <[email protected]>"

RUN set -ex \
&& sed -i "s|#LoadModule cgid_module modules/mod_cgid.so|LoadModule cgid_module modules/mod_cgid.so|g" /usr/local/apache2/conf/httpd.conf \
&& sed -i "s|#LoadModule cgi_module modules/mod_cgi.so|LoadModule cgi_module modules/mod_cgi.so|g" /usr/local/apache2/conf/httpd.conf \
&& cat /usr/local/apache2/conf/httpd.conf \
| tr '\n' '\r' \
| perl -pe 's|<Directory />.*?</Directory>|<Directory />\n AllowOverride none\n Require all granted\n</Directory>|isg' \
Expand Down

0 comments on commit 1072844

Please sign in to comment.