Author Topic: OWASP CRS v4.15.0 Just Release  (Read 897 times)

0 Members and 1 Guest are viewing this topic.

Offline
*****
Re: OWASP CRS v4.15.0 Just Release
« Reply #15 on: July 05, 2025, 04:21:46 AM »
In order to support an e-commerce site and a service industry site, here's a couple more rules I had to add to the WordPress section of the disabled rules files:
/usr/local/apache/modsecurity-owasp-old/global_disabled_rules.conf
Code: [Select]
SecRuleRemoveById 981172
SecRuleRemoveById 981319

Offline
*
Re: OWASP CRS v4.15.0 Just Release
« Reply #16 on: July 08, 2025, 10:43:02 AM »
That's very helpful because I plan to update the OWASP rules to the latest version and we are hosting various websites.

Thanks.
A global boutique AI consulting, marketing & advertising agency, helping businesses worldwide achieve success - headquartered in Singapore, Southeast Asia.

Offline
***
Re: OWASP CRS v4.15.0 Just Release
« Reply #17 on: July 14, 2025, 09:19:21 AM »
Hi,

Many thanks to Starburst...., but should I merge the two in the rbl.conf file
https://prnt.sc/9Tp9vbYKVfdk

BR
Venty

Offline
*****
Re: OWASP CRS v4.15.0 Just Release
« Reply #18 on: July 14, 2025, 01:35:04 PM »
You can do it anyway you like your system setup.
As long as ModSecurity reads the .conf

Offline
*
Re: OWASP CRS v4.15.0 Just Release
« Reply #19 on: September 01, 2025, 05:30:06 AM »
Someone has to include 2 very critical details on these guides:

1) the CWP admin dashboard "Global Disabled Rules" file is NOT the same with the one that our customized mod_security is currently using.

No edit on that file will work. The user has to add/remove rules on the new global_disabled.conf under the newly created folder.


2) the mod_security.conf file is getting overwritten occasionally by the CWP Security daemon - replacing the custom OWASP ruleset path with the default path causing chaos on the server.

My solution was to make it immutable with
Code: [Select]
sudo chattr -i /usr/local/apache/conf.d/mod_security.conf but then the user MUST remember to remove this flag for any future update/edit.

I hope this helps.

Feel free to let me know if I missed something or share this with AlphaGNU and Starburst.
A global boutique AI consulting, marketing & advertising agency, helping businesses worldwide achieve success - headquartered in Singapore, Southeast Asia.

Offline
*****
Re: OWASP CRS v4.15.0 Just Release
« Reply #20 on: September 01, 2025, 03:57:39 PM »
1) the CWP admin dashboard "Global Disabled Rules" file is NOT the same with the one that our customized mod_security is currently using.

No edit on that file will work. The user has to add/remove rules on the new global_disabled.conf under the newly created folder.
My solution to that was to also strictly enumerate the file the GUI calls for in /usr/local/apache/modsecurity-owasp-old/owasp.conf:
Code: [Select]
Include /usr/local/apache/modsecurity-owasp-old/global_disabled_rules.conf

Offline
*****
Re: OWASP CRS v4.15.0 Just Release
« Reply #21 on: September 01, 2025, 04:03:51 PM »
You should have any customized .conf for OWASP in one of their respected folders, so there is a very low change of them being overwritten:

Quote
/usr/local/apache/modsecurity-rules/custom-rules/startup/*.conf
/usr/local/apache/modsecurity-rules/custom-rules/before/*.conf
/usr/local/apache/modsecurity-rules/custom-rules/after/*.conf



Offline
***
Re: OWASP CRS v4.15.0 Just Release
« Reply #22 on: September 01, 2025, 04:58:11 PM »
Someone has to include 2 very critical details on these guides:

1) the CWP admin dashboard "Global Disabled Rules" file is NOT the same with the one that our customized mod_security is currently using.

No edit on that file will work. The user has to add/remove rules on the new global_disabled.conf under the newly created folder.

--------------------------------------------------------------------------
I hope this helps.



Hi,

for me the file global_disabled_rules.conf is in the folder:

usr/local/apache/ modsecurity-rules/custom-rules/before

and it also doesn't work?

Offline
*****
Re: OWASP CRS v4.15.0 Just Release
« Reply #23 on: September 01, 2025, 05:15:10 PM »
If you're calling it with an "Include" line as with Starburst's configuration, it will be utilized by Mod Security. But the GUI in CWP will be editing a different file:
/usr/local/apache/modsecurity-owasp-old/global_disabled_rules.conf
So you may want to Include that one specifically/additionally as well.

Offline
***
Re: OWASP CRS v4.15.0 Just Release
« Reply #24 on: September 01, 2025, 05:49:54 PM »
If you're calling it with an "Include" line as with Starburst's configuration, it will be utilized by Mod Security. But the GUI in CWP will be editing a different file:
/usr/local/apache/modsecurity-owasp-old/global_disabled_rules.conf
So you may want to Include that one specifically/additionally as well.

I didn't understand it... "Include" - in which file?

Offline
*****
Re: OWASP CRS v4.15.0 Just Release
« Reply #25 on: September 01, 2025, 10:23:03 PM »
The main conf file.
Usually - /usr/local/apache/conf.d/mod_security.conf

This will have the .conf that contains all the paths - /usr/local/apache/modsecurity-rules/modsec.conf

But the .conf can be called anything.

In that .conf file it will have the Includes, below is just an Example.

Include /usr/local/apache/modsecurity-rules/custom-rules/startup/*.conf
Include /usr/local/apache/modsecurity-rules/owasp-crs/coreruleset-1.23.4/crs-setup.conf
Include /usr/local/apache/modsecurity-rules/custom-rules/before/*.conf
Include /usr/local/apache/modsecurity-rules/owasp-crs/coreruleset-1.23.4/rules/*.conf
Include /usr/local/apache/modsecurity-rules/custom-rules/after/*.conf