Skip to content

Using OWASP 953-DATA-LEAKAGES-PHP Rule cause errors #83

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

Closed
beeriz opened this issue Dec 20, 2017 · 5 comments
Closed

Using OWASP 953-DATA-LEAKAGES-PHP Rule cause errors #83

beeriz opened this issue Dec 20, 2017 · 5 comments

Comments

@beeriz
Copy link

beeriz commented Dec 20, 2017

After installing ModSecurity with the nginx connector (no issue during the install), when I try to do a search on website or visite a category i'm getting the error : header already sent while sending response to client, client:

Exemple of the errors:
2017/12/20 01:08:50 [alert] 15793#15793: *26 header already sent while sending response to client, client: 172.69.54.19, server: www.bnin.org, request: "GET /?category&cuisine&cooking_method&sort&content-search HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock", host: "bnin.org", referrer: "https://bnin.org/?category&cuisine&cooking_method&sort&content-search"

Any idea what's causing this?
I'm runnign latest nginx version : nginx/1.13.7
I used : ModSecurity v3/master --single-branch
With : OWASP Core Rule 3

Your help is much needed and appreciated, thank you !

@beeriz beeriz changed the title Using owasp modsecurity crs filters cause errors Using OWASP modsecurity CRS Rules cause errors Dec 20, 2017
@AnoopAlias
Copy link

See #41 . Do you have pagespeed enabled?

@beeriz
Copy link
Author

beeriz commented Dec 20, 2017

Nope, just Nginx and https://github.com/mariusv/nginx-badbot-blocker, I tried disabling it of course and cleaning the website configuration, but I just have to disable the includes for OWASP Core Rules to fix it

@beeriz
Copy link
Author

beeriz commented Dec 20, 2017

This is the rule responsible for the error,
RESPONSE-953-DATA-LEAKAGES-PHP.zip

This is what's included in the configuration :
Config included.zip

I just have to disable RESPONSE-953-DATA-LEAKAGES-PHP so that everything works.

I really appreciate any feedback on this.
Thank you

@beeriz beeriz changed the title Using OWASP modsecurity CRS Rules cause errors Using OWASP 953-DATA-LEAKAGES-PHP Rule cause errors Dec 20, 2017
@joseErico
Copy link

joseErico commented Feb 6, 2018

Same problem of @beeriz .
The error is in the id rule 953120.
As a temporary solution I used "SecRuleRemoveById 953120".
Thank you for locate this problem @beeriz !

@zimmerle
Copy link
Contributor

The error happens because at phase 4 is too late to change the response http code, as it is already received by the client. The only possibility is to hold the content till the inspection is done, which may imply in a significant performance drop.

Closing this in favor of #41

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

4 participants