Articles in this section

ModSecurity error message in the Event Viewer: SecReadStateLimit is depricated, use SecConnReadStateLimit instead

Plesk for Windows kb: technical

Applicable to:

  • Plesk for Windows

Symptoms

  • The following ModSecurity error message appears in the Application log of the Event Viewer:

    PLESK_INFO: The description for Event ID 1 from source ModSecurity cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    SecReadStateLimit is depricated, use SecConnReadStateLimit instead.

  • OWASP (free) is being used under Tools & Settings > Web Application Firewall (ModSecurity)

  • Experimental rule-set (owasp_crs\experimental_rules) is enabled in the ModSecurity configuration file C:\Program Files\ModSecurity IIS\modsecurity_iis.conf.

Cause

Going to Tools & Settings > Web Application Firewall (ModSecurity), shows that ModSecurity 2.8 or higher is installed.

The directive SecReadStateLimit has been deprecated starting with ModSecurity version 2.8.0.

The deprecated directive SecReadStateLimit is located in the file modsecurity_crs_11_slow_dos_protection.conf at C:\Program Files\ModSecurity IIS\owasp_crs\experimental_rules.

Resolution

This error message can be safely ignored as there is no impact on the ModSecurity operability.

Workaround
  1. Connect to the server via RDP.

  2. Remove the following line in C:\Program Files\ModSecurity IIS\modsecurity_iis.conf:

    CONFIG_TEXT: Include owasp_crs\experimental_rules

  3. Log in to Plesk

  4. Go to Tools & Settings > Web Application Firewall (Mod Security)

  5. At Web application firewall mode select the checkbox Off and click Apply.

    Click Install

  6. Select again On at Web application firewall mode and click OK to apply the changes.

Was this article helpful?

Comments

1 comment
Date Votes
  • Tried this and doesnt seem to work. We even tried atomic basic free rules and still get the same issue.

    0

Please sign in to leave a comment.