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

modsecurity prevents WP Githuber MD from working #382

Open
gene1wood opened this issue Aug 29, 2024 · 2 comments
Open

modsecurity prevents WP Githuber MD from working #382

gene1wood opened this issue Aug 29, 2024 · 2 comments

Comments

@gene1wood
Copy link

(see also coreruleset/wordpress-rule-exclusions-plugin#60 )

Describe the bug

The modsecurity web application firewall (WAF) which is often used in Apache and Nginx, prevents WP Githuber MD from working because it triggers a false positive due to the h2m_strip_tags argument.

The WAF see's the argument which contains the string strip_tags and thinks it's a PHP Injection Attack.

I'm reporting this, not necessarily because something should be changed/fixed in WP Githuber MD, maybe just to add it to the known issues.

To reproduce

Steps to reproduce the behavior:

  1. Install modsecurity and modsecurity-crs
  2. Install the wordpress-rule-exclusions-plugin for crs
  3. Update a Wordpress page

Expected behavior

Ideally modsecurity wouldn't block the POST and would allow the user to post pages using WP Githuber MD

Server environment

  • WordPress version 6.6.1
  • WP Githuber MD plugin version 1.16.3
  • PHP version 8.3

User environment

  • OS: Linux
  • Browser Firefox

Additional context

Logs can be seen in the issue opened with the wordpress-rule-exclusions-plugin modsecurity CRS plugin coreruleset/wordpress-rule-exclusions-plugin#60

Copy link

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

@github-actions github-actions bot added the stale label Oct 29, 2024
@gene1wood
Copy link
Author

This issue is still valid, we should keep it open.

@github-actions github-actions bot removed the stale label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant