From 43a35795d24c0c6bfffbd01ab1db54a7629d503b Mon Sep 17 00:00:00 2001 From: Lou Date: Sun, 8 Oct 2023 14:57:14 +0200 Subject: [PATCH 1/3] Edit httpd.conf --- request_smuggling/proxy/httpd.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/request_smuggling/proxy/httpd.conf b/request_smuggling/proxy/httpd.conf index 05676b4..c7562a2 100644 --- a/request_smuggling/proxy/httpd.conf +++ b/request_smuggling/proxy/httpd.conf @@ -558,3 +558,11 @@ ProxyPassReverse / http://128.11.0.5/ RewriteEngine On RewriteCond %{REQUEST_URI} (secret) [NC] RewriteRule .* - [F,L] + + + + RequestHeader set Content-Length "expr=-1" env=HTTP_CONTENT_LENGTH + Order Deny,AllowOverride + Deny from all + Allow from env=HTTP_CONTENT_LENGTH + \ No newline at end of file From 1fa4bcc5dc06065ec5a83ec8a45d66e69486e3cc Mon Sep 17 00:00:00 2001 From: Lou Date: Sun, 8 Oct 2023 14:58:24 +0200 Subject: [PATCH 2/3] fix httpd.conf --- request_smuggling/proxy/httpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request_smuggling/proxy/httpd.conf b/request_smuggling/proxy/httpd.conf index c7562a2..8a11089 100644 --- a/request_smuggling/proxy/httpd.conf +++ b/request_smuggling/proxy/httpd.conf @@ -560,7 +560,7 @@ RewriteCond %{REQUEST_URI} (secret) [NC] RewriteRule .* - [F,L] - + RequestHeader set Content-Length "expr=-1" env=HTTP_CONTENT_LENGTH Order Deny,AllowOverride Deny from all From 2befe6ead38703784d243f6dc97f85ed7e3d5316 Mon Sep 17 00:00:00 2001 From: Lou Date: Sun, 8 Oct 2023 15:07:50 +0200 Subject: [PATCH 3/3] fix httpd.conf --- request_smuggling/proxy/httpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request_smuggling/proxy/httpd.conf b/request_smuggling/proxy/httpd.conf index 8a11089..3faffcb 100644 --- a/request_smuggling/proxy/httpd.conf +++ b/request_smuggling/proxy/httpd.conf @@ -562,7 +562,7 @@ RewriteRule .* - [F,L] RequestHeader set Content-Length "expr=-1" env=HTTP_CONTENT_LENGTH - Order Deny,AllowOverride + Order Deny,Allow Deny from all Allow from env=HTTP_CONTENT_LENGTH \ No newline at end of file