I am trying to use the COMODO WAF rules on litespeed without a control panel. I have the rule enabled and in log only mode in order to test and I am seeing a lot of entries that appear as though they would block legitimate requests, which I would like to resolve before using it in production and in blocking mode.
Litespeed Enterprise version: 5.2.4
Comodo Rules version: 1.154
Here is a sample from the log with ip and domain removed:
The access log contains entries similar to this:
I have confirmed that the userdata_wl_content_type file exists in the rules folder, has the correct permissions and it does contain a line for x-www-form-urlencoded.
Any help would be appreciated. Thanks!
Litespeed Enterprise version: 5.2.4
Comodo Rules version: 1.154
Here is a sample from the log with ip and domain removed:
Code:
--122cdea1-A--
[16/Mar/2018:08:14:47 -0700] 443
--122cdea1-B--
content-length: 293
accept: application/json, text/javascript, */*; q=0.01
x-requested-with: XMLHttpRequest
user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
content-type: application/x-www-form-urlencoded; charset=UTF-8
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9
alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.1
rankboostupplugin: v1.20
--122cdea1-F--
--122cdea1-H--
Message: Detected 200 (phase 1). Test 'TX:0' against '!@pmFromFile userdata_wl_content_type' is true. [file "/usr/local/lsws/conf/comodo_litespeed/11_HTTP_HTTP.conf"] [line "21"] [id "210710"] [msg "COMODO WAF: Request content type is not allowed by policy. Please update file userdata_wl_content_type."] [logdata "application/x-www-form-urlencoded=application/x-www-form-urlencoded"] [severity "CRITICAL"] [MatchedString "application/x-www-form-urlencoded"]
--122cdea1-Z--
Code:
ModSecurity: Access denied with code -, [Rule: 'TX:0' '!@pmFromFile userdata_wl_content_type'] [id "210710"] [msg "COMODO WAF: Request content type is not allowed by policy. Please update file userdata_wl_content_type."] [logdata "application/x-www-form-urlencoded=application/x-www-form-urlencoded"]
Any help would be appreciated. Thanks!
Last edited by a moderator: