From 57770fe332d31124ed4dc44a0329885ac226ea36 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 20 Mar 2017 13:40:00 +0100 Subject: [PATCH] [HTTP-6641] support Apache mod_reqtimeout module --- include/tests_webservers | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/tests_webservers b/include/tests_webservers index 8d1ed571..08eacecd 100644 --- a/include/tests_webservers +++ b/include/tests_webservers @@ -313,18 +313,19 @@ # # Test : HTTP-6641 # Description : Search for special Apache modules: Quality of Service + # Notes : Was mod_qos before. Since Apache 2.2.15 mod_reqtimeout if [ ${APACHE_INSTALLED} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no HTTP-6641 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Determining existence of specific Apache modules" if [ ${SKIPTEST} -eq 0 ]; then # Check modules, module - CheckItem "apache_module" "/mod_qos.so" + CheckItem "apache_module" "/mod_(reqtimeout|qos).so" if [ ${ITEM_FOUND} -eq 1 ]; then - Display --indent 10 --text "mod_qos: anti-Slowloris" --result "${STATUS_FOUND}" --color GREEN + Display --indent 10 --text "mod_reqtimeout/mod_qos" --result "${STATUS_FOUND}" --color GREEN AddHP 3 3 - else - Display --indent 10 --text "mod_qos: anti-Slowloris" --result "${STATUS_NOT_FOUND}" --color WHITE + else + Display --indent 10 --text "mod_reqtimeout/mod_qos" --result "${STATUS_NOT_FOUND}" --color WHITE AddHP 2 3 - ReportSuggestion ${TEST_NO} "Install Apache mod_qos to guard webserver against Slowloris attacks" + ReportSuggestion ${TEST_NO} "Install Apache mod_reqtimeout or mod_qos to guard webserver against Slowloris attacks" fi fi #