mirror of https://github.com/CISOfy/lynis.git
[HTTP-6641] support Apache mod_reqtimeout module
This commit is contained in:
parent
69224716f6
commit
57770fe332
|
@ -313,18 +313,19 @@
|
||||||
#
|
#
|
||||||
# Test : HTTP-6641
|
# Test : HTTP-6641
|
||||||
# Description : Search for special Apache modules: Quality of Service
|
# 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
|
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"
|
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
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
# Check modules, module
|
# Check modules, module
|
||||||
CheckItem "apache_module" "/mod_qos.so"
|
CheckItem "apache_module" "/mod_(reqtimeout|qos).so"
|
||||||
if [ ${ITEM_FOUND} -eq 1 ]; then
|
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
|
AddHP 3 3
|
||||||
else
|
else
|
||||||
Display --indent 10 --text "mod_qos: anti-Slowloris" --result "${STATUS_NOT_FOUND}" --color WHITE
|
Display --indent 10 --text "mod_reqtimeout/mod_qos" --result "${STATUS_NOT_FOUND}" --color WHITE
|
||||||
AddHP 2 3
|
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
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue