-
-
Notifications
You must be signed in to change notification settings - Fork 402
phpBB 3.3.0 cannot access to ACP (Admin panel) #1903
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
Comments
Sorry for the inconvenience @diegaless and thank you for reporting. Could you share the full alert messages please? The information we have is not enough to reproduce the problem. @azurit : Do you want to take a look afterwards? |
@dune73 Of course! Feel free to assign everything related to phpBB to me, thank you. @diegaless Just to be sure: Have you added this file https://raw.githubusercontent.com/azurit/coreruleset/v3.4/dev/rules/REQUEST-903.9007-PHPBB-EXCLUSION-RULES.conf AND activated phpBB exclusions in crs-setup.conf, section 'Application Specific Rule Exclusions'? |
Thanks for the help @azurit :)! I didn't know about these exclusion rules since they are not available in /modsecurity-crs/rules/xx I confirm that adding the following rule in the configuration of my VirtualHost, the problem is solved:
However I haven´t been able to add the exclusion file that you provided with all the rules, I indicate the steps that I followed in case you could help me: -Added in /etc/modsecurity/crs/crs-setup.conf ( section 'Application Specific Rule Exclusions')
-Saved in /modsecurity-crs/rules/ the following file REQUEST-903.9007-PHPBB-EXCLUSION-RULES.conf -Config in virtualHost:
|
This is new exclusion rules package for phpBB, see PL #1893. Looks you did it ok. Try it without all the excessive spaces:
|
Yes, I have it like this, it was due to ctrl + c ctrl + v. But not working actually, as if it were not loaded the exclusion rules, since these jump in modsecurity_log. @dune73 In case you could shed some light. By the time they are up and running, with what level of paranoia do you recommend these rules? @azurit |
It was tested with PL1. Can you send output of this? |
This is the output:
|
What will happen if you remove first two rules (9007000 and 9007001) from REQUEST-903.9007-PHPBB-EXCLUSION-RULES.conf? Just to be sure - did you remove that one rule (ID 9007130) from virtualhost? You mentioned it here: |
It's works, i can access to ACP. From what I understand that the crs_exclusions_phpbb parameter is not detected correctly?
yes, it was eliminated I just saw what you mentioned #1893 , for what you need here I am. |
Seems so. Are you sure your crs-setup.conf is loaded? Should be in /usr/share/modsecurity-crs/owasp-crs.load and owasp-crs.load in /etc/apache2/mods-enabled/security2.conf.
Thanks!
Yes, it's still work in progress.
No problem! |
Yes that's the bug, security2.conf correctly points to
, but owaspcrs.load is not found in
Only shows:
. I thought that when installing modsecurity that file generated itself. Is my configuration broken? Any way to autogenerate it? I was looking but I did not get anything clear |
This is how security2.conf should look:
And owasp-crs.load:
|
Identify security2.conf for me. And the configuration is loaded from virtualhost:
But owasp-crs.load is not generated. So what do you suggest that I manually create the file? Thanks for the help |
It won't be generated automataically, if you are missing it, you need to create it. |
And if you are loading security2.conf ( ls -la /etc/apache2/mods-enabled/security2.conf ), you don't need that things in virtualhost, remove them. Instead, create and load owasp-crs.load and configure everything inside /etc/modsecurity/crs/crs-setup.conf . |
Ok I have followed your steps, also uncomment the first two directives in /usr/share/modsecurity-crs/rules/REQUEST-903.9007-PHPBB-EXCLUSION-RULES.conf and now it works correctly. Noob question, if I remove said virtualhost directives and I am running multiple virtualHost, with different cms (phpbb, wordpress etc) how do I make the active exclusion rules of phpBB only execute on a specific virtualHost and not affect the others. I feel like I'm missing something important here |
I don't think this is possible but all exlusive rules should only apply to application for which they were written (as every application works different). @dune73 does CRS support enabling exclusive rules packages per virtualhost? |
Now I activate the owasp rules via /etc/modsecurity/modsecurity.conf SecRuleEngine on Before SecRuleEngine being activated from virtualhost and being able to indicate which rules it loaded, I understand that it was possible to handle which sites applied which rules and which ones to load, although perhaps this is not a problem as you explain |
Can we close this issue? |
yes |
Description
I cannot acces to ACP, I followed the instructions in the following link (phpBB 3.2.7 admin panel #1873) and added the exclusion rules, but it didn't work for me.
Audit Logs / Triggered Rule Numbers
POST /adm/index.php?sid=XXX
Triggered rules:
There were rules that were repeated and eliminated by synthesizing.
Your Environment
Confirmation
[x] I have removed any personal data (email addresses, IP addresses,
passwords, domain names) from any logs posted.
The text was updated successfully, but these errors were encountered: