Websites login and contact forms blocked after enable modsecurity

Hi, I have set a pair of sites without problems, but when enabling modsecurity, the login page and contact forms seems to be blocked when submit.
The browser never load and finally this error is showed:

ERR_SPDY_PROTOCOL_ERROR

And /usr/local/lsws/logs/error.log

  • AdminLogin:

POST /administrator/index.php HTTP/1.1
2018-10-15 09:48:48.521864 [INFO] [IP…:HTTP2-1] Request body size: 128, received: 0.
2018-10-15 09:55:43.537567 [INFO] [IP…HTTP2-1] Connection idle time too long: 301 while in state: 3 watching for event: 25, close!
2018-10-15 09:55:43.537603 [INFO] [IP…:HTTP2-1] Content len: 1026,

  • Contact form
    Request line:
    POST /contact HTTP/1.1
    2018-10-15 09:55:43.537609 [INFO] [IP…:HTTP2-1] Redirect: #1, URL: /index.php
    2018-10-15 09:55:43.537613 [INFO] [IP…:HTTP2-1] Request body size: 1026, received: 0.

Sites are Joomla (not the autoinstall Joomla of cyberpanel). Is someone facing this issue? I guess that some modsecurity rule can solve this, but no idea.

Regards,

I’m facing the same issue with wordpress login after activate mod security

@CyberPanel have you checked this problem or do you have any advice about it?

I guess is not good idea disable mod_Security at all.

Regards,

I confirm it is a bug in OpenLiteSpeed, we are looking into this.

Hi again @CyberPanel, I have upgraded today to 1.7 build 3, and the issue is still present. Since this problem make common Cms not usable, have you got any advice for security config with mod_security disabled?

Thanks in advance,

That was a CyberPanel update, this issue relates to OpenLiteSpeed, we will announce when there is new version for OpenLiteSpeed.

That was a CyberPanel update, this issue relates to OpenLiteSpeed, we will announce when there is new version for OpenLiteSpeed.

Is there any ETA for this?

That was a CyberPanel update, this issue relates to OpenLiteSpeed, we will announce when there is new version for OpenLiteSpeed.

Is there any ETA for this?

up

I have read that the last openlitespeed has fixed this bug:
https://openlitespeed.org/release-log/version-1-4-x/#V1.4.42

but is not resolved in cyberpanel 1.7.7. Is a good idea to do the next?

yum update
yum upgrade openlitespeed

Currenty I have → LiteSpeed/1.4.39 Open
Regards

so any fix, I find this too…

it is almost 1-month bug

try update see if fix is rolled out

yum update openlitespeed

I can confirm that updating openlitespeed the issue is fixed. Now, with cyberpanel 1.8.1 and openlitespeed 1.4.43 Open all is running fine with mod_security enabled.

Regards,

With any of modsecurity rules Comodo or OWASP is not able to upload images in my WordPress site
Anyone can help me fix the rules or is a bug of openlitespeed also?

With any of modsecurity rules Comodo or OWASP is not able to upload images in my WordPress site Anyone can help me fix the rules or is a bug of openlitespeed also?

Which version of OpenLiteSpeed you are running?

1.4.44

With any of modsecurity rules Comodo or OWASP is not able to upload images in my WordPress site
I am having the same issue. OLS version - 1.4.44, Cyberpanel version - 1.8.1

For everyone here, run this tool and see if ModSecurity issue is gone on your end

bash <(curl -s https://raw.githubusercontent.com/litespeedtech/openlitespeed/de23074af50c7c06cf31f7cb8324691392ea746f/dist/admin/misc/testbeta.sh)

After running the above code and COMODO rules
https://www.screencast.com/t/5O51AL2Fkd

If you face any other issues, you can revert the above change using.

bash <(curl -s https://raw.githubusercontent.com/litespeedtech/openlitespeed/de23074af50c7c06cf31f7cb8324691392ea746f/dist/admin/misc/testbeta.sh) -r

Are you going to update openlitespeed 1.5 and maybe will fix the modsecurity issues?