Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot save system settings with ModSecurity enabled? #6744

Closed
brimarq opened this issue Dec 5, 2023 · 2 comments
Closed

Cannot save system settings with ModSecurity enabled? #6744

brimarq opened this issue Dec 5, 2023 · 2 comments
Labels

Comments

@brimarq
Copy link

brimarq commented Dec 5, 2023

Clicking the "Save Settings" button on the admin System Settings page returns a page that displays

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
...

We are using Dreamhost shared hosting, and have their Web Application Firewall (mod_security) enabled for the site. When I disable that, I am able to save system settings just fine.

When I checked the server's error log, there were four ModSecurity warnings for the request. Here are the warning messages as well as the particular rules involved with each (Dreamhost is currently using OWASP ModSecurity Core Rule Set ver.3.3.2):

Two "Path Traversal Attack (/../)",
https://github.com/coreruleset/coreruleset/blob/v3.3.2/rules/REQUEST-930-APPLICATION-ATTACK-LFI.conf

"Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address", and
https://github.com/coreruleset/coreruleset/blob/v3.3.2/rules/REQUEST-931-APPLICATION-ATTACK-RFI.conf

"Inbound Anomaly Score Exceeded (Total Score: 15)".
https://github.com/coreruleset/coreruleset/blob/v3.3.2/rules/REQUEST-949-BLOCKING-EVALUATION.conf

These warnings sound concerning... could there be something in the ChurchCRM code that can be refactored so as not to trigger them, or are we just dealing with false positives here? Would it help for you to have the actual error logs for the request?

@DawoudIO

Collected Value Title Data
Page Name /SystemSettings.php
Screen Size 1440x2560
Window Size 1242x1908
Page Size 1242x1908
Platform Information Linux iad1-shared-e1-25 5.15.128-grsec-focal+ #1 SMP Mon Aug 28 23:02:20 UTC 2023 x86_64
PHP Version 8.2.12
SQL Version 8.0.28-0ubuntu0.20.04.3
ChurchCRM Version 5.3.1
Reporting Browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0
Prerequisite Status Missing Prerequisites: ["Mod Rewrite or Equivalent"]
Copy link
Contributor

github-actions bot commented Jan 5, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jan 5, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 15 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant