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

trouble with wordfence,, readonly_exec() whitelist ? #433

Closed
gnd opened this issue Aug 23, 2022 · 1 comment
Closed

trouble with wordfence,, readonly_exec() whitelist ? #433

gnd opened this issue Aug 23, 2022 · 1 comment
Assignees
Labels

Comments

@gnd
Copy link

gnd commented Aug 23, 2022

Hello,

I am using Snuffleupagus along various Wordpress installs and I have trouble with readonly_exec() option that collides with the way Wordfence works.

After setting the correct permissions for the whole WP install (chmod ugo-w for all *.php *.inc) I notice the site doesn't load, because of Wordfence. Wordfence changes file permissions (apparently on load of WP) for its own files so that they are writable by the user. These files are specifically:

/wp-content/wflogs/attack-data.php
/wp-content/wflogs/config.php
/wp-content/wflogs/config-synced.php
...
/wp-content/wflogs/rules.php

Snuffleupagus stops execution of rules.php and thus of the whole site, which remains blank.

Is there a way to ignore these files / this directory and still be able to use readonly_exec() ? Otherwise I will have to disable it :(

@jvoisin
Copy link
Owner

jvoisin commented Aug 23, 2022

Nope, there is no way to tell Snuffleupagus to ignore some files for readonly_exec().
I think that the right™ way to address this would be to convince the Wordfence people to restore the rights of the php files after they've been modified.

@jvoisin jvoisin closed this as completed Sep 20, 2023
@jvoisin jvoisin self-assigned this Sep 20, 2023
@jvoisin jvoisin added this to the 1.0.0 - Babar the Elephant milestone Sep 20, 2023
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

2 participants