Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2017-03-20 15:40:00 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-03-20 15:40:00 +0300
commit57770fe332d31124ed4dc44a0329885ac226ea36 (patch)
treea84b523ec4619363239ef8d654f540c6861aa9ae /include/tests_webservers
parent69224716f63401090551b8f18ecef95527c12661 (diff)
[HTTP-6641] support Apache mod_reqtimeout module
Diffstat (limited to 'include/tests_webservers')
-rw-r--r--include/tests_webservers11
1 files 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
#